// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package sagemaker import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AddTags for more information on using the AddTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AddTagsRequest method. // req, resp := client.AddTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags func (c *SageMaker) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { op := &request.Operation{ Name: opAddTags, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &AddTagsInput{} } output = &AddTagsOutput{} req = c.newRequest(op, input, output) return } // AddTags API operation for Amazon SageMaker Service. // // Adds or overwrites one or more tags for the specified Amazon SageMaker resource. // You can add tags to notebook instances, training jobs, hyperparameter tuning // jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, // and endpoints. // // Each tag consists of a key and an optional value. Tag keys must be unique // per resource. For more information about tags, see For more information, // see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). // // Tags that you add to a hyperparameter tuning job by calling this API are // also added to any training jobs that the hyperparameter tuning job launches // after you call this API, but not to training jobs that the hyperparameter // tuning job launched before you called this API. To make sure that the tags // associated with a hyperparameter tuning job are also added to all training // jobs that the hyperparameter tuning job launches, add the tags when you first // create the tuning job by specifying them in the Tags parameter of CreateHyperParameterTuningJob // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation AddTags for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags func (c *SageMaker) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) return out, req.Send() } // AddTagsWithContext is the same as AddTags with the addition of // the ability to pass a context and additional request options. // // See AddTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opAssociateTrialComponent = "AssociateTrialComponent" // AssociateTrialComponentRequest generates a "aws/request.Request" representing the // client's request for the AssociateTrialComponent operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AssociateTrialComponent for more information on using the AssociateTrialComponent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AssociateTrialComponentRequest method. // req, resp := client.AssociateTrialComponentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AssociateTrialComponent func (c *SageMaker) AssociateTrialComponentRequest(input *AssociateTrialComponentInput) (req *request.Request, output *AssociateTrialComponentOutput) { op := &request.Operation{ Name: opAssociateTrialComponent, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &AssociateTrialComponentInput{} } output = &AssociateTrialComponentOutput{} req = c.newRequest(op, input, output) return } // AssociateTrialComponent API operation for Amazon SageMaker Service. // // Associates a trial component with a trial. A trial component can be associated // with multiple trials. To disassociate a trial component from a trial, call // the DisassociateTrialComponent API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation AssociateTrialComponent for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AssociateTrialComponent func (c *SageMaker) AssociateTrialComponent(input *AssociateTrialComponentInput) (*AssociateTrialComponentOutput, error) { req, out := c.AssociateTrialComponentRequest(input) return out, req.Send() } // AssociateTrialComponentWithContext is the same as AssociateTrialComponent with the addition of // the ability to pass a context and additional request options. // // See AssociateTrialComponent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) AssociateTrialComponentWithContext(ctx aws.Context, input *AssociateTrialComponentInput, opts ...request.Option) (*AssociateTrialComponentOutput, error) { req, out := c.AssociateTrialComponentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAlgorithm = "CreateAlgorithm" // CreateAlgorithmRequest generates a "aws/request.Request" representing the // client's request for the CreateAlgorithm operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAlgorithm for more information on using the CreateAlgorithm // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAlgorithmRequest method. // req, resp := client.CreateAlgorithmRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm func (c *SageMaker) CreateAlgorithmRequest(input *CreateAlgorithmInput) (req *request.Request, output *CreateAlgorithmOutput) { op := &request.Operation{ Name: opCreateAlgorithm, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateAlgorithmInput{} } output = &CreateAlgorithmOutput{} req = c.newRequest(op, input, output) return } // CreateAlgorithm API operation for Amazon SageMaker Service. // // Create a machine learning algorithm that you can use in Amazon SageMaker // and list in the AWS Marketplace. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateAlgorithm for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm func (c *SageMaker) CreateAlgorithm(input *CreateAlgorithmInput) (*CreateAlgorithmOutput, error) { req, out := c.CreateAlgorithmRequest(input) return out, req.Send() } // CreateAlgorithmWithContext is the same as CreateAlgorithm with the addition of // the ability to pass a context and additional request options. // // See CreateAlgorithm for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateAlgorithmWithContext(ctx aws.Context, input *CreateAlgorithmInput, opts ...request.Option) (*CreateAlgorithmOutput, error) { req, out := c.CreateAlgorithmRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateApp = "CreateApp" // CreateAppRequest generates a "aws/request.Request" representing the // client's request for the CreateApp operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateApp for more information on using the CreateApp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAppRequest method. // req, resp := client.CreateAppRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateApp func (c *SageMaker) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) { op := &request.Operation{ Name: opCreateApp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateAppInput{} } output = &CreateAppOutput{} req = c.newRequest(op, input, output) return } // CreateApp API operation for Amazon SageMaker Service. // // Creates a running App for the specified UserProfile. Supported Apps are JupyterServer // and KernelGateway. This operation is automatically invoked by Amazon SageMaker // Studio upon access to the associated Domain, and when new kernel configurations // are selected by the user. A user may have multiple Apps active simultaneously. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateApp for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateApp func (c *SageMaker) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) { req, out := c.CreateAppRequest(input) return out, req.Send() } // CreateAppWithContext is the same as CreateApp with the addition of // the ability to pass a context and additional request options. // // See CreateApp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) { req, out := c.CreateAppRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAutoMLJob = "CreateAutoMLJob" // CreateAutoMLJobRequest generates a "aws/request.Request" representing the // client's request for the CreateAutoMLJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAutoMLJob for more information on using the CreateAutoMLJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAutoMLJobRequest method. // req, resp := client.CreateAutoMLJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAutoMLJob func (c *SageMaker) CreateAutoMLJobRequest(input *CreateAutoMLJobInput) (req *request.Request, output *CreateAutoMLJobOutput) { op := &request.Operation{ Name: opCreateAutoMLJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateAutoMLJobInput{} } output = &CreateAutoMLJobOutput{} req = c.newRequest(op, input, output) return } // CreateAutoMLJob API operation for Amazon SageMaker Service. // // Creates an Autopilot job. // // Find the best performing model after you run an Autopilot job by calling // . Deploy that model by following the steps described in Step 6.1: Deploy // the Model to Amazon SageMaker Hosting Services (https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html). // // For information about how to use Autopilot, see Automate Model Development // with Amazon SageMaker Autopilot (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateAutoMLJob for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAutoMLJob func (c *SageMaker) CreateAutoMLJob(input *CreateAutoMLJobInput) (*CreateAutoMLJobOutput, error) { req, out := c.CreateAutoMLJobRequest(input) return out, req.Send() } // CreateAutoMLJobWithContext is the same as CreateAutoMLJob with the addition of // the ability to pass a context and additional request options. // // See CreateAutoMLJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateAutoMLJobWithContext(ctx aws.Context, input *CreateAutoMLJobInput, opts ...request.Option) (*CreateAutoMLJobOutput, error) { req, out := c.CreateAutoMLJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateCodeRepository = "CreateCodeRepository" // CreateCodeRepositoryRequest generates a "aws/request.Request" representing the // client's request for the CreateCodeRepository operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateCodeRepository for more information on using the CreateCodeRepository // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateCodeRepositoryRequest method. // req, resp := client.CreateCodeRepositoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository func (c *SageMaker) CreateCodeRepositoryRequest(input *CreateCodeRepositoryInput) (req *request.Request, output *CreateCodeRepositoryOutput) { op := &request.Operation{ Name: opCreateCodeRepository, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateCodeRepositoryInput{} } output = &CreateCodeRepositoryOutput{} req = c.newRequest(op, input, output) return } // CreateCodeRepository API operation for Amazon SageMaker Service. // // Creates a Git repository as a resource in your Amazon SageMaker account. // You can associate the repository with notebook instances so that you can // use Git source control for the notebooks you create. The Git repository is // a resource in your Amazon SageMaker account, so it can be associated with // more than one notebook instance, and it persists independently from the lifecycle // of any notebook instances it is associated with. // // The repository can be hosted either in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateCodeRepository for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository func (c *SageMaker) CreateCodeRepository(input *CreateCodeRepositoryInput) (*CreateCodeRepositoryOutput, error) { req, out := c.CreateCodeRepositoryRequest(input) return out, req.Send() } // CreateCodeRepositoryWithContext is the same as CreateCodeRepository with the addition of // the ability to pass a context and additional request options. // // See CreateCodeRepository for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateCodeRepositoryWithContext(ctx aws.Context, input *CreateCodeRepositoryInput, opts ...request.Option) (*CreateCodeRepositoryOutput, error) { req, out := c.CreateCodeRepositoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateCompilationJob = "CreateCompilationJob" // CreateCompilationJobRequest generates a "aws/request.Request" representing the // client's request for the CreateCompilationJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateCompilationJob for more information on using the CreateCompilationJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateCompilationJobRequest method. // req, resp := client.CreateCompilationJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob func (c *SageMaker) CreateCompilationJobRequest(input *CreateCompilationJobInput) (req *request.Request, output *CreateCompilationJobOutput) { op := &request.Operation{ Name: opCreateCompilationJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateCompilationJobInput{} } output = &CreateCompilationJobOutput{} req = c.newRequest(op, input, output) return } // CreateCompilationJob API operation for Amazon SageMaker Service. // // Starts a model compilation job. After the model has been compiled, Amazon // SageMaker saves the resulting model artifacts to an Amazon Simple Storage // Service (Amazon S3) bucket that you specify. // // If you choose to host your model using Amazon SageMaker hosting services, // you can use the resulting model artifacts as part of the model. You can also // use the artifacts with AWS IoT Greengrass. In that case, deploy them as an // ML resource. // // In the request body, you provide the following: // // * A name for the compilation job // // * Information about the input model artifacts // // * The output location for the compiled model and the device (target) that // the model runs on // // * The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker // assumes to perform the model compilation job. // // You can also provide a Tag to track the model compilation job's resource // use and costs. The response body contains the CompilationJobArn for the compiled // job. // // To stop a model compilation job, use StopCompilationJob. To get information // about a particular model compilation job, use DescribeCompilationJob. To // get information about multiple model compilation jobs, use ListCompilationJobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateCompilationJob for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob func (c *SageMaker) CreateCompilationJob(input *CreateCompilationJobInput) (*CreateCompilationJobOutput, error) { req, out := c.CreateCompilationJobRequest(input) return out, req.Send() } // CreateCompilationJobWithContext is the same as CreateCompilationJob with the addition of // the ability to pass a context and additional request options. // // See CreateCompilationJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateCompilationJobWithContext(ctx aws.Context, input *CreateCompilationJobInput, opts ...request.Option) (*CreateCompilationJobOutput, error) { req, out := c.CreateCompilationJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDomain = "CreateDomain" // CreateDomainRequest generates a "aws/request.Request" representing the // client's request for the CreateDomain operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateDomain for more information on using the CreateDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateDomainRequest method. // req, resp := client.CreateDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateDomain func (c *SageMaker) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) { op := &request.Operation{ Name: opCreateDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateDomainInput{} } output = &CreateDomainOutput{} req = c.newRequest(op, input, output) return } // CreateDomain API operation for Amazon SageMaker Service. // // Creates a Domain used by SageMaker Studio. A domain consists of an associated // directory, a list of authorized users, and a variety of security, application, // policy, and Amazon Virtual Private Cloud (VPC) configurations. An AWS account // is limited to one domain per region. Users within a domain can share notebook // files and other artifacts with each other. // // When a domain is created, an Amazon Elastic File System (EFS) volume is also // created for use by all of the users within the domain. Each user receives // a private home directory within the EFS for notebooks, Git repositories, // and data files. // // All traffic between the domain and the EFS volume is communicated through // the specified subnet IDs. All other traffic goes over the Internet through // an Amazon SageMaker system VPC. The EFS traffic uses the NFS/TCP protocol // over port 2049. // // NFS traffic over TCP on port 2049 needs to be allowed in both inbound and // outbound rules in order to launch a SageMaker Studio app successfully. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateDomain for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateDomain func (c *SageMaker) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { req, out := c.CreateDomainRequest(input) return out, req.Send() } // CreateDomainWithContext is the same as CreateDomain with the addition of // the ability to pass a context and additional request options. // // See CreateDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateDomainWithContext(ctx aws.Context, input *CreateDomainInput, opts ...request.Option) (*CreateDomainOutput, error) { req, out := c.CreateDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateEndpoint = "CreateEndpoint" // CreateEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreateEndpoint operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateEndpoint for more information on using the CreateEndpoint // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateEndpointRequest method. // req, resp := client.CreateEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint func (c *SageMaker) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) { op := &request.Operation{ Name: opCreateEndpoint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateEndpointInput{} } output = &CreateEndpointOutput{} req = c.newRequest(op, input, output) return } // CreateEndpoint API operation for Amazon SageMaker Service. // // Creates an endpoint using the endpoint configuration specified in the request. // Amazon SageMaker uses the endpoint to provision resources and deploy models. // You create the endpoint configuration with the CreateEndpointConfig API. // // Use this API to deploy models using Amazon SageMaker hosting services. // // For an example that calls this method when deploying a model to Amazon SageMaker // hosting services, see Deploy the Model to Amazon SageMaker Hosting Services // (AWS SDK for Python (Boto 3)). (https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html#ex1-deploy-model-boto) // // You must not delete an EndpointConfig that is in use by an endpoint that // is live or while the UpdateEndpoint or CreateEndpoint operations are being // performed on the endpoint. To update an endpoint, you must create a new EndpointConfig. // // The endpoint name must be unique within an AWS Region in your AWS account. // // When it receives the request, Amazon SageMaker creates the endpoint, launches // the resources (ML compute instances), and deploys the model(s) on them. // // When you call CreateEndpoint, a load call is made to DynamoDB to verify that // your endpoint configuration exists. When you read data from a DynamoDB table // supporting Eventually Consistent Reads (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html), // the response might not reflect the results of a recently completed write // operation. The response might include some stale data. If the dependent entities // are not yet in DynamoDB, this causes a validation error. If you repeat your // read request after a short time, the response should return the latest data. // So retry logic is recommended to handle these possible issues. We also recommend // that customers call DescribeEndpointConfig before calling CreateEndpoint // to minimize the potential impact of a DynamoDB eventually consistent read. // // When Amazon SageMaker receives the request, it sets the endpoint status to // Creating. After it creates the endpoint, it sets the status to InService. // Amazon SageMaker can then process incoming requests for inferences. To check // the status of an endpoint, use the DescribeEndpoint API. // // If any of the models hosted at this endpoint get model data from an Amazon // S3 location, Amazon SageMaker uses AWS Security Token Service to download // model artifacts from the S3 path you provided. AWS STS is activated in your // IAM user account by default. If you previously deactivated AWS STS for a // region, you need to reactivate AWS STS for that region. For more information, // see Activating and Deactivating AWS STS in an AWS Region (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) // in the AWS Identity and Access Management User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateEndpoint for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint func (c *SageMaker) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { req, out := c.CreateEndpointRequest(input) return out, req.Send() } // CreateEndpointWithContext is the same as CreateEndpoint with the addition of // the ability to pass a context and additional request options. // // See CreateEndpoint for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateEndpointWithContext(ctx aws.Context, input *CreateEndpointInput, opts ...request.Option) (*CreateEndpointOutput, error) { req, out := c.CreateEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateEndpointConfig = "CreateEndpointConfig" // CreateEndpointConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateEndpointConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateEndpointConfig for more information on using the CreateEndpointConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateEndpointConfigRequest method. // req, resp := client.CreateEndpointConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig func (c *SageMaker) CreateEndpointConfigRequest(input *CreateEndpointConfigInput) (req *request.Request, output *CreateEndpointConfigOutput) { op := &request.Operation{ Name: opCreateEndpointConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateEndpointConfigInput{} } output = &CreateEndpointConfigOutput{} req = c.newRequest(op, input, output) return } // CreateEndpointConfig API operation for Amazon SageMaker Service. // // Creates an endpoint configuration that Amazon SageMaker hosting services // uses to deploy models. In the configuration, you identify one or more models, // created using the CreateModel API, to deploy and the resources that you want // Amazon SageMaker to provision. Then you call the CreateEndpoint API. // // Use this API if you want to use Amazon SageMaker hosting services to deploy // models into production. // // In the request, you define a ProductionVariant, for each model that you want // to deploy. Each ProductionVariant parameter also describes the resources // that you want Amazon SageMaker to provision. This includes the number and // type of ML compute instances to deploy. // // If you are hosting multiple models, you also assign a VariantWeight to specify // how much traffic you want to allocate to each model. For example, suppose // that you want to host two models, A and B, and you assign traffic weight // 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds // of the traffic to Model A, and one-third to model B. // // For an example that calls this method when deploying a model to Amazon SageMaker // hosting services, see Deploy the Model to Amazon SageMaker Hosting Services // (AWS SDK for Python (Boto 3)). (https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html#ex1-deploy-model-boto) // // When you call CreateEndpoint, a load call is made to DynamoDB to verify that // your endpoint configuration exists. When you read data from a DynamoDB table // supporting Eventually Consistent Reads (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html), // the response might not reflect the results of a recently completed write // operation. The response might include some stale data. If the dependent entities // are not yet in DynamoDB, this causes a validation error. If you repeat your // read request after a short time, the response should return the latest data. // So retry logic is recommended to handle these possible issues. We also recommend // that customers call DescribeEndpointConfig before calling CreateEndpoint // to minimize the potential impact of a DynamoDB eventually consistent read. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateEndpointConfig for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig func (c *SageMaker) CreateEndpointConfig(input *CreateEndpointConfigInput) (*CreateEndpointConfigOutput, error) { req, out := c.CreateEndpointConfigRequest(input) return out, req.Send() } // CreateEndpointConfigWithContext is the same as CreateEndpointConfig with the addition of // the ability to pass a context and additional request options. // // See CreateEndpointConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateEndpointConfigWithContext(ctx aws.Context, input *CreateEndpointConfigInput, opts ...request.Option) (*CreateEndpointConfigOutput, error) { req, out := c.CreateEndpointConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateExperiment = "CreateExperiment" // CreateExperimentRequest generates a "aws/request.Request" representing the // client's request for the CreateExperiment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateExperiment for more information on using the CreateExperiment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateExperimentRequest method. // req, resp := client.CreateExperimentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateExperiment func (c *SageMaker) CreateExperimentRequest(input *CreateExperimentInput) (req *request.Request, output *CreateExperimentOutput) { op := &request.Operation{ Name: opCreateExperiment, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateExperimentInput{} } output = &CreateExperimentOutput{} req = c.newRequest(op, input, output) return } // CreateExperiment API operation for Amazon SageMaker Service. // // Creates an SageMaker experiment. An experiment is a collection of trials // that are observed, compared and evaluated as a group. A trial is a set of // steps, called trial components, that produce a machine learning model. // // The goal of an experiment is to determine the components that produce the // best model. Multiple trials are performed, each one isolating and measuring // the impact of a change to one or more inputs, while keeping the remaining // inputs constant. // // When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, // all experiments, trials, and trial components are automatically tracked, // logged, and indexed. When you use the AWS SDK for Python (Boto), you must // use the logging APIs provided by the SDK. // // You can add tags to experiments, trials, trial components and then use the // Search API to search for the tags. // // To add a description to an experiment, specify the optional Description parameter. // To add a description later, or to change the description, call the UpdateExperiment // API. // // To get a list of all your experiments, call the ListExperiments API. To view // an experiment's properties, call the DescribeExperiment API. To get a list // of all the trials associated with an experiment, call the ListTrials API. // To create a trial call the CreateTrial API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateExperiment for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateExperiment func (c *SageMaker) CreateExperiment(input *CreateExperimentInput) (*CreateExperimentOutput, error) { req, out := c.CreateExperimentRequest(input) return out, req.Send() } // CreateExperimentWithContext is the same as CreateExperiment with the addition of // the ability to pass a context and additional request options. // // See CreateExperiment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateExperimentWithContext(ctx aws.Context, input *CreateExperimentInput, opts ...request.Option) (*CreateExperimentOutput, error) { req, out := c.CreateExperimentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateFlowDefinition = "CreateFlowDefinition" // CreateFlowDefinitionRequest generates a "aws/request.Request" representing the // client's request for the CreateFlowDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateFlowDefinition for more information on using the CreateFlowDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateFlowDefinitionRequest method. // req, resp := client.CreateFlowDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateFlowDefinition func (c *SageMaker) CreateFlowDefinitionRequest(input *CreateFlowDefinitionInput) (req *request.Request, output *CreateFlowDefinitionOutput) { op := &request.Operation{ Name: opCreateFlowDefinition, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateFlowDefinitionInput{} } output = &CreateFlowDefinitionOutput{} req = c.newRequest(op, input, output) return } // CreateFlowDefinition API operation for Amazon SageMaker Service. // // Creates a flow definition. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateFlowDefinition for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateFlowDefinition func (c *SageMaker) CreateFlowDefinition(input *CreateFlowDefinitionInput) (*CreateFlowDefinitionOutput, error) { req, out := c.CreateFlowDefinitionRequest(input) return out, req.Send() } // CreateFlowDefinitionWithContext is the same as CreateFlowDefinition with the addition of // the ability to pass a context and additional request options. // // See CreateFlowDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateFlowDefinitionWithContext(ctx aws.Context, input *CreateFlowDefinitionInput, opts ...request.Option) (*CreateFlowDefinitionOutput, error) { req, out := c.CreateFlowDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateHumanTaskUi = "CreateHumanTaskUi" // CreateHumanTaskUiRequest generates a "aws/request.Request" representing the // client's request for the CreateHumanTaskUi operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateHumanTaskUi for more information on using the CreateHumanTaskUi // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateHumanTaskUiRequest method. // req, resp := client.CreateHumanTaskUiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHumanTaskUi func (c *SageMaker) CreateHumanTaskUiRequest(input *CreateHumanTaskUiInput) (req *request.Request, output *CreateHumanTaskUiOutput) { op := &request.Operation{ Name: opCreateHumanTaskUi, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateHumanTaskUiInput{} } output = &CreateHumanTaskUiOutput{} req = c.newRequest(op, input, output) return } // CreateHumanTaskUi API operation for Amazon SageMaker Service. // // Defines the settings you will use for the human review workflow user interface. // Reviewers will see a three-panel interface with an instruction area, the // item to review, and an input area. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateHumanTaskUi for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHumanTaskUi func (c *SageMaker) CreateHumanTaskUi(input *CreateHumanTaskUiInput) (*CreateHumanTaskUiOutput, error) { req, out := c.CreateHumanTaskUiRequest(input) return out, req.Send() } // CreateHumanTaskUiWithContext is the same as CreateHumanTaskUi with the addition of // the ability to pass a context and additional request options. // // See CreateHumanTaskUi for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateHumanTaskUiWithContext(ctx aws.Context, input *CreateHumanTaskUiInput, opts ...request.Option) (*CreateHumanTaskUiOutput, error) { req, out := c.CreateHumanTaskUiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateHyperParameterTuningJob = "CreateHyperParameterTuningJob" // CreateHyperParameterTuningJobRequest generates a "aws/request.Request" representing the // client's request for the CreateHyperParameterTuningJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateHyperParameterTuningJob for more information on using the CreateHyperParameterTuningJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateHyperParameterTuningJobRequest method. // req, resp := client.CreateHyperParameterTuningJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob func (c *SageMaker) CreateHyperParameterTuningJobRequest(input *CreateHyperParameterTuningJobInput) (req *request.Request, output *CreateHyperParameterTuningJobOutput) { op := &request.Operation{ Name: opCreateHyperParameterTuningJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateHyperParameterTuningJobInput{} } output = &CreateHyperParameterTuningJobOutput{} req = c.newRequest(op, input, output) return } // CreateHyperParameterTuningJob API operation for Amazon SageMaker Service. // // Starts a hyperparameter tuning job. A hyperparameter tuning job finds the // best version of a model by running many training jobs on your dataset using // the algorithm you choose and values for hyperparameters within ranges that // you specify. It then chooses the hyperparameter values that result in a model // that performs the best, as measured by an objective metric that you choose. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateHyperParameterTuningJob for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob func (c *SageMaker) CreateHyperParameterTuningJob(input *CreateHyperParameterTuningJobInput) (*CreateHyperParameterTuningJobOutput, error) { req, out := c.CreateHyperParameterTuningJobRequest(input) return out, req.Send() } // CreateHyperParameterTuningJobWithContext is the same as CreateHyperParameterTuningJob with the addition of // the ability to pass a context and additional request options. // // See CreateHyperParameterTuningJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateHyperParameterTuningJobWithContext(ctx aws.Context, input *CreateHyperParameterTuningJobInput, opts ...request.Option) (*CreateHyperParameterTuningJobOutput, error) { req, out := c.CreateHyperParameterTuningJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateLabelingJob = "CreateLabelingJob" // CreateLabelingJobRequest generates a "aws/request.Request" representing the // client's request for the CreateLabelingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateLabelingJob for more information on using the CreateLabelingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateLabelingJobRequest method. // req, resp := client.CreateLabelingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob func (c *SageMaker) CreateLabelingJobRequest(input *CreateLabelingJobInput) (req *request.Request, output *CreateLabelingJobOutput) { op := &request.Operation{ Name: opCreateLabelingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateLabelingJobInput{} } output = &CreateLabelingJobOutput{} req = c.newRequest(op, input, output) return } // CreateLabelingJob API operation for Amazon SageMaker Service. // // Creates a job that uses workers to label the data objects in your input dataset. // You can use the labeled data to train machine learning models. // // You can select your workforce from one of three providers: // // * A private workforce that you create. It can include employees, contractors, // and outside experts. Use a private workforce when want the data to stay // within your organization or when a specific set of skills is required. // // * One or more vendors that you select from the AWS Marketplace. Vendors // provide expertise in specific areas. // // * The Amazon Mechanical Turk workforce. This is the largest workforce, // but it should only be used for public data or data that has been stripped // of any personally identifiable information. // // You can also use automated data labeling to reduce the number of data objects // that need to be labeled by a human. Automated data labeling uses active learning // to determine if a data object can be labeled by machine or if it needs to // be sent to a human worker. For more information, see Using Automated Data // Labeling (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-automated-labeling.html). // // The data objects to be labeled are contained in an Amazon S3 bucket. You // create a manifest file that describes the location of each object. For more // information, see Using Input and Output Data (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-data.html). // // The output can be used as the manifest file for another labeling job or as // training data for your machine learning models. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateLabelingJob for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob func (c *SageMaker) CreateLabelingJob(input *CreateLabelingJobInput) (*CreateLabelingJobOutput, error) { req, out := c.CreateLabelingJobRequest(input) return out, req.Send() } // CreateLabelingJobWithContext is the same as CreateLabelingJob with the addition of // the ability to pass a context and additional request options. // // See CreateLabelingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateLabelingJobWithContext(ctx aws.Context, input *CreateLabelingJobInput, opts ...request.Option) (*CreateLabelingJobOutput, error) { req, out := c.CreateLabelingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateModel = "CreateModel" // CreateModelRequest generates a "aws/request.Request" representing the // client's request for the CreateModel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateModel for more information on using the CreateModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateModelRequest method. // req, resp := client.CreateModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel func (c *SageMaker) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *CreateModelOutput) { op := &request.Operation{ Name: opCreateModel, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateModelInput{} } output = &CreateModelOutput{} req = c.newRequest(op, input, output) return } // CreateModel API operation for Amazon SageMaker Service. // // Creates a model in Amazon SageMaker. In the request, you name the model and // describe a primary container. For the primary container, you specify the // Docker image that contains inference code, artifacts (from prior training), // and a custom environment map that the inference code uses when you deploy // the model for predictions. // // Use this API to create a model if you want to use Amazon SageMaker hosting // services or run a batch transform job. // // To host your model, you create an endpoint configuration with the CreateEndpointConfig // API, and then create an endpoint with the CreateEndpoint API. Amazon SageMaker // then deploys all of the containers that you defined for the model in the // hosting environment. // // For an example that calls this method when deploying a model to Amazon SageMaker // hosting services, see Deploy the Model to Amazon SageMaker Hosting Services // (AWS SDK for Python (Boto 3)). (https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html#ex1-deploy-model-boto) // // To run a batch transform using your model, you start a job with the CreateTransformJob // API. Amazon SageMaker uses your model and your dataset to get inferences // which are then saved to a specified S3 location. // // In the CreateModel request, you must define a container with the PrimaryContainer // parameter. // // In the request, you also provide an IAM role that Amazon SageMaker can assume // to access model artifacts and docker image for deployment on ML compute hosting // instances or for batch transform jobs. In addition, you also use the IAM // role to manage permissions the inference code needs. For example, if the // inference code access any other AWS resources, you grant necessary permissions // via this role. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateModel for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel func (c *SageMaker) CreateModel(input *CreateModelInput) (*CreateModelOutput, error) { req, out := c.CreateModelRequest(input) return out, req.Send() } // CreateModelWithContext is the same as CreateModel with the addition of // the ability to pass a context and additional request options. // // See CreateModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateModelWithContext(ctx aws.Context, input *CreateModelInput, opts ...request.Option) (*CreateModelOutput, error) { req, out := c.CreateModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateModelPackage = "CreateModelPackage" // CreateModelPackageRequest generates a "aws/request.Request" representing the // client's request for the CreateModelPackage operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateModelPackage for more information on using the CreateModelPackage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateModelPackageRequest method. // req, resp := client.CreateModelPackageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage func (c *SageMaker) CreateModelPackageRequest(input *CreateModelPackageInput) (req *request.Request, output *CreateModelPackageOutput) { op := &request.Operation{ Name: opCreateModelPackage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateModelPackageInput{} } output = &CreateModelPackageOutput{} req = c.newRequest(op, input, output) return } // CreateModelPackage API operation for Amazon SageMaker Service. // // Creates a model package that you can use to create Amazon SageMaker models // or list on AWS Marketplace. Buyers can subscribe to model packages listed // on AWS Marketplace to create models in Amazon SageMaker. // // To create a model package by specifying a Docker container that contains // your inference code and the Amazon S3 location of your model artifacts, provide // values for InferenceSpecification. To create a model from an algorithm resource // that you created or subscribed to in AWS Marketplace, provide a value for // SourceAlgorithmSpecification. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateModelPackage for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage func (c *SageMaker) CreateModelPackage(input *CreateModelPackageInput) (*CreateModelPackageOutput, error) { req, out := c.CreateModelPackageRequest(input) return out, req.Send() } // CreateModelPackageWithContext is the same as CreateModelPackage with the addition of // the ability to pass a context and additional request options. // // See CreateModelPackage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateModelPackageWithContext(ctx aws.Context, input *CreateModelPackageInput, opts ...request.Option) (*CreateModelPackageOutput, error) { req, out := c.CreateModelPackageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateMonitoringSchedule = "CreateMonitoringSchedule" // CreateMonitoringScheduleRequest generates a "aws/request.Request" representing the // client's request for the CreateMonitoringSchedule operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateMonitoringSchedule for more information on using the CreateMonitoringSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateMonitoringScheduleRequest method. // req, resp := client.CreateMonitoringScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateMonitoringSchedule func (c *SageMaker) CreateMonitoringScheduleRequest(input *CreateMonitoringScheduleInput) (req *request.Request, output *CreateMonitoringScheduleOutput) { op := &request.Operation{ Name: opCreateMonitoringSchedule, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateMonitoringScheduleInput{} } output = &CreateMonitoringScheduleOutput{} req = c.newRequest(op, input, output) return } // CreateMonitoringSchedule API operation for Amazon SageMaker Service. // // Creates a schedule that regularly starts Amazon SageMaker Processing Jobs // to monitor the data captured for an Amazon SageMaker Endoint. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateMonitoringSchedule for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateMonitoringSchedule func (c *SageMaker) CreateMonitoringSchedule(input *CreateMonitoringScheduleInput) (*CreateMonitoringScheduleOutput, error) { req, out := c.CreateMonitoringScheduleRequest(input) return out, req.Send() } // CreateMonitoringScheduleWithContext is the same as CreateMonitoringSchedule with the addition of // the ability to pass a context and additional request options. // // See CreateMonitoringSchedule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateMonitoringScheduleWithContext(ctx aws.Context, input *CreateMonitoringScheduleInput, opts ...request.Option) (*CreateMonitoringScheduleOutput, error) { req, out := c.CreateMonitoringScheduleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateNotebookInstance = "CreateNotebookInstance" // CreateNotebookInstanceRequest generates a "aws/request.Request" representing the // client's request for the CreateNotebookInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateNotebookInstance for more information on using the CreateNotebookInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateNotebookInstanceRequest method. // req, resp := client.CreateNotebookInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance func (c *SageMaker) CreateNotebookInstanceRequest(input *CreateNotebookInstanceInput) (req *request.Request, output *CreateNotebookInstanceOutput) { op := &request.Operation{ Name: opCreateNotebookInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateNotebookInstanceInput{} } output = &CreateNotebookInstanceOutput{} req = c.newRequest(op, input, output) return } // CreateNotebookInstance API operation for Amazon SageMaker Service. // // Creates an Amazon SageMaker notebook instance. A notebook instance is a machine // learning (ML) compute instance running on a Jupyter notebook. // // In a CreateNotebookInstance request, specify the type of ML compute instance // that you want to run. Amazon SageMaker launches the instance, installs common // libraries that you can use to explore datasets for model training, and attaches // an ML storage volume to the notebook instance. // // Amazon SageMaker also provides a set of example notebooks. Each notebook // demonstrates how to use Amazon SageMaker with a specific algorithm or with // a machine learning framework. // // After receiving the request, Amazon SageMaker does the following: // // Creates a network interface in the Amazon SageMaker VPC. // // (Option) If you specified SubnetId, Amazon SageMaker creates a network interface // in your own VPC, which is inferred from the subnet ID that you provide in // the input. When creating this network interface, Amazon SageMaker attaches // the security group that you specified in the request to the network interface // that it creates in your VPC. // // Launches an EC2 instance of the type specified in the request in the Amazon // SageMaker VPC. If you specified SubnetId of your VPC, Amazon SageMaker specifies // both network interfaces when launching this instance. This enables inbound // traffic from your own VPC to the notebook instance, assuming that the security // groups allow it. // // After creating the notebook instance, Amazon SageMaker returns its Amazon // Resource Name (ARN). You can't change the name of a notebook instance after // you create it. // // After Amazon SageMaker creates the notebook instance, you can connect to // the Jupyter server and work in Jupyter notebooks. For example, you can write // code to explore a dataset that you can use for model training, train a model, // host models by creating Amazon SageMaker endpoints, and validate hosted models. // // For more information, see How It Works (https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateNotebookInstance for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance func (c *SageMaker) CreateNotebookInstance(input *CreateNotebookInstanceInput) (*CreateNotebookInstanceOutput, error) { req, out := c.CreateNotebookInstanceRequest(input) return out, req.Send() } // CreateNotebookInstanceWithContext is the same as CreateNotebookInstance with the addition of // the ability to pass a context and additional request options. // // See CreateNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateNotebookInstanceWithContext(ctx aws.Context, input *CreateNotebookInstanceInput, opts ...request.Option) (*CreateNotebookInstanceOutput, error) { req, out := c.CreateNotebookInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateNotebookInstanceLifecycleConfig = "CreateNotebookInstanceLifecycleConfig" // CreateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateNotebookInstanceLifecycleConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateNotebookInstanceLifecycleConfig for more information on using the CreateNotebookInstanceLifecycleConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateNotebookInstanceLifecycleConfigRequest method. // req, resp := client.CreateNotebookInstanceLifecycleConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig func (c *SageMaker) CreateNotebookInstanceLifecycleConfigRequest(input *CreateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *CreateNotebookInstanceLifecycleConfigOutput) { op := &request.Operation{ Name: opCreateNotebookInstanceLifecycleConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateNotebookInstanceLifecycleConfigInput{} } output = &CreateNotebookInstanceLifecycleConfigOutput{} req = c.newRequest(op, input, output) return } // CreateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. // // Creates a lifecycle configuration that you can associate with a notebook // instance. A lifecycle configuration is a collection of shell scripts that // run when you create or start a notebook instance. // // Each lifecycle configuration script has a limit of 16384 characters. // // The value of the $PATH environment variable that is available to both scripts // is /sbin:bin:/usr/sbin:/usr/bin. // // View CloudWatch Logs for notebook instance lifecycle configurations in log // group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook]. // // Lifecycle configuration scripts cannot run for longer than 5 minutes. If // a script runs for longer than 5 minutes, it fails and the notebook instance // is not created or started. // // For information about notebook instance lifestyle configurations, see Step // 2.1: (Optional) Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateNotebookInstanceLifecycleConfig for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig func (c *SageMaker) CreateNotebookInstanceLifecycleConfig(input *CreateNotebookInstanceLifecycleConfigInput) (*CreateNotebookInstanceLifecycleConfigOutput, error) { req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input) return out, req.Send() } // CreateNotebookInstanceLifecycleConfigWithContext is the same as CreateNotebookInstanceLifecycleConfig with the addition of // the ability to pass a context and additional request options. // // See CreateNotebookInstanceLifecycleConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *CreateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*CreateNotebookInstanceLifecycleConfigOutput, error) { req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreatePresignedDomainUrl = "CreatePresignedDomainUrl" // CreatePresignedDomainUrlRequest generates a "aws/request.Request" representing the // client's request for the CreatePresignedDomainUrl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreatePresignedDomainUrl for more information on using the CreatePresignedDomainUrl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreatePresignedDomainUrlRequest method. // req, resp := client.CreatePresignedDomainUrlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedDomainUrl func (c *SageMaker) CreatePresignedDomainUrlRequest(input *CreatePresignedDomainUrlInput) (req *request.Request, output *CreatePresignedDomainUrlOutput) { op := &request.Operation{ Name: opCreatePresignedDomainUrl, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreatePresignedDomainUrlInput{} } output = &CreatePresignedDomainUrlOutput{} req = c.newRequest(op, input, output) return } // CreatePresignedDomainUrl API operation for Amazon SageMaker Service. // // Creates a URL for a specified UserProfile in a Domain. When accessed in a // web browser, the user will be automatically signed in to Amazon SageMaker // Studio, and granted access to all of the Apps and files associated with the // Domain's Amazon Elastic File System (EFS) volume. This operation can only // be called when the authentication mode equals IAM. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreatePresignedDomainUrl for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedDomainUrl func (c *SageMaker) CreatePresignedDomainUrl(input *CreatePresignedDomainUrlInput) (*CreatePresignedDomainUrlOutput, error) { req, out := c.CreatePresignedDomainUrlRequest(input) return out, req.Send() } // CreatePresignedDomainUrlWithContext is the same as CreatePresignedDomainUrl with the addition of // the ability to pass a context and additional request options. // // See CreatePresignedDomainUrl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreatePresignedDomainUrlWithContext(ctx aws.Context, input *CreatePresignedDomainUrlInput, opts ...request.Option) (*CreatePresignedDomainUrlOutput, error) { req, out := c.CreatePresignedDomainUrlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreatePresignedNotebookInstanceUrl = "CreatePresignedNotebookInstanceUrl" // CreatePresignedNotebookInstanceUrlRequest generates a "aws/request.Request" representing the // client's request for the CreatePresignedNotebookInstanceUrl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreatePresignedNotebookInstanceUrl for more information on using the CreatePresignedNotebookInstanceUrl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreatePresignedNotebookInstanceUrlRequest method. // req, resp := client.CreatePresignedNotebookInstanceUrlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl func (c *SageMaker) CreatePresignedNotebookInstanceUrlRequest(input *CreatePresignedNotebookInstanceUrlInput) (req *request.Request, output *CreatePresignedNotebookInstanceUrlOutput) { op := &request.Operation{ Name: opCreatePresignedNotebookInstanceUrl, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreatePresignedNotebookInstanceUrlInput{} } output = &CreatePresignedNotebookInstanceUrlOutput{} req = c.newRequest(op, input, output) return } // CreatePresignedNotebookInstanceUrl API operation for Amazon SageMaker Service. // // Returns a URL that you can use to connect to the Jupyter server from a notebook // instance. In the Amazon SageMaker console, when you choose Open next to a // notebook instance, Amazon SageMaker opens a new tab showing the Jupyter server // home page from the notebook instance. The console uses this API to get the // URL and show the page. // // The IAM role or user used to call this API defines the permissions to access // the notebook instance. Once the presigned URL is created, no additional permission // is required to access this URL. IAM authorization policies for this API are // also enforced for every HTTP request and WebSocket frame that attempts to // connect to the notebook instance. // // You can restrict access to this API and to the URL that it returns to a list // of IP addresses that you specify. Use the NotIpAddress condition operator // and the aws:SourceIP condition context key to specify the list of IP addresses // that you want to have access to the notebook instance. For more information, // see Limit Access to a Notebook Instance by IP Address (https://docs.aws.amazon.com/sagemaker/latest/dg/security_iam_id-based-policy-examples.html#nbi-ip-filter). // // The URL that you get from a call to CreatePresignedNotebookInstanceUrl is // valid only for 5 minutes. If you try to use the URL after the 5-minute limit // expires, you are directed to the AWS console sign-in page. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreatePresignedNotebookInstanceUrl for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl func (c *SageMaker) CreatePresignedNotebookInstanceUrl(input *CreatePresignedNotebookInstanceUrlInput) (*CreatePresignedNotebookInstanceUrlOutput, error) { req, out := c.CreatePresignedNotebookInstanceUrlRequest(input) return out, req.Send() } // CreatePresignedNotebookInstanceUrlWithContext is the same as CreatePresignedNotebookInstanceUrl with the addition of // the ability to pass a context and additional request options. // // See CreatePresignedNotebookInstanceUrl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreatePresignedNotebookInstanceUrlWithContext(ctx aws.Context, input *CreatePresignedNotebookInstanceUrlInput, opts ...request.Option) (*CreatePresignedNotebookInstanceUrlOutput, error) { req, out := c.CreatePresignedNotebookInstanceUrlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateProcessingJob = "CreateProcessingJob" // CreateProcessingJobRequest generates a "aws/request.Request" representing the // client's request for the CreateProcessingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateProcessingJob for more information on using the CreateProcessingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateProcessingJobRequest method. // req, resp := client.CreateProcessingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateProcessingJob func (c *SageMaker) CreateProcessingJobRequest(input *CreateProcessingJobInput) (req *request.Request, output *CreateProcessingJobOutput) { op := &request.Operation{ Name: opCreateProcessingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateProcessingJobInput{} } output = &CreateProcessingJobOutput{} req = c.newRequest(op, input, output) return } // CreateProcessingJob API operation for Amazon SageMaker Service. // // Creates a processing job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateProcessingJob for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateProcessingJob func (c *SageMaker) CreateProcessingJob(input *CreateProcessingJobInput) (*CreateProcessingJobOutput, error) { req, out := c.CreateProcessingJobRequest(input) return out, req.Send() } // CreateProcessingJobWithContext is the same as CreateProcessingJob with the addition of // the ability to pass a context and additional request options. // // See CreateProcessingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateProcessingJobWithContext(ctx aws.Context, input *CreateProcessingJobInput, opts ...request.Option) (*CreateProcessingJobOutput, error) { req, out := c.CreateProcessingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateTrainingJob = "CreateTrainingJob" // CreateTrainingJobRequest generates a "aws/request.Request" representing the // client's request for the CreateTrainingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateTrainingJob for more information on using the CreateTrainingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateTrainingJobRequest method. // req, resp := client.CreateTrainingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob func (c *SageMaker) CreateTrainingJobRequest(input *CreateTrainingJobInput) (req *request.Request, output *CreateTrainingJobOutput) { op := &request.Operation{ Name: opCreateTrainingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateTrainingJobInput{} } output = &CreateTrainingJobOutput{} req = c.newRequest(op, input, output) return } // CreateTrainingJob API operation for Amazon SageMaker Service. // // Starts a model training job. After training completes, Amazon SageMaker saves // the resulting model artifacts to an Amazon S3 location that you specify. // // If you choose to host your model using Amazon SageMaker hosting services, // you can use the resulting model artifacts as part of the model. You can also // use the artifacts in a machine learning service other than Amazon SageMaker, // provided that you know how to use them for inferences. // // In the request body, you provide the following: // // * AlgorithmSpecification - Identifies the training algorithm to use. // // * HyperParameters - Specify these algorithm-specific parameters to enable // the estimation of model parameters during training. Hyperparameters can // be tuned to optimize this learning process. For a list of hyperparameters // for each training algorithm provided by Amazon SageMaker, see Algorithms // (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). // // * InputDataConfig - Describes the training dataset and the Amazon S3, // EFS, or FSx location where it is stored. // // * OutputDataConfig - Identifies the Amazon S3 bucket where you want Amazon // SageMaker to save the results of model training. // // * ResourceConfig - Identifies the resources, ML compute instances, and // ML storage volumes to deploy for model training. In distributed training, // you specify more than one instance. // // * EnableManagedSpotTraining - Optimize the cost of training machine learning // models by up to 80% by using Amazon EC2 Spot instances. For more information, // see Managed Spot Training (https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html). // // * RoleARN - The Amazon Resource Number (ARN) that Amazon SageMaker assumes // to perform tasks on your behalf during model training. You must grant // this role the necessary permissions so that Amazon SageMaker can successfully // complete model training. // // * StoppingCondition - To help cap training costs, use MaxRuntimeInSeconds // to set a time limit for training. Use MaxWaitTimeInSeconds to specify // how long you are willing to wait for a managed spot training job to complete. // // For more information about Amazon SageMaker, see How It Works (https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTrainingJob for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob func (c *SageMaker) CreateTrainingJob(input *CreateTrainingJobInput) (*CreateTrainingJobOutput, error) { req, out := c.CreateTrainingJobRequest(input) return out, req.Send() } // CreateTrainingJobWithContext is the same as CreateTrainingJob with the addition of // the ability to pass a context and additional request options. // // See CreateTrainingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateTrainingJobWithContext(ctx aws.Context, input *CreateTrainingJobInput, opts ...request.Option) (*CreateTrainingJobOutput, error) { req, out := c.CreateTrainingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateTransformJob = "CreateTransformJob" // CreateTransformJobRequest generates a "aws/request.Request" representing the // client's request for the CreateTransformJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateTransformJob for more information on using the CreateTransformJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateTransformJobRequest method. // req, resp := client.CreateTransformJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob func (c *SageMaker) CreateTransformJobRequest(input *CreateTransformJobInput) (req *request.Request, output *CreateTransformJobOutput) { op := &request.Operation{ Name: opCreateTransformJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateTransformJobInput{} } output = &CreateTransformJobOutput{} req = c.newRequest(op, input, output) return } // CreateTransformJob API operation for Amazon SageMaker Service. // // Starts a transform job. A transform job uses a trained model to get inferences // on a dataset and saves these results to an Amazon S3 location that you specify. // // To perform batch transformations, you create a transform job and use the // data that you have readily available. // // In the request body, you provide the following: // // * TransformJobName - Identifies the transform job. The name must be unique // within an AWS Region in an AWS account. // // * ModelName - Identifies the model to use. ModelName must be the name // of an existing Amazon SageMaker model in the same AWS Region and AWS account. // For information on creating a model, see CreateModel. // // * TransformInput - Describes the dataset to be transformed and the Amazon // S3 location where it is stored. // // * TransformOutput - Identifies the Amazon S3 location where you want Amazon // SageMaker to save the results from the transform job. // // * TransformResources - Identifies the ML compute instances for the transform // job. // // For more information about how batch transformation works, see Batch Transform // (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTransformJob for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob func (c *SageMaker) CreateTransformJob(input *CreateTransformJobInput) (*CreateTransformJobOutput, error) { req, out := c.CreateTransformJobRequest(input) return out, req.Send() } // CreateTransformJobWithContext is the same as CreateTransformJob with the addition of // the ability to pass a context and additional request options. // // See CreateTransformJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateTransformJobWithContext(ctx aws.Context, input *CreateTransformJobInput, opts ...request.Option) (*CreateTransformJobOutput, error) { req, out := c.CreateTransformJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateTrial = "CreateTrial" // CreateTrialRequest generates a "aws/request.Request" representing the // client's request for the CreateTrial operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateTrial for more information on using the CreateTrial // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateTrialRequest method. // req, resp := client.CreateTrialRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrial func (c *SageMaker) CreateTrialRequest(input *CreateTrialInput) (req *request.Request, output *CreateTrialOutput) { op := &request.Operation{ Name: opCreateTrial, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateTrialInput{} } output = &CreateTrialOutput{} req = c.newRequest(op, input, output) return } // CreateTrial API operation for Amazon SageMaker Service. // // Creates an Amazon SageMaker trial. A trial is a set of steps called trial // components that produce a machine learning model. A trial is part of a single // Amazon SageMaker experiment. // // When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, // all experiments, trials, and trial components are automatically tracked, // logged, and indexed. When you use the AWS SDK for Python (Boto), you must // use the logging APIs provided by the SDK. // // You can add tags to a trial and then use the Search API to search for the // tags. // // To get a list of all your trials, call the ListTrials API. To view a trial's // properties, call the DescribeTrial API. To create a trial component, call // the CreateTrialComponent API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTrial for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrial func (c *SageMaker) CreateTrial(input *CreateTrialInput) (*CreateTrialOutput, error) { req, out := c.CreateTrialRequest(input) return out, req.Send() } // CreateTrialWithContext is the same as CreateTrial with the addition of // the ability to pass a context and additional request options. // // See CreateTrial for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateTrialWithContext(ctx aws.Context, input *CreateTrialInput, opts ...request.Option) (*CreateTrialOutput, error) { req, out := c.CreateTrialRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateTrialComponent = "CreateTrialComponent" // CreateTrialComponentRequest generates a "aws/request.Request" representing the // client's request for the CreateTrialComponent operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateTrialComponent for more information on using the CreateTrialComponent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateTrialComponentRequest method. // req, resp := client.CreateTrialComponentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrialComponent func (c *SageMaker) CreateTrialComponentRequest(input *CreateTrialComponentInput) (req *request.Request, output *CreateTrialComponentOutput) { op := &request.Operation{ Name: opCreateTrialComponent, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateTrialComponentInput{} } output = &CreateTrialComponentOutput{} req = c.newRequest(op, input, output) return } // CreateTrialComponent API operation for Amazon SageMaker Service. // // Creates a trial component, which is a stage of a machine learning trial. // A trial is composed of one or more trial components. A trial component can // be used in multiple trials. // // Trial components include pre-processing jobs, training jobs, and batch transform // jobs. // // When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, // all experiments, trials, and trial components are automatically tracked, // logged, and indexed. When you use the AWS SDK for Python (Boto), you must // use the logging APIs provided by the SDK. // // You can add tags to a trial component and then use the Search API to search // for the tags. // // CreateTrialComponent can only be invoked from within an Amazon SageMaker // managed environment. This includes Amazon SageMaker training jobs, processing // jobs, transform jobs, and Amazon SageMaker notebooks. A call to CreateTrialComponent // from outside one of these environments results in an error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTrialComponent for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrialComponent func (c *SageMaker) CreateTrialComponent(input *CreateTrialComponentInput) (*CreateTrialComponentOutput, error) { req, out := c.CreateTrialComponentRequest(input) return out, req.Send() } // CreateTrialComponentWithContext is the same as CreateTrialComponent with the addition of // the ability to pass a context and additional request options. // // See CreateTrialComponent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateTrialComponentWithContext(ctx aws.Context, input *CreateTrialComponentInput, opts ...request.Option) (*CreateTrialComponentOutput, error) { req, out := c.CreateTrialComponentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateUserProfile = "CreateUserProfile" // CreateUserProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateUserProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateUserProfile for more information on using the CreateUserProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateUserProfileRequest method. // req, resp := client.CreateUserProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateUserProfile func (c *SageMaker) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) { op := &request.Operation{ Name: opCreateUserProfile, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateUserProfileInput{} } output = &CreateUserProfileOutput{} req = c.newRequest(op, input, output) return } // CreateUserProfile API operation for Amazon SageMaker Service. // // Creates a user profile. A user profile represents a single user within a // domain, and is the main way to reference a "person" for the purposes of sharing, // reporting, and other user-oriented features. This entity is created when // a user onboards to Amazon SageMaker Studio. If an administrator invites a // person by email or imports them from SSO, a user profile is automatically // created. A user profile is the primary holder of settings for an individual // user and has a reference to the user's private Amazon Elastic File System // (EFS) home directory. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateUserProfile for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateUserProfile func (c *SageMaker) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) { req, out := c.CreateUserProfileRequest(input) return out, req.Send() } // CreateUserProfileWithContext is the same as CreateUserProfile with the addition of // the ability to pass a context and additional request options. // // See CreateUserProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateUserProfileWithContext(ctx aws.Context, input *CreateUserProfileInput, opts ...request.Option) (*CreateUserProfileOutput, error) { req, out := c.CreateUserProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateWorkforce = "CreateWorkforce" // CreateWorkforceRequest generates a "aws/request.Request" representing the // client's request for the CreateWorkforce operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateWorkforce for more information on using the CreateWorkforce // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateWorkforceRequest method. // req, resp := client.CreateWorkforceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkforce func (c *SageMaker) CreateWorkforceRequest(input *CreateWorkforceInput) (req *request.Request, output *CreateWorkforceOutput) { op := &request.Operation{ Name: opCreateWorkforce, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateWorkforceInput{} } output = &CreateWorkforceOutput{} req = c.newRequest(op, input, output) return } // CreateWorkforce API operation for Amazon SageMaker Service. // // Use this operation to create a workforce. This operation will return an error // if a workforce already exists in the AWS Region that you specify. You can // only create one workforce in each AWS Region per AWS account. // // If you want to create a new workforce in an AWS Region where a workforce // already exists, use the API operation to delete the existing workforce and // then use CreateWorkforce to create a new workforce. // // To create a private workforce using Amazon Cognito, you must specify a Cognito // user pool in CognitoConfig. You can also create an Amazon Cognito workforce // using the Amazon SageMaker console. For more information, see Create a Private // Workforce (Amazon Cognito) (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-create-private.html). // // To create a private workforce using your own OIDC Identity Provider (IdP), // specify your IdP configuration in OidcConfig. Your OIDC IdP must support // groups because groups are used by Ground Truth and Amazon A2I to create work // teams. For more information, see Create a Private Workforce (OIDC IdP) (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-create-private-oidc.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateWorkforce for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkforce func (c *SageMaker) CreateWorkforce(input *CreateWorkforceInput) (*CreateWorkforceOutput, error) { req, out := c.CreateWorkforceRequest(input) return out, req.Send() } // CreateWorkforceWithContext is the same as CreateWorkforce with the addition of // the ability to pass a context and additional request options. // // See CreateWorkforce for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateWorkforceWithContext(ctx aws.Context, input *CreateWorkforceInput, opts ...request.Option) (*CreateWorkforceOutput, error) { req, out := c.CreateWorkforceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateWorkteam = "CreateWorkteam" // CreateWorkteamRequest generates a "aws/request.Request" representing the // client's request for the CreateWorkteam operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateWorkteam for more information on using the CreateWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateWorkteamRequest method. // req, resp := client.CreateWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam func (c *SageMaker) CreateWorkteamRequest(input *CreateWorkteamInput) (req *request.Request, output *CreateWorkteamOutput) { op := &request.Operation{ Name: opCreateWorkteam, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateWorkteamInput{} } output = &CreateWorkteamOutput{} req = c.newRequest(op, input, output) return } // CreateWorkteam API operation for Amazon SageMaker Service. // // Creates a new work team for labeling your data. A work team is defined by // one or more Amazon Cognito user pools. You must first create the user pools // before you can create a work team. // // You cannot create more than 25 work teams in an account and region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateWorkteam for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam func (c *SageMaker) CreateWorkteam(input *CreateWorkteamInput) (*CreateWorkteamOutput, error) { req, out := c.CreateWorkteamRequest(input) return out, req.Send() } // CreateWorkteamWithContext is the same as CreateWorkteam with the addition of // the ability to pass a context and additional request options. // // See CreateWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) CreateWorkteamWithContext(ctx aws.Context, input *CreateWorkteamInput, opts ...request.Option) (*CreateWorkteamOutput, error) { req, out := c.CreateWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAlgorithm = "DeleteAlgorithm" // DeleteAlgorithmRequest generates a "aws/request.Request" representing the // client's request for the DeleteAlgorithm operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAlgorithm for more information on using the DeleteAlgorithm // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAlgorithmRequest method. // req, resp := client.DeleteAlgorithmRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm func (c *SageMaker) DeleteAlgorithmRequest(input *DeleteAlgorithmInput) (req *request.Request, output *DeleteAlgorithmOutput) { op := &request.Operation{ Name: opDeleteAlgorithm, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteAlgorithmInput{} } output = &DeleteAlgorithmOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteAlgorithm API operation for Amazon SageMaker Service. // // Removes the specified algorithm from your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteAlgorithm for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm func (c *SageMaker) DeleteAlgorithm(input *DeleteAlgorithmInput) (*DeleteAlgorithmOutput, error) { req, out := c.DeleteAlgorithmRequest(input) return out, req.Send() } // DeleteAlgorithmWithContext is the same as DeleteAlgorithm with the addition of // the ability to pass a context and additional request options. // // See DeleteAlgorithm for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteAlgorithmWithContext(ctx aws.Context, input *DeleteAlgorithmInput, opts ...request.Option) (*DeleteAlgorithmOutput, error) { req, out := c.DeleteAlgorithmRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteApp = "DeleteApp" // DeleteAppRequest generates a "aws/request.Request" representing the // client's request for the DeleteApp operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteApp for more information on using the DeleteApp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAppRequest method. // req, resp := client.DeleteAppRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteApp func (c *SageMaker) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) { op := &request.Operation{ Name: opDeleteApp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteAppInput{} } output = &DeleteAppOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteApp API operation for Amazon SageMaker Service. // // Used to stop and delete an app. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteApp for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteApp func (c *SageMaker) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) { req, out := c.DeleteAppRequest(input) return out, req.Send() } // DeleteAppWithContext is the same as DeleteApp with the addition of // the ability to pass a context and additional request options. // // See DeleteApp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) { req, out := c.DeleteAppRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteCodeRepository = "DeleteCodeRepository" // DeleteCodeRepositoryRequest generates a "aws/request.Request" representing the // client's request for the DeleteCodeRepository operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteCodeRepository for more information on using the DeleteCodeRepository // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteCodeRepositoryRequest method. // req, resp := client.DeleteCodeRepositoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository func (c *SageMaker) DeleteCodeRepositoryRequest(input *DeleteCodeRepositoryInput) (req *request.Request, output *DeleteCodeRepositoryOutput) { op := &request.Operation{ Name: opDeleteCodeRepository, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteCodeRepositoryInput{} } output = &DeleteCodeRepositoryOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteCodeRepository API operation for Amazon SageMaker Service. // // Deletes the specified Git repository from your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteCodeRepository for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository func (c *SageMaker) DeleteCodeRepository(input *DeleteCodeRepositoryInput) (*DeleteCodeRepositoryOutput, error) { req, out := c.DeleteCodeRepositoryRequest(input) return out, req.Send() } // DeleteCodeRepositoryWithContext is the same as DeleteCodeRepository with the addition of // the ability to pass a context and additional request options. // // See DeleteCodeRepository for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteCodeRepositoryWithContext(ctx aws.Context, input *DeleteCodeRepositoryInput, opts ...request.Option) (*DeleteCodeRepositoryOutput, error) { req, out := c.DeleteCodeRepositoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDomain = "DeleteDomain" // DeleteDomainRequest generates a "aws/request.Request" representing the // client's request for the DeleteDomain operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteDomain for more information on using the DeleteDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteDomainRequest method. // req, resp := client.DeleteDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteDomain func (c *SageMaker) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) { op := &request.Operation{ Name: opDeleteDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteDomainInput{} } output = &DeleteDomainOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteDomain API operation for Amazon SageMaker Service. // // Used to delete a domain. If you onboarded with IAM mode, you will need to // delete your domain to onboard again using SSO. Use with caution. All of the // members of the domain will lose access to their EFS volume, including data, // notebooks, and other artifacts. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteDomain for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteDomain func (c *SageMaker) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) return out, req.Send() } // DeleteDomainWithContext is the same as DeleteDomain with the addition of // the ability to pass a context and additional request options. // // See DeleteDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteEndpoint = "DeleteEndpoint" // DeleteEndpointRequest generates a "aws/request.Request" representing the // client's request for the DeleteEndpoint operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteEndpoint for more information on using the DeleteEndpoint // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteEndpointRequest method. // req, resp := client.DeleteEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint func (c *SageMaker) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { op := &request.Operation{ Name: opDeleteEndpoint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteEndpointInput{} } output = &DeleteEndpointOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteEndpoint API operation for Amazon SageMaker Service. // // Deletes an endpoint. Amazon SageMaker frees up all of the resources that // were deployed when the endpoint was created. // // Amazon SageMaker retires any custom KMS key grants associated with the endpoint, // meaning you don't need to use the RevokeGrant (http://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html) // API call. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteEndpoint for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint func (c *SageMaker) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) return out, req.Send() } // DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of // the ability to pass a context and additional request options. // // See DeleteEndpoint for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteEndpointConfig = "DeleteEndpointConfig" // DeleteEndpointConfigRequest generates a "aws/request.Request" representing the // client's request for the DeleteEndpointConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteEndpointConfig for more information on using the DeleteEndpointConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteEndpointConfigRequest method. // req, resp := client.DeleteEndpointConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig func (c *SageMaker) DeleteEndpointConfigRequest(input *DeleteEndpointConfigInput) (req *request.Request, output *DeleteEndpointConfigOutput) { op := &request.Operation{ Name: opDeleteEndpointConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteEndpointConfigInput{} } output = &DeleteEndpointConfigOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteEndpointConfig API operation for Amazon SageMaker Service. // // Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only // the specified configuration. It does not delete endpoints created using the // configuration. // // You must not delete an EndpointConfig in use by an endpoint that is live // or while the UpdateEndpoint or CreateEndpoint operations are being performed // on the endpoint. If you delete the EndpointConfig of an endpoint that is // active or being created or updated you may lose visibility into the instance // type the endpoint is using. The endpoint must be deleted in order to stop // incurring charges. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteEndpointConfig for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig func (c *SageMaker) DeleteEndpointConfig(input *DeleteEndpointConfigInput) (*DeleteEndpointConfigOutput, error) { req, out := c.DeleteEndpointConfigRequest(input) return out, req.Send() } // DeleteEndpointConfigWithContext is the same as DeleteEndpointConfig with the addition of // the ability to pass a context and additional request options. // // See DeleteEndpointConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteEndpointConfigWithContext(ctx aws.Context, input *DeleteEndpointConfigInput, opts ...request.Option) (*DeleteEndpointConfigOutput, error) { req, out := c.DeleteEndpointConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteExperiment = "DeleteExperiment" // DeleteExperimentRequest generates a "aws/request.Request" representing the // client's request for the DeleteExperiment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteExperiment for more information on using the DeleteExperiment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteExperimentRequest method. // req, resp := client.DeleteExperimentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteExperiment func (c *SageMaker) DeleteExperimentRequest(input *DeleteExperimentInput) (req *request.Request, output *DeleteExperimentOutput) { op := &request.Operation{ Name: opDeleteExperiment, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteExperimentInput{} } output = &DeleteExperimentOutput{} req = c.newRequest(op, input, output) return } // DeleteExperiment API operation for Amazon SageMaker Service. // // Deletes an Amazon SageMaker experiment. All trials associated with the experiment // must be deleted first. Use the ListTrials API to get a list of the trials // associated with the experiment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteExperiment for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteExperiment func (c *SageMaker) DeleteExperiment(input *DeleteExperimentInput) (*DeleteExperimentOutput, error) { req, out := c.DeleteExperimentRequest(input) return out, req.Send() } // DeleteExperimentWithContext is the same as DeleteExperiment with the addition of // the ability to pass a context and additional request options. // // See DeleteExperiment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteExperimentWithContext(ctx aws.Context, input *DeleteExperimentInput, opts ...request.Option) (*DeleteExperimentOutput, error) { req, out := c.DeleteExperimentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteFlowDefinition = "DeleteFlowDefinition" // DeleteFlowDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteFlowDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteFlowDefinition for more information on using the DeleteFlowDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteFlowDefinitionRequest method. // req, resp := client.DeleteFlowDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteFlowDefinition func (c *SageMaker) DeleteFlowDefinitionRequest(input *DeleteFlowDefinitionInput) (req *request.Request, output *DeleteFlowDefinitionOutput) { op := &request.Operation{ Name: opDeleteFlowDefinition, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteFlowDefinitionInput{} } output = &DeleteFlowDefinitionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteFlowDefinition API operation for Amazon SageMaker Service. // // Deletes the specified flow definition. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteFlowDefinition for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteFlowDefinition func (c *SageMaker) DeleteFlowDefinition(input *DeleteFlowDefinitionInput) (*DeleteFlowDefinitionOutput, error) { req, out := c.DeleteFlowDefinitionRequest(input) return out, req.Send() } // DeleteFlowDefinitionWithContext is the same as DeleteFlowDefinition with the addition of // the ability to pass a context and additional request options. // // See DeleteFlowDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteFlowDefinitionWithContext(ctx aws.Context, input *DeleteFlowDefinitionInput, opts ...request.Option) (*DeleteFlowDefinitionOutput, error) { req, out := c.DeleteFlowDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteHumanTaskUi = "DeleteHumanTaskUi" // DeleteHumanTaskUiRequest generates a "aws/request.Request" representing the // client's request for the DeleteHumanTaskUi operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteHumanTaskUi for more information on using the DeleteHumanTaskUi // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteHumanTaskUiRequest method. // req, resp := client.DeleteHumanTaskUiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteHumanTaskUi func (c *SageMaker) DeleteHumanTaskUiRequest(input *DeleteHumanTaskUiInput) (req *request.Request, output *DeleteHumanTaskUiOutput) { op := &request.Operation{ Name: opDeleteHumanTaskUi, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteHumanTaskUiInput{} } output = &DeleteHumanTaskUiOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteHumanTaskUi API operation for Amazon SageMaker Service. // // Use this operation to delete a human task user interface (worker task template). // // To see a list of human task user interfaces (work task templates) in your // account, use . When you delete a worker task template, it no longer appears // when you call ListHumanTaskUis. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteHumanTaskUi for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteHumanTaskUi func (c *SageMaker) DeleteHumanTaskUi(input *DeleteHumanTaskUiInput) (*DeleteHumanTaskUiOutput, error) { req, out := c.DeleteHumanTaskUiRequest(input) return out, req.Send() } // DeleteHumanTaskUiWithContext is the same as DeleteHumanTaskUi with the addition of // the ability to pass a context and additional request options. // // See DeleteHumanTaskUi for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteHumanTaskUiWithContext(ctx aws.Context, input *DeleteHumanTaskUiInput, opts ...request.Option) (*DeleteHumanTaskUiOutput, error) { req, out := c.DeleteHumanTaskUiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteModel = "DeleteModel" // DeleteModelRequest generates a "aws/request.Request" representing the // client's request for the DeleteModel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteModel for more information on using the DeleteModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteModelRequest method. // req, resp := client.DeleteModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel func (c *SageMaker) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) { op := &request.Operation{ Name: opDeleteModel, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteModelInput{} } output = &DeleteModelOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteModel API operation for Amazon SageMaker Service. // // Deletes a model. The DeleteModel API deletes only the model entry that was // created in Amazon SageMaker when you called the CreateModel API. It does // not delete model artifacts, inference code, or the IAM role that you specified // when creating the model. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteModel for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel func (c *SageMaker) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { req, out := c.DeleteModelRequest(input) return out, req.Send() } // DeleteModelWithContext is the same as DeleteModel with the addition of // the ability to pass a context and additional request options. // // See DeleteModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteModelWithContext(ctx aws.Context, input *DeleteModelInput, opts ...request.Option) (*DeleteModelOutput, error) { req, out := c.DeleteModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteModelPackage = "DeleteModelPackage" // DeleteModelPackageRequest generates a "aws/request.Request" representing the // client's request for the DeleteModelPackage operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteModelPackage for more information on using the DeleteModelPackage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteModelPackageRequest method. // req, resp := client.DeleteModelPackageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage func (c *SageMaker) DeleteModelPackageRequest(input *DeleteModelPackageInput) (req *request.Request, output *DeleteModelPackageOutput) { op := &request.Operation{ Name: opDeleteModelPackage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteModelPackageInput{} } output = &DeleteModelPackageOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteModelPackage API operation for Amazon SageMaker Service. // // Deletes a model package. // // A model package is used to create Amazon SageMaker models or list on AWS // Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace // to create models in Amazon SageMaker. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteModelPackage for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage func (c *SageMaker) DeleteModelPackage(input *DeleteModelPackageInput) (*DeleteModelPackageOutput, error) { req, out := c.DeleteModelPackageRequest(input) return out, req.Send() } // DeleteModelPackageWithContext is the same as DeleteModelPackage with the addition of // the ability to pass a context and additional request options. // // See DeleteModelPackage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteModelPackageWithContext(ctx aws.Context, input *DeleteModelPackageInput, opts ...request.Option) (*DeleteModelPackageOutput, error) { req, out := c.DeleteModelPackageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteMonitoringSchedule = "DeleteMonitoringSchedule" // DeleteMonitoringScheduleRequest generates a "aws/request.Request" representing the // client's request for the DeleteMonitoringSchedule operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteMonitoringSchedule for more information on using the DeleteMonitoringSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteMonitoringScheduleRequest method. // req, resp := client.DeleteMonitoringScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteMonitoringSchedule func (c *SageMaker) DeleteMonitoringScheduleRequest(input *DeleteMonitoringScheduleInput) (req *request.Request, output *DeleteMonitoringScheduleOutput) { op := &request.Operation{ Name: opDeleteMonitoringSchedule, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteMonitoringScheduleInput{} } output = &DeleteMonitoringScheduleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteMonitoringSchedule API operation for Amazon SageMaker Service. // // Deletes a monitoring schedule. Also stops the schedule had not already been // stopped. This does not delete the job execution history of the monitoring // schedule. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteMonitoringSchedule for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteMonitoringSchedule func (c *SageMaker) DeleteMonitoringSchedule(input *DeleteMonitoringScheduleInput) (*DeleteMonitoringScheduleOutput, error) { req, out := c.DeleteMonitoringScheduleRequest(input) return out, req.Send() } // DeleteMonitoringScheduleWithContext is the same as DeleteMonitoringSchedule with the addition of // the ability to pass a context and additional request options. // // See DeleteMonitoringSchedule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteMonitoringScheduleWithContext(ctx aws.Context, input *DeleteMonitoringScheduleInput, opts ...request.Option) (*DeleteMonitoringScheduleOutput, error) { req, out := c.DeleteMonitoringScheduleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteNotebookInstance = "DeleteNotebookInstance" // DeleteNotebookInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeleteNotebookInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteNotebookInstance for more information on using the DeleteNotebookInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteNotebookInstanceRequest method. // req, resp := client.DeleteNotebookInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance func (c *SageMaker) DeleteNotebookInstanceRequest(input *DeleteNotebookInstanceInput) (req *request.Request, output *DeleteNotebookInstanceOutput) { op := &request.Operation{ Name: opDeleteNotebookInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteNotebookInstanceInput{} } output = &DeleteNotebookInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteNotebookInstance API operation for Amazon SageMaker Service. // // Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook // instance, you must call the StopNotebookInstance API. // // When you delete a notebook instance, you lose all of your data. Amazon SageMaker // removes the ML compute instance, and deletes the ML storage volume and the // network interface associated with the notebook instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteNotebookInstance for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance func (c *SageMaker) DeleteNotebookInstance(input *DeleteNotebookInstanceInput) (*DeleteNotebookInstanceOutput, error) { req, out := c.DeleteNotebookInstanceRequest(input) return out, req.Send() } // DeleteNotebookInstanceWithContext is the same as DeleteNotebookInstance with the addition of // the ability to pass a context and additional request options. // // See DeleteNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteNotebookInstanceWithContext(ctx aws.Context, input *DeleteNotebookInstanceInput, opts ...request.Option) (*DeleteNotebookInstanceOutput, error) { req, out := c.DeleteNotebookInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteNotebookInstanceLifecycleConfig = "DeleteNotebookInstanceLifecycleConfig" // DeleteNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the // client's request for the DeleteNotebookInstanceLifecycleConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteNotebookInstanceLifecycleConfig for more information on using the DeleteNotebookInstanceLifecycleConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteNotebookInstanceLifecycleConfigRequest method. // req, resp := client.DeleteNotebookInstanceLifecycleConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigRequest(input *DeleteNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DeleteNotebookInstanceLifecycleConfigOutput) { op := &request.Operation{ Name: opDeleteNotebookInstanceLifecycleConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteNotebookInstanceLifecycleConfigInput{} } output = &DeleteNotebookInstanceLifecycleConfigOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. // // Deletes a notebook instance lifecycle configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteNotebookInstanceLifecycleConfig for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig func (c *SageMaker) DeleteNotebookInstanceLifecycleConfig(input *DeleteNotebookInstanceLifecycleConfigInput) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) return out, req.Send() } // DeleteNotebookInstanceLifecycleConfigWithContext is the same as DeleteNotebookInstanceLifecycleConfig with the addition of // the ability to pass a context and additional request options. // // See DeleteNotebookInstanceLifecycleConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DeleteNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteTags for more information on using the DeleteTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteTagsRequest method. // req, resp := client.DeleteTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags func (c *SageMaker) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteTagsInput{} } output = &DeleteTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteTags API operation for Amazon SageMaker Service. // // Deletes the specified tags from an Amazon SageMaker resource. // // To list a resource's tags, use the ListTags API. // // When you call this API to delete tags from a hyperparameter tuning job, the // deleted tags are not removed from training jobs that the hyperparameter tuning // job launched before you called this API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteTags for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags func (c *SageMaker) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) return out, req.Send() } // DeleteTagsWithContext is the same as DeleteTags with the addition of // the ability to pass a context and additional request options. // // See DeleteTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteTrial = "DeleteTrial" // DeleteTrialRequest generates a "aws/request.Request" representing the // client's request for the DeleteTrial operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteTrial for more information on using the DeleteTrial // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteTrialRequest method. // req, resp := client.DeleteTrialRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTrial func (c *SageMaker) DeleteTrialRequest(input *DeleteTrialInput) (req *request.Request, output *DeleteTrialOutput) { op := &request.Operation{ Name: opDeleteTrial, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteTrialInput{} } output = &DeleteTrialOutput{} req = c.newRequest(op, input, output) return } // DeleteTrial API operation for Amazon SageMaker Service. // // Deletes the specified trial. All trial components that make up the trial // must be deleted first. Use the DescribeTrialComponent API to get the list // of trial components. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteTrial for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTrial func (c *SageMaker) DeleteTrial(input *DeleteTrialInput) (*DeleteTrialOutput, error) { req, out := c.DeleteTrialRequest(input) return out, req.Send() } // DeleteTrialWithContext is the same as DeleteTrial with the addition of // the ability to pass a context and additional request options. // // See DeleteTrial for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteTrialWithContext(ctx aws.Context, input *DeleteTrialInput, opts ...request.Option) (*DeleteTrialOutput, error) { req, out := c.DeleteTrialRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteTrialComponent = "DeleteTrialComponent" // DeleteTrialComponentRequest generates a "aws/request.Request" representing the // client's request for the DeleteTrialComponent operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteTrialComponent for more information on using the DeleteTrialComponent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteTrialComponentRequest method. // req, resp := client.DeleteTrialComponentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTrialComponent func (c *SageMaker) DeleteTrialComponentRequest(input *DeleteTrialComponentInput) (req *request.Request, output *DeleteTrialComponentOutput) { op := &request.Operation{ Name: opDeleteTrialComponent, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteTrialComponentInput{} } output = &DeleteTrialComponentOutput{} req = c.newRequest(op, input, output) return } // DeleteTrialComponent API operation for Amazon SageMaker Service. // // Deletes the specified trial component. A trial component must be disassociated // from all trials before the trial component can be deleted. To disassociate // a trial component from a trial, call the DisassociateTrialComponent API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteTrialComponent for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTrialComponent func (c *SageMaker) DeleteTrialComponent(input *DeleteTrialComponentInput) (*DeleteTrialComponentOutput, error) { req, out := c.DeleteTrialComponentRequest(input) return out, req.Send() } // DeleteTrialComponentWithContext is the same as DeleteTrialComponent with the addition of // the ability to pass a context and additional request options. // // See DeleteTrialComponent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteTrialComponentWithContext(ctx aws.Context, input *DeleteTrialComponentInput, opts ...request.Option) (*DeleteTrialComponentOutput, error) { req, out := c.DeleteTrialComponentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteUserProfile = "DeleteUserProfile" // DeleteUserProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteUserProfile for more information on using the DeleteUserProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteUserProfileRequest method. // req, resp := client.DeleteUserProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteUserProfile func (c *SageMaker) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) { op := &request.Operation{ Name: opDeleteUserProfile, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteUserProfileInput{} } output = &DeleteUserProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteUserProfile API operation for Amazon SageMaker Service. // // Deletes a user profile. When a user profile is deleted, the user loses access // to their EFS volume, including data, notebooks, and other artifacts. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteUserProfile for usage and error information. // // Returned Error Types: // * ResourceInUse // Resource being accessed is in use. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteUserProfile func (c *SageMaker) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) { req, out := c.DeleteUserProfileRequest(input) return out, req.Send() } // DeleteUserProfileWithContext is the same as DeleteUserProfile with the addition of // the ability to pass a context and additional request options. // // See DeleteUserProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteUserProfileWithContext(ctx aws.Context, input *DeleteUserProfileInput, opts ...request.Option) (*DeleteUserProfileOutput, error) { req, out := c.DeleteUserProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteWorkforce = "DeleteWorkforce" // DeleteWorkforceRequest generates a "aws/request.Request" representing the // client's request for the DeleteWorkforce operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteWorkforce for more information on using the DeleteWorkforce // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteWorkforceRequest method. // req, resp := client.DeleteWorkforceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkforce func (c *SageMaker) DeleteWorkforceRequest(input *DeleteWorkforceInput) (req *request.Request, output *DeleteWorkforceOutput) { op := &request.Operation{ Name: opDeleteWorkforce, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteWorkforceInput{} } output = &DeleteWorkforceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteWorkforce API operation for Amazon SageMaker Service. // // Use this operation to delete a workforce. // // If you want to create a new workforce in an AWS Region where a workforce // already exists, use this operation to delete the existing workforce and then // use to create a new workforce. // // If a private workforce contains one or more work teams, you must use the // operation to delete all work teams before you delete the workforce. If you // try to delete a workforce that contains one or more work teams, you will // recieve a ResourceInUse error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteWorkforce for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkforce func (c *SageMaker) DeleteWorkforce(input *DeleteWorkforceInput) (*DeleteWorkforceOutput, error) { req, out := c.DeleteWorkforceRequest(input) return out, req.Send() } // DeleteWorkforceWithContext is the same as DeleteWorkforce with the addition of // the ability to pass a context and additional request options. // // See DeleteWorkforce for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteWorkforceWithContext(ctx aws.Context, input *DeleteWorkforceInput, opts ...request.Option) (*DeleteWorkforceOutput, error) { req, out := c.DeleteWorkforceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteWorkteam = "DeleteWorkteam" // DeleteWorkteamRequest generates a "aws/request.Request" representing the // client's request for the DeleteWorkteam operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteWorkteam for more information on using the DeleteWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteWorkteamRequest method. // req, resp := client.DeleteWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam func (c *SageMaker) DeleteWorkteamRequest(input *DeleteWorkteamInput) (req *request.Request, output *DeleteWorkteamOutput) { op := &request.Operation{ Name: opDeleteWorkteam, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteWorkteamInput{} } output = &DeleteWorkteamOutput{} req = c.newRequest(op, input, output) return } // DeleteWorkteam API operation for Amazon SageMaker Service. // // Deletes an existing work team. This operation can't be undone. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteWorkteam for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam func (c *SageMaker) DeleteWorkteam(input *DeleteWorkteamInput) (*DeleteWorkteamOutput, error) { req, out := c.DeleteWorkteamRequest(input) return out, req.Send() } // DeleteWorkteamWithContext is the same as DeleteWorkteam with the addition of // the ability to pass a context and additional request options. // // See DeleteWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DeleteWorkteamWithContext(ctx aws.Context, input *DeleteWorkteamInput, opts ...request.Option) (*DeleteWorkteamOutput, error) { req, out := c.DeleteWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeAlgorithm = "DescribeAlgorithm" // DescribeAlgorithmRequest generates a "aws/request.Request" representing the // client's request for the DescribeAlgorithm operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeAlgorithm for more information on using the DescribeAlgorithm // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAlgorithmRequest method. // req, resp := client.DescribeAlgorithmRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm func (c *SageMaker) DescribeAlgorithmRequest(input *DescribeAlgorithmInput) (req *request.Request, output *DescribeAlgorithmOutput) { op := &request.Operation{ Name: opDescribeAlgorithm, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeAlgorithmInput{} } output = &DescribeAlgorithmOutput{} req = c.newRequest(op, input, output) return } // DescribeAlgorithm API operation for Amazon SageMaker Service. // // Returns a description of the specified algorithm that is in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeAlgorithm for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm func (c *SageMaker) DescribeAlgorithm(input *DescribeAlgorithmInput) (*DescribeAlgorithmOutput, error) { req, out := c.DescribeAlgorithmRequest(input) return out, req.Send() } // DescribeAlgorithmWithContext is the same as DescribeAlgorithm with the addition of // the ability to pass a context and additional request options. // // See DescribeAlgorithm for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeAlgorithmWithContext(ctx aws.Context, input *DescribeAlgorithmInput, opts ...request.Option) (*DescribeAlgorithmOutput, error) { req, out := c.DescribeAlgorithmRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeApp = "DescribeApp" // DescribeAppRequest generates a "aws/request.Request" representing the // client's request for the DescribeApp operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeApp for more information on using the DescribeApp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAppRequest method. // req, resp := client.DescribeAppRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeApp func (c *SageMaker) DescribeAppRequest(input *DescribeAppInput) (req *request.Request, output *DescribeAppOutput) { op := &request.Operation{ Name: opDescribeApp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeAppInput{} } output = &DescribeAppOutput{} req = c.newRequest(op, input, output) return } // DescribeApp API operation for Amazon SageMaker Service. // // Describes the app. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeApp for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeApp func (c *SageMaker) DescribeApp(input *DescribeAppInput) (*DescribeAppOutput, error) { req, out := c.DescribeAppRequest(input) return out, req.Send() } // DescribeAppWithContext is the same as DescribeApp with the addition of // the ability to pass a context and additional request options. // // See DescribeApp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeAppWithContext(ctx aws.Context, input *DescribeAppInput, opts ...request.Option) (*DescribeAppOutput, error) { req, out := c.DescribeAppRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeAutoMLJob = "DescribeAutoMLJob" // DescribeAutoMLJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeAutoMLJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeAutoMLJob for more information on using the DescribeAutoMLJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAutoMLJobRequest method. // req, resp := client.DescribeAutoMLJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAutoMLJob func (c *SageMaker) DescribeAutoMLJobRequest(input *DescribeAutoMLJobInput) (req *request.Request, output *DescribeAutoMLJobOutput) { op := &request.Operation{ Name: opDescribeAutoMLJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeAutoMLJobInput{} } output = &DescribeAutoMLJobOutput{} req = c.newRequest(op, input, output) return } // DescribeAutoMLJob API operation for Amazon SageMaker Service. // // Returns information about an Amazon SageMaker job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeAutoMLJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAutoMLJob func (c *SageMaker) DescribeAutoMLJob(input *DescribeAutoMLJobInput) (*DescribeAutoMLJobOutput, error) { req, out := c.DescribeAutoMLJobRequest(input) return out, req.Send() } // DescribeAutoMLJobWithContext is the same as DescribeAutoMLJob with the addition of // the ability to pass a context and additional request options. // // See DescribeAutoMLJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeAutoMLJobWithContext(ctx aws.Context, input *DescribeAutoMLJobInput, opts ...request.Option) (*DescribeAutoMLJobOutput, error) { req, out := c.DescribeAutoMLJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeCodeRepository = "DescribeCodeRepository" // DescribeCodeRepositoryRequest generates a "aws/request.Request" representing the // client's request for the DescribeCodeRepository operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeCodeRepository for more information on using the DescribeCodeRepository // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeCodeRepositoryRequest method. // req, resp := client.DescribeCodeRepositoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository func (c *SageMaker) DescribeCodeRepositoryRequest(input *DescribeCodeRepositoryInput) (req *request.Request, output *DescribeCodeRepositoryOutput) { op := &request.Operation{ Name: opDescribeCodeRepository, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeCodeRepositoryInput{} } output = &DescribeCodeRepositoryOutput{} req = c.newRequest(op, input, output) return } // DescribeCodeRepository API operation for Amazon SageMaker Service. // // Gets details about the specified Git repository. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeCodeRepository for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository func (c *SageMaker) DescribeCodeRepository(input *DescribeCodeRepositoryInput) (*DescribeCodeRepositoryOutput, error) { req, out := c.DescribeCodeRepositoryRequest(input) return out, req.Send() } // DescribeCodeRepositoryWithContext is the same as DescribeCodeRepository with the addition of // the ability to pass a context and additional request options. // // See DescribeCodeRepository for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeCodeRepositoryWithContext(ctx aws.Context, input *DescribeCodeRepositoryInput, opts ...request.Option) (*DescribeCodeRepositoryOutput, error) { req, out := c.DescribeCodeRepositoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeCompilationJob = "DescribeCompilationJob" // DescribeCompilationJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeCompilationJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeCompilationJob for more information on using the DescribeCompilationJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeCompilationJobRequest method. // req, resp := client.DescribeCompilationJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob func (c *SageMaker) DescribeCompilationJobRequest(input *DescribeCompilationJobInput) (req *request.Request, output *DescribeCompilationJobOutput) { op := &request.Operation{ Name: opDescribeCompilationJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeCompilationJobInput{} } output = &DescribeCompilationJobOutput{} req = c.newRequest(op, input, output) return } // DescribeCompilationJob API operation for Amazon SageMaker Service. // // Returns information about a model compilation job. // // To create a model compilation job, use CreateCompilationJob. To get information // about multiple model compilation jobs, use ListCompilationJobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeCompilationJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob func (c *SageMaker) DescribeCompilationJob(input *DescribeCompilationJobInput) (*DescribeCompilationJobOutput, error) { req, out := c.DescribeCompilationJobRequest(input) return out, req.Send() } // DescribeCompilationJobWithContext is the same as DescribeCompilationJob with the addition of // the ability to pass a context and additional request options. // // See DescribeCompilationJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeCompilationJobWithContext(ctx aws.Context, input *DescribeCompilationJobInput, opts ...request.Option) (*DescribeCompilationJobOutput, error) { req, out := c.DescribeCompilationJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeDomain = "DescribeDomain" // DescribeDomainRequest generates a "aws/request.Request" representing the // client's request for the DescribeDomain operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeDomain for more information on using the DescribeDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeDomainRequest method. // req, resp := client.DescribeDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeDomain func (c *SageMaker) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) { op := &request.Operation{ Name: opDescribeDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeDomainInput{} } output = &DescribeDomainOutput{} req = c.newRequest(op, input, output) return } // DescribeDomain API operation for Amazon SageMaker Service. // // The description of the domain. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeDomain for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeDomain func (c *SageMaker) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) { req, out := c.DescribeDomainRequest(input) return out, req.Send() } // DescribeDomainWithContext is the same as DescribeDomain with the addition of // the ability to pass a context and additional request options. // // See DescribeDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeDomainWithContext(ctx aws.Context, input *DescribeDomainInput, opts ...request.Option) (*DescribeDomainOutput, error) { req, out := c.DescribeDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeEndpoint = "DescribeEndpoint" // DescribeEndpointRequest generates a "aws/request.Request" representing the // client's request for the DescribeEndpoint operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeEndpoint for more information on using the DescribeEndpoint // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeEndpointRequest method. // req, resp := client.DescribeEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint func (c *SageMaker) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) { op := &request.Operation{ Name: opDescribeEndpoint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeEndpointInput{} } output = &DescribeEndpointOutput{} req = c.newRequest(op, input, output) return } // DescribeEndpoint API operation for Amazon SageMaker Service. // // Returns the description of an endpoint. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeEndpoint for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint func (c *SageMaker) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { req, out := c.DescribeEndpointRequest(input) return out, req.Send() } // DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of // the ability to pass a context and additional request options. // // See DescribeEndpoint for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) { req, out := c.DescribeEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeEndpointConfig = "DescribeEndpointConfig" // DescribeEndpointConfigRequest generates a "aws/request.Request" representing the // client's request for the DescribeEndpointConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeEndpointConfig for more information on using the DescribeEndpointConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeEndpointConfigRequest method. // req, resp := client.DescribeEndpointConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig func (c *SageMaker) DescribeEndpointConfigRequest(input *DescribeEndpointConfigInput) (req *request.Request, output *DescribeEndpointConfigOutput) { op := &request.Operation{ Name: opDescribeEndpointConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeEndpointConfigInput{} } output = &DescribeEndpointConfigOutput{} req = c.newRequest(op, input, output) return } // DescribeEndpointConfig API operation for Amazon SageMaker Service. // // Returns the description of an endpoint configuration created using the CreateEndpointConfig // API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeEndpointConfig for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig func (c *SageMaker) DescribeEndpointConfig(input *DescribeEndpointConfigInput) (*DescribeEndpointConfigOutput, error) { req, out := c.DescribeEndpointConfigRequest(input) return out, req.Send() } // DescribeEndpointConfigWithContext is the same as DescribeEndpointConfig with the addition of // the ability to pass a context and additional request options. // // See DescribeEndpointConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeEndpointConfigWithContext(ctx aws.Context, input *DescribeEndpointConfigInput, opts ...request.Option) (*DescribeEndpointConfigOutput, error) { req, out := c.DescribeEndpointConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeExperiment = "DescribeExperiment" // DescribeExperimentRequest generates a "aws/request.Request" representing the // client's request for the DescribeExperiment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeExperiment for more information on using the DescribeExperiment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeExperimentRequest method. // req, resp := client.DescribeExperimentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeExperiment func (c *SageMaker) DescribeExperimentRequest(input *DescribeExperimentInput) (req *request.Request, output *DescribeExperimentOutput) { op := &request.Operation{ Name: opDescribeExperiment, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeExperimentInput{} } output = &DescribeExperimentOutput{} req = c.newRequest(op, input, output) return } // DescribeExperiment API operation for Amazon SageMaker Service. // // Provides a list of an experiment's properties. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeExperiment for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeExperiment func (c *SageMaker) DescribeExperiment(input *DescribeExperimentInput) (*DescribeExperimentOutput, error) { req, out := c.DescribeExperimentRequest(input) return out, req.Send() } // DescribeExperimentWithContext is the same as DescribeExperiment with the addition of // the ability to pass a context and additional request options. // // See DescribeExperiment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeExperimentWithContext(ctx aws.Context, input *DescribeExperimentInput, opts ...request.Option) (*DescribeExperimentOutput, error) { req, out := c.DescribeExperimentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeFlowDefinition = "DescribeFlowDefinition" // DescribeFlowDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DescribeFlowDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeFlowDefinition for more information on using the DescribeFlowDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeFlowDefinitionRequest method. // req, resp := client.DescribeFlowDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeFlowDefinition func (c *SageMaker) DescribeFlowDefinitionRequest(input *DescribeFlowDefinitionInput) (req *request.Request, output *DescribeFlowDefinitionOutput) { op := &request.Operation{ Name: opDescribeFlowDefinition, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeFlowDefinitionInput{} } output = &DescribeFlowDefinitionOutput{} req = c.newRequest(op, input, output) return } // DescribeFlowDefinition API operation for Amazon SageMaker Service. // // Returns information about the specified flow definition. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeFlowDefinition for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeFlowDefinition func (c *SageMaker) DescribeFlowDefinition(input *DescribeFlowDefinitionInput) (*DescribeFlowDefinitionOutput, error) { req, out := c.DescribeFlowDefinitionRequest(input) return out, req.Send() } // DescribeFlowDefinitionWithContext is the same as DescribeFlowDefinition with the addition of // the ability to pass a context and additional request options. // // See DescribeFlowDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeFlowDefinitionWithContext(ctx aws.Context, input *DescribeFlowDefinitionInput, opts ...request.Option) (*DescribeFlowDefinitionOutput, error) { req, out := c.DescribeFlowDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeHumanTaskUi = "DescribeHumanTaskUi" // DescribeHumanTaskUiRequest generates a "aws/request.Request" representing the // client's request for the DescribeHumanTaskUi operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeHumanTaskUi for more information on using the DescribeHumanTaskUi // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeHumanTaskUiRequest method. // req, resp := client.DescribeHumanTaskUiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHumanTaskUi func (c *SageMaker) DescribeHumanTaskUiRequest(input *DescribeHumanTaskUiInput) (req *request.Request, output *DescribeHumanTaskUiOutput) { op := &request.Operation{ Name: opDescribeHumanTaskUi, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeHumanTaskUiInput{} } output = &DescribeHumanTaskUiOutput{} req = c.newRequest(op, input, output) return } // DescribeHumanTaskUi API operation for Amazon SageMaker Service. // // Returns information about the requested human task user interface (worker // task template). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeHumanTaskUi for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHumanTaskUi func (c *SageMaker) DescribeHumanTaskUi(input *DescribeHumanTaskUiInput) (*DescribeHumanTaskUiOutput, error) { req, out := c.DescribeHumanTaskUiRequest(input) return out, req.Send() } // DescribeHumanTaskUiWithContext is the same as DescribeHumanTaskUi with the addition of // the ability to pass a context and additional request options. // // See DescribeHumanTaskUi for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeHumanTaskUiWithContext(ctx aws.Context, input *DescribeHumanTaskUiInput, opts ...request.Option) (*DescribeHumanTaskUiOutput, error) { req, out := c.DescribeHumanTaskUiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeHyperParameterTuningJob = "DescribeHyperParameterTuningJob" // DescribeHyperParameterTuningJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeHyperParameterTuningJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeHyperParameterTuningJob for more information on using the DescribeHyperParameterTuningJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeHyperParameterTuningJobRequest method. // req, resp := client.DescribeHyperParameterTuningJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob func (c *SageMaker) DescribeHyperParameterTuningJobRequest(input *DescribeHyperParameterTuningJobInput) (req *request.Request, output *DescribeHyperParameterTuningJobOutput) { op := &request.Operation{ Name: opDescribeHyperParameterTuningJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeHyperParameterTuningJobInput{} } output = &DescribeHyperParameterTuningJobOutput{} req = c.newRequest(op, input, output) return } // DescribeHyperParameterTuningJob API operation for Amazon SageMaker Service. // // Gets a description of a hyperparameter tuning job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeHyperParameterTuningJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob func (c *SageMaker) DescribeHyperParameterTuningJob(input *DescribeHyperParameterTuningJobInput) (*DescribeHyperParameterTuningJobOutput, error) { req, out := c.DescribeHyperParameterTuningJobRequest(input) return out, req.Send() } // DescribeHyperParameterTuningJobWithContext is the same as DescribeHyperParameterTuningJob with the addition of // the ability to pass a context and additional request options. // // See DescribeHyperParameterTuningJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeHyperParameterTuningJobWithContext(ctx aws.Context, input *DescribeHyperParameterTuningJobInput, opts ...request.Option) (*DescribeHyperParameterTuningJobOutput, error) { req, out := c.DescribeHyperParameterTuningJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeLabelingJob = "DescribeLabelingJob" // DescribeLabelingJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeLabelingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeLabelingJob for more information on using the DescribeLabelingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeLabelingJobRequest method. // req, resp := client.DescribeLabelingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob func (c *SageMaker) DescribeLabelingJobRequest(input *DescribeLabelingJobInput) (req *request.Request, output *DescribeLabelingJobOutput) { op := &request.Operation{ Name: opDescribeLabelingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeLabelingJobInput{} } output = &DescribeLabelingJobOutput{} req = c.newRequest(op, input, output) return } // DescribeLabelingJob API operation for Amazon SageMaker Service. // // Gets information about a labeling job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeLabelingJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob func (c *SageMaker) DescribeLabelingJob(input *DescribeLabelingJobInput) (*DescribeLabelingJobOutput, error) { req, out := c.DescribeLabelingJobRequest(input) return out, req.Send() } // DescribeLabelingJobWithContext is the same as DescribeLabelingJob with the addition of // the ability to pass a context and additional request options. // // See DescribeLabelingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeLabelingJobWithContext(ctx aws.Context, input *DescribeLabelingJobInput, opts ...request.Option) (*DescribeLabelingJobOutput, error) { req, out := c.DescribeLabelingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeModel = "DescribeModel" // DescribeModelRequest generates a "aws/request.Request" representing the // client's request for the DescribeModel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeModel for more information on using the DescribeModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeModelRequest method. // req, resp := client.DescribeModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel func (c *SageMaker) DescribeModelRequest(input *DescribeModelInput) (req *request.Request, output *DescribeModelOutput) { op := &request.Operation{ Name: opDescribeModel, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeModelInput{} } output = &DescribeModelOutput{} req = c.newRequest(op, input, output) return } // DescribeModel API operation for Amazon SageMaker Service. // // Describes a model that you created using the CreateModel API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeModel for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel func (c *SageMaker) DescribeModel(input *DescribeModelInput) (*DescribeModelOutput, error) { req, out := c.DescribeModelRequest(input) return out, req.Send() } // DescribeModelWithContext is the same as DescribeModel with the addition of // the ability to pass a context and additional request options. // // See DescribeModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeModelWithContext(ctx aws.Context, input *DescribeModelInput, opts ...request.Option) (*DescribeModelOutput, error) { req, out := c.DescribeModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeModelPackage = "DescribeModelPackage" // DescribeModelPackageRequest generates a "aws/request.Request" representing the // client's request for the DescribeModelPackage operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeModelPackage for more information on using the DescribeModelPackage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeModelPackageRequest method. // req, resp := client.DescribeModelPackageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage func (c *SageMaker) DescribeModelPackageRequest(input *DescribeModelPackageInput) (req *request.Request, output *DescribeModelPackageOutput) { op := &request.Operation{ Name: opDescribeModelPackage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeModelPackageInput{} } output = &DescribeModelPackageOutput{} req = c.newRequest(op, input, output) return } // DescribeModelPackage API operation for Amazon SageMaker Service. // // Returns a description of the specified model package, which is used to create // Amazon SageMaker models or list them on AWS Marketplace. // // To create models in Amazon SageMaker, buyers can subscribe to model packages // listed on AWS Marketplace. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeModelPackage for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage func (c *SageMaker) DescribeModelPackage(input *DescribeModelPackageInput) (*DescribeModelPackageOutput, error) { req, out := c.DescribeModelPackageRequest(input) return out, req.Send() } // DescribeModelPackageWithContext is the same as DescribeModelPackage with the addition of // the ability to pass a context and additional request options. // // See DescribeModelPackage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeModelPackageWithContext(ctx aws.Context, input *DescribeModelPackageInput, opts ...request.Option) (*DescribeModelPackageOutput, error) { req, out := c.DescribeModelPackageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeMonitoringSchedule = "DescribeMonitoringSchedule" // DescribeMonitoringScheduleRequest generates a "aws/request.Request" representing the // client's request for the DescribeMonitoringSchedule operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeMonitoringSchedule for more information on using the DescribeMonitoringSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeMonitoringScheduleRequest method. // req, resp := client.DescribeMonitoringScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeMonitoringSchedule func (c *SageMaker) DescribeMonitoringScheduleRequest(input *DescribeMonitoringScheduleInput) (req *request.Request, output *DescribeMonitoringScheduleOutput) { op := &request.Operation{ Name: opDescribeMonitoringSchedule, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeMonitoringScheduleInput{} } output = &DescribeMonitoringScheduleOutput{} req = c.newRequest(op, input, output) return } // DescribeMonitoringSchedule API operation for Amazon SageMaker Service. // // Describes the schedule for a monitoring job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeMonitoringSchedule for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeMonitoringSchedule func (c *SageMaker) DescribeMonitoringSchedule(input *DescribeMonitoringScheduleInput) (*DescribeMonitoringScheduleOutput, error) { req, out := c.DescribeMonitoringScheduleRequest(input) return out, req.Send() } // DescribeMonitoringScheduleWithContext is the same as DescribeMonitoringSchedule with the addition of // the ability to pass a context and additional request options. // // See DescribeMonitoringSchedule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeMonitoringScheduleWithContext(ctx aws.Context, input *DescribeMonitoringScheduleInput, opts ...request.Option) (*DescribeMonitoringScheduleOutput, error) { req, out := c.DescribeMonitoringScheduleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeNotebookInstance = "DescribeNotebookInstance" // DescribeNotebookInstanceRequest generates a "aws/request.Request" representing the // client's request for the DescribeNotebookInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeNotebookInstance for more information on using the DescribeNotebookInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeNotebookInstanceRequest method. // req, resp := client.DescribeNotebookInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance func (c *SageMaker) DescribeNotebookInstanceRequest(input *DescribeNotebookInstanceInput) (req *request.Request, output *DescribeNotebookInstanceOutput) { op := &request.Operation{ Name: opDescribeNotebookInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeNotebookInstanceInput{} } output = &DescribeNotebookInstanceOutput{} req = c.newRequest(op, input, output) return } // DescribeNotebookInstance API operation for Amazon SageMaker Service. // // Returns information about a notebook instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeNotebookInstance for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance func (c *SageMaker) DescribeNotebookInstance(input *DescribeNotebookInstanceInput) (*DescribeNotebookInstanceOutput, error) { req, out := c.DescribeNotebookInstanceRequest(input) return out, req.Send() } // DescribeNotebookInstanceWithContext is the same as DescribeNotebookInstance with the addition of // the ability to pass a context and additional request options. // // See DescribeNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeNotebookInstanceWithContext(ctx aws.Context, input *DescribeNotebookInstanceInput, opts ...request.Option) (*DescribeNotebookInstanceOutput, error) { req, out := c.DescribeNotebookInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeNotebookInstanceLifecycleConfig = "DescribeNotebookInstanceLifecycleConfig" // DescribeNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the // client's request for the DescribeNotebookInstanceLifecycleConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeNotebookInstanceLifecycleConfig for more information on using the DescribeNotebookInstanceLifecycleConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeNotebookInstanceLifecycleConfigRequest method. // req, resp := client.DescribeNotebookInstanceLifecycleConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigRequest(input *DescribeNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DescribeNotebookInstanceLifecycleConfigOutput) { op := &request.Operation{ Name: opDescribeNotebookInstanceLifecycleConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeNotebookInstanceLifecycleConfigInput{} } output = &DescribeNotebookInstanceLifecycleConfigOutput{} req = c.newRequest(op, input, output) return } // DescribeNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. // // Returns a description of a notebook instance lifecycle configuration. // // For information about notebook instance lifestyle configurations, see Step // 2.1: (Optional) Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeNotebookInstanceLifecycleConfig for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig func (c *SageMaker) DescribeNotebookInstanceLifecycleConfig(input *DescribeNotebookInstanceLifecycleConfigInput) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) return out, req.Send() } // DescribeNotebookInstanceLifecycleConfigWithContext is the same as DescribeNotebookInstanceLifecycleConfig with the addition of // the ability to pass a context and additional request options. // // See DescribeNotebookInstanceLifecycleConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DescribeNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeProcessingJob = "DescribeProcessingJob" // DescribeProcessingJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeProcessingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeProcessingJob for more information on using the DescribeProcessingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeProcessingJobRequest method. // req, resp := client.DescribeProcessingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeProcessingJob func (c *SageMaker) DescribeProcessingJobRequest(input *DescribeProcessingJobInput) (req *request.Request, output *DescribeProcessingJobOutput) { op := &request.Operation{ Name: opDescribeProcessingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeProcessingJobInput{} } output = &DescribeProcessingJobOutput{} req = c.newRequest(op, input, output) return } // DescribeProcessingJob API operation for Amazon SageMaker Service. // // Returns a description of a processing job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeProcessingJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeProcessingJob func (c *SageMaker) DescribeProcessingJob(input *DescribeProcessingJobInput) (*DescribeProcessingJobOutput, error) { req, out := c.DescribeProcessingJobRequest(input) return out, req.Send() } // DescribeProcessingJobWithContext is the same as DescribeProcessingJob with the addition of // the ability to pass a context and additional request options. // // See DescribeProcessingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeProcessingJobWithContext(ctx aws.Context, input *DescribeProcessingJobInput, opts ...request.Option) (*DescribeProcessingJobOutput, error) { req, out := c.DescribeProcessingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeSubscribedWorkteam = "DescribeSubscribedWorkteam" // DescribeSubscribedWorkteamRequest generates a "aws/request.Request" representing the // client's request for the DescribeSubscribedWorkteam operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeSubscribedWorkteam for more information on using the DescribeSubscribedWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeSubscribedWorkteamRequest method. // req, resp := client.DescribeSubscribedWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam func (c *SageMaker) DescribeSubscribedWorkteamRequest(input *DescribeSubscribedWorkteamInput) (req *request.Request, output *DescribeSubscribedWorkteamOutput) { op := &request.Operation{ Name: opDescribeSubscribedWorkteam, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeSubscribedWorkteamInput{} } output = &DescribeSubscribedWorkteamOutput{} req = c.newRequest(op, input, output) return } // DescribeSubscribedWorkteam API operation for Amazon SageMaker Service. // // Gets information about a work team provided by a vendor. It returns details // about the subscription with a vendor in the AWS Marketplace. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeSubscribedWorkteam for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam func (c *SageMaker) DescribeSubscribedWorkteam(input *DescribeSubscribedWorkteamInput) (*DescribeSubscribedWorkteamOutput, error) { req, out := c.DescribeSubscribedWorkteamRequest(input) return out, req.Send() } // DescribeSubscribedWorkteamWithContext is the same as DescribeSubscribedWorkteam with the addition of // the ability to pass a context and additional request options. // // See DescribeSubscribedWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeSubscribedWorkteamWithContext(ctx aws.Context, input *DescribeSubscribedWorkteamInput, opts ...request.Option) (*DescribeSubscribedWorkteamOutput, error) { req, out := c.DescribeSubscribedWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeTrainingJob = "DescribeTrainingJob" // DescribeTrainingJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrainingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeTrainingJob for more information on using the DescribeTrainingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeTrainingJobRequest method. // req, resp := client.DescribeTrainingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob func (c *SageMaker) DescribeTrainingJobRequest(input *DescribeTrainingJobInput) (req *request.Request, output *DescribeTrainingJobOutput) { op := &request.Operation{ Name: opDescribeTrainingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeTrainingJobInput{} } output = &DescribeTrainingJobOutput{} req = c.newRequest(op, input, output) return } // DescribeTrainingJob API operation for Amazon SageMaker Service. // // Returns information about a training job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTrainingJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob func (c *SageMaker) DescribeTrainingJob(input *DescribeTrainingJobInput) (*DescribeTrainingJobOutput, error) { req, out := c.DescribeTrainingJobRequest(input) return out, req.Send() } // DescribeTrainingJobWithContext is the same as DescribeTrainingJob with the addition of // the ability to pass a context and additional request options. // // See DescribeTrainingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeTrainingJobWithContext(ctx aws.Context, input *DescribeTrainingJobInput, opts ...request.Option) (*DescribeTrainingJobOutput, error) { req, out := c.DescribeTrainingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeTransformJob = "DescribeTransformJob" // DescribeTransformJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeTransformJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeTransformJob for more information on using the DescribeTransformJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeTransformJobRequest method. // req, resp := client.DescribeTransformJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob func (c *SageMaker) DescribeTransformJobRequest(input *DescribeTransformJobInput) (req *request.Request, output *DescribeTransformJobOutput) { op := &request.Operation{ Name: opDescribeTransformJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeTransformJobInput{} } output = &DescribeTransformJobOutput{} req = c.newRequest(op, input, output) return } // DescribeTransformJob API operation for Amazon SageMaker Service. // // Returns information about a transform job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTransformJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob func (c *SageMaker) DescribeTransformJob(input *DescribeTransformJobInput) (*DescribeTransformJobOutput, error) { req, out := c.DescribeTransformJobRequest(input) return out, req.Send() } // DescribeTransformJobWithContext is the same as DescribeTransformJob with the addition of // the ability to pass a context and additional request options. // // See DescribeTransformJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeTransformJobWithContext(ctx aws.Context, input *DescribeTransformJobInput, opts ...request.Option) (*DescribeTransformJobOutput, error) { req, out := c.DescribeTransformJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeTrial = "DescribeTrial" // DescribeTrialRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrial operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeTrial for more information on using the DescribeTrial // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeTrialRequest method. // req, resp := client.DescribeTrialRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrial func (c *SageMaker) DescribeTrialRequest(input *DescribeTrialInput) (req *request.Request, output *DescribeTrialOutput) { op := &request.Operation{ Name: opDescribeTrial, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeTrialInput{} } output = &DescribeTrialOutput{} req = c.newRequest(op, input, output) return } // DescribeTrial API operation for Amazon SageMaker Service. // // Provides a list of a trial's properties. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTrial for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrial func (c *SageMaker) DescribeTrial(input *DescribeTrialInput) (*DescribeTrialOutput, error) { req, out := c.DescribeTrialRequest(input) return out, req.Send() } // DescribeTrialWithContext is the same as DescribeTrial with the addition of // the ability to pass a context and additional request options. // // See DescribeTrial for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeTrialWithContext(ctx aws.Context, input *DescribeTrialInput, opts ...request.Option) (*DescribeTrialOutput, error) { req, out := c.DescribeTrialRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeTrialComponent = "DescribeTrialComponent" // DescribeTrialComponentRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrialComponent operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeTrialComponent for more information on using the DescribeTrialComponent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeTrialComponentRequest method. // req, resp := client.DescribeTrialComponentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrialComponent func (c *SageMaker) DescribeTrialComponentRequest(input *DescribeTrialComponentInput) (req *request.Request, output *DescribeTrialComponentOutput) { op := &request.Operation{ Name: opDescribeTrialComponent, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeTrialComponentInput{} } output = &DescribeTrialComponentOutput{} req = c.newRequest(op, input, output) return } // DescribeTrialComponent API operation for Amazon SageMaker Service. // // Provides a list of a trials component's properties. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTrialComponent for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrialComponent func (c *SageMaker) DescribeTrialComponent(input *DescribeTrialComponentInput) (*DescribeTrialComponentOutput, error) { req, out := c.DescribeTrialComponentRequest(input) return out, req.Send() } // DescribeTrialComponentWithContext is the same as DescribeTrialComponent with the addition of // the ability to pass a context and additional request options. // // See DescribeTrialComponent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeTrialComponentWithContext(ctx aws.Context, input *DescribeTrialComponentInput, opts ...request.Option) (*DescribeTrialComponentOutput, error) { req, out := c.DescribeTrialComponentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeUserProfile = "DescribeUserProfile" // DescribeUserProfileRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeUserProfile for more information on using the DescribeUserProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeUserProfileRequest method. // req, resp := client.DescribeUserProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeUserProfile func (c *SageMaker) DescribeUserProfileRequest(input *DescribeUserProfileInput) (req *request.Request, output *DescribeUserProfileOutput) { op := &request.Operation{ Name: opDescribeUserProfile, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeUserProfileInput{} } output = &DescribeUserProfileOutput{} req = c.newRequest(op, input, output) return } // DescribeUserProfile API operation for Amazon SageMaker Service. // // Describes a user profile. For more information, see CreateUserProfile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeUserProfile for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeUserProfile func (c *SageMaker) DescribeUserProfile(input *DescribeUserProfileInput) (*DescribeUserProfileOutput, error) { req, out := c.DescribeUserProfileRequest(input) return out, req.Send() } // DescribeUserProfileWithContext is the same as DescribeUserProfile with the addition of // the ability to pass a context and additional request options. // // See DescribeUserProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeUserProfileWithContext(ctx aws.Context, input *DescribeUserProfileInput, opts ...request.Option) (*DescribeUserProfileOutput, error) { req, out := c.DescribeUserProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeWorkforce = "DescribeWorkforce" // DescribeWorkforceRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkforce operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeWorkforce for more information on using the DescribeWorkforce // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeWorkforceRequest method. // req, resp := client.DescribeWorkforceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkforce func (c *SageMaker) DescribeWorkforceRequest(input *DescribeWorkforceInput) (req *request.Request, output *DescribeWorkforceOutput) { op := &request.Operation{ Name: opDescribeWorkforce, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeWorkforceInput{} } output = &DescribeWorkforceOutput{} req = c.newRequest(op, input, output) return } // DescribeWorkforce API operation for Amazon SageMaker Service. // // Lists private workforce information, including workforce name, Amazon Resource // Name (ARN), and, if applicable, allowed IP address ranges (CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html)). // Allowable IP address ranges are the IP addresses that workers can use to // access tasks. // // This operation applies only to private workforces. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeWorkforce for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkforce func (c *SageMaker) DescribeWorkforce(input *DescribeWorkforceInput) (*DescribeWorkforceOutput, error) { req, out := c.DescribeWorkforceRequest(input) return out, req.Send() } // DescribeWorkforceWithContext is the same as DescribeWorkforce with the addition of // the ability to pass a context and additional request options. // // See DescribeWorkforce for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeWorkforceWithContext(ctx aws.Context, input *DescribeWorkforceInput, opts ...request.Option) (*DescribeWorkforceOutput, error) { req, out := c.DescribeWorkforceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeWorkteam = "DescribeWorkteam" // DescribeWorkteamRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkteam operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeWorkteam for more information on using the DescribeWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeWorkteamRequest method. // req, resp := client.DescribeWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam func (c *SageMaker) DescribeWorkteamRequest(input *DescribeWorkteamInput) (req *request.Request, output *DescribeWorkteamOutput) { op := &request.Operation{ Name: opDescribeWorkteam, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeWorkteamInput{} } output = &DescribeWorkteamOutput{} req = c.newRequest(op, input, output) return } // DescribeWorkteam API operation for Amazon SageMaker Service. // // Gets information about a specific work team. You can see information such // as the create date, the last updated date, membership information, and the // work team's Amazon Resource Name (ARN). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeWorkteam for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam func (c *SageMaker) DescribeWorkteam(input *DescribeWorkteamInput) (*DescribeWorkteamOutput, error) { req, out := c.DescribeWorkteamRequest(input) return out, req.Send() } // DescribeWorkteamWithContext is the same as DescribeWorkteam with the addition of // the ability to pass a context and additional request options. // // See DescribeWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DescribeWorkteamWithContext(ctx aws.Context, input *DescribeWorkteamInput, opts ...request.Option) (*DescribeWorkteamOutput, error) { req, out := c.DescribeWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateTrialComponent = "DisassociateTrialComponent" // DisassociateTrialComponentRequest generates a "aws/request.Request" representing the // client's request for the DisassociateTrialComponent operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisassociateTrialComponent for more information on using the DisassociateTrialComponent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisassociateTrialComponentRequest method. // req, resp := client.DisassociateTrialComponentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DisassociateTrialComponent func (c *SageMaker) DisassociateTrialComponentRequest(input *DisassociateTrialComponentInput) (req *request.Request, output *DisassociateTrialComponentOutput) { op := &request.Operation{ Name: opDisassociateTrialComponent, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DisassociateTrialComponentInput{} } output = &DisassociateTrialComponentOutput{} req = c.newRequest(op, input, output) return } // DisassociateTrialComponent API operation for Amazon SageMaker Service. // // Disassociates a trial component from a trial. This doesn't effect other trials // the component is associated with. Before you can delete a component, you // must disassociate the component from all trials it is associated with. To // associate a trial component with a trial, call the AssociateTrialComponent // API. // // To get a list of the trials a component is associated with, use the Search // API. Specify ExperimentTrialComponent for the Resource parameter. The list // appears in the response under Results.TrialComponent.Parents. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation DisassociateTrialComponent for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DisassociateTrialComponent func (c *SageMaker) DisassociateTrialComponent(input *DisassociateTrialComponentInput) (*DisassociateTrialComponentOutput, error) { req, out := c.DisassociateTrialComponentRequest(input) return out, req.Send() } // DisassociateTrialComponentWithContext is the same as DisassociateTrialComponent with the addition of // the ability to pass a context and additional request options. // // See DisassociateTrialComponent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) DisassociateTrialComponentWithContext(ctx aws.Context, input *DisassociateTrialComponentInput, opts ...request.Option) (*DisassociateTrialComponentOutput, error) { req, out := c.DisassociateTrialComponentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetSearchSuggestions = "GetSearchSuggestions" // GetSearchSuggestionsRequest generates a "aws/request.Request" representing the // client's request for the GetSearchSuggestions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetSearchSuggestions for more information on using the GetSearchSuggestions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetSearchSuggestionsRequest method. // req, resp := client.GetSearchSuggestionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions func (c *SageMaker) GetSearchSuggestionsRequest(input *GetSearchSuggestionsInput) (req *request.Request, output *GetSearchSuggestionsOutput) { op := &request.Operation{ Name: opGetSearchSuggestions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetSearchSuggestionsInput{} } output = &GetSearchSuggestionsOutput{} req = c.newRequest(op, input, output) return } // GetSearchSuggestions API operation for Amazon SageMaker Service. // // An auto-complete API for the search functionality in the Amazon SageMaker // console. It returns suggestions of possible matches for the property name // to use in Search queries. Provides suggestions for HyperParameters, Tags, // and Metrics. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation GetSearchSuggestions for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions func (c *SageMaker) GetSearchSuggestions(input *GetSearchSuggestionsInput) (*GetSearchSuggestionsOutput, error) { req, out := c.GetSearchSuggestionsRequest(input) return out, req.Send() } // GetSearchSuggestionsWithContext is the same as GetSearchSuggestions with the addition of // the ability to pass a context and additional request options. // // See GetSearchSuggestions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) GetSearchSuggestionsWithContext(ctx aws.Context, input *GetSearchSuggestionsInput, opts ...request.Option) (*GetSearchSuggestionsOutput, error) { req, out := c.GetSearchSuggestionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListAlgorithms = "ListAlgorithms" // ListAlgorithmsRequest generates a "aws/request.Request" representing the // client's request for the ListAlgorithms operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAlgorithms for more information on using the ListAlgorithms // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAlgorithmsRequest method. // req, resp := client.ListAlgorithmsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms func (c *SageMaker) ListAlgorithmsRequest(input *ListAlgorithmsInput) (req *request.Request, output *ListAlgorithmsOutput) { op := &request.Operation{ Name: opListAlgorithms, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListAlgorithmsInput{} } output = &ListAlgorithmsOutput{} req = c.newRequest(op, input, output) return } // ListAlgorithms API operation for Amazon SageMaker Service. // // Lists the machine learning algorithms that have been created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListAlgorithms for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms func (c *SageMaker) ListAlgorithms(input *ListAlgorithmsInput) (*ListAlgorithmsOutput, error) { req, out := c.ListAlgorithmsRequest(input) return out, req.Send() } // ListAlgorithmsWithContext is the same as ListAlgorithms with the addition of // the ability to pass a context and additional request options. // // See ListAlgorithms for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListAlgorithmsWithContext(ctx aws.Context, input *ListAlgorithmsInput, opts ...request.Option) (*ListAlgorithmsOutput, error) { req, out := c.ListAlgorithmsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAlgorithmsPages iterates over the pages of a ListAlgorithms operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAlgorithms method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAlgorithms operation. // pageNum := 0 // err := client.ListAlgorithmsPages(params, // func(page *sagemaker.ListAlgorithmsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListAlgorithmsPages(input *ListAlgorithmsInput, fn func(*ListAlgorithmsOutput, bool) bool) error { return c.ListAlgorithmsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAlgorithmsPagesWithContext same as ListAlgorithmsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListAlgorithmsPagesWithContext(ctx aws.Context, input *ListAlgorithmsInput, fn func(*ListAlgorithmsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAlgorithmsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAlgorithmsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAlgorithmsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListApps = "ListApps" // ListAppsRequest generates a "aws/request.Request" representing the // client's request for the ListApps operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListApps for more information on using the ListApps // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAppsRequest method. // req, resp := client.ListAppsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListApps func (c *SageMaker) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) { op := &request.Operation{ Name: opListApps, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListAppsInput{} } output = &ListAppsOutput{} req = c.newRequest(op, input, output) return } // ListApps API operation for Amazon SageMaker Service. // // Lists apps. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListApps for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListApps func (c *SageMaker) ListApps(input *ListAppsInput) (*ListAppsOutput, error) { req, out := c.ListAppsRequest(input) return out, req.Send() } // ListAppsWithContext is the same as ListApps with the addition of // the ability to pass a context and additional request options. // // See ListApps for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) { req, out := c.ListAppsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAppsPages iterates over the pages of a ListApps operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListApps method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListApps operation. // pageNum := 0 // err := client.ListAppsPages(params, // func(page *sagemaker.ListAppsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListAppsPages(input *ListAppsInput, fn func(*ListAppsOutput, bool) bool) error { return c.ListAppsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAppsPagesWithContext same as ListAppsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListAppsPagesWithContext(ctx aws.Context, input *ListAppsInput, fn func(*ListAppsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAppsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAppsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAppsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAutoMLJobs = "ListAutoMLJobs" // ListAutoMLJobsRequest generates a "aws/request.Request" representing the // client's request for the ListAutoMLJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAutoMLJobs for more information on using the ListAutoMLJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAutoMLJobsRequest method. // req, resp := client.ListAutoMLJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAutoMLJobs func (c *SageMaker) ListAutoMLJobsRequest(input *ListAutoMLJobsInput) (req *request.Request, output *ListAutoMLJobsOutput) { op := &request.Operation{ Name: opListAutoMLJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListAutoMLJobsInput{} } output = &ListAutoMLJobsOutput{} req = c.newRequest(op, input, output) return } // ListAutoMLJobs API operation for Amazon SageMaker Service. // // Request a list of jobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListAutoMLJobs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAutoMLJobs func (c *SageMaker) ListAutoMLJobs(input *ListAutoMLJobsInput) (*ListAutoMLJobsOutput, error) { req, out := c.ListAutoMLJobsRequest(input) return out, req.Send() } // ListAutoMLJobsWithContext is the same as ListAutoMLJobs with the addition of // the ability to pass a context and additional request options. // // See ListAutoMLJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListAutoMLJobsWithContext(ctx aws.Context, input *ListAutoMLJobsInput, opts ...request.Option) (*ListAutoMLJobsOutput, error) { req, out := c.ListAutoMLJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAutoMLJobsPages iterates over the pages of a ListAutoMLJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAutoMLJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAutoMLJobs operation. // pageNum := 0 // err := client.ListAutoMLJobsPages(params, // func(page *sagemaker.ListAutoMLJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListAutoMLJobsPages(input *ListAutoMLJobsInput, fn func(*ListAutoMLJobsOutput, bool) bool) error { return c.ListAutoMLJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAutoMLJobsPagesWithContext same as ListAutoMLJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListAutoMLJobsPagesWithContext(ctx aws.Context, input *ListAutoMLJobsInput, fn func(*ListAutoMLJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAutoMLJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAutoMLJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAutoMLJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListCandidatesForAutoMLJob = "ListCandidatesForAutoMLJob" // ListCandidatesForAutoMLJobRequest generates a "aws/request.Request" representing the // client's request for the ListCandidatesForAutoMLJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListCandidatesForAutoMLJob for more information on using the ListCandidatesForAutoMLJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListCandidatesForAutoMLJobRequest method. // req, resp := client.ListCandidatesForAutoMLJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCandidatesForAutoMLJob func (c *SageMaker) ListCandidatesForAutoMLJobRequest(input *ListCandidatesForAutoMLJobInput) (req *request.Request, output *ListCandidatesForAutoMLJobOutput) { op := &request.Operation{ Name: opListCandidatesForAutoMLJob, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListCandidatesForAutoMLJobInput{} } output = &ListCandidatesForAutoMLJobOutput{} req = c.newRequest(op, input, output) return } // ListCandidatesForAutoMLJob API operation for Amazon SageMaker Service. // // List the Candidates created for the job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListCandidatesForAutoMLJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCandidatesForAutoMLJob func (c *SageMaker) ListCandidatesForAutoMLJob(input *ListCandidatesForAutoMLJobInput) (*ListCandidatesForAutoMLJobOutput, error) { req, out := c.ListCandidatesForAutoMLJobRequest(input) return out, req.Send() } // ListCandidatesForAutoMLJobWithContext is the same as ListCandidatesForAutoMLJob with the addition of // the ability to pass a context and additional request options. // // See ListCandidatesForAutoMLJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListCandidatesForAutoMLJobWithContext(ctx aws.Context, input *ListCandidatesForAutoMLJobInput, opts ...request.Option) (*ListCandidatesForAutoMLJobOutput, error) { req, out := c.ListCandidatesForAutoMLJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListCandidatesForAutoMLJobPages iterates over the pages of a ListCandidatesForAutoMLJob operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListCandidatesForAutoMLJob method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListCandidatesForAutoMLJob operation. // pageNum := 0 // err := client.ListCandidatesForAutoMLJobPages(params, // func(page *sagemaker.ListCandidatesForAutoMLJobOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListCandidatesForAutoMLJobPages(input *ListCandidatesForAutoMLJobInput, fn func(*ListCandidatesForAutoMLJobOutput, bool) bool) error { return c.ListCandidatesForAutoMLJobPagesWithContext(aws.BackgroundContext(), input, fn) } // ListCandidatesForAutoMLJobPagesWithContext same as ListCandidatesForAutoMLJobPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListCandidatesForAutoMLJobPagesWithContext(ctx aws.Context, input *ListCandidatesForAutoMLJobInput, fn func(*ListCandidatesForAutoMLJobOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListCandidatesForAutoMLJobInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListCandidatesForAutoMLJobRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListCandidatesForAutoMLJobOutput), !p.HasNextPage()) { break } } return p.Err() } const opListCodeRepositories = "ListCodeRepositories" // ListCodeRepositoriesRequest generates a "aws/request.Request" representing the // client's request for the ListCodeRepositories operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListCodeRepositories for more information on using the ListCodeRepositories // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListCodeRepositoriesRequest method. // req, resp := client.ListCodeRepositoriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories func (c *SageMaker) ListCodeRepositoriesRequest(input *ListCodeRepositoriesInput) (req *request.Request, output *ListCodeRepositoriesOutput) { op := &request.Operation{ Name: opListCodeRepositories, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListCodeRepositoriesInput{} } output = &ListCodeRepositoriesOutput{} req = c.newRequest(op, input, output) return } // ListCodeRepositories API operation for Amazon SageMaker Service. // // Gets a list of the Git repositories in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListCodeRepositories for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories func (c *SageMaker) ListCodeRepositories(input *ListCodeRepositoriesInput) (*ListCodeRepositoriesOutput, error) { req, out := c.ListCodeRepositoriesRequest(input) return out, req.Send() } // ListCodeRepositoriesWithContext is the same as ListCodeRepositories with the addition of // the ability to pass a context and additional request options. // // See ListCodeRepositories for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListCodeRepositoriesWithContext(ctx aws.Context, input *ListCodeRepositoriesInput, opts ...request.Option) (*ListCodeRepositoriesOutput, error) { req, out := c.ListCodeRepositoriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListCodeRepositoriesPages iterates over the pages of a ListCodeRepositories operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListCodeRepositories method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListCodeRepositories operation. // pageNum := 0 // err := client.ListCodeRepositoriesPages(params, // func(page *sagemaker.ListCodeRepositoriesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListCodeRepositoriesPages(input *ListCodeRepositoriesInput, fn func(*ListCodeRepositoriesOutput, bool) bool) error { return c.ListCodeRepositoriesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListCodeRepositoriesPagesWithContext same as ListCodeRepositoriesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListCodeRepositoriesPagesWithContext(ctx aws.Context, input *ListCodeRepositoriesInput, fn func(*ListCodeRepositoriesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListCodeRepositoriesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListCodeRepositoriesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListCodeRepositoriesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListCompilationJobs = "ListCompilationJobs" // ListCompilationJobsRequest generates a "aws/request.Request" representing the // client's request for the ListCompilationJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListCompilationJobs for more information on using the ListCompilationJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListCompilationJobsRequest method. // req, resp := client.ListCompilationJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs func (c *SageMaker) ListCompilationJobsRequest(input *ListCompilationJobsInput) (req *request.Request, output *ListCompilationJobsOutput) { op := &request.Operation{ Name: opListCompilationJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListCompilationJobsInput{} } output = &ListCompilationJobsOutput{} req = c.newRequest(op, input, output) return } // ListCompilationJobs API operation for Amazon SageMaker Service. // // Lists model compilation jobs that satisfy various filters. // // To create a model compilation job, use CreateCompilationJob. To get information // about a particular model compilation job you have created, use DescribeCompilationJob. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListCompilationJobs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs func (c *SageMaker) ListCompilationJobs(input *ListCompilationJobsInput) (*ListCompilationJobsOutput, error) { req, out := c.ListCompilationJobsRequest(input) return out, req.Send() } // ListCompilationJobsWithContext is the same as ListCompilationJobs with the addition of // the ability to pass a context and additional request options. // // See ListCompilationJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListCompilationJobsWithContext(ctx aws.Context, input *ListCompilationJobsInput, opts ...request.Option) (*ListCompilationJobsOutput, error) { req, out := c.ListCompilationJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListCompilationJobsPages iterates over the pages of a ListCompilationJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListCompilationJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListCompilationJobs operation. // pageNum := 0 // err := client.ListCompilationJobsPages(params, // func(page *sagemaker.ListCompilationJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListCompilationJobsPages(input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool) error { return c.ListCompilationJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListCompilationJobsPagesWithContext same as ListCompilationJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListCompilationJobsPagesWithContext(ctx aws.Context, input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListCompilationJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListCompilationJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListCompilationJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListDomains = "ListDomains" // ListDomainsRequest generates a "aws/request.Request" representing the // client's request for the ListDomains operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListDomains for more information on using the ListDomains // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListDomainsRequest method. // req, resp := client.ListDomainsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListDomains func (c *SageMaker) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { op := &request.Operation{ Name: opListDomains, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListDomainsInput{} } output = &ListDomainsOutput{} req = c.newRequest(op, input, output) return } // ListDomains API operation for Amazon SageMaker Service. // // Lists the domains. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListDomains for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListDomains func (c *SageMaker) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) return out, req.Send() } // ListDomainsWithContext is the same as ListDomains with the addition of // the ability to pass a context and additional request options. // // See ListDomains for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListDomainsWithContext(ctx aws.Context, input *ListDomainsInput, opts ...request.Option) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListDomainsPages iterates over the pages of a ListDomains operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListDomains method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListDomains operation. // pageNum := 0 // err := client.ListDomainsPages(params, // func(page *sagemaker.ListDomainsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool) error { return c.ListDomainsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListDomainsPagesWithContext same as ListDomainsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListDomainsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListDomainsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListDomainsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListEndpointConfigs = "ListEndpointConfigs" // ListEndpointConfigsRequest generates a "aws/request.Request" representing the // client's request for the ListEndpointConfigs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListEndpointConfigs for more information on using the ListEndpointConfigs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListEndpointConfigsRequest method. // req, resp := client.ListEndpointConfigsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs func (c *SageMaker) ListEndpointConfigsRequest(input *ListEndpointConfigsInput) (req *request.Request, output *ListEndpointConfigsOutput) { op := &request.Operation{ Name: opListEndpointConfigs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListEndpointConfigsInput{} } output = &ListEndpointConfigsOutput{} req = c.newRequest(op, input, output) return } // ListEndpointConfigs API operation for Amazon SageMaker Service. // // Lists endpoint configurations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListEndpointConfigs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs func (c *SageMaker) ListEndpointConfigs(input *ListEndpointConfigsInput) (*ListEndpointConfigsOutput, error) { req, out := c.ListEndpointConfigsRequest(input) return out, req.Send() } // ListEndpointConfigsWithContext is the same as ListEndpointConfigs with the addition of // the ability to pass a context and additional request options. // // See ListEndpointConfigs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListEndpointConfigsWithContext(ctx aws.Context, input *ListEndpointConfigsInput, opts ...request.Option) (*ListEndpointConfigsOutput, error) { req, out := c.ListEndpointConfigsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListEndpointConfigsPages iterates over the pages of a ListEndpointConfigs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListEndpointConfigs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListEndpointConfigs operation. // pageNum := 0 // err := client.ListEndpointConfigsPages(params, // func(page *sagemaker.ListEndpointConfigsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListEndpointConfigsPages(input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool) error { return c.ListEndpointConfigsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListEndpointConfigsPagesWithContext same as ListEndpointConfigsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListEndpointConfigsPagesWithContext(ctx aws.Context, input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListEndpointConfigsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListEndpointConfigsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListEndpointConfigsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListEndpoints = "ListEndpoints" // ListEndpointsRequest generates a "aws/request.Request" representing the // client's request for the ListEndpoints operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListEndpoints for more information on using the ListEndpoints // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListEndpointsRequest method. // req, resp := client.ListEndpointsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints func (c *SageMaker) ListEndpointsRequest(input *ListEndpointsInput) (req *request.Request, output *ListEndpointsOutput) { op := &request.Operation{ Name: opListEndpoints, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListEndpointsInput{} } output = &ListEndpointsOutput{} req = c.newRequest(op, input, output) return } // ListEndpoints API operation for Amazon SageMaker Service. // // Lists endpoints. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListEndpoints for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints func (c *SageMaker) ListEndpoints(input *ListEndpointsInput) (*ListEndpointsOutput, error) { req, out := c.ListEndpointsRequest(input) return out, req.Send() } // ListEndpointsWithContext is the same as ListEndpoints with the addition of // the ability to pass a context and additional request options. // // See ListEndpoints for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListEndpointsWithContext(ctx aws.Context, input *ListEndpointsInput, opts ...request.Option) (*ListEndpointsOutput, error) { req, out := c.ListEndpointsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListEndpointsPages iterates over the pages of a ListEndpoints operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListEndpoints method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListEndpoints operation. // pageNum := 0 // err := client.ListEndpointsPages(params, // func(page *sagemaker.ListEndpointsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListEndpointsPages(input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool) error { return c.ListEndpointsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListEndpointsPagesWithContext same as ListEndpointsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListEndpointsPagesWithContext(ctx aws.Context, input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListEndpointsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListEndpointsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListEndpointsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListExperiments = "ListExperiments" // ListExperimentsRequest generates a "aws/request.Request" representing the // client's request for the ListExperiments operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListExperiments for more information on using the ListExperiments // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListExperimentsRequest method. // req, resp := client.ListExperimentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListExperiments func (c *SageMaker) ListExperimentsRequest(input *ListExperimentsInput) (req *request.Request, output *ListExperimentsOutput) { op := &request.Operation{ Name: opListExperiments, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListExperimentsInput{} } output = &ListExperimentsOutput{} req = c.newRequest(op, input, output) return } // ListExperiments API operation for Amazon SageMaker Service. // // Lists all the experiments in your account. The list can be filtered to show // only experiments that were created in a specific time range. The list can // be sorted by experiment name or creation time. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListExperiments for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListExperiments func (c *SageMaker) ListExperiments(input *ListExperimentsInput) (*ListExperimentsOutput, error) { req, out := c.ListExperimentsRequest(input) return out, req.Send() } // ListExperimentsWithContext is the same as ListExperiments with the addition of // the ability to pass a context and additional request options. // // See ListExperiments for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListExperimentsWithContext(ctx aws.Context, input *ListExperimentsInput, opts ...request.Option) (*ListExperimentsOutput, error) { req, out := c.ListExperimentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListExperimentsPages iterates over the pages of a ListExperiments operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListExperiments method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListExperiments operation. // pageNum := 0 // err := client.ListExperimentsPages(params, // func(page *sagemaker.ListExperimentsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListExperimentsPages(input *ListExperimentsInput, fn func(*ListExperimentsOutput, bool) bool) error { return c.ListExperimentsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListExperimentsPagesWithContext same as ListExperimentsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListExperimentsPagesWithContext(ctx aws.Context, input *ListExperimentsInput, fn func(*ListExperimentsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListExperimentsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListExperimentsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListExperimentsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListFlowDefinitions = "ListFlowDefinitions" // ListFlowDefinitionsRequest generates a "aws/request.Request" representing the // client's request for the ListFlowDefinitions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListFlowDefinitions for more information on using the ListFlowDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListFlowDefinitionsRequest method. // req, resp := client.ListFlowDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListFlowDefinitions func (c *SageMaker) ListFlowDefinitionsRequest(input *ListFlowDefinitionsInput) (req *request.Request, output *ListFlowDefinitionsOutput) { op := &request.Operation{ Name: opListFlowDefinitions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListFlowDefinitionsInput{} } output = &ListFlowDefinitionsOutput{} req = c.newRequest(op, input, output) return } // ListFlowDefinitions API operation for Amazon SageMaker Service. // // Returns information about the flow definitions in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListFlowDefinitions for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListFlowDefinitions func (c *SageMaker) ListFlowDefinitions(input *ListFlowDefinitionsInput) (*ListFlowDefinitionsOutput, error) { req, out := c.ListFlowDefinitionsRequest(input) return out, req.Send() } // ListFlowDefinitionsWithContext is the same as ListFlowDefinitions with the addition of // the ability to pass a context and additional request options. // // See ListFlowDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListFlowDefinitionsWithContext(ctx aws.Context, input *ListFlowDefinitionsInput, opts ...request.Option) (*ListFlowDefinitionsOutput, error) { req, out := c.ListFlowDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListFlowDefinitionsPages iterates over the pages of a ListFlowDefinitions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListFlowDefinitions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListFlowDefinitions operation. // pageNum := 0 // err := client.ListFlowDefinitionsPages(params, // func(page *sagemaker.ListFlowDefinitionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListFlowDefinitionsPages(input *ListFlowDefinitionsInput, fn func(*ListFlowDefinitionsOutput, bool) bool) error { return c.ListFlowDefinitionsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListFlowDefinitionsPagesWithContext same as ListFlowDefinitionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListFlowDefinitionsPagesWithContext(ctx aws.Context, input *ListFlowDefinitionsInput, fn func(*ListFlowDefinitionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListFlowDefinitionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListFlowDefinitionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListFlowDefinitionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListHumanTaskUis = "ListHumanTaskUis" // ListHumanTaskUisRequest generates a "aws/request.Request" representing the // client's request for the ListHumanTaskUis operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListHumanTaskUis for more information on using the ListHumanTaskUis // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListHumanTaskUisRequest method. // req, resp := client.ListHumanTaskUisRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHumanTaskUis func (c *SageMaker) ListHumanTaskUisRequest(input *ListHumanTaskUisInput) (req *request.Request, output *ListHumanTaskUisOutput) { op := &request.Operation{ Name: opListHumanTaskUis, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListHumanTaskUisInput{} } output = &ListHumanTaskUisOutput{} req = c.newRequest(op, input, output) return } // ListHumanTaskUis API operation for Amazon SageMaker Service. // // Returns information about the human task user interfaces in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListHumanTaskUis for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHumanTaskUis func (c *SageMaker) ListHumanTaskUis(input *ListHumanTaskUisInput) (*ListHumanTaskUisOutput, error) { req, out := c.ListHumanTaskUisRequest(input) return out, req.Send() } // ListHumanTaskUisWithContext is the same as ListHumanTaskUis with the addition of // the ability to pass a context and additional request options. // // See ListHumanTaskUis for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListHumanTaskUisWithContext(ctx aws.Context, input *ListHumanTaskUisInput, opts ...request.Option) (*ListHumanTaskUisOutput, error) { req, out := c.ListHumanTaskUisRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListHumanTaskUisPages iterates over the pages of a ListHumanTaskUis operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListHumanTaskUis method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListHumanTaskUis operation. // pageNum := 0 // err := client.ListHumanTaskUisPages(params, // func(page *sagemaker.ListHumanTaskUisOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListHumanTaskUisPages(input *ListHumanTaskUisInput, fn func(*ListHumanTaskUisOutput, bool) bool) error { return c.ListHumanTaskUisPagesWithContext(aws.BackgroundContext(), input, fn) } // ListHumanTaskUisPagesWithContext same as ListHumanTaskUisPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListHumanTaskUisPagesWithContext(ctx aws.Context, input *ListHumanTaskUisInput, fn func(*ListHumanTaskUisOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListHumanTaskUisInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListHumanTaskUisRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListHumanTaskUisOutput), !p.HasNextPage()) { break } } return p.Err() } const opListHyperParameterTuningJobs = "ListHyperParameterTuningJobs" // ListHyperParameterTuningJobsRequest generates a "aws/request.Request" representing the // client's request for the ListHyperParameterTuningJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListHyperParameterTuningJobs for more information on using the ListHyperParameterTuningJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListHyperParameterTuningJobsRequest method. // req, resp := client.ListHyperParameterTuningJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs func (c *SageMaker) ListHyperParameterTuningJobsRequest(input *ListHyperParameterTuningJobsInput) (req *request.Request, output *ListHyperParameterTuningJobsOutput) { op := &request.Operation{ Name: opListHyperParameterTuningJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListHyperParameterTuningJobsInput{} } output = &ListHyperParameterTuningJobsOutput{} req = c.newRequest(op, input, output) return } // ListHyperParameterTuningJobs API operation for Amazon SageMaker Service. // // Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter // tuning jobs launched in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListHyperParameterTuningJobs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs func (c *SageMaker) ListHyperParameterTuningJobs(input *ListHyperParameterTuningJobsInput) (*ListHyperParameterTuningJobsOutput, error) { req, out := c.ListHyperParameterTuningJobsRequest(input) return out, req.Send() } // ListHyperParameterTuningJobsWithContext is the same as ListHyperParameterTuningJobs with the addition of // the ability to pass a context and additional request options. // // See ListHyperParameterTuningJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListHyperParameterTuningJobsWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, opts ...request.Option) (*ListHyperParameterTuningJobsOutput, error) { req, out := c.ListHyperParameterTuningJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListHyperParameterTuningJobsPages iterates over the pages of a ListHyperParameterTuningJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListHyperParameterTuningJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListHyperParameterTuningJobs operation. // pageNum := 0 // err := client.ListHyperParameterTuningJobsPages(params, // func(page *sagemaker.ListHyperParameterTuningJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListHyperParameterTuningJobsPages(input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool) error { return c.ListHyperParameterTuningJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListHyperParameterTuningJobsPagesWithContext same as ListHyperParameterTuningJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListHyperParameterTuningJobsPagesWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListHyperParameterTuningJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListHyperParameterTuningJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListHyperParameterTuningJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListLabelingJobs = "ListLabelingJobs" // ListLabelingJobsRequest generates a "aws/request.Request" representing the // client's request for the ListLabelingJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListLabelingJobs for more information on using the ListLabelingJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListLabelingJobsRequest method. // req, resp := client.ListLabelingJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs func (c *SageMaker) ListLabelingJobsRequest(input *ListLabelingJobsInput) (req *request.Request, output *ListLabelingJobsOutput) { op := &request.Operation{ Name: opListLabelingJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListLabelingJobsInput{} } output = &ListLabelingJobsOutput{} req = c.newRequest(op, input, output) return } // ListLabelingJobs API operation for Amazon SageMaker Service. // // Gets a list of labeling jobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListLabelingJobs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs func (c *SageMaker) ListLabelingJobs(input *ListLabelingJobsInput) (*ListLabelingJobsOutput, error) { req, out := c.ListLabelingJobsRequest(input) return out, req.Send() } // ListLabelingJobsWithContext is the same as ListLabelingJobs with the addition of // the ability to pass a context and additional request options. // // See ListLabelingJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListLabelingJobsWithContext(ctx aws.Context, input *ListLabelingJobsInput, opts ...request.Option) (*ListLabelingJobsOutput, error) { req, out := c.ListLabelingJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListLabelingJobsPages iterates over the pages of a ListLabelingJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListLabelingJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListLabelingJobs operation. // pageNum := 0 // err := client.ListLabelingJobsPages(params, // func(page *sagemaker.ListLabelingJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListLabelingJobsPages(input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool) error { return c.ListLabelingJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListLabelingJobsPagesWithContext same as ListLabelingJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListLabelingJobsPagesWithContext(ctx aws.Context, input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListLabelingJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListLabelingJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListLabelingJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListLabelingJobsForWorkteam = "ListLabelingJobsForWorkteam" // ListLabelingJobsForWorkteamRequest generates a "aws/request.Request" representing the // client's request for the ListLabelingJobsForWorkteam operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListLabelingJobsForWorkteam for more information on using the ListLabelingJobsForWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListLabelingJobsForWorkteamRequest method. // req, resp := client.ListLabelingJobsForWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam func (c *SageMaker) ListLabelingJobsForWorkteamRequest(input *ListLabelingJobsForWorkteamInput) (req *request.Request, output *ListLabelingJobsForWorkteamOutput) { op := &request.Operation{ Name: opListLabelingJobsForWorkteam, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListLabelingJobsForWorkteamInput{} } output = &ListLabelingJobsForWorkteamOutput{} req = c.newRequest(op, input, output) return } // ListLabelingJobsForWorkteam API operation for Amazon SageMaker Service. // // Gets a list of labeling jobs assigned to a specified work team. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListLabelingJobsForWorkteam for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam func (c *SageMaker) ListLabelingJobsForWorkteam(input *ListLabelingJobsForWorkteamInput) (*ListLabelingJobsForWorkteamOutput, error) { req, out := c.ListLabelingJobsForWorkteamRequest(input) return out, req.Send() } // ListLabelingJobsForWorkteamWithContext is the same as ListLabelingJobsForWorkteam with the addition of // the ability to pass a context and additional request options. // // See ListLabelingJobsForWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListLabelingJobsForWorkteamWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, opts ...request.Option) (*ListLabelingJobsForWorkteamOutput, error) { req, out := c.ListLabelingJobsForWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListLabelingJobsForWorkteamPages iterates over the pages of a ListLabelingJobsForWorkteam operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListLabelingJobsForWorkteam method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListLabelingJobsForWorkteam operation. // pageNum := 0 // err := client.ListLabelingJobsForWorkteamPages(params, // func(page *sagemaker.ListLabelingJobsForWorkteamOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListLabelingJobsForWorkteamPages(input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool) error { return c.ListLabelingJobsForWorkteamPagesWithContext(aws.BackgroundContext(), input, fn) } // ListLabelingJobsForWorkteamPagesWithContext same as ListLabelingJobsForWorkteamPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListLabelingJobsForWorkteamPagesWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListLabelingJobsForWorkteamInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListLabelingJobsForWorkteamRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListLabelingJobsForWorkteamOutput), !p.HasNextPage()) { break } } return p.Err() } const opListModelPackages = "ListModelPackages" // ListModelPackagesRequest generates a "aws/request.Request" representing the // client's request for the ListModelPackages operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListModelPackages for more information on using the ListModelPackages // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListModelPackagesRequest method. // req, resp := client.ListModelPackagesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages func (c *SageMaker) ListModelPackagesRequest(input *ListModelPackagesInput) (req *request.Request, output *ListModelPackagesOutput) { op := &request.Operation{ Name: opListModelPackages, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListModelPackagesInput{} } output = &ListModelPackagesOutput{} req = c.newRequest(op, input, output) return } // ListModelPackages API operation for Amazon SageMaker Service. // // Lists the model packages that have been created. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListModelPackages for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages func (c *SageMaker) ListModelPackages(input *ListModelPackagesInput) (*ListModelPackagesOutput, error) { req, out := c.ListModelPackagesRequest(input) return out, req.Send() } // ListModelPackagesWithContext is the same as ListModelPackages with the addition of // the ability to pass a context and additional request options. // // See ListModelPackages for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListModelPackagesWithContext(ctx aws.Context, input *ListModelPackagesInput, opts ...request.Option) (*ListModelPackagesOutput, error) { req, out := c.ListModelPackagesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListModelPackagesPages iterates over the pages of a ListModelPackages operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListModelPackages method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListModelPackages operation. // pageNum := 0 // err := client.ListModelPackagesPages(params, // func(page *sagemaker.ListModelPackagesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListModelPackagesPages(input *ListModelPackagesInput, fn func(*ListModelPackagesOutput, bool) bool) error { return c.ListModelPackagesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListModelPackagesPagesWithContext same as ListModelPackagesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListModelPackagesPagesWithContext(ctx aws.Context, input *ListModelPackagesInput, fn func(*ListModelPackagesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListModelPackagesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListModelPackagesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListModelPackagesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListModels = "ListModels" // ListModelsRequest generates a "aws/request.Request" representing the // client's request for the ListModels operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListModels for more information on using the ListModels // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListModelsRequest method. // req, resp := client.ListModelsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels func (c *SageMaker) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) { op := &request.Operation{ Name: opListModels, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListModelsInput{} } output = &ListModelsOutput{} req = c.newRequest(op, input, output) return } // ListModels API operation for Amazon SageMaker Service. // // Lists models created with the CreateModel API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListModels for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels func (c *SageMaker) ListModels(input *ListModelsInput) (*ListModelsOutput, error) { req, out := c.ListModelsRequest(input) return out, req.Send() } // ListModelsWithContext is the same as ListModels with the addition of // the ability to pass a context and additional request options. // // See ListModels for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) { req, out := c.ListModelsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListModelsPages iterates over the pages of a ListModels operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListModels method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListModels operation. // pageNum := 0 // err := client.ListModelsPages(params, // func(page *sagemaker.ListModelsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error { return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListModelsPagesWithContext same as ListModelsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListModelsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListModelsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListModelsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListMonitoringExecutions = "ListMonitoringExecutions" // ListMonitoringExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListMonitoringExecutions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListMonitoringExecutions for more information on using the ListMonitoringExecutions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListMonitoringExecutionsRequest method. // req, resp := client.ListMonitoringExecutionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListMonitoringExecutions func (c *SageMaker) ListMonitoringExecutionsRequest(input *ListMonitoringExecutionsInput) (req *request.Request, output *ListMonitoringExecutionsOutput) { op := &request.Operation{ Name: opListMonitoringExecutions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListMonitoringExecutionsInput{} } output = &ListMonitoringExecutionsOutput{} req = c.newRequest(op, input, output) return } // ListMonitoringExecutions API operation for Amazon SageMaker Service. // // Returns list of all monitoring job executions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListMonitoringExecutions for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListMonitoringExecutions func (c *SageMaker) ListMonitoringExecutions(input *ListMonitoringExecutionsInput) (*ListMonitoringExecutionsOutput, error) { req, out := c.ListMonitoringExecutionsRequest(input) return out, req.Send() } // ListMonitoringExecutionsWithContext is the same as ListMonitoringExecutions with the addition of // the ability to pass a context and additional request options. // // See ListMonitoringExecutions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListMonitoringExecutionsWithContext(ctx aws.Context, input *ListMonitoringExecutionsInput, opts ...request.Option) (*ListMonitoringExecutionsOutput, error) { req, out := c.ListMonitoringExecutionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListMonitoringExecutionsPages iterates over the pages of a ListMonitoringExecutions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListMonitoringExecutions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListMonitoringExecutions operation. // pageNum := 0 // err := client.ListMonitoringExecutionsPages(params, // func(page *sagemaker.ListMonitoringExecutionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListMonitoringExecutionsPages(input *ListMonitoringExecutionsInput, fn func(*ListMonitoringExecutionsOutput, bool) bool) error { return c.ListMonitoringExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListMonitoringExecutionsPagesWithContext same as ListMonitoringExecutionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListMonitoringExecutionsPagesWithContext(ctx aws.Context, input *ListMonitoringExecutionsInput, fn func(*ListMonitoringExecutionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListMonitoringExecutionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListMonitoringExecutionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListMonitoringExecutionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListMonitoringSchedules = "ListMonitoringSchedules" // ListMonitoringSchedulesRequest generates a "aws/request.Request" representing the // client's request for the ListMonitoringSchedules operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListMonitoringSchedules for more information on using the ListMonitoringSchedules // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListMonitoringSchedulesRequest method. // req, resp := client.ListMonitoringSchedulesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListMonitoringSchedules func (c *SageMaker) ListMonitoringSchedulesRequest(input *ListMonitoringSchedulesInput) (req *request.Request, output *ListMonitoringSchedulesOutput) { op := &request.Operation{ Name: opListMonitoringSchedules, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListMonitoringSchedulesInput{} } output = &ListMonitoringSchedulesOutput{} req = c.newRequest(op, input, output) return } // ListMonitoringSchedules API operation for Amazon SageMaker Service. // // Returns list of all monitoring schedules. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListMonitoringSchedules for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListMonitoringSchedules func (c *SageMaker) ListMonitoringSchedules(input *ListMonitoringSchedulesInput) (*ListMonitoringSchedulesOutput, error) { req, out := c.ListMonitoringSchedulesRequest(input) return out, req.Send() } // ListMonitoringSchedulesWithContext is the same as ListMonitoringSchedules with the addition of // the ability to pass a context and additional request options. // // See ListMonitoringSchedules for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListMonitoringSchedulesWithContext(ctx aws.Context, input *ListMonitoringSchedulesInput, opts ...request.Option) (*ListMonitoringSchedulesOutput, error) { req, out := c.ListMonitoringSchedulesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListMonitoringSchedulesPages iterates over the pages of a ListMonitoringSchedules operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListMonitoringSchedules method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListMonitoringSchedules operation. // pageNum := 0 // err := client.ListMonitoringSchedulesPages(params, // func(page *sagemaker.ListMonitoringSchedulesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListMonitoringSchedulesPages(input *ListMonitoringSchedulesInput, fn func(*ListMonitoringSchedulesOutput, bool) bool) error { return c.ListMonitoringSchedulesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListMonitoringSchedulesPagesWithContext same as ListMonitoringSchedulesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListMonitoringSchedulesPagesWithContext(ctx aws.Context, input *ListMonitoringSchedulesInput, fn func(*ListMonitoringSchedulesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListMonitoringSchedulesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListMonitoringSchedulesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListMonitoringSchedulesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListNotebookInstanceLifecycleConfigs = "ListNotebookInstanceLifecycleConfigs" // ListNotebookInstanceLifecycleConfigsRequest generates a "aws/request.Request" representing the // client's request for the ListNotebookInstanceLifecycleConfigs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListNotebookInstanceLifecycleConfigs for more information on using the ListNotebookInstanceLifecycleConfigs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListNotebookInstanceLifecycleConfigsRequest method. // req, resp := client.ListNotebookInstanceLifecycleConfigsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs func (c *SageMaker) ListNotebookInstanceLifecycleConfigsRequest(input *ListNotebookInstanceLifecycleConfigsInput) (req *request.Request, output *ListNotebookInstanceLifecycleConfigsOutput) { op := &request.Operation{ Name: opListNotebookInstanceLifecycleConfigs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListNotebookInstanceLifecycleConfigsInput{} } output = &ListNotebookInstanceLifecycleConfigsOutput{} req = c.newRequest(op, input, output) return } // ListNotebookInstanceLifecycleConfigs API operation for Amazon SageMaker Service. // // Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig // API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListNotebookInstanceLifecycleConfigs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs func (c *SageMaker) ListNotebookInstanceLifecycleConfigs(input *ListNotebookInstanceLifecycleConfigsInput) (*ListNotebookInstanceLifecycleConfigsOutput, error) { req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) return out, req.Send() } // ListNotebookInstanceLifecycleConfigsWithContext is the same as ListNotebookInstanceLifecycleConfigs with the addition of // the ability to pass a context and additional request options. // // See ListNotebookInstanceLifecycleConfigs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListNotebookInstanceLifecycleConfigsWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, opts ...request.Option) (*ListNotebookInstanceLifecycleConfigsOutput, error) { req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListNotebookInstanceLifecycleConfigsPages iterates over the pages of a ListNotebookInstanceLifecycleConfigs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListNotebookInstanceLifecycleConfigs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListNotebookInstanceLifecycleConfigs operation. // pageNum := 0 // err := client.ListNotebookInstanceLifecycleConfigsPages(params, // func(page *sagemaker.ListNotebookInstanceLifecycleConfigsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPages(input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool) error { return c.ListNotebookInstanceLifecycleConfigsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListNotebookInstanceLifecycleConfigsPagesWithContext same as ListNotebookInstanceLifecycleConfigsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPagesWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListNotebookInstanceLifecycleConfigsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListNotebookInstanceLifecycleConfigsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListNotebookInstanceLifecycleConfigsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListNotebookInstances = "ListNotebookInstances" // ListNotebookInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListNotebookInstances operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListNotebookInstances for more information on using the ListNotebookInstances // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListNotebookInstancesRequest method. // req, resp := client.ListNotebookInstancesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances func (c *SageMaker) ListNotebookInstancesRequest(input *ListNotebookInstancesInput) (req *request.Request, output *ListNotebookInstancesOutput) { op := &request.Operation{ Name: opListNotebookInstances, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListNotebookInstancesInput{} } output = &ListNotebookInstancesOutput{} req = c.newRequest(op, input, output) return } // ListNotebookInstances API operation for Amazon SageMaker Service. // // Returns a list of the Amazon SageMaker notebook instances in the requester's // account in an AWS Region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListNotebookInstances for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances func (c *SageMaker) ListNotebookInstances(input *ListNotebookInstancesInput) (*ListNotebookInstancesOutput, error) { req, out := c.ListNotebookInstancesRequest(input) return out, req.Send() } // ListNotebookInstancesWithContext is the same as ListNotebookInstances with the addition of // the ability to pass a context and additional request options. // // See ListNotebookInstances for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListNotebookInstancesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, opts ...request.Option) (*ListNotebookInstancesOutput, error) { req, out := c.ListNotebookInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListNotebookInstancesPages iterates over the pages of a ListNotebookInstances operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListNotebookInstances method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListNotebookInstances operation. // pageNum := 0 // err := client.ListNotebookInstancesPages(params, // func(page *sagemaker.ListNotebookInstancesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListNotebookInstancesPages(input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool) error { return c.ListNotebookInstancesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListNotebookInstancesPagesWithContext same as ListNotebookInstancesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListNotebookInstancesPagesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListNotebookInstancesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListNotebookInstancesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListNotebookInstancesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListProcessingJobs = "ListProcessingJobs" // ListProcessingJobsRequest generates a "aws/request.Request" representing the // client's request for the ListProcessingJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListProcessingJobs for more information on using the ListProcessingJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListProcessingJobsRequest method. // req, resp := client.ListProcessingJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListProcessingJobs func (c *SageMaker) ListProcessingJobsRequest(input *ListProcessingJobsInput) (req *request.Request, output *ListProcessingJobsOutput) { op := &request.Operation{ Name: opListProcessingJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListProcessingJobsInput{} } output = &ListProcessingJobsOutput{} req = c.newRequest(op, input, output) return } // ListProcessingJobs API operation for Amazon SageMaker Service. // // Lists processing jobs that satisfy various filters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListProcessingJobs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListProcessingJobs func (c *SageMaker) ListProcessingJobs(input *ListProcessingJobsInput) (*ListProcessingJobsOutput, error) { req, out := c.ListProcessingJobsRequest(input) return out, req.Send() } // ListProcessingJobsWithContext is the same as ListProcessingJobs with the addition of // the ability to pass a context and additional request options. // // See ListProcessingJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListProcessingJobsWithContext(ctx aws.Context, input *ListProcessingJobsInput, opts ...request.Option) (*ListProcessingJobsOutput, error) { req, out := c.ListProcessingJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListProcessingJobsPages iterates over the pages of a ListProcessingJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListProcessingJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListProcessingJobs operation. // pageNum := 0 // err := client.ListProcessingJobsPages(params, // func(page *sagemaker.ListProcessingJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListProcessingJobsPages(input *ListProcessingJobsInput, fn func(*ListProcessingJobsOutput, bool) bool) error { return c.ListProcessingJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListProcessingJobsPagesWithContext same as ListProcessingJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListProcessingJobsPagesWithContext(ctx aws.Context, input *ListProcessingJobsInput, fn func(*ListProcessingJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListProcessingJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListProcessingJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListProcessingJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListSubscribedWorkteams = "ListSubscribedWorkteams" // ListSubscribedWorkteamsRequest generates a "aws/request.Request" representing the // client's request for the ListSubscribedWorkteams operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListSubscribedWorkteams for more information on using the ListSubscribedWorkteams // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListSubscribedWorkteamsRequest method. // req, resp := client.ListSubscribedWorkteamsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams func (c *SageMaker) ListSubscribedWorkteamsRequest(input *ListSubscribedWorkteamsInput) (req *request.Request, output *ListSubscribedWorkteamsOutput) { op := &request.Operation{ Name: opListSubscribedWorkteams, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListSubscribedWorkteamsInput{} } output = &ListSubscribedWorkteamsOutput{} req = c.newRequest(op, input, output) return } // ListSubscribedWorkteams API operation for Amazon SageMaker Service. // // Gets a list of the work teams that you are subscribed to in the AWS Marketplace. // The list may be empty if no work team satisfies the filter specified in the // NameContains parameter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListSubscribedWorkteams for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams func (c *SageMaker) ListSubscribedWorkteams(input *ListSubscribedWorkteamsInput) (*ListSubscribedWorkteamsOutput, error) { req, out := c.ListSubscribedWorkteamsRequest(input) return out, req.Send() } // ListSubscribedWorkteamsWithContext is the same as ListSubscribedWorkteams with the addition of // the ability to pass a context and additional request options. // // See ListSubscribedWorkteams for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListSubscribedWorkteamsWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, opts ...request.Option) (*ListSubscribedWorkteamsOutput, error) { req, out := c.ListSubscribedWorkteamsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListSubscribedWorkteamsPages iterates over the pages of a ListSubscribedWorkteams operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListSubscribedWorkteams method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListSubscribedWorkteams operation. // pageNum := 0 // err := client.ListSubscribedWorkteamsPages(params, // func(page *sagemaker.ListSubscribedWorkteamsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListSubscribedWorkteamsPages(input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool) error { return c.ListSubscribedWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListSubscribedWorkteamsPagesWithContext same as ListSubscribedWorkteamsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListSubscribedWorkteamsPagesWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListSubscribedWorkteamsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListSubscribedWorkteamsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListSubscribedWorkteamsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the // client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTags for more information on using the ListTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsRequest method. // req, resp := client.ListTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags func (c *SageMaker) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { op := &request.Operation{ Name: opListTags, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTagsInput{} } output = &ListTagsOutput{} req = c.newRequest(op, input, output) return } // ListTags API operation for Amazon SageMaker Service. // // Returns the tags for the specified Amazon SageMaker resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListTags for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags func (c *SageMaker) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) return out, req.Send() } // ListTagsWithContext is the same as ListTags with the addition of // the ability to pass a context and additional request options. // // See ListTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTagsPages iterates over the pages of a ListTags operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTags method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTags operation. // pageNum := 0 // err := client.ListTagsPages(params, // func(page *sagemaker.ListTagsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error { return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListTagsPagesWithContext same as ListTagsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTagsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTagsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTagsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTrainingJobs = "ListTrainingJobs" // ListTrainingJobsRequest generates a "aws/request.Request" representing the // client's request for the ListTrainingJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTrainingJobs for more information on using the ListTrainingJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTrainingJobsRequest method. // req, resp := client.ListTrainingJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs func (c *SageMaker) ListTrainingJobsRequest(input *ListTrainingJobsInput) (req *request.Request, output *ListTrainingJobsOutput) { op := &request.Operation{ Name: opListTrainingJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTrainingJobsInput{} } output = &ListTrainingJobsOutput{} req = c.newRequest(op, input, output) return } // ListTrainingJobs API operation for Amazon SageMaker Service. // // Lists training jobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListTrainingJobs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs func (c *SageMaker) ListTrainingJobs(input *ListTrainingJobsInput) (*ListTrainingJobsOutput, error) { req, out := c.ListTrainingJobsRequest(input) return out, req.Send() } // ListTrainingJobsWithContext is the same as ListTrainingJobs with the addition of // the ability to pass a context and additional request options. // // See ListTrainingJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrainingJobsWithContext(ctx aws.Context, input *ListTrainingJobsInput, opts ...request.Option) (*ListTrainingJobsOutput, error) { req, out := c.ListTrainingJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTrainingJobsPages iterates over the pages of a ListTrainingJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTrainingJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTrainingJobs operation. // pageNum := 0 // err := client.ListTrainingJobsPages(params, // func(page *sagemaker.ListTrainingJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListTrainingJobsPages(input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool) error { return c.ListTrainingJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListTrainingJobsPagesWithContext same as ListTrainingJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrainingJobsPagesWithContext(ctx aws.Context, input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTrainingJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTrainingJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTrainingJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTrainingJobsForHyperParameterTuningJob = "ListTrainingJobsForHyperParameterTuningJob" // ListTrainingJobsForHyperParameterTuningJobRequest generates a "aws/request.Request" representing the // client's request for the ListTrainingJobsForHyperParameterTuningJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTrainingJobsForHyperParameterTuningJob for more information on using the ListTrainingJobsForHyperParameterTuningJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTrainingJobsForHyperParameterTuningJobRequest method. // req, resp := client.ListTrainingJobsForHyperParameterTuningJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobRequest(input *ListTrainingJobsForHyperParameterTuningJobInput) (req *request.Request, output *ListTrainingJobsForHyperParameterTuningJobOutput) { op := &request.Operation{ Name: opListTrainingJobsForHyperParameterTuningJob, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTrainingJobsForHyperParameterTuningJobInput{} } output = &ListTrainingJobsForHyperParameterTuningJobOutput{} req = c.newRequest(op, input, output) return } // ListTrainingJobsForHyperParameterTuningJob API operation for Amazon SageMaker Service. // // Gets a list of TrainingJobSummary objects that describe the training jobs // that a hyperparameter tuning job launched. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListTrainingJobsForHyperParameterTuningJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJob(input *ListTrainingJobsForHyperParameterTuningJobInput) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) return out, req.Send() } // ListTrainingJobsForHyperParameterTuningJobWithContext is the same as ListTrainingJobsForHyperParameterTuningJob with the addition of // the ability to pass a context and additional request options. // // See ListTrainingJobsForHyperParameterTuningJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, opts ...request.Option) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTrainingJobsForHyperParameterTuningJobPages iterates over the pages of a ListTrainingJobsForHyperParameterTuningJob operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTrainingJobsForHyperParameterTuningJob method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTrainingJobsForHyperParameterTuningJob operation. // pageNum := 0 // err := client.ListTrainingJobsForHyperParameterTuningJobPages(params, // func(page *sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPages(input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool) error { return c.ListTrainingJobsForHyperParameterTuningJobPagesWithContext(aws.BackgroundContext(), input, fn) } // ListTrainingJobsForHyperParameterTuningJobPagesWithContext same as ListTrainingJobsForHyperParameterTuningJobPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTrainingJobsForHyperParameterTuningJobInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTrainingJobsForHyperParameterTuningJobRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTrainingJobsForHyperParameterTuningJobOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTransformJobs = "ListTransformJobs" // ListTransformJobsRequest generates a "aws/request.Request" representing the // client's request for the ListTransformJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTransformJobs for more information on using the ListTransformJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTransformJobsRequest method. // req, resp := client.ListTransformJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs func (c *SageMaker) ListTransformJobsRequest(input *ListTransformJobsInput) (req *request.Request, output *ListTransformJobsOutput) { op := &request.Operation{ Name: opListTransformJobs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTransformJobsInput{} } output = &ListTransformJobsOutput{} req = c.newRequest(op, input, output) return } // ListTransformJobs API operation for Amazon SageMaker Service. // // Lists transform jobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListTransformJobs for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs func (c *SageMaker) ListTransformJobs(input *ListTransformJobsInput) (*ListTransformJobsOutput, error) { req, out := c.ListTransformJobsRequest(input) return out, req.Send() } // ListTransformJobsWithContext is the same as ListTransformJobs with the addition of // the ability to pass a context and additional request options. // // See ListTransformJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTransformJobsWithContext(ctx aws.Context, input *ListTransformJobsInput, opts ...request.Option) (*ListTransformJobsOutput, error) { req, out := c.ListTransformJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTransformJobsPages iterates over the pages of a ListTransformJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTransformJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTransformJobs operation. // pageNum := 0 // err := client.ListTransformJobsPages(params, // func(page *sagemaker.ListTransformJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListTransformJobsPages(input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool) error { return c.ListTransformJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListTransformJobsPagesWithContext same as ListTransformJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTransformJobsPagesWithContext(ctx aws.Context, input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTransformJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTransformJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTransformJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTrialComponents = "ListTrialComponents" // ListTrialComponentsRequest generates a "aws/request.Request" representing the // client's request for the ListTrialComponents operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTrialComponents for more information on using the ListTrialComponents // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTrialComponentsRequest method. // req, resp := client.ListTrialComponentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrialComponents func (c *SageMaker) ListTrialComponentsRequest(input *ListTrialComponentsInput) (req *request.Request, output *ListTrialComponentsOutput) { op := &request.Operation{ Name: opListTrialComponents, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTrialComponentsInput{} } output = &ListTrialComponentsOutput{} req = c.newRequest(op, input, output) return } // ListTrialComponents API operation for Amazon SageMaker Service. // // Lists the trial components in your account. You can sort the list by trial // component name or creation time. You can filter the list to show only components // that were created in a specific time range. You can also filter on one of // the following: // // * ExperimentName // // * SourceArn // // * TrialName // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListTrialComponents for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrialComponents func (c *SageMaker) ListTrialComponents(input *ListTrialComponentsInput) (*ListTrialComponentsOutput, error) { req, out := c.ListTrialComponentsRequest(input) return out, req.Send() } // ListTrialComponentsWithContext is the same as ListTrialComponents with the addition of // the ability to pass a context and additional request options. // // See ListTrialComponents for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrialComponentsWithContext(ctx aws.Context, input *ListTrialComponentsInput, opts ...request.Option) (*ListTrialComponentsOutput, error) { req, out := c.ListTrialComponentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTrialComponentsPages iterates over the pages of a ListTrialComponents operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTrialComponents method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTrialComponents operation. // pageNum := 0 // err := client.ListTrialComponentsPages(params, // func(page *sagemaker.ListTrialComponentsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListTrialComponentsPages(input *ListTrialComponentsInput, fn func(*ListTrialComponentsOutput, bool) bool) error { return c.ListTrialComponentsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListTrialComponentsPagesWithContext same as ListTrialComponentsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrialComponentsPagesWithContext(ctx aws.Context, input *ListTrialComponentsInput, fn func(*ListTrialComponentsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTrialComponentsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTrialComponentsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTrialComponentsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTrials = "ListTrials" // ListTrialsRequest generates a "aws/request.Request" representing the // client's request for the ListTrials operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTrials for more information on using the ListTrials // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTrialsRequest method. // req, resp := client.ListTrialsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrials func (c *SageMaker) ListTrialsRequest(input *ListTrialsInput) (req *request.Request, output *ListTrialsOutput) { op := &request.Operation{ Name: opListTrials, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTrialsInput{} } output = &ListTrialsOutput{} req = c.newRequest(op, input, output) return } // ListTrials API operation for Amazon SageMaker Service. // // Lists the trials in your account. Specify an experiment name to limit the // list to the trials that are part of that experiment. Specify a trial component // name to limit the list to the trials that associated with that trial component. // The list can be filtered to show only trials that were created in a specific // time range. The list can be sorted by trial name or creation time. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListTrials for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrials func (c *SageMaker) ListTrials(input *ListTrialsInput) (*ListTrialsOutput, error) { req, out := c.ListTrialsRequest(input) return out, req.Send() } // ListTrialsWithContext is the same as ListTrials with the addition of // the ability to pass a context and additional request options. // // See ListTrials for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrialsWithContext(ctx aws.Context, input *ListTrialsInput, opts ...request.Option) (*ListTrialsOutput, error) { req, out := c.ListTrialsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTrialsPages iterates over the pages of a ListTrials operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTrials method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTrials operation. // pageNum := 0 // err := client.ListTrialsPages(params, // func(page *sagemaker.ListTrialsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListTrialsPages(input *ListTrialsInput, fn func(*ListTrialsOutput, bool) bool) error { return c.ListTrialsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListTrialsPagesWithContext same as ListTrialsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListTrialsPagesWithContext(ctx aws.Context, input *ListTrialsInput, fn func(*ListTrialsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTrialsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTrialsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTrialsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListUserProfiles = "ListUserProfiles" // ListUserProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListUserProfiles operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListUserProfiles for more information on using the ListUserProfiles // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListUserProfilesRequest method. // req, resp := client.ListUserProfilesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListUserProfiles func (c *SageMaker) ListUserProfilesRequest(input *ListUserProfilesInput) (req *request.Request, output *ListUserProfilesOutput) { op := &request.Operation{ Name: opListUserProfiles, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListUserProfilesInput{} } output = &ListUserProfilesOutput{} req = c.newRequest(op, input, output) return } // ListUserProfiles API operation for Amazon SageMaker Service. // // Lists user profiles. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListUserProfiles for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListUserProfiles func (c *SageMaker) ListUserProfiles(input *ListUserProfilesInput) (*ListUserProfilesOutput, error) { req, out := c.ListUserProfilesRequest(input) return out, req.Send() } // ListUserProfilesWithContext is the same as ListUserProfiles with the addition of // the ability to pass a context and additional request options. // // See ListUserProfiles for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListUserProfilesWithContext(ctx aws.Context, input *ListUserProfilesInput, opts ...request.Option) (*ListUserProfilesOutput, error) { req, out := c.ListUserProfilesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListUserProfilesPages iterates over the pages of a ListUserProfiles operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListUserProfiles method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListUserProfiles operation. // pageNum := 0 // err := client.ListUserProfilesPages(params, // func(page *sagemaker.ListUserProfilesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListUserProfilesPages(input *ListUserProfilesInput, fn func(*ListUserProfilesOutput, bool) bool) error { return c.ListUserProfilesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListUserProfilesPagesWithContext same as ListUserProfilesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListUserProfilesPagesWithContext(ctx aws.Context, input *ListUserProfilesInput, fn func(*ListUserProfilesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListUserProfilesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListUserProfilesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListUserProfilesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListWorkforces = "ListWorkforces" // ListWorkforcesRequest generates a "aws/request.Request" representing the // client's request for the ListWorkforces operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListWorkforces for more information on using the ListWorkforces // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListWorkforcesRequest method. // req, resp := client.ListWorkforcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkforces func (c *SageMaker) ListWorkforcesRequest(input *ListWorkforcesInput) (req *request.Request, output *ListWorkforcesOutput) { op := &request.Operation{ Name: opListWorkforces, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListWorkforcesInput{} } output = &ListWorkforcesOutput{} req = c.newRequest(op, input, output) return } // ListWorkforces API operation for Amazon SageMaker Service. // // Use this operation to list all private and vendor workforces in an AWS Region. // Note that you can only have one private workforce per AWS Region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListWorkforces for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkforces func (c *SageMaker) ListWorkforces(input *ListWorkforcesInput) (*ListWorkforcesOutput, error) { req, out := c.ListWorkforcesRequest(input) return out, req.Send() } // ListWorkforcesWithContext is the same as ListWorkforces with the addition of // the ability to pass a context and additional request options. // // See ListWorkforces for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListWorkforcesWithContext(ctx aws.Context, input *ListWorkforcesInput, opts ...request.Option) (*ListWorkforcesOutput, error) { req, out := c.ListWorkforcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListWorkforcesPages iterates over the pages of a ListWorkforces operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListWorkforces method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListWorkforces operation. // pageNum := 0 // err := client.ListWorkforcesPages(params, // func(page *sagemaker.ListWorkforcesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListWorkforcesPages(input *ListWorkforcesInput, fn func(*ListWorkforcesOutput, bool) bool) error { return c.ListWorkforcesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListWorkforcesPagesWithContext same as ListWorkforcesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListWorkforcesPagesWithContext(ctx aws.Context, input *ListWorkforcesInput, fn func(*ListWorkforcesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListWorkforcesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListWorkforcesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListWorkforcesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListWorkteams = "ListWorkteams" // ListWorkteamsRequest generates a "aws/request.Request" representing the // client's request for the ListWorkteams operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListWorkteams for more information on using the ListWorkteams // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListWorkteamsRequest method. // req, resp := client.ListWorkteamsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams func (c *SageMaker) ListWorkteamsRequest(input *ListWorkteamsInput) (req *request.Request, output *ListWorkteamsOutput) { op := &request.Operation{ Name: opListWorkteams, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListWorkteamsInput{} } output = &ListWorkteamsOutput{} req = c.newRequest(op, input, output) return } // ListWorkteams API operation for Amazon SageMaker Service. // // Gets a list of private work teams that you have defined in a region. The // list may be empty if no work team satisfies the filter specified in the NameContains // parameter. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListWorkteams for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams func (c *SageMaker) ListWorkteams(input *ListWorkteamsInput) (*ListWorkteamsOutput, error) { req, out := c.ListWorkteamsRequest(input) return out, req.Send() } // ListWorkteamsWithContext is the same as ListWorkteams with the addition of // the ability to pass a context and additional request options. // // See ListWorkteams for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListWorkteamsWithContext(ctx aws.Context, input *ListWorkteamsInput, opts ...request.Option) (*ListWorkteamsOutput, error) { req, out := c.ListWorkteamsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListWorkteamsPages iterates over the pages of a ListWorkteams operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListWorkteams method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListWorkteams operation. // pageNum := 0 // err := client.ListWorkteamsPages(params, // func(page *sagemaker.ListWorkteamsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) ListWorkteamsPages(input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool) error { return c.ListWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListWorkteamsPagesWithContext same as ListWorkteamsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) ListWorkteamsPagesWithContext(ctx aws.Context, input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListWorkteamsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListWorkteamsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListWorkteamsOutput), !p.HasNextPage()) { break } } return p.Err() } const opRenderUiTemplate = "RenderUiTemplate" // RenderUiTemplateRequest generates a "aws/request.Request" representing the // client's request for the RenderUiTemplate operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See RenderUiTemplate for more information on using the RenderUiTemplate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the RenderUiTemplateRequest method. // req, resp := client.RenderUiTemplateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate func (c *SageMaker) RenderUiTemplateRequest(input *RenderUiTemplateInput) (req *request.Request, output *RenderUiTemplateOutput) { op := &request.Operation{ Name: opRenderUiTemplate, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &RenderUiTemplateInput{} } output = &RenderUiTemplateOutput{} req = c.newRequest(op, input, output) return } // RenderUiTemplate API operation for Amazon SageMaker Service. // // Renders the UI template so that you can preview the worker's experience. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation RenderUiTemplate for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate func (c *SageMaker) RenderUiTemplate(input *RenderUiTemplateInput) (*RenderUiTemplateOutput, error) { req, out := c.RenderUiTemplateRequest(input) return out, req.Send() } // RenderUiTemplateWithContext is the same as RenderUiTemplate with the addition of // the ability to pass a context and additional request options. // // See RenderUiTemplate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) RenderUiTemplateWithContext(ctx aws.Context, input *RenderUiTemplateInput, opts ...request.Option) (*RenderUiTemplateOutput, error) { req, out := c.RenderUiTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSearch = "Search" // SearchRequest generates a "aws/request.Request" representing the // client's request for the Search operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See Search for more information on using the Search // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SearchRequest method. // req, resp := client.SearchRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search func (c *SageMaker) SearchRequest(input *SearchInput) (req *request.Request, output *SearchOutput) { op := &request.Operation{ Name: opSearch, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &SearchInput{} } output = &SearchOutput{} req = c.newRequest(op, input, output) return } // Search API operation for Amazon SageMaker Service. // // Finds Amazon SageMaker resources that match a search query. Matching resources // are returned as a list of SearchRecord objects in the response. You can sort // the search results by any resource property in a ascending or descending // order. // // You can query against the following value types: numeric, text, Boolean, // and timestamp. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation Search for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search func (c *SageMaker) Search(input *SearchInput) (*SearchOutput, error) { req, out := c.SearchRequest(input) return out, req.Send() } // SearchWithContext is the same as Search with the addition of // the ability to pass a context and additional request options. // // See Search for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) SearchWithContext(ctx aws.Context, input *SearchInput, opts ...request.Option) (*SearchOutput, error) { req, out := c.SearchRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // SearchPages iterates over the pages of a Search operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See Search method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a Search operation. // pageNum := 0 // err := client.SearchPages(params, // func(page *sagemaker.SearchOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SageMaker) SearchPages(input *SearchInput, fn func(*SearchOutput, bool) bool) error { return c.SearchPagesWithContext(aws.BackgroundContext(), input, fn) } // SearchPagesWithContext same as SearchPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) SearchPagesWithContext(ctx aws.Context, input *SearchInput, fn func(*SearchOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *SearchInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.SearchRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*SearchOutput), !p.HasNextPage()) { break } } return p.Err() } const opStartMonitoringSchedule = "StartMonitoringSchedule" // StartMonitoringScheduleRequest generates a "aws/request.Request" representing the // client's request for the StartMonitoringSchedule operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartMonitoringSchedule for more information on using the StartMonitoringSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartMonitoringScheduleRequest method. // req, resp := client.StartMonitoringScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartMonitoringSchedule func (c *SageMaker) StartMonitoringScheduleRequest(input *StartMonitoringScheduleInput) (req *request.Request, output *StartMonitoringScheduleOutput) { op := &request.Operation{ Name: opStartMonitoringSchedule, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartMonitoringScheduleInput{} } output = &StartMonitoringScheduleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StartMonitoringSchedule API operation for Amazon SageMaker Service. // // Starts a previously stopped monitoring schedule. // // New monitoring schedules are immediately started after creation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StartMonitoringSchedule for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartMonitoringSchedule func (c *SageMaker) StartMonitoringSchedule(input *StartMonitoringScheduleInput) (*StartMonitoringScheduleOutput, error) { req, out := c.StartMonitoringScheduleRequest(input) return out, req.Send() } // StartMonitoringScheduleWithContext is the same as StartMonitoringSchedule with the addition of // the ability to pass a context and additional request options. // // See StartMonitoringSchedule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StartMonitoringScheduleWithContext(ctx aws.Context, input *StartMonitoringScheduleInput, opts ...request.Option) (*StartMonitoringScheduleOutput, error) { req, out := c.StartMonitoringScheduleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartNotebookInstance = "StartNotebookInstance" // StartNotebookInstanceRequest generates a "aws/request.Request" representing the // client's request for the StartNotebookInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartNotebookInstance for more information on using the StartNotebookInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartNotebookInstanceRequest method. // req, resp := client.StartNotebookInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance func (c *SageMaker) StartNotebookInstanceRequest(input *StartNotebookInstanceInput) (req *request.Request, output *StartNotebookInstanceOutput) { op := &request.Operation{ Name: opStartNotebookInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartNotebookInstanceInput{} } output = &StartNotebookInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StartNotebookInstance API operation for Amazon SageMaker Service. // // Launches an ML compute instance with the latest version of the libraries // and attaches your ML storage volume. After configuring the notebook instance, // Amazon SageMaker sets the notebook instance status to InService. A notebook // instance's status must be InService before you can connect to your Jupyter // notebook. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StartNotebookInstance for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance func (c *SageMaker) StartNotebookInstance(input *StartNotebookInstanceInput) (*StartNotebookInstanceOutput, error) { req, out := c.StartNotebookInstanceRequest(input) return out, req.Send() } // StartNotebookInstanceWithContext is the same as StartNotebookInstance with the addition of // the ability to pass a context and additional request options. // // See StartNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StartNotebookInstanceWithContext(ctx aws.Context, input *StartNotebookInstanceInput, opts ...request.Option) (*StartNotebookInstanceOutput, error) { req, out := c.StartNotebookInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopAutoMLJob = "StopAutoMLJob" // StopAutoMLJobRequest generates a "aws/request.Request" representing the // client's request for the StopAutoMLJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopAutoMLJob for more information on using the StopAutoMLJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopAutoMLJobRequest method. // req, resp := client.StopAutoMLJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopAutoMLJob func (c *SageMaker) StopAutoMLJobRequest(input *StopAutoMLJobInput) (req *request.Request, output *StopAutoMLJobOutput) { op := &request.Operation{ Name: opStopAutoMLJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopAutoMLJobInput{} } output = &StopAutoMLJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopAutoMLJob API operation for Amazon SageMaker Service. // // A method for forcing the termination of a running job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopAutoMLJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopAutoMLJob func (c *SageMaker) StopAutoMLJob(input *StopAutoMLJobInput) (*StopAutoMLJobOutput, error) { req, out := c.StopAutoMLJobRequest(input) return out, req.Send() } // StopAutoMLJobWithContext is the same as StopAutoMLJob with the addition of // the ability to pass a context and additional request options. // // See StopAutoMLJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopAutoMLJobWithContext(ctx aws.Context, input *StopAutoMLJobInput, opts ...request.Option) (*StopAutoMLJobOutput, error) { req, out := c.StopAutoMLJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopCompilationJob = "StopCompilationJob" // StopCompilationJobRequest generates a "aws/request.Request" representing the // client's request for the StopCompilationJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopCompilationJob for more information on using the StopCompilationJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopCompilationJobRequest method. // req, resp := client.StopCompilationJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob func (c *SageMaker) StopCompilationJobRequest(input *StopCompilationJobInput) (req *request.Request, output *StopCompilationJobOutput) { op := &request.Operation{ Name: opStopCompilationJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopCompilationJobInput{} } output = &StopCompilationJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopCompilationJob API operation for Amazon SageMaker Service. // // Stops a model compilation job. // // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This // gracefully shuts the job down. If the job hasn't stopped, it sends the SIGKILL // signal. // // When it receives a StopCompilationJob request, Amazon SageMaker changes the // CompilationJobSummary$CompilationJobStatus of the job to Stopping. After // Amazon SageMaker stops the job, it sets the CompilationJobSummary$CompilationJobStatus // to Stopped. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopCompilationJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob func (c *SageMaker) StopCompilationJob(input *StopCompilationJobInput) (*StopCompilationJobOutput, error) { req, out := c.StopCompilationJobRequest(input) return out, req.Send() } // StopCompilationJobWithContext is the same as StopCompilationJob with the addition of // the ability to pass a context and additional request options. // // See StopCompilationJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopCompilationJobWithContext(ctx aws.Context, input *StopCompilationJobInput, opts ...request.Option) (*StopCompilationJobOutput, error) { req, out := c.StopCompilationJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopHyperParameterTuningJob = "StopHyperParameterTuningJob" // StopHyperParameterTuningJobRequest generates a "aws/request.Request" representing the // client's request for the StopHyperParameterTuningJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopHyperParameterTuningJob for more information on using the StopHyperParameterTuningJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopHyperParameterTuningJobRequest method. // req, resp := client.StopHyperParameterTuningJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob func (c *SageMaker) StopHyperParameterTuningJobRequest(input *StopHyperParameterTuningJobInput) (req *request.Request, output *StopHyperParameterTuningJobOutput) { op := &request.Operation{ Name: opStopHyperParameterTuningJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopHyperParameterTuningJobInput{} } output = &StopHyperParameterTuningJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopHyperParameterTuningJob API operation for Amazon SageMaker Service. // // Stops a running hyperparameter tuning job and all running training jobs that // the tuning job launched. // // All model artifacts output from the training jobs are stored in Amazon Simple // Storage Service (Amazon S3). All data that the training jobs write to Amazon // CloudWatch Logs are still available in CloudWatch. After the tuning job moves // to the Stopped state, it releases all reserved resources for the tuning job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopHyperParameterTuningJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob func (c *SageMaker) StopHyperParameterTuningJob(input *StopHyperParameterTuningJobInput) (*StopHyperParameterTuningJobOutput, error) { req, out := c.StopHyperParameterTuningJobRequest(input) return out, req.Send() } // StopHyperParameterTuningJobWithContext is the same as StopHyperParameterTuningJob with the addition of // the ability to pass a context and additional request options. // // See StopHyperParameterTuningJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopHyperParameterTuningJobWithContext(ctx aws.Context, input *StopHyperParameterTuningJobInput, opts ...request.Option) (*StopHyperParameterTuningJobOutput, error) { req, out := c.StopHyperParameterTuningJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopLabelingJob = "StopLabelingJob" // StopLabelingJobRequest generates a "aws/request.Request" representing the // client's request for the StopLabelingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopLabelingJob for more information on using the StopLabelingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopLabelingJobRequest method. // req, resp := client.StopLabelingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob func (c *SageMaker) StopLabelingJobRequest(input *StopLabelingJobInput) (req *request.Request, output *StopLabelingJobOutput) { op := &request.Operation{ Name: opStopLabelingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopLabelingJobInput{} } output = &StopLabelingJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopLabelingJob API operation for Amazon SageMaker Service. // // Stops a running labeling job. A job that is stopped cannot be restarted. // Any results obtained before the job is stopped are placed in the Amazon S3 // output bucket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopLabelingJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob func (c *SageMaker) StopLabelingJob(input *StopLabelingJobInput) (*StopLabelingJobOutput, error) { req, out := c.StopLabelingJobRequest(input) return out, req.Send() } // StopLabelingJobWithContext is the same as StopLabelingJob with the addition of // the ability to pass a context and additional request options. // // See StopLabelingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopLabelingJobWithContext(ctx aws.Context, input *StopLabelingJobInput, opts ...request.Option) (*StopLabelingJobOutput, error) { req, out := c.StopLabelingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopMonitoringSchedule = "StopMonitoringSchedule" // StopMonitoringScheduleRequest generates a "aws/request.Request" representing the // client's request for the StopMonitoringSchedule operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopMonitoringSchedule for more information on using the StopMonitoringSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopMonitoringScheduleRequest method. // req, resp := client.StopMonitoringScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopMonitoringSchedule func (c *SageMaker) StopMonitoringScheduleRequest(input *StopMonitoringScheduleInput) (req *request.Request, output *StopMonitoringScheduleOutput) { op := &request.Operation{ Name: opStopMonitoringSchedule, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopMonitoringScheduleInput{} } output = &StopMonitoringScheduleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopMonitoringSchedule API operation for Amazon SageMaker Service. // // Stops a previously started monitoring schedule. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopMonitoringSchedule for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopMonitoringSchedule func (c *SageMaker) StopMonitoringSchedule(input *StopMonitoringScheduleInput) (*StopMonitoringScheduleOutput, error) { req, out := c.StopMonitoringScheduleRequest(input) return out, req.Send() } // StopMonitoringScheduleWithContext is the same as StopMonitoringSchedule with the addition of // the ability to pass a context and additional request options. // // See StopMonitoringSchedule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopMonitoringScheduleWithContext(ctx aws.Context, input *StopMonitoringScheduleInput, opts ...request.Option) (*StopMonitoringScheduleOutput, error) { req, out := c.StopMonitoringScheduleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopNotebookInstance = "StopNotebookInstance" // StopNotebookInstanceRequest generates a "aws/request.Request" representing the // client's request for the StopNotebookInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopNotebookInstance for more information on using the StopNotebookInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopNotebookInstanceRequest method. // req, resp := client.StopNotebookInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance func (c *SageMaker) StopNotebookInstanceRequest(input *StopNotebookInstanceInput) (req *request.Request, output *StopNotebookInstanceOutput) { op := &request.Operation{ Name: opStopNotebookInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopNotebookInstanceInput{} } output = &StopNotebookInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopNotebookInstance API operation for Amazon SageMaker Service. // // Terminates the ML compute instance. Before terminating the instance, Amazon // SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves // the ML storage volume. Amazon SageMaker stops charging you for the ML compute // instance when you call StopNotebookInstance. // // To access data on the ML storage volume for a notebook instance that has // been terminated, call the StartNotebookInstance API. StartNotebookInstance // launches another ML compute instance, configures it, and attaches the preserved // ML storage volume so you can continue your work. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopNotebookInstance for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance func (c *SageMaker) StopNotebookInstance(input *StopNotebookInstanceInput) (*StopNotebookInstanceOutput, error) { req, out := c.StopNotebookInstanceRequest(input) return out, req.Send() } // StopNotebookInstanceWithContext is the same as StopNotebookInstance with the addition of // the ability to pass a context and additional request options. // // See StopNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopNotebookInstanceWithContext(ctx aws.Context, input *StopNotebookInstanceInput, opts ...request.Option) (*StopNotebookInstanceOutput, error) { req, out := c.StopNotebookInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopProcessingJob = "StopProcessingJob" // StopProcessingJobRequest generates a "aws/request.Request" representing the // client's request for the StopProcessingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopProcessingJob for more information on using the StopProcessingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopProcessingJobRequest method. // req, resp := client.StopProcessingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopProcessingJob func (c *SageMaker) StopProcessingJobRequest(input *StopProcessingJobInput) (req *request.Request, output *StopProcessingJobOutput) { op := &request.Operation{ Name: opStopProcessingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopProcessingJobInput{} } output = &StopProcessingJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopProcessingJob API operation for Amazon SageMaker Service. // // Stops a processing job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopProcessingJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopProcessingJob func (c *SageMaker) StopProcessingJob(input *StopProcessingJobInput) (*StopProcessingJobOutput, error) { req, out := c.StopProcessingJobRequest(input) return out, req.Send() } // StopProcessingJobWithContext is the same as StopProcessingJob with the addition of // the ability to pass a context and additional request options. // // See StopProcessingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopProcessingJobWithContext(ctx aws.Context, input *StopProcessingJobInput, opts ...request.Option) (*StopProcessingJobOutput, error) { req, out := c.StopProcessingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopTrainingJob = "StopTrainingJob" // StopTrainingJobRequest generates a "aws/request.Request" representing the // client's request for the StopTrainingJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopTrainingJob for more information on using the StopTrainingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopTrainingJobRequest method. // req, resp := client.StopTrainingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob func (c *SageMaker) StopTrainingJobRequest(input *StopTrainingJobInput) (req *request.Request, output *StopTrainingJobOutput) { op := &request.Operation{ Name: opStopTrainingJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopTrainingJobInput{} } output = &StopTrainingJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopTrainingJob API operation for Amazon SageMaker Service. // // Stops a training job. To stop a job, Amazon SageMaker sends the algorithm // the SIGTERM signal, which delays job termination for 120 seconds. Algorithms // might use this 120-second window to save the model artifacts, so the results // of the training is not lost. // // When it receives a StopTrainingJob request, Amazon SageMaker changes the // status of the job to Stopping. After Amazon SageMaker stops the job, it sets // the status to Stopped. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopTrainingJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob func (c *SageMaker) StopTrainingJob(input *StopTrainingJobInput) (*StopTrainingJobOutput, error) { req, out := c.StopTrainingJobRequest(input) return out, req.Send() } // StopTrainingJobWithContext is the same as StopTrainingJob with the addition of // the ability to pass a context and additional request options. // // See StopTrainingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopTrainingJobWithContext(ctx aws.Context, input *StopTrainingJobInput, opts ...request.Option) (*StopTrainingJobOutput, error) { req, out := c.StopTrainingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopTransformJob = "StopTransformJob" // StopTransformJobRequest generates a "aws/request.Request" representing the // client's request for the StopTransformJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopTransformJob for more information on using the StopTransformJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopTransformJobRequest method. // req, resp := client.StopTransformJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob func (c *SageMaker) StopTransformJobRequest(input *StopTransformJobInput) (req *request.Request, output *StopTransformJobOutput) { op := &request.Operation{ Name: opStopTransformJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopTransformJobInput{} } output = &StopTransformJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopTransformJob API operation for Amazon SageMaker Service. // // Stops a transform job. // // When Amazon SageMaker receives a StopTransformJob request, the status of // the job changes to Stopping. After Amazon SageMaker stops the job, the status // is set to Stopped. When you stop a transform job before it is completed, // Amazon SageMaker doesn't store the job's output in Amazon S3. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopTransformJob for usage and error information. // // Returned Error Types: // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob func (c *SageMaker) StopTransformJob(input *StopTransformJobInput) (*StopTransformJobOutput, error) { req, out := c.StopTransformJobRequest(input) return out, req.Send() } // StopTransformJobWithContext is the same as StopTransformJob with the addition of // the ability to pass a context and additional request options. // // See StopTransformJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) StopTransformJobWithContext(ctx aws.Context, input *StopTransformJobInput, opts ...request.Option) (*StopTransformJobOutput, error) { req, out := c.StopTransformJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateCodeRepository = "UpdateCodeRepository" // UpdateCodeRepositoryRequest generates a "aws/request.Request" representing the // client's request for the UpdateCodeRepository operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateCodeRepository for more information on using the UpdateCodeRepository // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateCodeRepositoryRequest method. // req, resp := client.UpdateCodeRepositoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository func (c *SageMaker) UpdateCodeRepositoryRequest(input *UpdateCodeRepositoryInput) (req *request.Request, output *UpdateCodeRepositoryOutput) { op := &request.Operation{ Name: opUpdateCodeRepository, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateCodeRepositoryInput{} } output = &UpdateCodeRepositoryOutput{} req = c.newRequest(op, input, output) return } // UpdateCodeRepository API operation for Amazon SageMaker Service. // // Updates the specified Git repository with the specified values. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateCodeRepository for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository func (c *SageMaker) UpdateCodeRepository(input *UpdateCodeRepositoryInput) (*UpdateCodeRepositoryOutput, error) { req, out := c.UpdateCodeRepositoryRequest(input) return out, req.Send() } // UpdateCodeRepositoryWithContext is the same as UpdateCodeRepository with the addition of // the ability to pass a context and additional request options. // // See UpdateCodeRepository for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateCodeRepositoryWithContext(ctx aws.Context, input *UpdateCodeRepositoryInput, opts ...request.Option) (*UpdateCodeRepositoryOutput, error) { req, out := c.UpdateCodeRepositoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateDomain = "UpdateDomain" // UpdateDomainRequest generates a "aws/request.Request" representing the // client's request for the UpdateDomain operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateDomain for more information on using the UpdateDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateDomainRequest method. // req, resp := client.UpdateDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateDomain func (c *SageMaker) UpdateDomainRequest(input *UpdateDomainInput) (req *request.Request, output *UpdateDomainOutput) { op := &request.Operation{ Name: opUpdateDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateDomainInput{} } output = &UpdateDomainOutput{} req = c.newRequest(op, input, output) return } // UpdateDomain API operation for Amazon SageMaker Service. // // Updates the default settings for new user profiles in the domain. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateDomain for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateDomain func (c *SageMaker) UpdateDomain(input *UpdateDomainInput) (*UpdateDomainOutput, error) { req, out := c.UpdateDomainRequest(input) return out, req.Send() } // UpdateDomainWithContext is the same as UpdateDomain with the addition of // the ability to pass a context and additional request options. // // See UpdateDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateDomainWithContext(ctx aws.Context, input *UpdateDomainInput, opts ...request.Option) (*UpdateDomainOutput, error) { req, out := c.UpdateDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateEndpoint = "UpdateEndpoint" // UpdateEndpointRequest generates a "aws/request.Request" representing the // client's request for the UpdateEndpoint operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateEndpoint for more information on using the UpdateEndpoint // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateEndpointRequest method. // req, resp := client.UpdateEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) { op := &request.Operation{ Name: opUpdateEndpoint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateEndpointInput{} } output = &UpdateEndpointOutput{} req = c.newRequest(op, input, output) return } // UpdateEndpoint API operation for Amazon SageMaker Service. // // Deploys the new EndpointConfig specified in the request, switches to using // newly created endpoint, and then deletes resources provisioned for the endpoint // using the previous EndpointConfig (there is no availability loss). // // When Amazon SageMaker receives the request, it sets the endpoint status to // Updating. After updating the endpoint, it sets the status to InService. To // check the status of an endpoint, use the DescribeEndpoint API. // // You must not delete an EndpointConfig in use by an endpoint that is live // or while the UpdateEndpoint or CreateEndpoint operations are being performed // on the endpoint. To update an endpoint, you must create a new EndpointConfig. // // If you delete the EndpointConfig of an endpoint that is active or being created // or updated you may lose visibility into the instance type the endpoint is // using. The endpoint must be deleted in order to stop incurring charges. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateEndpoint for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint func (c *SageMaker) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) { req, out := c.UpdateEndpointRequest(input) return out, req.Send() } // UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of // the ability to pass a context and additional request options. // // See UpdateEndpoint for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) { req, out := c.UpdateEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateEndpointWeightsAndCapacities = "UpdateEndpointWeightsAndCapacities" // UpdateEndpointWeightsAndCapacitiesRequest generates a "aws/request.Request" representing the // client's request for the UpdateEndpointWeightsAndCapacities operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateEndpointWeightsAndCapacities for more information on using the UpdateEndpointWeightsAndCapacities // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateEndpointWeightsAndCapacitiesRequest method. // req, resp := client.UpdateEndpointWeightsAndCapacitiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpointWeightsAndCapacitiesInput) (req *request.Request, output *UpdateEndpointWeightsAndCapacitiesOutput) { op := &request.Operation{ Name: opUpdateEndpointWeightsAndCapacities, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateEndpointWeightsAndCapacitiesInput{} } output = &UpdateEndpointWeightsAndCapacitiesOutput{} req = c.newRequest(op, input, output) return } // UpdateEndpointWeightsAndCapacities API operation for Amazon SageMaker Service. // // Updates variant weight of one or more variants associated with an existing // endpoint, or capacity of one variant associated with an existing endpoint. // When it receives the request, Amazon SageMaker sets the endpoint status to // Updating. After updating the endpoint, it sets the status to InService. To // check the status of an endpoint, use the DescribeEndpoint API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateEndpointWeightsAndCapacities for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities func (c *SageMaker) UpdateEndpointWeightsAndCapacities(input *UpdateEndpointWeightsAndCapacitiesInput) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) return out, req.Send() } // UpdateEndpointWeightsAndCapacitiesWithContext is the same as UpdateEndpointWeightsAndCapacities with the addition of // the ability to pass a context and additional request options. // // See UpdateEndpointWeightsAndCapacities for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesWithContext(ctx aws.Context, input *UpdateEndpointWeightsAndCapacitiesInput, opts ...request.Option) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateExperiment = "UpdateExperiment" // UpdateExperimentRequest generates a "aws/request.Request" representing the // client's request for the UpdateExperiment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateExperiment for more information on using the UpdateExperiment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateExperimentRequest method. // req, resp := client.UpdateExperimentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateExperiment func (c *SageMaker) UpdateExperimentRequest(input *UpdateExperimentInput) (req *request.Request, output *UpdateExperimentOutput) { op := &request.Operation{ Name: opUpdateExperiment, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateExperimentInput{} } output = &UpdateExperimentOutput{} req = c.newRequest(op, input, output) return } // UpdateExperiment API operation for Amazon SageMaker Service. // // Adds, updates, or removes the description of an experiment. Updates the display // name of an experiment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateExperiment for usage and error information. // // Returned Error Types: // * ConflictException // There was a conflict when you attempted to modify an experiment, trial, or // trial component. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateExperiment func (c *SageMaker) UpdateExperiment(input *UpdateExperimentInput) (*UpdateExperimentOutput, error) { req, out := c.UpdateExperimentRequest(input) return out, req.Send() } // UpdateExperimentWithContext is the same as UpdateExperiment with the addition of // the ability to pass a context and additional request options. // // See UpdateExperiment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateExperimentWithContext(ctx aws.Context, input *UpdateExperimentInput, opts ...request.Option) (*UpdateExperimentOutput, error) { req, out := c.UpdateExperimentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateMonitoringSchedule = "UpdateMonitoringSchedule" // UpdateMonitoringScheduleRequest generates a "aws/request.Request" representing the // client's request for the UpdateMonitoringSchedule operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateMonitoringSchedule for more information on using the UpdateMonitoringSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateMonitoringScheduleRequest method. // req, resp := client.UpdateMonitoringScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateMonitoringSchedule func (c *SageMaker) UpdateMonitoringScheduleRequest(input *UpdateMonitoringScheduleInput) (req *request.Request, output *UpdateMonitoringScheduleOutput) { op := &request.Operation{ Name: opUpdateMonitoringSchedule, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateMonitoringScheduleInput{} } output = &UpdateMonitoringScheduleOutput{} req = c.newRequest(op, input, output) return } // UpdateMonitoringSchedule API operation for Amazon SageMaker Service. // // Updates a previously created schedule. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateMonitoringSchedule for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateMonitoringSchedule func (c *SageMaker) UpdateMonitoringSchedule(input *UpdateMonitoringScheduleInput) (*UpdateMonitoringScheduleOutput, error) { req, out := c.UpdateMonitoringScheduleRequest(input) return out, req.Send() } // UpdateMonitoringScheduleWithContext is the same as UpdateMonitoringSchedule with the addition of // the ability to pass a context and additional request options. // // See UpdateMonitoringSchedule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateMonitoringScheduleWithContext(ctx aws.Context, input *UpdateMonitoringScheduleInput, opts ...request.Option) (*UpdateMonitoringScheduleOutput, error) { req, out := c.UpdateMonitoringScheduleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateNotebookInstance = "UpdateNotebookInstance" // UpdateNotebookInstanceRequest generates a "aws/request.Request" representing the // client's request for the UpdateNotebookInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateNotebookInstance for more information on using the UpdateNotebookInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateNotebookInstanceRequest method. // req, resp := client.UpdateNotebookInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance func (c *SageMaker) UpdateNotebookInstanceRequest(input *UpdateNotebookInstanceInput) (req *request.Request, output *UpdateNotebookInstanceOutput) { op := &request.Operation{ Name: opUpdateNotebookInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateNotebookInstanceInput{} } output = &UpdateNotebookInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateNotebookInstance API operation for Amazon SageMaker Service. // // Updates a notebook instance. NotebookInstance updates include upgrading or // downgrading the ML compute instance used for your notebook instance to accommodate // changes in your workload requirements. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateNotebookInstance for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance func (c *SageMaker) UpdateNotebookInstance(input *UpdateNotebookInstanceInput) (*UpdateNotebookInstanceOutput, error) { req, out := c.UpdateNotebookInstanceRequest(input) return out, req.Send() } // UpdateNotebookInstanceWithContext is the same as UpdateNotebookInstance with the addition of // the ability to pass a context and additional request options. // // See UpdateNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateNotebookInstanceWithContext(ctx aws.Context, input *UpdateNotebookInstanceInput, opts ...request.Option) (*UpdateNotebookInstanceOutput, error) { req, out := c.UpdateNotebookInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateNotebookInstanceLifecycleConfig = "UpdateNotebookInstanceLifecycleConfig" // UpdateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the // client's request for the UpdateNotebookInstanceLifecycleConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateNotebookInstanceLifecycleConfig for more information on using the UpdateNotebookInstanceLifecycleConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateNotebookInstanceLifecycleConfigRequest method. // req, resp := client.UpdateNotebookInstanceLifecycleConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigRequest(input *UpdateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *UpdateNotebookInstanceLifecycleConfigOutput) { op := &request.Operation{ Name: opUpdateNotebookInstanceLifecycleConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateNotebookInstanceLifecycleConfigInput{} } output = &UpdateNotebookInstanceLifecycleConfigOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. // // Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig // API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateNotebookInstanceLifecycleConfig for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig func (c *SageMaker) UpdateNotebookInstanceLifecycleConfig(input *UpdateNotebookInstanceLifecycleConfigInput) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) return out, req.Send() } // UpdateNotebookInstanceLifecycleConfigWithContext is the same as UpdateNotebookInstanceLifecycleConfig with the addition of // the ability to pass a context and additional request options. // // See UpdateNotebookInstanceLifecycleConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *UpdateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateTrial = "UpdateTrial" // UpdateTrialRequest generates a "aws/request.Request" representing the // client's request for the UpdateTrial operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateTrial for more information on using the UpdateTrial // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateTrialRequest method. // req, resp := client.UpdateTrialRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateTrial func (c *SageMaker) UpdateTrialRequest(input *UpdateTrialInput) (req *request.Request, output *UpdateTrialOutput) { op := &request.Operation{ Name: opUpdateTrial, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateTrialInput{} } output = &UpdateTrialOutput{} req = c.newRequest(op, input, output) return } // UpdateTrial API operation for Amazon SageMaker Service. // // Updates the display name of a trial. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateTrial for usage and error information. // // Returned Error Types: // * ConflictException // There was a conflict when you attempted to modify an experiment, trial, or // trial component. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateTrial func (c *SageMaker) UpdateTrial(input *UpdateTrialInput) (*UpdateTrialOutput, error) { req, out := c.UpdateTrialRequest(input) return out, req.Send() } // UpdateTrialWithContext is the same as UpdateTrial with the addition of // the ability to pass a context and additional request options. // // See UpdateTrial for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateTrialWithContext(ctx aws.Context, input *UpdateTrialInput, opts ...request.Option) (*UpdateTrialOutput, error) { req, out := c.UpdateTrialRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateTrialComponent = "UpdateTrialComponent" // UpdateTrialComponentRequest generates a "aws/request.Request" representing the // client's request for the UpdateTrialComponent operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateTrialComponent for more information on using the UpdateTrialComponent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateTrialComponentRequest method. // req, resp := client.UpdateTrialComponentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateTrialComponent func (c *SageMaker) UpdateTrialComponentRequest(input *UpdateTrialComponentInput) (req *request.Request, output *UpdateTrialComponentOutput) { op := &request.Operation{ Name: opUpdateTrialComponent, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateTrialComponentInput{} } output = &UpdateTrialComponentOutput{} req = c.newRequest(op, input, output) return } // UpdateTrialComponent API operation for Amazon SageMaker Service. // // Updates one or more properties of a trial component. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateTrialComponent for usage and error information. // // Returned Error Types: // * ConflictException // There was a conflict when you attempted to modify an experiment, trial, or // trial component. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateTrialComponent func (c *SageMaker) UpdateTrialComponent(input *UpdateTrialComponentInput) (*UpdateTrialComponentOutput, error) { req, out := c.UpdateTrialComponentRequest(input) return out, req.Send() } // UpdateTrialComponentWithContext is the same as UpdateTrialComponent with the addition of // the ability to pass a context and additional request options. // // See UpdateTrialComponent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateTrialComponentWithContext(ctx aws.Context, input *UpdateTrialComponentInput, opts ...request.Option) (*UpdateTrialComponentOutput, error) { req, out := c.UpdateTrialComponentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateUserProfile = "UpdateUserProfile" // UpdateUserProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateUserProfile for more information on using the UpdateUserProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateUserProfileRequest method. // req, resp := client.UpdateUserProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateUserProfile func (c *SageMaker) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput) { op := &request.Operation{ Name: opUpdateUserProfile, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateUserProfileInput{} } output = &UpdateUserProfileOutput{} req = c.newRequest(op, input, output) return } // UpdateUserProfile API operation for Amazon SageMaker Service. // // Updates a user profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateUserProfile for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // * ResourceInUse // Resource being accessed is in use. // // * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateUserProfile func (c *SageMaker) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) { req, out := c.UpdateUserProfileRequest(input) return out, req.Send() } // UpdateUserProfileWithContext is the same as UpdateUserProfile with the addition of // the ability to pass a context and additional request options. // // See UpdateUserProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateUserProfileWithContext(ctx aws.Context, input *UpdateUserProfileInput, opts ...request.Option) (*UpdateUserProfileOutput, error) { req, out := c.UpdateUserProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateWorkforce = "UpdateWorkforce" // UpdateWorkforceRequest generates a "aws/request.Request" representing the // client's request for the UpdateWorkforce operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateWorkforce for more information on using the UpdateWorkforce // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateWorkforceRequest method. // req, resp := client.UpdateWorkforceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkforce func (c *SageMaker) UpdateWorkforceRequest(input *UpdateWorkforceInput) (req *request.Request, output *UpdateWorkforceOutput) { op := &request.Operation{ Name: opUpdateWorkforce, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateWorkforceInput{} } output = &UpdateWorkforceOutput{} req = c.newRequest(op, input, output) return } // UpdateWorkforce API operation for Amazon SageMaker Service. // // Use this operation to update your workforce. You can use this operation to // require that workers use specific IP addresses to work on tasks and to update // your OpenID Connect (OIDC) Identity Provider (IdP) workforce configuration. // // Use SourceIpConfig to restrict worker access to tasks to a specific range // of IP addresses. You specify allowed IP addresses by creating a list of up // to ten CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html). // By default, a workforce isn't restricted to specific IP addresses. If you // specify a range of IP addresses, workers who attempt to access tasks using // any IP address outside the specified range are denied and get a Not Found // error message on the worker portal. // // Use OidcConfig to update the configuration of a workforce created using your // own OIDC IdP. // // You can only update your OIDC IdP configuration when there are no work teams // associated with your workforce. You can delete work teams using the operation. // // After restricting access to a range of IP addresses or updating your OIDC // IdP configuration with this operation, you can view details about your update // workforce using the operation. // // This operation only applies to private workforces. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateWorkforce for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkforce func (c *SageMaker) UpdateWorkforce(input *UpdateWorkforceInput) (*UpdateWorkforceOutput, error) { req, out := c.UpdateWorkforceRequest(input) return out, req.Send() } // UpdateWorkforceWithContext is the same as UpdateWorkforce with the addition of // the ability to pass a context and additional request options. // // See UpdateWorkforce for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateWorkforceWithContext(ctx aws.Context, input *UpdateWorkforceInput, opts ...request.Option) (*UpdateWorkforceOutput, error) { req, out := c.UpdateWorkforceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateWorkteam = "UpdateWorkteam" // UpdateWorkteamRequest generates a "aws/request.Request" representing the // client's request for the UpdateWorkteam operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateWorkteam for more information on using the UpdateWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateWorkteamRequest method. // req, resp := client.UpdateWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam func (c *SageMaker) UpdateWorkteamRequest(input *UpdateWorkteamInput) (req *request.Request, output *UpdateWorkteamOutput) { op := &request.Operation{ Name: opUpdateWorkteam, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateWorkteamInput{} } output = &UpdateWorkteamOutput{} req = c.newRequest(op, input, output) return } // UpdateWorkteam API operation for Amazon SageMaker Service. // // Updates an existing work team with new member definitions or description. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateWorkteam for usage and error information. // // Returned Error Types: // * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam func (c *SageMaker) UpdateWorkteam(input *UpdateWorkteamInput) (*UpdateWorkteamOutput, error) { req, out := c.UpdateWorkteamRequest(input) return out, req.Send() } // UpdateWorkteamWithContext is the same as UpdateWorkteam with the addition of // the ability to pass a context and additional request options. // // See UpdateWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SageMaker) UpdateWorkteamWithContext(ctx aws.Context, input *UpdateWorkteamInput, opts ...request.Option) (*UpdateWorkteamOutput, error) { req, out := c.UpdateWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } type AddTagsInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource that you want to tag. // // ResourceArn is a required field ResourceArn *string `type:"string" required:"true"` // An array of Tag objects. Each tag is a key-value pair. Only the key parameter // is required. If you don't specify a value, Amazon SageMaker sets the value // to an empty string. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` } // String returns the string representation func (s AddTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AddTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AddTagsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *AddTagsInput) SetResourceArn(v string) *AddTagsInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { s.Tags = v return s } type AddTagsOutput struct { _ struct{} `type:"structure"` // A list of tags associated with the Amazon SageMaker resource. Tags []*Tag `type:"list"` } // String returns the string representation func (s AddTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AddTagsOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *AddTagsOutput) SetTags(v []*Tag) *AddTagsOutput { s.Tags = v return s } // Specifies the training algorithm to use in a CreateTrainingJob request. // // For more information about algorithms provided by Amazon SageMaker, see Algorithms // (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). For information // about using your own algorithms, see Using Your Own Algorithms with Amazon // SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). type AlgorithmSpecification struct { _ struct{} `type:"structure"` // The name of the algorithm resource to use for the training job. This must // be an algorithm resource that you created or subscribe to on AWS Marketplace. // If you specify a value for this parameter, you can't specify a value for // TrainingImage. AlgorithmName *string `min:"1" type:"string"` // To generate and save time-series metrics during training, set to true. The // default is false and time-series metrics aren't generated except in the following // cases: // // * You use one of the Amazon SageMaker built-in algorithms // // * You use one of the following Prebuilt Amazon SageMaker Docker Images // (https://docs.aws.amazon.com/sagemaker/latest/dg/pre-built-containers-frameworks-deep-learning.html): // Tensorflow (version >= 1.15) MXNet (version >= 1.6) PyTorch (version >= // 1.3) // // * You specify at least one MetricDefinition EnableSageMakerMetricsTimeSeries *bool `type:"boolean"` // A list of metric definition objects. Each object specifies the metric name // and regular expressions used to parse algorithm logs. Amazon SageMaker publishes // each metric to Amazon CloudWatch. MetricDefinitions []*MetricDefinition `type:"list"` // The registry path of the Docker image that contains the training algorithm. // For information about docker registry paths for built-in algorithms, see // Algorithms Provided by Amazon SageMaker: Common Parameters (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html). // Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] // image path formats. For more information, see Using Your Own Algorithms with // Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). TrainingImage *string `type:"string"` // The input mode that the algorithm supports. For the input modes that Amazon // SageMaker algorithms support, see Algorithms (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). // If an algorithm supports the File input mode, Amazon SageMaker downloads // the training data from S3 to the provisioned ML storage Volume, and mounts // the directory to docker volume for training container. If an algorithm supports // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the // container. // // In File mode, make sure you provision ML storage volume with sufficient capacity // to accommodate the data download from S3. In addition to the training data, // the ML storage volume also stores the output model. The algorithm container // use ML storage volume to also store intermediate information, if any. // // For distributed algorithms using File mode, training data is distributed // uniformly, and your training duration is predictable if the input data objects // size is approximately same. Amazon SageMaker does not split the files any // further for model training. If the object sizes are skewed, training won't // be optimal as the data distribution is also skewed where one host in a training // cluster is overloaded, thus becoming bottleneck in training. // // TrainingInputMode is a required field TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` } // String returns the string representation func (s AlgorithmSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AlgorithmSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AlgorithmSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AlgorithmSpecification"} if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) } if s.TrainingInputMode == nil { invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) } if s.MetricDefinitions != nil { for i, v := range s.MetricDefinitions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmName sets the AlgorithmName field's value. func (s *AlgorithmSpecification) SetAlgorithmName(v string) *AlgorithmSpecification { s.AlgorithmName = &v return s } // SetEnableSageMakerMetricsTimeSeries sets the EnableSageMakerMetricsTimeSeries field's value. func (s *AlgorithmSpecification) SetEnableSageMakerMetricsTimeSeries(v bool) *AlgorithmSpecification { s.EnableSageMakerMetricsTimeSeries = &v return s } // SetMetricDefinitions sets the MetricDefinitions field's value. func (s *AlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *AlgorithmSpecification { s.MetricDefinitions = v return s } // SetTrainingImage sets the TrainingImage field's value. func (s *AlgorithmSpecification) SetTrainingImage(v string) *AlgorithmSpecification { s.TrainingImage = &v return s } // SetTrainingInputMode sets the TrainingInputMode field's value. func (s *AlgorithmSpecification) SetTrainingInputMode(v string) *AlgorithmSpecification { s.TrainingInputMode = &v return s } // Specifies the validation and image scan statuses of the algorithm. type AlgorithmStatusDetails struct { _ struct{} `type:"structure"` // The status of the scan of the algorithm's Docker image container. ImageScanStatuses []*AlgorithmStatusItem `type:"list"` // The status of algorithm validation. ValidationStatuses []*AlgorithmStatusItem `type:"list"` } // String returns the string representation func (s AlgorithmStatusDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AlgorithmStatusDetails) GoString() string { return s.String() } // SetImageScanStatuses sets the ImageScanStatuses field's value. func (s *AlgorithmStatusDetails) SetImageScanStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails { s.ImageScanStatuses = v return s } // SetValidationStatuses sets the ValidationStatuses field's value. func (s *AlgorithmStatusDetails) SetValidationStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails { s.ValidationStatuses = v return s } // Represents the overall status of an algorithm. type AlgorithmStatusItem struct { _ struct{} `type:"structure"` // if the overall status is Failed, the reason for the failure. FailureReason *string `type:"string"` // The name of the algorithm for which the overall status is being reported. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The current status. // // Status is a required field Status *string `type:"string" required:"true" enum:"DetailedAlgorithmStatus"` } // String returns the string representation func (s AlgorithmStatusItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AlgorithmStatusItem) GoString() string { return s.String() } // SetFailureReason sets the FailureReason field's value. func (s *AlgorithmStatusItem) SetFailureReason(v string) *AlgorithmStatusItem { s.FailureReason = &v return s } // SetName sets the Name field's value. func (s *AlgorithmStatusItem) SetName(v string) *AlgorithmStatusItem { s.Name = &v return s } // SetStatus sets the Status field's value. func (s *AlgorithmStatusItem) SetStatus(v string) *AlgorithmStatusItem { s.Status = &v return s } // Provides summary information about an algorithm. type AlgorithmSummary struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the algorithm. // // AlgorithmArn is a required field AlgorithmArn *string `min:"1" type:"string" required:"true"` // A brief description of the algorithm. AlgorithmDescription *string `type:"string"` // The name of the algorithm that is described by the summary. // // AlgorithmName is a required field AlgorithmName *string `min:"1" type:"string" required:"true"` // The overall status of the algorithm. // // AlgorithmStatus is a required field AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"` // A timestamp that shows when the algorithm was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s AlgorithmSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AlgorithmSummary) GoString() string { return s.String() } // SetAlgorithmArn sets the AlgorithmArn field's value. func (s *AlgorithmSummary) SetAlgorithmArn(v string) *AlgorithmSummary { s.AlgorithmArn = &v return s } // SetAlgorithmDescription sets the AlgorithmDescription field's value. func (s *AlgorithmSummary) SetAlgorithmDescription(v string) *AlgorithmSummary { s.AlgorithmDescription = &v return s } // SetAlgorithmName sets the AlgorithmName field's value. func (s *AlgorithmSummary) SetAlgorithmName(v string) *AlgorithmSummary { s.AlgorithmName = &v return s } // SetAlgorithmStatus sets the AlgorithmStatus field's value. func (s *AlgorithmSummary) SetAlgorithmStatus(v string) *AlgorithmSummary { s.AlgorithmStatus = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AlgorithmSummary) SetCreationTime(v time.Time) *AlgorithmSummary { s.CreationTime = &v return s } // Defines a training job and a batch transform job that Amazon SageMaker runs // to validate your algorithm. // // The data provided in the validation profile is made available to your buyers // on AWS Marketplace. type AlgorithmValidationProfile struct { _ struct{} `type:"structure"` // The name of the profile for the algorithm. The name must have 1 to 63 characters. // Valid characters are a-z, A-Z, 0-9, and - (hyphen). // // ProfileName is a required field ProfileName *string `min:"1" type:"string" required:"true"` // The TrainingJobDefinition object that describes the training job that Amazon // SageMaker runs to validate your algorithm. // // TrainingJobDefinition is a required field TrainingJobDefinition *TrainingJobDefinition `type:"structure" required:"true"` // The TransformJobDefinition object that describes the transform job that Amazon // SageMaker runs to validate your algorithm. TransformJobDefinition *TransformJobDefinition `type:"structure"` } // String returns the string representation func (s AlgorithmValidationProfile) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AlgorithmValidationProfile) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AlgorithmValidationProfile) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationProfile"} if s.ProfileName == nil { invalidParams.Add(request.NewErrParamRequired("ProfileName")) } if s.ProfileName != nil && len(*s.ProfileName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1)) } if s.TrainingJobDefinition == nil { invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition")) } if s.TrainingJobDefinition != nil { if err := s.TrainingJobDefinition.Validate(); err != nil { invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams)) } } if s.TransformJobDefinition != nil { if err := s.TransformJobDefinition.Validate(); err != nil { invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetProfileName sets the ProfileName field's value. func (s *AlgorithmValidationProfile) SetProfileName(v string) *AlgorithmValidationProfile { s.ProfileName = &v return s } // SetTrainingJobDefinition sets the TrainingJobDefinition field's value. func (s *AlgorithmValidationProfile) SetTrainingJobDefinition(v *TrainingJobDefinition) *AlgorithmValidationProfile { s.TrainingJobDefinition = v return s } // SetTransformJobDefinition sets the TransformJobDefinition field's value. func (s *AlgorithmValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *AlgorithmValidationProfile { s.TransformJobDefinition = v return s } // Specifies configurations for one or more training jobs that Amazon SageMaker // runs to test the algorithm. type AlgorithmValidationSpecification struct { _ struct{} `type:"structure"` // An array of AlgorithmValidationProfile objects, each of which specifies a // training job and batch transform job that Amazon SageMaker runs to validate // your algorithm. // // ValidationProfiles is a required field ValidationProfiles []*AlgorithmValidationProfile `min:"1" type:"list" required:"true"` // The IAM roles that Amazon SageMaker uses to run the training jobs. // // ValidationRole is a required field ValidationRole *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s AlgorithmValidationSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AlgorithmValidationSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AlgorithmValidationSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationSpecification"} if s.ValidationProfiles == nil { invalidParams.Add(request.NewErrParamRequired("ValidationProfiles")) } if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 { invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1)) } if s.ValidationRole == nil { invalidParams.Add(request.NewErrParamRequired("ValidationRole")) } if s.ValidationRole != nil && len(*s.ValidationRole) < 20 { invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20)) } if s.ValidationProfiles != nil { for i, v := range s.ValidationProfiles { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetValidationProfiles sets the ValidationProfiles field's value. func (s *AlgorithmValidationSpecification) SetValidationProfiles(v []*AlgorithmValidationProfile) *AlgorithmValidationSpecification { s.ValidationProfiles = v return s } // SetValidationRole sets the ValidationRole field's value. func (s *AlgorithmValidationSpecification) SetValidationRole(v string) *AlgorithmValidationSpecification { s.ValidationRole = &v return s } // Configures how labels are consolidated across human workers and processes // output data. type AnnotationConsolidationConfig struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of a Lambda function implements the logic // for annotation consolidation (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html) // and to process output data. // // This parameter is required for all labeling jobs. For built-in task types // (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-task-types.html), use // one of the following Amazon SageMaker Ground Truth Lambda function ARNs for // AnnotationConsolidationLambdaArn. For custom labeling workflows, see Post-annotation // Lambda (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-custom-templates-step3.html#sms-custom-templates-step3-postlambda). // // Bounding box - Finds the most similar boxes from different workers based // on the Jaccard index of the boxes. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-BoundingBox arn:aws:lambda:us-east-2:266458841044:function:ACS-BoundingBox // arn:aws:lambda:us-west-2:081040173940:function:ACS-BoundingBox arn:aws:lambda:eu-west-1:568282634449:function:ACS-BoundingBox // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-BoundingBox arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-BoundingBox // arn:aws:lambda:ap-south-1:565803892007:function:ACS-BoundingBox arn:aws:lambda:eu-central-1:203001061592:function:ACS-BoundingBox // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-BoundingBox arn:aws:lambda:eu-west-2:487402164563:function:ACS-BoundingBox // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-BoundingBox arn:aws:lambda:ca-central-1:918755190332:function:ACS-BoundingBox // // Image classification - Uses a variant of the Expectation Maximization approach // to estimate the true class of an image based on annotations from individual // workers. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-ImageMultiClass arn:aws:lambda:us-east-2:266458841044:function:ACS-ImageMultiClass // arn:aws:lambda:us-west-2:081040173940:function:ACS-ImageMultiClass arn:aws:lambda:eu-west-1:568282634449:function:ACS-ImageMultiClass // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-ImageMultiClass // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-ImageMultiClass // arn:aws:lambda:ap-south-1:565803892007:function:ACS-ImageMultiClass arn:aws:lambda:eu-central-1:203001061592:function:ACS-ImageMultiClass // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-ImageMultiClass // arn:aws:lambda:eu-west-2:487402164563:function:ACS-ImageMultiClass arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-ImageMultiClass // arn:aws:lambda:ca-central-1:918755190332:function:ACS-ImageMultiClass // // Multi-label image classification - Uses a variant of the Expectation Maximization // approach to estimate the true classes of an image based on annotations from // individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:us-east-2:266458841044:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:us-west-2:081040173940:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:eu-west-1:568282634449:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:ap-south-1:565803892007:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:eu-central-1:203001061592:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:eu-west-2:487402164563:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-ImageMultiClassMultiLabel // arn:aws:lambda:ca-central-1:918755190332:function:ACS-ImageMultiClassMultiLabel // // Semantic segmentation - Treats each pixel in an image as a multi-class classification // and treats pixel annotations from workers as "votes" for the correct label. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-SemanticSegmentation // arn:aws:lambda:us-east-2:266458841044:function:ACS-SemanticSegmentation // arn:aws:lambda:us-west-2:081040173940:function:ACS-SemanticSegmentation // arn:aws:lambda:eu-west-1:568282634449:function:ACS-SemanticSegmentation // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-SemanticSegmentation // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-SemanticSegmentation // arn:aws:lambda:ap-south-1:565803892007:function:ACS-SemanticSegmentation // arn:aws:lambda:eu-central-1:203001061592:function:ACS-SemanticSegmentation // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-SemanticSegmentation // arn:aws:lambda:eu-west-2:487402164563:function:ACS-SemanticSegmentation // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-SemanticSegmentation // arn:aws:lambda:ca-central-1:918755190332:function:ACS-SemanticSegmentation // // Text classification - Uses a variant of the Expectation Maximization approach // to estimate the true class of text based on annotations from individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-TextMultiClass arn:aws:lambda:us-east-2:266458841044:function:ACS-TextMultiClass // arn:aws:lambda:us-west-2:081040173940:function:ACS-TextMultiClass arn:aws:lambda:eu-west-1:568282634449:function:ACS-TextMultiClass // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-TextMultiClass // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-TextMultiClass // arn:aws:lambda:ap-south-1:565803892007:function:ACS-TextMultiClass arn:aws:lambda:eu-central-1:203001061592:function:ACS-TextMultiClass // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-TextMultiClass // arn:aws:lambda:eu-west-2:487402164563:function:ACS-TextMultiClass arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-TextMultiClass // arn:aws:lambda:ca-central-1:918755190332:function:ACS-TextMultiClass // // Multi-label text classification - Uses a variant of the Expectation Maximization // approach to estimate the true classes of text based on annotations from individual // workers. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:us-east-2:266458841044:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:us-west-2:081040173940:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:eu-west-1:568282634449:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:ap-south-1:565803892007:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:eu-central-1:203001061592:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:eu-west-2:487402164563:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-TextMultiClassMultiLabel // arn:aws:lambda:ca-central-1:918755190332:function:ACS-TextMultiClassMultiLabel // // Named entity recognition - Groups similar selections and calculates aggregate // boundaries, resolving to most-assigned label. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-NamedEntityRecognition // arn:aws:lambda:us-east-2:266458841044:function:ACS-NamedEntityRecognition // arn:aws:lambda:us-west-2:081040173940:function:ACS-NamedEntityRecognition // arn:aws:lambda:eu-west-1:568282634449:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-south-1:565803892007:function:ACS-NamedEntityRecognition // arn:aws:lambda:eu-central-1:203001061592:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-NamedEntityRecognition // arn:aws:lambda:eu-west-2:487402164563:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-NamedEntityRecognition // arn:aws:lambda:ca-central-1:918755190332:function:ACS-NamedEntityRecognition // // Named entity recognition - Groups similar selections and calculates aggregate // boundaries, resolving to most-assigned label. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-NamedEntityRecognition // arn:aws:lambda:us-east-2:266458841044:function:ACS-NamedEntityRecognition // arn:aws:lambda:us-west-2:081040173940:function:ACS-NamedEntityRecognition // arn:aws:lambda:eu-west-1:568282634449:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-south-1:565803892007:function:ACS-NamedEntityRecognition // arn:aws:lambda:eu-central-1:203001061592:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-NamedEntityRecognition // arn:aws:lambda:eu-west-2:487402164563:function:ACS-NamedEntityRecognition // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-NamedEntityRecognition // arn:aws:lambda:ca-central-1:918755190332:function:ACS-NamedEntityRecognition // // Video Classification - Use this task type when you need workers to classify // videos using predefined labels that you specify. Workers are shown videos // and are asked to choose one label for each video. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-VideoMultiClass arn:aws:lambda:us-east-2:266458841044:function:ACS-VideoMultiClass // arn:aws:lambda:us-west-2:081040173940:function:ACS-VideoMultiClass arn:aws:lambda:eu-west-1:568282634449:function:ACS-VideoMultiClass // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-VideoMultiClass // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-VideoMultiClass // arn:aws:lambda:ap-south-1:565803892007:function:ACS-VideoMultiClass arn:aws:lambda:eu-central-1:203001061592:function:ACS-VideoMultiClass // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-VideoMultiClass // arn:aws:lambda:eu-west-2:487402164563:function:ACS-VideoMultiClass arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-VideoMultiClass // arn:aws:lambda:ca-central-1:918755190332:function:ACS-VideoMultiClass // // Video Frame Object Detection - Use this task type to have workers identify // and locate objects in a sequence of video frames (images extracted from a // video) using bounding boxes. For example, you can use this task to ask workers // to identify and localize various objects in a series of video frames, such // as cars, bikes, and pedestrians. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-VideoObjectDetection // arn:aws:lambda:us-east-2:266458841044:function:ACS-VideoObjectDetection // arn:aws:lambda:us-west-2:081040173940:function:ACS-VideoObjectDetection // arn:aws:lambda:eu-west-1:568282634449:function:ACS-VideoObjectDetection // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-VideoObjectDetection // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-VideoObjectDetection // arn:aws:lambda:ap-south-1:565803892007:function:ACS-VideoObjectDetection // arn:aws:lambda:eu-central-1:203001061592:function:ACS-VideoObjectDetection // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-VideoObjectDetection // arn:aws:lambda:eu-west-2:487402164563:function:ACS-VideoObjectDetection // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-VideoObjectDetection // arn:aws:lambda:ca-central-1:918755190332:function:ACS-VideoObjectDetection // // Video Frame Object Tracking - Use this task type to have workers track the // movement of objects in a sequence of video frames (images extracted from // a video) using bounding boxes. For example, you can use this task to ask // workers to track the movement of objects, such as cars, bikes, and pedestrians. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-VideoObjectTracking // arn:aws:lambda:us-east-2:266458841044:function:ACS-VideoObjectTracking // arn:aws:lambda:us-west-2:081040173940:function:ACS-VideoObjectTracking // arn:aws:lambda:eu-west-1:568282634449:function:ACS-VideoObjectTracking // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-VideoObjectTracking // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-VideoObjectTracking // arn:aws:lambda:ap-south-1:565803892007:function:ACS-VideoObjectTracking // arn:aws:lambda:eu-central-1:203001061592:function:ACS-VideoObjectTracking // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-VideoObjectTracking // arn:aws:lambda:eu-west-2:487402164563:function:ACS-VideoObjectTracking // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-VideoObjectTracking // arn:aws:lambda:ca-central-1:918755190332:function:ACS-VideoObjectTracking // // 3D point cloud object detection - Use this task type when you want workers // to classify objects in a 3D point cloud by drawing 3D cuboids around objects. // For example, you can use this task type to ask workers to identify different // types of objects in a point cloud, such as cars, bikes, and pedestrians. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:us-east-2:266458841044:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:us-west-2:081040173940:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:eu-west-1:568282634449:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:ap-south-1:565803892007:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:eu-central-1:203001061592:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:eu-west-2:487402164563:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-3DPointCloudObjectDetection // arn:aws:lambda:ca-central-1:918755190332:function:ACS-3DPointCloudObjectDetection // // 3D point cloud object tracking - Use this task type when you want workers // to draw 3D cuboids around objects that appear in a sequence of 3D point cloud // frames. For example, you can use this task type to ask workers to track the // movement of vehicles across multiple point cloud frames. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:us-east-2:266458841044:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:us-west-2:081040173940:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:eu-west-1:568282634449:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:ap-south-1:565803892007:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:eu-central-1:203001061592:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:eu-west-2:487402164563:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-3DPointCloudObjectTracking // arn:aws:lambda:ca-central-1:918755190332:function:ACS-3DPointCloudObjectTracking // // 3D point cloud semantic segmentation - Use this task type when you want workers // to create a point-level semantic segmentation masks by painting objects in // a 3D point cloud using different colors where each color is assigned to one // of the classes you specify. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:us-east-2:266458841044:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:us-west-2:081040173940:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:eu-west-1:568282634449:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-south-1:565803892007:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:eu-central-1:203001061592:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:eu-west-2:487402164563:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-3DPointCloudSemanticSegmentation // arn:aws:lambda:ca-central-1:918755190332:function:ACS-3DPointCloudSemanticSegmentation // // Use the following ARNs for Label Verification and Adjustment Jobs // // Use label verification and adjustment jobs to review and adjust labels. To // learn more, see Verify and Adjust Labels (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-verification-data.html). // // Semantic segmentation adjustment - Treats each pixel in an image as a multi-class // classification and treats pixel adjusted annotations from workers as "votes" // for the correct label. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:us-east-2:266458841044:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:us-west-2:081040173940:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:eu-west-1:568282634449:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:ap-south-1:565803892007:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:eu-central-1:203001061592:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:eu-west-2:487402164563:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-AdjustmentSemanticSegmentation // arn:aws:lambda:ca-central-1:918755190332:function:ACS-AdjustmentSemanticSegmentation // // Semantic segmentation verification - Uses a variant of the Expectation Maximization // approach to estimate the true class of verification judgment for semantic // segmentation labels based on annotations from individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:us-east-2:266458841044:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:us-west-2:081040173940:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:eu-west-1:568282634449:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:ap-south-1:565803892007:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:eu-central-1:203001061592:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:eu-west-2:487402164563:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-VerificationSemanticSegmentation // arn:aws:lambda:ca-central-1:918755190332:function:ACS-VerificationSemanticSegmentation // // Bounding box verification - Uses a variant of the Expectation Maximization // approach to estimate the true class of verification judgement for bounding // box labels based on annotations from individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-VerificationBoundingBox // arn:aws:lambda:us-east-2:266458841044:function:ACS-VerificationBoundingBox // arn:aws:lambda:us-west-2:081040173940:function:ACS-VerificationBoundingBox // arn:aws:lambda:eu-west-1:568282634449:function:ACS-VerificationBoundingBox // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-VerificationBoundingBox // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-VerificationBoundingBox // arn:aws:lambda:ap-south-1:565803892007:function:ACS-VerificationBoundingBox // arn:aws:lambda:eu-central-1:203001061592:function:ACS-VerificationBoundingBox // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-VerificationBoundingBox // arn:aws:lambda:eu-west-2:487402164563:function:ACS-VerificationBoundingBox // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-VerificationBoundingBox // arn:aws:lambda:ca-central-1:918755190332:function:ACS-VerificationBoundingBox // // Bounding box adjustment - Finds the most similar boxes from different workers // based on the Jaccard index of the adjusted annotations. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:us-east-2:266458841044:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:us-west-2:081040173940:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:eu-west-1:568282634449:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:ap-south-1:565803892007:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:eu-central-1:203001061592:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:eu-west-2:487402164563:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-AdjustmentBoundingBox // arn:aws:lambda:ca-central-1:918755190332:function:ACS-AdjustmentBoundingBox // // Video Frame Object Detection Adjustment - Use this task type when you want // workers to adjust bounding boxes that workers have added to video frames // to classify and localize objects in a sequence of video frames. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:us-east-2:266458841044:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:us-west-2:081040173940:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:eu-west-1:568282634449:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:ap-south-1:565803892007:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:eu-central-1:203001061592:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:eu-west-2:487402164563:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-AdjustmentVideoObjectDetection // arn:aws:lambda:ca-central-1:918755190332:function:ACS-AdjustmentVideoObjectDetection // // Video Frame Object Tracking Adjustment - Use this task type when you want // workers to adjust bounding boxes that workers have added to video frames // to track object movement across a sequence of video frames. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:us-east-2:266458841044:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:us-west-2:081040173940:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:eu-west-1:568282634449:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:ap-south-1:565803892007:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:eu-central-1:203001061592:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:eu-west-2:487402164563:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-AdjustmentVideoObjectTracking // arn:aws:lambda:ca-central-1:918755190332:function:ACS-AdjustmentVideoObjectTracking // // 3D point cloud object detection adjustment - Use this task type when you // want workers to adjust 3D cuboids around objects in a 3D point cloud. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:us-east-2:266458841044:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:us-west-2:081040173940:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:eu-west-1:568282634449:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:ap-south-1:565803892007:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:eu-central-1:203001061592:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:eu-west-2:487402164563:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-Adjustment3DPointCloudObjectDetection // arn:aws:lambda:ca-central-1:918755190332:function:ACS-Adjustment3DPointCloudObjectDetection // // 3D point cloud object tracking adjustment - Use this task type when you want // workers to adjust 3D cuboids around objects that appear in a sequence of // 3D point cloud frames. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:us-east-2:266458841044:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:us-west-2:081040173940:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:eu-west-1:568282634449:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:ap-south-1:565803892007:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:eu-central-1:203001061592:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:eu-west-2:487402164563:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-Adjustment3DPointCloudObjectTracking // arn:aws:lambda:ca-central-1:918755190332:function:ACS-Adjustment3DPointCloudObjectTracking // // 3D point cloud semantic segmentation adjustment - Use this task type when // you want workers to adjust a point-level semantic segmentation masks using // a paint tool. // // * arn:aws:lambda:us-east-1:432418664414:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:us-east-2:266458841044:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:us-west-2:081040173940:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:eu-west-1:568282634449:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-northeast-1:477331159723:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-southeast-2:454466003867:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-south-1:565803892007:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:eu-central-1:203001061592:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-northeast-2:845288260483:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:eu-west-2:487402164563:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:ap-southeast-1:377565633583:function:ACS-Adjustment3DPointCloudSemanticSegmentation // arn:aws:lambda:ca-central-1:918755190332:function:ACS-Adjustment3DPointCloudSemanticSegmentation // // AnnotationConsolidationLambdaArn is a required field AnnotationConsolidationLambdaArn *string `type:"string" required:"true"` } // String returns the string representation func (s AnnotationConsolidationConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AnnotationConsolidationConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AnnotationConsolidationConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AnnotationConsolidationConfig"} if s.AnnotationConsolidationLambdaArn == nil { invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationLambdaArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value. func (s *AnnotationConsolidationConfig) SetAnnotationConsolidationLambdaArn(v string) *AnnotationConsolidationConfig { s.AnnotationConsolidationLambdaArn = &v return s } // The app's details. type AppDetails struct { _ struct{} `type:"structure"` // The name of the app. AppName *string `type:"string"` // The type of app. AppType *string `type:"string" enum:"AppType"` // The creation time. CreationTime *time.Time `type:"timestamp"` // The domain ID. DomainId *string `type:"string"` // The status. Status *string `type:"string" enum:"AppStatus"` // The user profile name. UserProfileName *string `type:"string"` } // String returns the string representation func (s AppDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppDetails) GoString() string { return s.String() } // SetAppName sets the AppName field's value. func (s *AppDetails) SetAppName(v string) *AppDetails { s.AppName = &v return s } // SetAppType sets the AppType field's value. func (s *AppDetails) SetAppType(v string) *AppDetails { s.AppType = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AppDetails) SetCreationTime(v time.Time) *AppDetails { s.CreationTime = &v return s } // SetDomainId sets the DomainId field's value. func (s *AppDetails) SetDomainId(v string) *AppDetails { s.DomainId = &v return s } // SetStatus sets the Status field's value. func (s *AppDetails) SetStatus(v string) *AppDetails { s.Status = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *AppDetails) SetUserProfileName(v string) *AppDetails { s.UserProfileName = &v return s } // Configuration to run a processing job in a specified container image. type AppSpecification struct { _ struct{} `type:"structure"` // The arguments for a container used to run a processing job. ContainerArguments []*string `min:"1" type:"list"` // The entrypoint for a container used to run a processing job. ContainerEntrypoint []*string `min:"1" type:"list"` // The container image to be run by the processing job. // // ImageUri is a required field ImageUri *string `type:"string" required:"true"` } // String returns the string representation func (s AppSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AppSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AppSpecification"} if s.ContainerArguments != nil && len(s.ContainerArguments) < 1 { invalidParams.Add(request.NewErrParamMinLen("ContainerArguments", 1)) } if s.ContainerEntrypoint != nil && len(s.ContainerEntrypoint) < 1 { invalidParams.Add(request.NewErrParamMinLen("ContainerEntrypoint", 1)) } if s.ImageUri == nil { invalidParams.Add(request.NewErrParamRequired("ImageUri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerArguments sets the ContainerArguments field's value. func (s *AppSpecification) SetContainerArguments(v []*string) *AppSpecification { s.ContainerArguments = v return s } // SetContainerEntrypoint sets the ContainerEntrypoint field's value. func (s *AppSpecification) SetContainerEntrypoint(v []*string) *AppSpecification { s.ContainerEntrypoint = v return s } // SetImageUri sets the ImageUri field's value. func (s *AppSpecification) SetImageUri(v string) *AppSpecification { s.ImageUri = &v return s } type AssociateTrialComponentInput struct { _ struct{} `type:"structure"` // The name of the component to associated with the trial. // // TrialComponentName is a required field TrialComponentName *string `min:"1" type:"string" required:"true"` // The name of the trial to associate with. // // TrialName is a required field TrialName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s AssociateTrialComponentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateTrialComponentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateTrialComponentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateTrialComponentInput"} if s.TrialComponentName == nil { invalidParams.Add(request.NewErrParamRequired("TrialComponentName")) } if s.TrialComponentName != nil && len(*s.TrialComponentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentName", 1)) } if s.TrialName == nil { invalidParams.Add(request.NewErrParamRequired("TrialName")) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrialComponentName sets the TrialComponentName field's value. func (s *AssociateTrialComponentInput) SetTrialComponentName(v string) *AssociateTrialComponentInput { s.TrialComponentName = &v return s } // SetTrialName sets the TrialName field's value. func (s *AssociateTrialComponentInput) SetTrialName(v string) *AssociateTrialComponentInput { s.TrialName = &v return s } type AssociateTrialComponentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the trial. TrialArn *string `type:"string"` // The ARN of the trial component. TrialComponentArn *string `type:"string"` } // String returns the string representation func (s AssociateTrialComponentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateTrialComponentOutput) GoString() string { return s.String() } // SetTrialArn sets the TrialArn field's value. func (s *AssociateTrialComponentOutput) SetTrialArn(v string) *AssociateTrialComponentOutput { s.TrialArn = &v return s } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *AssociateTrialComponentOutput) SetTrialComponentArn(v string) *AssociateTrialComponentOutput { s.TrialComponentArn = &v return s } // An Autopilot job returns recommendations, or candidates. Each candidate has // futher details about the steps involed, and the status. type AutoMLCandidate struct { _ struct{} `type:"structure"` // The candidate name. // // CandidateName is a required field CandidateName *string `min:"1" type:"string" required:"true"` // The candidate's status. // // CandidateStatus is a required field CandidateStatus *string `type:"string" required:"true" enum:"CandidateStatus"` // The candidate's steps. // // CandidateSteps is a required field CandidateSteps []*AutoMLCandidateStep `type:"list" required:"true"` // The creation time. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The end time. EndTime *time.Time `type:"timestamp"` // The failure reason. FailureReason *string `type:"string"` // The best candidate result from an AutoML training job. FinalAutoMLJobObjectiveMetric *FinalAutoMLJobObjectiveMetric `type:"structure"` // The inference containers. InferenceContainers []*AutoMLContainerDefinition `type:"list"` // The last modified time. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // The objective status. // // ObjectiveStatus is a required field ObjectiveStatus *string `type:"string" required:"true" enum:"ObjectiveStatus"` } // String returns the string representation func (s AutoMLCandidate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLCandidate) GoString() string { return s.String() } // SetCandidateName sets the CandidateName field's value. func (s *AutoMLCandidate) SetCandidateName(v string) *AutoMLCandidate { s.CandidateName = &v return s } // SetCandidateStatus sets the CandidateStatus field's value. func (s *AutoMLCandidate) SetCandidateStatus(v string) *AutoMLCandidate { s.CandidateStatus = &v return s } // SetCandidateSteps sets the CandidateSteps field's value. func (s *AutoMLCandidate) SetCandidateSteps(v []*AutoMLCandidateStep) *AutoMLCandidate { s.CandidateSteps = v return s } // SetCreationTime sets the CreationTime field's value. func (s *AutoMLCandidate) SetCreationTime(v time.Time) *AutoMLCandidate { s.CreationTime = &v return s } // SetEndTime sets the EndTime field's value. func (s *AutoMLCandidate) SetEndTime(v time.Time) *AutoMLCandidate { s.EndTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *AutoMLCandidate) SetFailureReason(v string) *AutoMLCandidate { s.FailureReason = &v return s } // SetFinalAutoMLJobObjectiveMetric sets the FinalAutoMLJobObjectiveMetric field's value. func (s *AutoMLCandidate) SetFinalAutoMLJobObjectiveMetric(v *FinalAutoMLJobObjectiveMetric) *AutoMLCandidate { s.FinalAutoMLJobObjectiveMetric = v return s } // SetInferenceContainers sets the InferenceContainers field's value. func (s *AutoMLCandidate) SetInferenceContainers(v []*AutoMLContainerDefinition) *AutoMLCandidate { s.InferenceContainers = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *AutoMLCandidate) SetLastModifiedTime(v time.Time) *AutoMLCandidate { s.LastModifiedTime = &v return s } // SetObjectiveStatus sets the ObjectiveStatus field's value. func (s *AutoMLCandidate) SetObjectiveStatus(v string) *AutoMLCandidate { s.ObjectiveStatus = &v return s } // Information about the steps for a Candidate, and what step it is working // on. type AutoMLCandidateStep struct { _ struct{} `type:"structure"` // The ARN for the Candidate's step. // // CandidateStepArn is a required field CandidateStepArn *string `min:"1" type:"string" required:"true"` // The name for the Candidate's step. // // CandidateStepName is a required field CandidateStepName *string `min:"1" type:"string" required:"true"` // Whether the Candidate is at the transform, training, or processing step. // // CandidateStepType is a required field CandidateStepType *string `type:"string" required:"true" enum:"CandidateStepType"` } // String returns the string representation func (s AutoMLCandidateStep) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLCandidateStep) GoString() string { return s.String() } // SetCandidateStepArn sets the CandidateStepArn field's value. func (s *AutoMLCandidateStep) SetCandidateStepArn(v string) *AutoMLCandidateStep { s.CandidateStepArn = &v return s } // SetCandidateStepName sets the CandidateStepName field's value. func (s *AutoMLCandidateStep) SetCandidateStepName(v string) *AutoMLCandidateStep { s.CandidateStepName = &v return s } // SetCandidateStepType sets the CandidateStepType field's value. func (s *AutoMLCandidateStep) SetCandidateStepType(v string) *AutoMLCandidateStep { s.CandidateStepType = &v return s } // Similar to Channel. A channel is a named input source that training algorithms // can consume. Refer to Channel for detailed descriptions. type AutoMLChannel struct { _ struct{} `type:"structure"` // You can use Gzip or None. The default value is None. CompressionType *string `type:"string" enum:"CompressionType"` // The data source. // // DataSource is a required field DataSource *AutoMLDataSource `type:"structure" required:"true"` // The name of the target variable in supervised learning, a.k.a. 'y'. // // TargetAttributeName is a required field TargetAttributeName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s AutoMLChannel) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLChannel) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLChannel) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLChannel"} if s.DataSource == nil { invalidParams.Add(request.NewErrParamRequired("DataSource")) } if s.TargetAttributeName == nil { invalidParams.Add(request.NewErrParamRequired("TargetAttributeName")) } if s.TargetAttributeName != nil && len(*s.TargetAttributeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TargetAttributeName", 1)) } if s.DataSource != nil { if err := s.DataSource.Validate(); err != nil { invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCompressionType sets the CompressionType field's value. func (s *AutoMLChannel) SetCompressionType(v string) *AutoMLChannel { s.CompressionType = &v return s } // SetDataSource sets the DataSource field's value. func (s *AutoMLChannel) SetDataSource(v *AutoMLDataSource) *AutoMLChannel { s.DataSource = v return s } // SetTargetAttributeName sets the TargetAttributeName field's value. func (s *AutoMLChannel) SetTargetAttributeName(v string) *AutoMLChannel { s.TargetAttributeName = &v return s } // A list of container definitions that describe the different containers that // make up one AutoML candidate. Refer to ContainerDefinition for more details. type AutoMLContainerDefinition struct { _ struct{} `type:"structure"` // Environment variables to set in the container. Refer to ContainerDefinition // for more details. Environment map[string]*string `type:"map"` // The ECR path of the container. Refer to ContainerDefinition for more details. // // Image is a required field Image *string `type:"string" required:"true"` // The location of the model artifacts. Refer to ContainerDefinition for more // details. // // ModelDataUrl is a required field ModelDataUrl *string `type:"string" required:"true"` } // String returns the string representation func (s AutoMLContainerDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLContainerDefinition) GoString() string { return s.String() } // SetEnvironment sets the Environment field's value. func (s *AutoMLContainerDefinition) SetEnvironment(v map[string]*string) *AutoMLContainerDefinition { s.Environment = v return s } // SetImage sets the Image field's value. func (s *AutoMLContainerDefinition) SetImage(v string) *AutoMLContainerDefinition { s.Image = &v return s } // SetModelDataUrl sets the ModelDataUrl field's value. func (s *AutoMLContainerDefinition) SetModelDataUrl(v string) *AutoMLContainerDefinition { s.ModelDataUrl = &v return s } // The data source for the Autopilot job. type AutoMLDataSource struct { _ struct{} `type:"structure"` // The Amazon S3 location of the input data. // // The input data must be in CSV format and contain at least 1000 rows. // // S3DataSource is a required field S3DataSource *AutoMLS3DataSource `type:"structure" required:"true"` } // String returns the string representation func (s AutoMLDataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLDataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLDataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLDataSource"} if s.S3DataSource == nil { invalidParams.Add(request.NewErrParamRequired("S3DataSource")) } if s.S3DataSource != nil { if err := s.S3DataSource.Validate(); err != nil { invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3DataSource sets the S3DataSource field's value. func (s *AutoMLDataSource) SetS3DataSource(v *AutoMLS3DataSource) *AutoMLDataSource { s.S3DataSource = v return s } // Artifacts that are generation during a job. type AutoMLJobArtifacts struct { _ struct{} `type:"structure"` // The URL to the notebook location. CandidateDefinitionNotebookLocation *string `min:"1" type:"string"` // The URL to the notebook location. DataExplorationNotebookLocation *string `min:"1" type:"string"` } // String returns the string representation func (s AutoMLJobArtifacts) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLJobArtifacts) GoString() string { return s.String() } // SetCandidateDefinitionNotebookLocation sets the CandidateDefinitionNotebookLocation field's value. func (s *AutoMLJobArtifacts) SetCandidateDefinitionNotebookLocation(v string) *AutoMLJobArtifacts { s.CandidateDefinitionNotebookLocation = &v return s } // SetDataExplorationNotebookLocation sets the DataExplorationNotebookLocation field's value. func (s *AutoMLJobArtifacts) SetDataExplorationNotebookLocation(v string) *AutoMLJobArtifacts { s.DataExplorationNotebookLocation = &v return s } // How long a job is allowed to run, or how many candidates a job is allowed // to generate. type AutoMLJobCompletionCriteria struct { _ struct{} `type:"structure"` // The maximum time, in seconds, an AutoML job is allowed to wait for a trial // to complete. It must be equal to or greater than MaxRuntimePerTrainingJobInSeconds. MaxAutoMLJobRuntimeInSeconds *int64 `min:"1" type:"integer"` // The maximum number of times a training job is allowed to run. MaxCandidates *int64 `min:"1" type:"integer"` // The maximum time, in seconds, a job is allowed to run. MaxRuntimePerTrainingJobInSeconds *int64 `min:"1" type:"integer"` } // String returns the string representation func (s AutoMLJobCompletionCriteria) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLJobCompletionCriteria) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLJobCompletionCriteria) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLJobCompletionCriteria"} if s.MaxAutoMLJobRuntimeInSeconds != nil && *s.MaxAutoMLJobRuntimeInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxAutoMLJobRuntimeInSeconds", 1)) } if s.MaxCandidates != nil && *s.MaxCandidates < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxCandidates", 1)) } if s.MaxRuntimePerTrainingJobInSeconds != nil && *s.MaxRuntimePerTrainingJobInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxRuntimePerTrainingJobInSeconds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxAutoMLJobRuntimeInSeconds sets the MaxAutoMLJobRuntimeInSeconds field's value. func (s *AutoMLJobCompletionCriteria) SetMaxAutoMLJobRuntimeInSeconds(v int64) *AutoMLJobCompletionCriteria { s.MaxAutoMLJobRuntimeInSeconds = &v return s } // SetMaxCandidates sets the MaxCandidates field's value. func (s *AutoMLJobCompletionCriteria) SetMaxCandidates(v int64) *AutoMLJobCompletionCriteria { s.MaxCandidates = &v return s } // SetMaxRuntimePerTrainingJobInSeconds sets the MaxRuntimePerTrainingJobInSeconds field's value. func (s *AutoMLJobCompletionCriteria) SetMaxRuntimePerTrainingJobInSeconds(v int64) *AutoMLJobCompletionCriteria { s.MaxRuntimePerTrainingJobInSeconds = &v return s } // A collection of settings used for a job. type AutoMLJobConfig struct { _ struct{} `type:"structure"` // How long a job is allowed to run, or how many candidates a job is allowed // to generate. CompletionCriteria *AutoMLJobCompletionCriteria `type:"structure"` // Security configuration for traffic encryption or Amazon VPC settings. SecurityConfig *AutoMLSecurityConfig `type:"structure"` } // String returns the string representation func (s AutoMLJobConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLJobConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLJobConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLJobConfig"} if s.CompletionCriteria != nil { if err := s.CompletionCriteria.Validate(); err != nil { invalidParams.AddNested("CompletionCriteria", err.(request.ErrInvalidParams)) } } if s.SecurityConfig != nil { if err := s.SecurityConfig.Validate(); err != nil { invalidParams.AddNested("SecurityConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCompletionCriteria sets the CompletionCriteria field's value. func (s *AutoMLJobConfig) SetCompletionCriteria(v *AutoMLJobCompletionCriteria) *AutoMLJobConfig { s.CompletionCriteria = v return s } // SetSecurityConfig sets the SecurityConfig field's value. func (s *AutoMLJobConfig) SetSecurityConfig(v *AutoMLSecurityConfig) *AutoMLJobConfig { s.SecurityConfig = v return s } // Specifies a metric to minimize or maximize as the objective of a job. type AutoMLJobObjective struct { _ struct{} `type:"structure"` // The name of the objective metric used to measure the predictive quality of // a machine learning system. This metric is optimized during training to provide // the best estimate for model parameter values from data. // // Here are the options: // // * MSE: The mean squared error (MSE) is the average of the squared differences // between the predicted and actual values. It is used for regression. MSE // values are always positive, the better a model is at predicting the actual // values the smaller the MSE value. When the data contains outliers, they // tend to dominate the MSE which might cause subpar prediction performance. // // * Accuracy: The ratio of the number correctly classified items to the // total number (correctly and incorrectly) classified. It is used for binary // and multiclass classification. Measures how close the predicted class // values are to the actual values. Accuracy values vary between zero and // one, one being perfect accuracy and zero perfect inaccuracy. // // * F1: The F1 score is the harmonic mean of the precision and recall. It // is used for binary classification into classes traditionally referred // to as positive and negative. Predictions are said to be true when they // match their actual (correct) class; false when they do not. Precision // is the ratio of the true positive predictions to all positive predictions // (including the false positives) in a data set and measures the quality // of the prediction when it predicts the positive class. Recall (or sensitivity) // is the ratio of the true positive predictions to all actual positive instances // and measures how completely a model predicts the actual class members // in a data set. The standard F1 score weighs precision and recall equally. // But which metric is paramount typically depends on specific aspects of // a problem. F1 scores vary between zero and one, one being the best possible // performance and zero the worst. // // * AUC: The area under the curve (AUC) metric is used to compare and evaluate // binary classification by algorithms such as logistic regression that return // probabilities. A threshold is needed to map the probabilities into classifications. // The relevant curve is the receiver operating characteristic curve that // plots the true positive rate (TPR) of predictions (or recall) against // the false positive rate (FPR) as a function of the threshold value, above // which a prediction is considered positive. Increasing the threshold results // in fewer false positives but more false negatives. AUC is the area under // this receiver operating characteristic curve and so provides an aggregated // measure of the model performance across all possible classification thresholds. // The AUC score can also be interpreted as the probability that a randomly // selected positive data point is more likely to be predicted positive than // a randomly selected negative example. AUC scores vary between zero and // one, one being perfect accuracy and one half not better than a random // classifier. Values less that one half predict worse than a random predictor // and such consistently bad predictors can be inverted to obtain better // than random predictors. // // * F1macro: The F1macro score applies F1 scoring to multiclass classification. // In this context, you have multiple classes to predict. You just calculate // the precision and recall for each class as you did for the positive class // in binary classification. Then used these values to calculate the F1 score // for each class and average them to obtain the F1macro score. F1macro scores // vary between zero and one, one being the best possible performance and // zero the worst. // // If you do not specify a metric explicitly, the default behavior is to automatically // use: // // * MSE: for regression. // // * F1: for binary classification // // * Accuracy: for multiclass classification. // // MetricName is a required field MetricName *string `type:"string" required:"true" enum:"AutoMLMetricEnum"` } // String returns the string representation func (s AutoMLJobObjective) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLJobObjective) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLJobObjective) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLJobObjective"} if s.MetricName == nil { invalidParams.Add(request.NewErrParamRequired("MetricName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMetricName sets the MetricName field's value. func (s *AutoMLJobObjective) SetMetricName(v string) *AutoMLJobObjective { s.MetricName = &v return s } // Provides a summary about a job. type AutoMLJobSummary struct { _ struct{} `type:"structure"` // The ARN of the job. // // AutoMLJobArn is a required field AutoMLJobArn *string `min:"1" type:"string" required:"true"` // The name of the object you are requesting. // // AutoMLJobName is a required field AutoMLJobName *string `min:"1" type:"string" required:"true"` // The job's secondary status. // // AutoMLJobSecondaryStatus is a required field AutoMLJobSecondaryStatus *string `type:"string" required:"true" enum:"AutoMLJobSecondaryStatus"` // The job's status. // // AutoMLJobStatus is a required field AutoMLJobStatus *string `type:"string" required:"true" enum:"AutoMLJobStatus"` // When the job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The end time of an AutoML job. EndTime *time.Time `type:"timestamp"` // The failure reason of a job. FailureReason *string `type:"string"` // When the job was last modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s AutoMLJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLJobSummary) GoString() string { return s.String() } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *AutoMLJobSummary) SetAutoMLJobArn(v string) *AutoMLJobSummary { s.AutoMLJobArn = &v return s } // SetAutoMLJobName sets the AutoMLJobName field's value. func (s *AutoMLJobSummary) SetAutoMLJobName(v string) *AutoMLJobSummary { s.AutoMLJobName = &v return s } // SetAutoMLJobSecondaryStatus sets the AutoMLJobSecondaryStatus field's value. func (s *AutoMLJobSummary) SetAutoMLJobSecondaryStatus(v string) *AutoMLJobSummary { s.AutoMLJobSecondaryStatus = &v return s } // SetAutoMLJobStatus sets the AutoMLJobStatus field's value. func (s *AutoMLJobSummary) SetAutoMLJobStatus(v string) *AutoMLJobSummary { s.AutoMLJobStatus = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AutoMLJobSummary) SetCreationTime(v time.Time) *AutoMLJobSummary { s.CreationTime = &v return s } // SetEndTime sets the EndTime field's value. func (s *AutoMLJobSummary) SetEndTime(v time.Time) *AutoMLJobSummary { s.EndTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *AutoMLJobSummary) SetFailureReason(v string) *AutoMLJobSummary { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *AutoMLJobSummary) SetLastModifiedTime(v time.Time) *AutoMLJobSummary { s.LastModifiedTime = &v return s } // The output data configuration. type AutoMLOutputDataConfig struct { _ struct{} `type:"structure"` // The AWS KMS encryption key ID. KmsKeyId *string `type:"string"` // The Amazon S3 output path. Must be 128 characters or less. // // S3OutputPath is a required field S3OutputPath *string `type:"string" required:"true"` } // String returns the string representation func (s AutoMLOutputDataConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLOutputDataConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLOutputDataConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLOutputDataConfig"} if s.S3OutputPath == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKmsKeyId sets the KmsKeyId field's value. func (s *AutoMLOutputDataConfig) SetKmsKeyId(v string) *AutoMLOutputDataConfig { s.KmsKeyId = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *AutoMLOutputDataConfig) SetS3OutputPath(v string) *AutoMLOutputDataConfig { s.S3OutputPath = &v return s } // The Amazon S3 data source. type AutoMLS3DataSource struct { _ struct{} `type:"structure"` // The data type. // // S3DataType is a required field S3DataType *string `type:"string" required:"true" enum:"AutoMLS3DataType"` // The URL to the Amazon S3 data source. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s AutoMLS3DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLS3DataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLS3DataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLS3DataSource"} if s.S3DataType == nil { invalidParams.Add(request.NewErrParamRequired("S3DataType")) } if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3DataType sets the S3DataType field's value. func (s *AutoMLS3DataSource) SetS3DataType(v string) *AutoMLS3DataSource { s.S3DataType = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *AutoMLS3DataSource) SetS3Uri(v string) *AutoMLS3DataSource { s.S3Uri = &v return s } // Security options. type AutoMLSecurityConfig struct { _ struct{} `type:"structure"` // Whether to use traffic encryption between the container layers. EnableInterContainerTrafficEncryption *bool `type:"boolean"` // The key used to encrypt stored data. VolumeKmsKeyId *string `type:"string"` // VPC configuration. VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s AutoMLSecurityConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoMLSecurityConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AutoMLSecurityConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AutoMLSecurityConfig"} if s.VpcConfig != nil { if err := s.VpcConfig.Validate(); err != nil { invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value. func (s *AutoMLSecurityConfig) SetEnableInterContainerTrafficEncryption(v bool) *AutoMLSecurityConfig { s.EnableInterContainerTrafficEncryption = &v return s } // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. func (s *AutoMLSecurityConfig) SetVolumeKmsKeyId(v string) *AutoMLSecurityConfig { s.VolumeKmsKeyId = &v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *AutoMLSecurityConfig) SetVpcConfig(v *VpcConfig) *AutoMLSecurityConfig { s.VpcConfig = v return s } type CaptureContentTypeHeader struct { _ struct{} `type:"structure"` CsvContentTypes []*string `min:"1" type:"list"` JsonContentTypes []*string `min:"1" type:"list"` } // String returns the string representation func (s CaptureContentTypeHeader) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CaptureContentTypeHeader) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CaptureContentTypeHeader) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CaptureContentTypeHeader"} if s.CsvContentTypes != nil && len(s.CsvContentTypes) < 1 { invalidParams.Add(request.NewErrParamMinLen("CsvContentTypes", 1)) } if s.JsonContentTypes != nil && len(s.JsonContentTypes) < 1 { invalidParams.Add(request.NewErrParamMinLen("JsonContentTypes", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCsvContentTypes sets the CsvContentTypes field's value. func (s *CaptureContentTypeHeader) SetCsvContentTypes(v []*string) *CaptureContentTypeHeader { s.CsvContentTypes = v return s } // SetJsonContentTypes sets the JsonContentTypes field's value. func (s *CaptureContentTypeHeader) SetJsonContentTypes(v []*string) *CaptureContentTypeHeader { s.JsonContentTypes = v return s } type CaptureOption struct { _ struct{} `type:"structure"` // CaptureMode is a required field CaptureMode *string `type:"string" required:"true" enum:"CaptureMode"` } // String returns the string representation func (s CaptureOption) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CaptureOption) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CaptureOption) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CaptureOption"} if s.CaptureMode == nil { invalidParams.Add(request.NewErrParamRequired("CaptureMode")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCaptureMode sets the CaptureMode field's value. func (s *CaptureOption) SetCaptureMode(v string) *CaptureOption { s.CaptureMode = &v return s } // A list of categorical hyperparameters to tune. type CategoricalParameterRange struct { _ struct{} `type:"structure"` // The name of the categorical hyperparameter to tune. // // Name is a required field Name *string `type:"string" required:"true"` // A list of the categories for the hyperparameter. // // Values is a required field Values []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s CategoricalParameterRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CategoricalParameterRange) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CategoricalParameterRange) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRange"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Values == nil { invalidParams.Add(request.NewErrParamRequired("Values")) } if s.Values != nil && len(s.Values) < 1 { invalidParams.Add(request.NewErrParamMinLen("Values", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *CategoricalParameterRange) SetName(v string) *CategoricalParameterRange { s.Name = &v return s } // SetValues sets the Values field's value. func (s *CategoricalParameterRange) SetValues(v []*string) *CategoricalParameterRange { s.Values = v return s } // Defines the possible values for a categorical hyperparameter. type CategoricalParameterRangeSpecification struct { _ struct{} `type:"structure"` // The allowed categories for the hyperparameter. // // Values is a required field Values []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s CategoricalParameterRangeSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CategoricalParameterRangeSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CategoricalParameterRangeSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRangeSpecification"} if s.Values == nil { invalidParams.Add(request.NewErrParamRequired("Values")) } if s.Values != nil && len(s.Values) < 1 { invalidParams.Add(request.NewErrParamMinLen("Values", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetValues sets the Values field's value. func (s *CategoricalParameterRangeSpecification) SetValues(v []*string) *CategoricalParameterRangeSpecification { s.Values = v return s } // A channel is a named input source that training algorithms can consume. type Channel struct { _ struct{} `type:"structure"` // The name of the channel. // // ChannelName is a required field ChannelName *string `min:"1" type:"string" required:"true"` // If training data is compressed, the compression type. The default value is // None. CompressionType is used only in Pipe input mode. In File mode, leave // this field unset or set it to None. CompressionType *string `type:"string" enum:"CompressionType"` // The MIME type of the data. ContentType *string `type:"string"` // The location of the channel data. // // DataSource is a required field DataSource *DataSource `type:"structure" required:"true"` // (Optional) The input mode to use for the data channel in a training job. // If you don't set a value for InputMode, Amazon SageMaker uses the value set // for TrainingInputMode. Use this parameter to override the TrainingInputMode // setting in a AlgorithmSpecification request when you have a channel that // needs a different input mode from the training job's general setting. To // download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned // ML storage volume, and mount the directory to a Docker volume, use File input // mode. To stream data directly from Amazon S3 to the container, choose Pipe // input mode. // // To use a model for incremental training, choose File input model. InputMode *string `type:"string" enum:"TrainingInputMode"` // Specify RecordIO as the value when input data is in raw format but the training // algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps // each individual S3 object in a RecordIO record. If the input data is already // in RecordIO format, you don't need to set this attribute. For more information, // see Create a Dataset Using RecordIO (https://mxnet.apache.org/api/architecture/note_data_loading#data-format). // // In File mode, leave this field unset or set it to None. RecordWrapperType *string `type:"string" enum:"RecordWrapper"` // A configuration for a shuffle option for input data in a channel. If you // use S3Prefix for S3DataType, this shuffles the results of the S3 key prefix // matches. If you use ManifestFile, the order of the S3 object references in // the ManifestFile is shuffled. If you use AugmentedManifestFile, the order // of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling // order is determined using the Seed value. // // For Pipe input mode, shuffling is done at the start of every epoch. With // large datasets this ensures that the order of the training data is different // for each epoch, it helps reduce bias and possible overfitting. In a multi-node // training job when ShuffleConfig is combined with S3DataDistributionType of // ShardedByS3Key, the data is shuffled across nodes so that the content sent // to a particular node on the first epoch might be sent to a different node // on the second epoch. ShuffleConfig *ShuffleConfig `type:"structure"` } // String returns the string representation func (s Channel) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Channel) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Channel) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Channel"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if s.DataSource == nil { invalidParams.Add(request.NewErrParamRequired("DataSource")) } if s.DataSource != nil { if err := s.DataSource.Validate(); err != nil { invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) } } if s.ShuffleConfig != nil { if err := s.ShuffleConfig.Validate(); err != nil { invalidParams.AddNested("ShuffleConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *Channel) SetChannelName(v string) *Channel { s.ChannelName = &v return s } // SetCompressionType sets the CompressionType field's value. func (s *Channel) SetCompressionType(v string) *Channel { s.CompressionType = &v return s } // SetContentType sets the ContentType field's value. func (s *Channel) SetContentType(v string) *Channel { s.ContentType = &v return s } // SetDataSource sets the DataSource field's value. func (s *Channel) SetDataSource(v *DataSource) *Channel { s.DataSource = v return s } // SetInputMode sets the InputMode field's value. func (s *Channel) SetInputMode(v string) *Channel { s.InputMode = &v return s } // SetRecordWrapperType sets the RecordWrapperType field's value. func (s *Channel) SetRecordWrapperType(v string) *Channel { s.RecordWrapperType = &v return s } // SetShuffleConfig sets the ShuffleConfig field's value. func (s *Channel) SetShuffleConfig(v *ShuffleConfig) *Channel { s.ShuffleConfig = v return s } // Defines a named input source, called a channel, to be used by an algorithm. type ChannelSpecification struct { _ struct{} `type:"structure"` // A brief description of the channel. Description *string `type:"string"` // Indicates whether the channel is required by the algorithm. IsRequired *bool `type:"boolean"` // The name of the channel. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The allowed compression types, if data compression is used. SupportedCompressionTypes []*string `type:"list"` // The supported MIME types for the data. // // SupportedContentTypes is a required field SupportedContentTypes []*string `type:"list" required:"true"` // The allowed input mode, either FILE or PIPE. // // In FILE mode, Amazon SageMaker copies the data from the input source onto // the local Amazon Elastic Block Store (Amazon EBS) volumes before starting // your training algorithm. This is the most commonly used input mode. // // In PIPE mode, Amazon SageMaker streams input data from the source directly // to your algorithm without using the EBS volume. // // SupportedInputModes is a required field SupportedInputModes []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s ChannelSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ChannelSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ChannelSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ChannelSpecification"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.SupportedContentTypes == nil { invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes")) } if s.SupportedInputModes == nil { invalidParams.Add(request.NewErrParamRequired("SupportedInputModes")) } if s.SupportedInputModes != nil && len(s.SupportedInputModes) < 1 { invalidParams.Add(request.NewErrParamMinLen("SupportedInputModes", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *ChannelSpecification) SetDescription(v string) *ChannelSpecification { s.Description = &v return s } // SetIsRequired sets the IsRequired field's value. func (s *ChannelSpecification) SetIsRequired(v bool) *ChannelSpecification { s.IsRequired = &v return s } // SetName sets the Name field's value. func (s *ChannelSpecification) SetName(v string) *ChannelSpecification { s.Name = &v return s } // SetSupportedCompressionTypes sets the SupportedCompressionTypes field's value. func (s *ChannelSpecification) SetSupportedCompressionTypes(v []*string) *ChannelSpecification { s.SupportedCompressionTypes = v return s } // SetSupportedContentTypes sets the SupportedContentTypes field's value. func (s *ChannelSpecification) SetSupportedContentTypes(v []*string) *ChannelSpecification { s.SupportedContentTypes = v return s } // SetSupportedInputModes sets the SupportedInputModes field's value. func (s *ChannelSpecification) SetSupportedInputModes(v []*string) *ChannelSpecification { s.SupportedInputModes = v return s } // Contains information about the output location for managed spot training // checkpoint data. type CheckpointConfig struct { _ struct{} `type:"structure"` // (Optional) The local directory where checkpoints are written. The default // directory is /opt/ml/checkpoints/. LocalPath *string `type:"string"` // Identifies the S3 path where you want Amazon SageMaker to store checkpoints. // For example, s3://bucket-name/key-name-prefix. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s CheckpointConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CheckpointConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CheckpointConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CheckpointConfig"} if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLocalPath sets the LocalPath field's value. func (s *CheckpointConfig) SetLocalPath(v string) *CheckpointConfig { s.LocalPath = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *CheckpointConfig) SetS3Uri(v string) *CheckpointConfig { s.S3Uri = &v return s } // Specifies summary information about a Git repository. type CodeRepositorySummary struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the Git repository. // // CodeRepositoryArn is a required field CodeRepositoryArn *string `min:"1" type:"string" required:"true"` // The name of the Git repository. // // CodeRepositoryName is a required field CodeRepositoryName *string `min:"1" type:"string" required:"true"` // The date and time that the Git repository was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // Configuration details for the Git repository, including the URL where it // is located and the ARN of the AWS Secrets Manager secret that contains the // credentials used to access the repository. GitConfig *GitConfig `type:"structure"` // The date and time that the Git repository was last modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s CodeRepositorySummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CodeRepositorySummary) GoString() string { return s.String() } // SetCodeRepositoryArn sets the CodeRepositoryArn field's value. func (s *CodeRepositorySummary) SetCodeRepositoryArn(v string) *CodeRepositorySummary { s.CodeRepositoryArn = &v return s } // SetCodeRepositoryName sets the CodeRepositoryName field's value. func (s *CodeRepositorySummary) SetCodeRepositoryName(v string) *CodeRepositorySummary { s.CodeRepositoryName = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *CodeRepositorySummary) SetCreationTime(v time.Time) *CodeRepositorySummary { s.CreationTime = &v return s } // SetGitConfig sets the GitConfig field's value. func (s *CodeRepositorySummary) SetGitConfig(v *GitConfig) *CodeRepositorySummary { s.GitConfig = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *CodeRepositorySummary) SetLastModifiedTime(v time.Time) *CodeRepositorySummary { s.LastModifiedTime = &v return s } // Use this parameter to configure your Amazon Cognito workforce. A single Cognito // workforce is created using and corresponds to a single Amazon Cognito user // pool (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html). type CognitoConfig struct { _ struct{} `type:"structure"` // The client ID for your Amazon Cognito user pool. // // ClientId is a required field ClientId *string `min:"1" type:"string" required:"true"` // A user pool (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html) // is a user directory in Amazon Cognito. With a user pool, your users can sign // in to your web or mobile app through Amazon Cognito. Your users can also // sign in through social identity providers like Google, Facebook, Amazon, // or Apple, and through SAML identity providers. // // UserPool is a required field UserPool *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CognitoConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CognitoConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CognitoConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CognitoConfig"} if s.ClientId == nil { invalidParams.Add(request.NewErrParamRequired("ClientId")) } if s.ClientId != nil && len(*s.ClientId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } if s.UserPool == nil { invalidParams.Add(request.NewErrParamRequired("UserPool")) } if s.UserPool != nil && len(*s.UserPool) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPool", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientId sets the ClientId field's value. func (s *CognitoConfig) SetClientId(v string) *CognitoConfig { s.ClientId = &v return s } // SetUserPool sets the UserPool field's value. func (s *CognitoConfig) SetUserPool(v string) *CognitoConfig { s.UserPool = &v return s } // Identifies a Amazon Cognito user group. A user group can be used in on or // more work teams. type CognitoMemberDefinition struct { _ struct{} `type:"structure"` // An identifier for an application client. You must create the app client ID // using Amazon Cognito. // // ClientId is a required field ClientId *string `min:"1" type:"string" required:"true"` // An identifier for a user group. // // UserGroup is a required field UserGroup *string `min:"1" type:"string" required:"true"` // An identifier for a user pool. The user pool must be in the same region as // the service that you are calling. // // UserPool is a required field UserPool *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CognitoMemberDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CognitoMemberDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CognitoMemberDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CognitoMemberDefinition"} if s.ClientId == nil { invalidParams.Add(request.NewErrParamRequired("ClientId")) } if s.ClientId != nil && len(*s.ClientId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } if s.UserGroup == nil { invalidParams.Add(request.NewErrParamRequired("UserGroup")) } if s.UserGroup != nil && len(*s.UserGroup) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserGroup", 1)) } if s.UserPool == nil { invalidParams.Add(request.NewErrParamRequired("UserPool")) } if s.UserPool != nil && len(*s.UserPool) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserPool", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientId sets the ClientId field's value. func (s *CognitoMemberDefinition) SetClientId(v string) *CognitoMemberDefinition { s.ClientId = &v return s } // SetUserGroup sets the UserGroup field's value. func (s *CognitoMemberDefinition) SetUserGroup(v string) *CognitoMemberDefinition { s.UserGroup = &v return s } // SetUserPool sets the UserPool field's value. func (s *CognitoMemberDefinition) SetUserPool(v string) *CognitoMemberDefinition { s.UserPool = &v return s } // Configuration information for tensor collections. type CollectionConfiguration struct { _ struct{} `type:"structure"` // The name of the tensor collection. The name must be unique relative to other // rule configuration names. CollectionName *string `min:"1" type:"string"` // Parameter values for the tensor collection. The allowed parameters are "name", // "include_regex", "reduction_config", "save_config", "tensor_names", and "save_histogram". CollectionParameters map[string]*string `type:"map"` } // String returns the string representation func (s CollectionConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CollectionConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CollectionConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CollectionConfiguration"} if s.CollectionName != nil && len(*s.CollectionName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCollectionName sets the CollectionName field's value. func (s *CollectionConfiguration) SetCollectionName(v string) *CollectionConfiguration { s.CollectionName = &v return s } // SetCollectionParameters sets the CollectionParameters field's value. func (s *CollectionConfiguration) SetCollectionParameters(v map[string]*string) *CollectionConfiguration { s.CollectionParameters = v return s } // A summary of a model compilation job. type CompilationJobSummary struct { _ struct{} `type:"structure"` // The time when the model compilation job completed. CompilationEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the model compilation job. // // CompilationJobArn is a required field CompilationJobArn *string `type:"string" required:"true"` // The name of the model compilation job that you want a summary for. // // CompilationJobName is a required field CompilationJobName *string `min:"1" type:"string" required:"true"` // The status of the model compilation job. // // CompilationJobStatus is a required field CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"` // The time when the model compilation job started. CompilationStartTime *time.Time `type:"timestamp"` // The type of device that the model will run on after the compilation job has // completed. CompilationTargetDevice *string `type:"string" enum:"TargetDevice"` // The type of accelerator that the model will run on after the compilation // job has completed. CompilationTargetPlatformAccelerator *string `type:"string" enum:"TargetPlatformAccelerator"` // The type of architecture that the model will run on after the compilation // job has completed. CompilationTargetPlatformArch *string `type:"string" enum:"TargetPlatformArch"` // The type of OS that the model will run on after the compilation job has completed. CompilationTargetPlatformOs *string `type:"string" enum:"TargetPlatformOs"` // The time when the model compilation job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The time when the model compilation job was last modified. LastModifiedTime *time.Time `type:"timestamp"` } // String returns the string representation func (s CompilationJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CompilationJobSummary) GoString() string { return s.String() } // SetCompilationEndTime sets the CompilationEndTime field's value. func (s *CompilationJobSummary) SetCompilationEndTime(v time.Time) *CompilationJobSummary { s.CompilationEndTime = &v return s } // SetCompilationJobArn sets the CompilationJobArn field's value. func (s *CompilationJobSummary) SetCompilationJobArn(v string) *CompilationJobSummary { s.CompilationJobArn = &v return s } // SetCompilationJobName sets the CompilationJobName field's value. func (s *CompilationJobSummary) SetCompilationJobName(v string) *CompilationJobSummary { s.CompilationJobName = &v return s } // SetCompilationJobStatus sets the CompilationJobStatus field's value. func (s *CompilationJobSummary) SetCompilationJobStatus(v string) *CompilationJobSummary { s.CompilationJobStatus = &v return s } // SetCompilationStartTime sets the CompilationStartTime field's value. func (s *CompilationJobSummary) SetCompilationStartTime(v time.Time) *CompilationJobSummary { s.CompilationStartTime = &v return s } // SetCompilationTargetDevice sets the CompilationTargetDevice field's value. func (s *CompilationJobSummary) SetCompilationTargetDevice(v string) *CompilationJobSummary { s.CompilationTargetDevice = &v return s } // SetCompilationTargetPlatformAccelerator sets the CompilationTargetPlatformAccelerator field's value. func (s *CompilationJobSummary) SetCompilationTargetPlatformAccelerator(v string) *CompilationJobSummary { s.CompilationTargetPlatformAccelerator = &v return s } // SetCompilationTargetPlatformArch sets the CompilationTargetPlatformArch field's value. func (s *CompilationJobSummary) SetCompilationTargetPlatformArch(v string) *CompilationJobSummary { s.CompilationTargetPlatformArch = &v return s } // SetCompilationTargetPlatformOs sets the CompilationTargetPlatformOs field's value. func (s *CompilationJobSummary) SetCompilationTargetPlatformOs(v string) *CompilationJobSummary { s.CompilationTargetPlatformOs = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *CompilationJobSummary) SetCreationTime(v time.Time) *CompilationJobSummary { s.CreationTime = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *CompilationJobSummary) SetLastModifiedTime(v time.Time) *CompilationJobSummary { s.LastModifiedTime = &v return s } // There was a conflict when you attempted to modify an experiment, trial, or // trial component. type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ConflictException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConflictException) GoString() string { return s.String() } func newErrorConflictException(v protocol.ResponseMetadata) error { return &ConflictException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConflictException) Code() string { return "ConflictException" } // Message returns the exception's message. func (s *ConflictException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConflictException) OrigErr() error { return nil } func (s *ConflictException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConflictException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } // Describes the container, as part of model definition. type ContainerDefinition struct { _ struct{} `type:"structure"` // This parameter is ignored for models that contain only a PrimaryContainer. // // When a ContainerDefinition is part of an inference pipeline, the value of // the parameter uniquely identifies the container for the purposes of logging // and metrics. For information, see Use Logs and Metrics to Monitor an Inference // Pipeline (https://docs.aws.amazon.com/sagemaker/latest/dg/inference-pipeline-logs-metrics.html). // If you don't specify a value for this parameter for a ContainerDefinition // that is part of an inference pipeline, a unique name is automatically assigned // based on the position of the ContainerDefinition in the pipeline. If you // specify a value for the ContainerHostName for any ContainerDefinition that // is part of an inference pipeline, you must specify a value for the ContainerHostName // parameter of every ContainerDefinition in that pipeline. ContainerHostname *string `type:"string"` // The environment variables to set in the Docker container. Each key and value // in the Environment string to string map can have length of up to 1024. We // support up to 16 entries in the map. Environment map[string]*string `type:"map"` // The path where inference code is stored. This can be either in Amazon EC2 // Container Registry or in a Docker registry that is accessible from the same // VPC that you configure for your endpoint. If you are using your own custom // algorithm instead of an algorithm provided by Amazon SageMaker, the inference // code must meet Amazon SageMaker requirements. Amazon SageMaker supports both // registry/repository[:tag] and registry/repository[@digest] image path formats. // For more information, see Using Your Own Algorithms with Amazon SageMaker // (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html) Image *string `type:"string"` // Specifies whether the model container is in Amazon ECR or a private Docker // registry accessible from your Amazon Virtual Private Cloud (VPC). For information // about storing containers in a private Docker registry, see Use a Private // Docker Registry for Real-Time Inference Containers (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-containers-inference-private.html) ImageConfig *ImageConfig `type:"structure"` // Whether the container hosts a single model or multiple models. Mode *string `type:"string" enum:"ContainerMode"` // The S3 path where the model artifacts, which result from model training, // are stored. This path must point to a single gzip compressed tar archive // (.tar.gz suffix). The S3 path is required for Amazon SageMaker built-in algorithms, // but not if you use your own algorithms. For more information on built-in // algorithms, see Common Parameters (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html). // // If you provide a value for this parameter, Amazon SageMaker uses AWS Security // Token Service to download model artifacts from the S3 path you provide. AWS // STS is activated in your IAM user account by default. If you previously deactivated // AWS STS for a region, you need to reactivate AWS STS for that region. For // more information, see Activating and Deactivating AWS STS in an AWS Region // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) // in the AWS Identity and Access Management User Guide. // // If you use a built-in algorithm to create a model, Amazon SageMaker requires // that you provide a S3 path to the model artifacts in ModelDataUrl. ModelDataUrl *string `type:"string"` // The name or Amazon Resource Name (ARN) of the model package to use to create // the model. ModelPackageName *string `min:"1" type:"string"` } // String returns the string representation func (s ContainerDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContainerDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ContainerDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ContainerDefinition"} if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) } if s.ImageConfig != nil { if err := s.ImageConfig.Validate(); err != nil { invalidParams.AddNested("ImageConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerHostname sets the ContainerHostname field's value. func (s *ContainerDefinition) SetContainerHostname(v string) *ContainerDefinition { s.ContainerHostname = &v return s } // SetEnvironment sets the Environment field's value. func (s *ContainerDefinition) SetEnvironment(v map[string]*string) *ContainerDefinition { s.Environment = v return s } // SetImage sets the Image field's value. func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition { s.Image = &v return s } // SetImageConfig sets the ImageConfig field's value. func (s *ContainerDefinition) SetImageConfig(v *ImageConfig) *ContainerDefinition { s.ImageConfig = v return s } // SetMode sets the Mode field's value. func (s *ContainerDefinition) SetMode(v string) *ContainerDefinition { s.Mode = &v return s } // SetModelDataUrl sets the ModelDataUrl field's value. func (s *ContainerDefinition) SetModelDataUrl(v string) *ContainerDefinition { s.ModelDataUrl = &v return s } // SetModelPackageName sets the ModelPackageName field's value. func (s *ContainerDefinition) SetModelPackageName(v string) *ContainerDefinition { s.ModelPackageName = &v return s } // A list of continuous hyperparameters to tune. type ContinuousParameterRange struct { _ struct{} `type:"structure"` // The maximum value for the hyperparameter. The tuning job uses floating-point // values between MinValue value and this value for tuning. // // MaxValue is a required field MaxValue *string `type:"string" required:"true"` // The minimum value for the hyperparameter. The tuning job uses floating-point // values between this value and MaxValuefor tuning. // // MinValue is a required field MinValue *string `type:"string" required:"true"` // The name of the continuous hyperparameter to tune. // // Name is a required field Name *string `type:"string" required:"true"` // The scale that hyperparameter tuning uses to search the hyperparameter range. // For information about choosing a hyperparameter scale, see Hyperparameter // Scaling (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type). // One of the following values: // // Auto // // Amazon SageMaker hyperparameter tuning chooses the best scale for the hyperparameter. // // Linear // // Hyperparameter tuning searches the values in the hyperparameter range by // using a linear scale. // // Logarithmic // // Hyperparameter tuning searches the values in the hyperparameter range by // using a logarithmic scale. // // Logarithmic scaling works only for ranges that have only values greater than // 0. // // ReverseLogarithmic // // Hyperparameter tuning searches the values in the hyperparameter range by // using a reverse logarithmic scale. // // Reverse logarithmic scaling works only for ranges that are entirely within // the range 0<=x<1.0. ScalingType *string `type:"string" enum:"HyperParameterScalingType"` } // String returns the string representation func (s ContinuousParameterRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContinuousParameterRange) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ContinuousParameterRange) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRange"} if s.MaxValue == nil { invalidParams.Add(request.NewErrParamRequired("MaxValue")) } if s.MinValue == nil { invalidParams.Add(request.NewErrParamRequired("MinValue")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxValue sets the MaxValue field's value. func (s *ContinuousParameterRange) SetMaxValue(v string) *ContinuousParameterRange { s.MaxValue = &v return s } // SetMinValue sets the MinValue field's value. func (s *ContinuousParameterRange) SetMinValue(v string) *ContinuousParameterRange { s.MinValue = &v return s } // SetName sets the Name field's value. func (s *ContinuousParameterRange) SetName(v string) *ContinuousParameterRange { s.Name = &v return s } // SetScalingType sets the ScalingType field's value. func (s *ContinuousParameterRange) SetScalingType(v string) *ContinuousParameterRange { s.ScalingType = &v return s } // Defines the possible values for a continuous hyperparameter. type ContinuousParameterRangeSpecification struct { _ struct{} `type:"structure"` // The maximum floating-point value allowed. // // MaxValue is a required field MaxValue *string `type:"string" required:"true"` // The minimum floating-point value allowed. // // MinValue is a required field MinValue *string `type:"string" required:"true"` } // String returns the string representation func (s ContinuousParameterRangeSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContinuousParameterRangeSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ContinuousParameterRangeSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRangeSpecification"} if s.MaxValue == nil { invalidParams.Add(request.NewErrParamRequired("MaxValue")) } if s.MinValue == nil { invalidParams.Add(request.NewErrParamRequired("MinValue")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxValue sets the MaxValue field's value. func (s *ContinuousParameterRangeSpecification) SetMaxValue(v string) *ContinuousParameterRangeSpecification { s.MaxValue = &v return s } // SetMinValue sets the MinValue field's value. func (s *ContinuousParameterRangeSpecification) SetMinValue(v string) *ContinuousParameterRangeSpecification { s.MinValue = &v return s } type CreateAlgorithmInput struct { _ struct{} `type:"structure"` // A description of the algorithm. AlgorithmDescription *string `type:"string"` // The name of the algorithm. // // AlgorithmName is a required field AlgorithmName *string `min:"1" type:"string" required:"true"` // Whether to certify the algorithm so that it can be listed in AWS Marketplace. CertifyForMarketplace *bool `type:"boolean"` // Specifies details about inference jobs that the algorithm runs, including // the following: // // * The Amazon ECR paths of containers that contain the inference code and // model artifacts. // // * The instance types that the algorithm supports for transform jobs and // real-time endpoints used for inference. // // * The input and output content formats that the algorithm supports for // inference. InferenceSpecification *InferenceSpecification `type:"structure"` // Specifies details about training jobs run by this algorithm, including the // following: // // * The Amazon ECR path of the container and the version digest of the algorithm. // // * The hyperparameters that the algorithm supports. // // * The instance types that the algorithm supports for training. // // * Whether the algorithm supports distributed training. // // * The metrics that the algorithm emits to Amazon CloudWatch. // // * Which metrics that the algorithm emits can be used as the objective // metric for hyperparameter tuning jobs. // // * The input channels that the algorithm supports for training data. For // example, an algorithm might support train, validation, and test channels. // // TrainingSpecification is a required field TrainingSpecification *TrainingSpecification `type:"structure" required:"true"` // Specifies configurations for one or more training jobs and that Amazon SageMaker // runs to test the algorithm's training code and, optionally, one or more batch // transform jobs that Amazon SageMaker runs to test the algorithm's inference // code. ValidationSpecification *AlgorithmValidationSpecification `type:"structure"` } // String returns the string representation func (s CreateAlgorithmInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAlgorithmInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAlgorithmInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAlgorithmInput"} if s.AlgorithmName == nil { invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) } if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) } if s.TrainingSpecification == nil { invalidParams.Add(request.NewErrParamRequired("TrainingSpecification")) } if s.InferenceSpecification != nil { if err := s.InferenceSpecification.Validate(); err != nil { invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams)) } } if s.TrainingSpecification != nil { if err := s.TrainingSpecification.Validate(); err != nil { invalidParams.AddNested("TrainingSpecification", err.(request.ErrInvalidParams)) } } if s.ValidationSpecification != nil { if err := s.ValidationSpecification.Validate(); err != nil { invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmDescription sets the AlgorithmDescription field's value. func (s *CreateAlgorithmInput) SetAlgorithmDescription(v string) *CreateAlgorithmInput { s.AlgorithmDescription = &v return s } // SetAlgorithmName sets the AlgorithmName field's value. func (s *CreateAlgorithmInput) SetAlgorithmName(v string) *CreateAlgorithmInput { s.AlgorithmName = &v return s } // SetCertifyForMarketplace sets the CertifyForMarketplace field's value. func (s *CreateAlgorithmInput) SetCertifyForMarketplace(v bool) *CreateAlgorithmInput { s.CertifyForMarketplace = &v return s } // SetInferenceSpecification sets the InferenceSpecification field's value. func (s *CreateAlgorithmInput) SetInferenceSpecification(v *InferenceSpecification) *CreateAlgorithmInput { s.InferenceSpecification = v return s } // SetTrainingSpecification sets the TrainingSpecification field's value. func (s *CreateAlgorithmInput) SetTrainingSpecification(v *TrainingSpecification) *CreateAlgorithmInput { s.TrainingSpecification = v return s } // SetValidationSpecification sets the ValidationSpecification field's value. func (s *CreateAlgorithmInput) SetValidationSpecification(v *AlgorithmValidationSpecification) *CreateAlgorithmInput { s.ValidationSpecification = v return s } type CreateAlgorithmOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the new algorithm. // // AlgorithmArn is a required field AlgorithmArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateAlgorithmOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAlgorithmOutput) GoString() string { return s.String() } // SetAlgorithmArn sets the AlgorithmArn field's value. func (s *CreateAlgorithmOutput) SetAlgorithmArn(v string) *CreateAlgorithmOutput { s.AlgorithmArn = &v return s } type CreateAppInput struct { _ struct{} `type:"structure"` // The name of the app. // // AppName is a required field AppName *string `type:"string" required:"true"` // The type of app. // // AppType is a required field AppType *string `type:"string" required:"true" enum:"AppType"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The instance type and the Amazon Resource Name (ARN) of the SageMaker image // created on the instance. ResourceSpec *ResourceSpec `type:"structure"` // Each tag consists of a key and an optional value. Tag keys must be unique // per resource. Tags []*Tag `type:"list"` // The user profile name. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` } // String returns the string representation func (s CreateAppInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAppInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"} if s.AppName == nil { invalidParams.Add(request.NewErrParamRequired("AppName")) } if s.AppType == nil { invalidParams.Add(request.NewErrParamRequired("AppType")) } if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppName sets the AppName field's value. func (s *CreateAppInput) SetAppName(v string) *CreateAppInput { s.AppName = &v return s } // SetAppType sets the AppType field's value. func (s *CreateAppInput) SetAppType(v string) *CreateAppInput { s.AppType = &v return s } // SetDomainId sets the DomainId field's value. func (s *CreateAppInput) SetDomainId(v string) *CreateAppInput { s.DomainId = &v return s } // SetResourceSpec sets the ResourceSpec field's value. func (s *CreateAppInput) SetResourceSpec(v *ResourceSpec) *CreateAppInput { s.ResourceSpec = v return s } // SetTags sets the Tags field's value. func (s *CreateAppInput) SetTags(v []*Tag) *CreateAppInput { s.Tags = v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *CreateAppInput) SetUserProfileName(v string) *CreateAppInput { s.UserProfileName = &v return s } type CreateAppOutput struct { _ struct{} `type:"structure"` // The App's Amazon Resource Name (ARN). AppArn *string `type:"string"` } // String returns the string representation func (s CreateAppOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppOutput) GoString() string { return s.String() } // SetAppArn sets the AppArn field's value. func (s *CreateAppOutput) SetAppArn(v string) *CreateAppOutput { s.AppArn = &v return s } type CreateAutoMLJobInput struct { _ struct{} `type:"structure"` // Contains CompletionCriteria and SecurityConfig. AutoMLJobConfig *AutoMLJobConfig `type:"structure"` // Identifies an Autopilot job. Must be unique to your account and is case-insensitive. // // AutoMLJobName is a required field AutoMLJobName *string `min:"1" type:"string" required:"true"` // Defines the objective of a an AutoML job. You provide a AutoMLJobObjective$MetricName // and Autopilot infers whether to minimize or maximize it. If a metric is not // specified, the most commonly used ObjectiveMetric for problem type is automaically // selected. AutoMLJobObjective *AutoMLJobObjective `type:"structure"` // Generates possible candidates without training a model. A candidate is a // combination of data preprocessors, algorithms, and algorithm parameter settings. GenerateCandidateDefinitionsOnly *bool `type:"boolean"` // Similar to InputDataConfig supported by Tuning. Format(s) supported: CSV. // Minimum of 1000 rows. // // InputDataConfig is a required field InputDataConfig []*AutoMLChannel `min:"1" type:"list" required:"true"` // Similar to OutputDataConfig supported by Tuning. Format(s) supported: CSV. // // OutputDataConfig is a required field OutputDataConfig *AutoMLOutputDataConfig `type:"structure" required:"true"` // Defines the kind of preprocessing and algorithms intended for the candidates. // Options include: BinaryClassification, MulticlassClassification, and Regression. ProblemType *string `type:"string" enum:"ProblemType"` // The ARN of the role that is used to access the data. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // Each tag consists of a key and an optional value. Tag keys must be unique // per resource. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateAutoMLJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAutoMLJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAutoMLJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAutoMLJobInput"} if s.AutoMLJobName == nil { invalidParams.Add(request.NewErrParamRequired("AutoMLJobName")) } if s.AutoMLJobName != nil && len(*s.AutoMLJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoMLJobName", 1)) } if s.InputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) } if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) } if s.OutputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.AutoMLJobConfig != nil { if err := s.AutoMLJobConfig.Validate(); err != nil { invalidParams.AddNested("AutoMLJobConfig", err.(request.ErrInvalidParams)) } } if s.AutoMLJobObjective != nil { if err := s.AutoMLJobObjective.Validate(); err != nil { invalidParams.AddNested("AutoMLJobObjective", err.(request.ErrInvalidParams)) } } if s.InputDataConfig != nil { for i, v := range s.InputDataConfig { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) } } } if s.OutputDataConfig != nil { if err := s.OutputDataConfig.Validate(); err != nil { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoMLJobConfig sets the AutoMLJobConfig field's value. func (s *CreateAutoMLJobInput) SetAutoMLJobConfig(v *AutoMLJobConfig) *CreateAutoMLJobInput { s.AutoMLJobConfig = v return s } // SetAutoMLJobName sets the AutoMLJobName field's value. func (s *CreateAutoMLJobInput) SetAutoMLJobName(v string) *CreateAutoMLJobInput { s.AutoMLJobName = &v return s } // SetAutoMLJobObjective sets the AutoMLJobObjective field's value. func (s *CreateAutoMLJobInput) SetAutoMLJobObjective(v *AutoMLJobObjective) *CreateAutoMLJobInput { s.AutoMLJobObjective = v return s } // SetGenerateCandidateDefinitionsOnly sets the GenerateCandidateDefinitionsOnly field's value. func (s *CreateAutoMLJobInput) SetGenerateCandidateDefinitionsOnly(v bool) *CreateAutoMLJobInput { s.GenerateCandidateDefinitionsOnly = &v return s } // SetInputDataConfig sets the InputDataConfig field's value. func (s *CreateAutoMLJobInput) SetInputDataConfig(v []*AutoMLChannel) *CreateAutoMLJobInput { s.InputDataConfig = v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. func (s *CreateAutoMLJobInput) SetOutputDataConfig(v *AutoMLOutputDataConfig) *CreateAutoMLJobInput { s.OutputDataConfig = v return s } // SetProblemType sets the ProblemType field's value. func (s *CreateAutoMLJobInput) SetProblemType(v string) *CreateAutoMLJobInput { s.ProblemType = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateAutoMLJobInput) SetRoleArn(v string) *CreateAutoMLJobInput { s.RoleArn = &v return s } // SetTags sets the Tags field's value. func (s *CreateAutoMLJobInput) SetTags(v []*Tag) *CreateAutoMLJobInput { s.Tags = v return s } type CreateAutoMLJobOutput struct { _ struct{} `type:"structure"` // When a job is created, it is assigned a unique ARN. // // AutoMLJobArn is a required field AutoMLJobArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateAutoMLJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAutoMLJobOutput) GoString() string { return s.String() } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *CreateAutoMLJobOutput) SetAutoMLJobArn(v string) *CreateAutoMLJobOutput { s.AutoMLJobArn = &v return s } type CreateCodeRepositoryInput struct { _ struct{} `type:"structure"` // The name of the Git repository. The name must have 1 to 63 characters. Valid // characters are a-z, A-Z, 0-9, and - (hyphen). // // CodeRepositoryName is a required field CodeRepositoryName *string `min:"1" type:"string" required:"true"` // Specifies details about the repository, including the URL where the repository // is located, the default branch, and credentials to use to access the repository. // // GitConfig is a required field GitConfig *GitConfig `type:"structure" required:"true"` } // String returns the string representation func (s CreateCodeRepositoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateCodeRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateCodeRepositoryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateCodeRepositoryInput"} if s.CodeRepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) } if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) } if s.GitConfig == nil { invalidParams.Add(request.NewErrParamRequired("GitConfig")) } if s.GitConfig != nil { if err := s.GitConfig.Validate(); err != nil { invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCodeRepositoryName sets the CodeRepositoryName field's value. func (s *CreateCodeRepositoryInput) SetCodeRepositoryName(v string) *CreateCodeRepositoryInput { s.CodeRepositoryName = &v return s } // SetGitConfig sets the GitConfig field's value. func (s *CreateCodeRepositoryInput) SetGitConfig(v *GitConfig) *CreateCodeRepositoryInput { s.GitConfig = v return s } type CreateCodeRepositoryOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the new repository. // // CodeRepositoryArn is a required field CodeRepositoryArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateCodeRepositoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateCodeRepositoryOutput) GoString() string { return s.String() } // SetCodeRepositoryArn sets the CodeRepositoryArn field's value. func (s *CreateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *CreateCodeRepositoryOutput { s.CodeRepositoryArn = &v return s } type CreateCompilationJobInput struct { _ struct{} `type:"structure"` // A name for the model compilation job. The name must be unique within the // AWS Region and within your AWS account. // // CompilationJobName is a required field CompilationJobName *string `min:"1" type:"string" required:"true"` // Provides information about the location of input model artifacts, the name // and shape of the expected data inputs, and the framework in which the model // was trained. // // InputConfig is a required field InputConfig *InputConfig `type:"structure" required:"true"` // Provides information about the output location for the compiled model and // the target device the model runs on. // // OutputConfig is a required field OutputConfig *OutputConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker // to perform tasks on your behalf. // // During model compilation, Amazon SageMaker needs your permission to: // // * Read input data from an S3 bucket // // * Write model artifacts to an S3 bucket // // * Write logs to Amazon CloudWatch Logs // // * Publish metrics to Amazon CloudWatch // // You grant permissions for all of these tasks to an IAM role. To pass this // role to Amazon SageMaker, the caller of this API must have the iam:PassRole // permission. For more information, see Amazon SageMaker Roles. (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html) // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // Specifies a limit to how long a model compilation job can run. When the job // reaches the time limit, Amazon SageMaker ends the compilation job. Use this // API to cap model training costs. // // StoppingCondition is a required field StoppingCondition *StoppingCondition `type:"structure" required:"true"` } // String returns the string representation func (s CreateCompilationJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateCompilationJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateCompilationJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateCompilationJobInput"} if s.CompilationJobName == nil { invalidParams.Add(request.NewErrParamRequired("CompilationJobName")) } if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1)) } if s.InputConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputConfig")) } if s.OutputConfig == nil { invalidParams.Add(request.NewErrParamRequired("OutputConfig")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.StoppingCondition == nil { invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) } if s.InputConfig != nil { if err := s.InputConfig.Validate(); err != nil { invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams)) } } if s.OutputConfig != nil { if err := s.OutputConfig.Validate(); err != nil { invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams)) } } if s.StoppingCondition != nil { if err := s.StoppingCondition.Validate(); err != nil { invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCompilationJobName sets the CompilationJobName field's value. func (s *CreateCompilationJobInput) SetCompilationJobName(v string) *CreateCompilationJobInput { s.CompilationJobName = &v return s } // SetInputConfig sets the InputConfig field's value. func (s *CreateCompilationJobInput) SetInputConfig(v *InputConfig) *CreateCompilationJobInput { s.InputConfig = v return s } // SetOutputConfig sets the OutputConfig field's value. func (s *CreateCompilationJobInput) SetOutputConfig(v *OutputConfig) *CreateCompilationJobInput { s.OutputConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateCompilationJobInput) SetRoleArn(v string) *CreateCompilationJobInput { s.RoleArn = &v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *CreateCompilationJobInput) SetStoppingCondition(v *StoppingCondition) *CreateCompilationJobInput { s.StoppingCondition = v return s } type CreateCompilationJobOutput struct { _ struct{} `type:"structure"` // If the action is successful, the service sends back an HTTP 200 response. // Amazon SageMaker returns the following data in JSON format: // // * CompilationJobArn: The Amazon Resource Name (ARN) of the compiled job. // // CompilationJobArn is a required field CompilationJobArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateCompilationJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateCompilationJobOutput) GoString() string { return s.String() } // SetCompilationJobArn sets the CompilationJobArn field's value. func (s *CreateCompilationJobOutput) SetCompilationJobArn(v string) *CreateCompilationJobOutput { s.CompilationJobArn = &v return s } type CreateDomainInput struct { _ struct{} `type:"structure"` // The mode of authentication that members use to access the domain. // // AuthMode is a required field AuthMode *string `type:"string" required:"true" enum:"AuthMode"` // The default user settings. // // DefaultUserSettings is a required field DefaultUserSettings *UserSettings `type:"structure" required:"true"` // A name for the domain. // // DomainName is a required field DomainName *string `type:"string" required:"true"` // The AWS Key Management Service (KMS) encryption key ID. Encryption with a // customer master key (CMK) is not supported. HomeEfsFileSystemKmsKeyId *string `type:"string"` // The VPC subnets to use for communication with the EFS volume. // // SubnetIds is a required field SubnetIds []*string `min:"1" type:"list" required:"true"` // Tags to associated with the Domain. Each tag consists of a key and an optional // value. Tag keys must be unique per resource. Tags are searchable using the // Search API. Tags []*Tag `type:"list"` // The ID of the Amazon Virtual Private Cloud (VPC) to use for communication // with the EFS volume. // // VpcId is a required field VpcId *string `type:"string" required:"true"` } // String returns the string representation func (s CreateDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDomainInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"} if s.AuthMode == nil { invalidParams.Add(request.NewErrParamRequired("AuthMode")) } if s.DefaultUserSettings == nil { invalidParams.Add(request.NewErrParamRequired("DefaultUserSettings")) } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.SubnetIds == nil { invalidParams.Add(request.NewErrParamRequired("SubnetIds")) } if s.SubnetIds != nil && len(s.SubnetIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("SubnetIds", 1)) } if s.VpcId == nil { invalidParams.Add(request.NewErrParamRequired("VpcId")) } if s.DefaultUserSettings != nil { if err := s.DefaultUserSettings.Validate(); err != nil { invalidParams.AddNested("DefaultUserSettings", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthMode sets the AuthMode field's value. func (s *CreateDomainInput) SetAuthMode(v string) *CreateDomainInput { s.AuthMode = &v return s } // SetDefaultUserSettings sets the DefaultUserSettings field's value. func (s *CreateDomainInput) SetDefaultUserSettings(v *UserSettings) *CreateDomainInput { s.DefaultUserSettings = v return s } // SetDomainName sets the DomainName field's value. func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput { s.DomainName = &v return s } // SetHomeEfsFileSystemKmsKeyId sets the HomeEfsFileSystemKmsKeyId field's value. func (s *CreateDomainInput) SetHomeEfsFileSystemKmsKeyId(v string) *CreateDomainInput { s.HomeEfsFileSystemKmsKeyId = &v return s } // SetSubnetIds sets the SubnetIds field's value. func (s *CreateDomainInput) SetSubnetIds(v []*string) *CreateDomainInput { s.SubnetIds = v return s } // SetTags sets the Tags field's value. func (s *CreateDomainInput) SetTags(v []*Tag) *CreateDomainInput { s.Tags = v return s } // SetVpcId sets the VpcId field's value. func (s *CreateDomainInput) SetVpcId(v string) *CreateDomainInput { s.VpcId = &v return s } type CreateDomainOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the created domain. DomainArn *string `type:"string"` // The URL to the created domain. Url *string `type:"string"` } // String returns the string representation func (s CreateDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDomainOutput) GoString() string { return s.String() } // SetDomainArn sets the DomainArn field's value. func (s *CreateDomainOutput) SetDomainArn(v string) *CreateDomainOutput { s.DomainArn = &v return s } // SetUrl sets the Url field's value. func (s *CreateDomainOutput) SetUrl(v string) *CreateDomainOutput { s.Url = &v return s } type CreateEndpointConfigInput struct { _ struct{} `type:"structure"` DataCaptureConfig *DataCaptureConfig `type:"structure"` // The name of the endpoint configuration. You specify this name in a CreateEndpoint // request. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon // SageMaker uses to encrypt data on the storage volume attached to the ML compute // instance that hosts the endpoint. // // The KmsKeyId can be any of the following formats: // // * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // * Alias name: alias/ExampleAlias // // * Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias // // The KMS key policy must grant permission to the IAM role that you specify // in your CreateEndpoint, UpdateEndpoint requests. For more information, refer // to the AWS Key Management Service section Using Key Policies in AWS KMS (https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) // // Certain Nitro-based instances include local storage, dependent on the instance // type. Local storage volumes are encrypted using a hardware module on the // instance. You can't request a KmsKeyId when using an instance type with local // storage. If any of the models that you specify in the ProductionVariants // parameter use nitro-based instances with local storage, do not specify a // value for the KmsKeyId parameter. If you specify a value for KmsKeyId when // using any nitro-based instances with local storage, the call to CreateEndpointConfig // fails. // // For a list of instance types that support local instance storage, see Instance // Store Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes). // // For more information about local instance storage encryption, see SSD Instance // Store Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html). KmsKeyId *string `type:"string"` // An list of ProductionVariant objects, one for each model that you want to // host at this endpoint. // // ProductionVariants is a required field ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` // A list of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateEndpointConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateEndpointConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateEndpointConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateEndpointConfigInput"} if s.EndpointConfigName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) } if s.ProductionVariants == nil { invalidParams.Add(request.NewErrParamRequired("ProductionVariants")) } if s.ProductionVariants != nil && len(s.ProductionVariants) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProductionVariants", 1)) } if s.DataCaptureConfig != nil { if err := s.DataCaptureConfig.Validate(); err != nil { invalidParams.AddNested("DataCaptureConfig", err.(request.ErrInvalidParams)) } } if s.ProductionVariants != nil { for i, v := range s.ProductionVariants { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductionVariants", i), err.(request.ErrInvalidParams)) } } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDataCaptureConfig sets the DataCaptureConfig field's value. func (s *CreateEndpointConfigInput) SetDataCaptureConfig(v *DataCaptureConfig) *CreateEndpointConfigInput { s.DataCaptureConfig = v return s } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *CreateEndpointConfigInput) SetEndpointConfigName(v string) *CreateEndpointConfigInput { s.EndpointConfigName = &v return s } // SetKmsKeyId sets the KmsKeyId field's value. func (s *CreateEndpointConfigInput) SetKmsKeyId(v string) *CreateEndpointConfigInput { s.KmsKeyId = &v return s } // SetProductionVariants sets the ProductionVariants field's value. func (s *CreateEndpointConfigInput) SetProductionVariants(v []*ProductionVariant) *CreateEndpointConfigInput { s.ProductionVariants = v return s } // SetTags sets the Tags field's value. func (s *CreateEndpointConfigInput) SetTags(v []*Tag) *CreateEndpointConfigInput { s.Tags = v return s } type CreateEndpointConfigOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the endpoint configuration. // // EndpointConfigArn is a required field EndpointConfigArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s CreateEndpointConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateEndpointConfigOutput) GoString() string { return s.String() } // SetEndpointConfigArn sets the EndpointConfigArn field's value. func (s *CreateEndpointConfigOutput) SetEndpointConfigArn(v string) *CreateEndpointConfigOutput { s.EndpointConfigArn = &v return s } type CreateEndpointInput struct { _ struct{} `type:"structure"` // The name of an endpoint configuration. For more information, see CreateEndpointConfig. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` // The name of the endpoint. The name must be unique within an AWS Region in // your AWS account. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)in // the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateEndpointInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateEndpointInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateEndpointInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} if s.EndpointConfigName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) } if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *CreateEndpointInput) SetEndpointConfigName(v string) *CreateEndpointInput { s.EndpointConfigName = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *CreateEndpointInput) SetEndpointName(v string) *CreateEndpointInput { s.EndpointName = &v return s } // SetTags sets the Tags field's value. func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { s.Tags = v return s } type CreateEndpointOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the endpoint. // // EndpointArn is a required field EndpointArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s CreateEndpointOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateEndpointOutput) GoString() string { return s.String() } // SetEndpointArn sets the EndpointArn field's value. func (s *CreateEndpointOutput) SetEndpointArn(v string) *CreateEndpointOutput { s.EndpointArn = &v return s } type CreateExperimentInput struct { _ struct{} `type:"structure"` // The description of the experiment. Description *string `type:"string"` // The name of the experiment as displayed. The name doesn't need to be unique. // If you don't specify DisplayName, the value in ExperimentName is displayed. DisplayName *string `min:"1" type:"string"` // The name of the experiment. The name must be unique in your AWS account and // is not case-sensitive. // // ExperimentName is a required field ExperimentName *string `min:"1" type:"string" required:"true"` // A list of tags to associate with the experiment. You can use Search API to // search on the tags. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateExperimentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateExperimentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateExperimentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateExperimentInput"} if s.DisplayName != nil && len(*s.DisplayName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) } if s.ExperimentName == nil { invalidParams.Add(request.NewErrParamRequired("ExperimentName")) } if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *CreateExperimentInput) SetDescription(v string) *CreateExperimentInput { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *CreateExperimentInput) SetDisplayName(v string) *CreateExperimentInput { s.DisplayName = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *CreateExperimentInput) SetExperimentName(v string) *CreateExperimentInput { s.ExperimentName = &v return s } // SetTags sets the Tags field's value. func (s *CreateExperimentInput) SetTags(v []*Tag) *CreateExperimentInput { s.Tags = v return s } type CreateExperimentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the experiment. ExperimentArn *string `type:"string"` } // String returns the string representation func (s CreateExperimentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateExperimentOutput) GoString() string { return s.String() } // SetExperimentArn sets the ExperimentArn field's value. func (s *CreateExperimentOutput) SetExperimentArn(v string) *CreateExperimentOutput { s.ExperimentArn = &v return s } type CreateFlowDefinitionInput struct { _ struct{} `type:"structure"` // The name of your flow definition. // // FlowDefinitionName is a required field FlowDefinitionName *string `min:"1" type:"string" required:"true"` // An object containing information about the events that trigger a human workflow. HumanLoopActivationConfig *HumanLoopActivationConfig `type:"structure"` // An object containing information about the tasks the human reviewers will // perform. // // HumanLoopConfig is a required field HumanLoopConfig *HumanLoopConfig `type:"structure" required:"true"` // Container for configuring the source of human task requests. Use to specify // if Amazon Rekognition or Amazon Textract is used as an integration source. HumanLoopRequestSource *HumanLoopRequestSource `type:"structure"` // An object containing information about where the human review results will // be uploaded. // // OutputConfig is a required field OutputConfig *FlowDefinitionOutputConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of the role needed to call other services // on your behalf. For example, arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // An array of key-value pairs that contain metadata to help you categorize // and organize a flow definition. Each tag consists of a key and a value, both // of which you define. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateFlowDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateFlowDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateFlowDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateFlowDefinitionInput"} if s.FlowDefinitionName == nil { invalidParams.Add(request.NewErrParamRequired("FlowDefinitionName")) } if s.FlowDefinitionName != nil && len(*s.FlowDefinitionName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FlowDefinitionName", 1)) } if s.HumanLoopConfig == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopConfig")) } if s.OutputConfig == nil { invalidParams.Add(request.NewErrParamRequired("OutputConfig")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.HumanLoopActivationConfig != nil { if err := s.HumanLoopActivationConfig.Validate(); err != nil { invalidParams.AddNested("HumanLoopActivationConfig", err.(request.ErrInvalidParams)) } } if s.HumanLoopConfig != nil { if err := s.HumanLoopConfig.Validate(); err != nil { invalidParams.AddNested("HumanLoopConfig", err.(request.ErrInvalidParams)) } } if s.HumanLoopRequestSource != nil { if err := s.HumanLoopRequestSource.Validate(); err != nil { invalidParams.AddNested("HumanLoopRequestSource", err.(request.ErrInvalidParams)) } } if s.OutputConfig != nil { if err := s.OutputConfig.Validate(); err != nil { invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFlowDefinitionName sets the FlowDefinitionName field's value. func (s *CreateFlowDefinitionInput) SetFlowDefinitionName(v string) *CreateFlowDefinitionInput { s.FlowDefinitionName = &v return s } // SetHumanLoopActivationConfig sets the HumanLoopActivationConfig field's value. func (s *CreateFlowDefinitionInput) SetHumanLoopActivationConfig(v *HumanLoopActivationConfig) *CreateFlowDefinitionInput { s.HumanLoopActivationConfig = v return s } // SetHumanLoopConfig sets the HumanLoopConfig field's value. func (s *CreateFlowDefinitionInput) SetHumanLoopConfig(v *HumanLoopConfig) *CreateFlowDefinitionInput { s.HumanLoopConfig = v return s } // SetHumanLoopRequestSource sets the HumanLoopRequestSource field's value. func (s *CreateFlowDefinitionInput) SetHumanLoopRequestSource(v *HumanLoopRequestSource) *CreateFlowDefinitionInput { s.HumanLoopRequestSource = v return s } // SetOutputConfig sets the OutputConfig field's value. func (s *CreateFlowDefinitionInput) SetOutputConfig(v *FlowDefinitionOutputConfig) *CreateFlowDefinitionInput { s.OutputConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateFlowDefinitionInput) SetRoleArn(v string) *CreateFlowDefinitionInput { s.RoleArn = &v return s } // SetTags sets the Tags field's value. func (s *CreateFlowDefinitionInput) SetTags(v []*Tag) *CreateFlowDefinitionInput { s.Tags = v return s } type CreateFlowDefinitionOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the flow definition you create. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateFlowDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateFlowDefinitionOutput) GoString() string { return s.String() } // SetFlowDefinitionArn sets the FlowDefinitionArn field's value. func (s *CreateFlowDefinitionOutput) SetFlowDefinitionArn(v string) *CreateFlowDefinitionOutput { s.FlowDefinitionArn = &v return s } type CreateHumanTaskUiInput struct { _ struct{} `type:"structure"` // The name of the user interface you are creating. // // HumanTaskUiName is a required field HumanTaskUiName *string `min:"1" type:"string" required:"true"` // An array of key-value pairs that contain metadata to help you categorize // and organize a human review workflow user interface. Each tag consists of // a key and a value, both of which you define. Tags []*Tag `type:"list"` // The Liquid template for the worker user interface. // // UiTemplate is a required field UiTemplate *UiTemplate `type:"structure" required:"true"` } // String returns the string representation func (s CreateHumanTaskUiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateHumanTaskUiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateHumanTaskUiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateHumanTaskUiInput"} if s.HumanTaskUiName == nil { invalidParams.Add(request.NewErrParamRequired("HumanTaskUiName")) } if s.HumanTaskUiName != nil && len(*s.HumanTaskUiName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HumanTaskUiName", 1)) } if s.UiTemplate == nil { invalidParams.Add(request.NewErrParamRequired("UiTemplate")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if s.UiTemplate != nil { if err := s.UiTemplate.Validate(); err != nil { invalidParams.AddNested("UiTemplate", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanTaskUiName sets the HumanTaskUiName field's value. func (s *CreateHumanTaskUiInput) SetHumanTaskUiName(v string) *CreateHumanTaskUiInput { s.HumanTaskUiName = &v return s } // SetTags sets the Tags field's value. func (s *CreateHumanTaskUiInput) SetTags(v []*Tag) *CreateHumanTaskUiInput { s.Tags = v return s } // SetUiTemplate sets the UiTemplate field's value. func (s *CreateHumanTaskUiInput) SetUiTemplate(v *UiTemplate) *CreateHumanTaskUiInput { s.UiTemplate = v return s } type CreateHumanTaskUiOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the human review workflow user interface // you create. // // HumanTaskUiArn is a required field HumanTaskUiArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateHumanTaskUiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateHumanTaskUiOutput) GoString() string { return s.String() } // SetHumanTaskUiArn sets the HumanTaskUiArn field's value. func (s *CreateHumanTaskUiOutput) SetHumanTaskUiArn(v string) *CreateHumanTaskUiOutput { s.HumanTaskUiArn = &v return s } type CreateHyperParameterTuningJobInput struct { _ struct{} `type:"structure"` // The HyperParameterTuningJobConfig object that describes the tuning job, including // the search strategy, the objective metric used to evaluate training jobs, // ranges of parameters to search, and resource limits for the tuning job. For // more information, see How Hyperparameter Tuning Works (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html). // // HyperParameterTuningJobConfig is a required field HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` // The name of the tuning job. This name is the prefix for the names of all // training jobs that this tuning job launches. The name must be unique within // the same AWS account and AWS Region. The name must have { } to { } characters. // Valid characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name // is not case sensitive. // // HyperParameterTuningJobName is a required field HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` // An array of key-value pairs. You can use tags to categorize your AWS resources // in different ways, for example, by purpose, owner, or environment. For more // information, see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). // // Tags that you specify for the tuning job are also added to all training jobs // that the tuning job launches. Tags []*Tag `type:"list"` // The HyperParameterTrainingJobDefinition object that describes the training // jobs that this tuning job launches, including static hyperparameters, input // data configuration, output data configuration, resource configuration, and // stopping condition. TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure"` // A list of the HyperParameterTrainingJobDefinition objects launched for this // tuning job. TrainingJobDefinitions []*HyperParameterTrainingJobDefinition `min:"1" type:"list"` // Specifies the configuration for starting the hyperparameter tuning job using // one or more previous tuning jobs as a starting point. The results of previous // tuning jobs are used to inform which combinations of hyperparameters to search // over in the new tuning job. // // All training jobs launched by the new hyperparameter tuning job are evaluated // by using the objective metric. If you specify IDENTICAL_DATA_AND_ALGORITHM // as the WarmStartType value for the warm start configuration, the training // job that performs the best in the new tuning job is compared to the best // training jobs from the parent tuning jobs. From these, the training job that // performs the best as measured by the objective metric is returned as the // overall best training job. // // All training jobs launched by parent hyperparameter tuning jobs and the new // hyperparameter tuning jobs count against the limit of training jobs for the // tuning job. WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"` } // String returns the string representation func (s CreateHyperParameterTuningJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateHyperParameterTuningJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateHyperParameterTuningJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateHyperParameterTuningJobInput"} if s.HyperParameterTuningJobConfig == nil { invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobConfig")) } if s.HyperParameterTuningJobName == nil { invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) } if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) } if s.TrainingJobDefinitions != nil && len(s.TrainingJobDefinitions) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrainingJobDefinitions", 1)) } if s.HyperParameterTuningJobConfig != nil { if err := s.HyperParameterTuningJobConfig.Validate(); err != nil { invalidParams.AddNested("HyperParameterTuningJobConfig", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if s.TrainingJobDefinition != nil { if err := s.TrainingJobDefinition.Validate(); err != nil { invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams)) } } if s.TrainingJobDefinitions != nil { for i, v := range s.TrainingJobDefinitions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TrainingJobDefinitions", i), err.(request.ErrInvalidParams)) } } } if s.WarmStartConfig != nil { if err := s.WarmStartConfig.Validate(); err != nil { invalidParams.AddNested("WarmStartConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *CreateHyperParameterTuningJobInput { s.HyperParameterTuningJobConfig = v return s } // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *CreateHyperParameterTuningJobInput { s.HyperParameterTuningJobName = &v return s } // SetTags sets the Tags field's value. func (s *CreateHyperParameterTuningJobInput) SetTags(v []*Tag) *CreateHyperParameterTuningJobInput { s.Tags = v return s } // SetTrainingJobDefinition sets the TrainingJobDefinition field's value. func (s *CreateHyperParameterTuningJobInput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *CreateHyperParameterTuningJobInput { s.TrainingJobDefinition = v return s } // SetTrainingJobDefinitions sets the TrainingJobDefinitions field's value. func (s *CreateHyperParameterTuningJobInput) SetTrainingJobDefinitions(v []*HyperParameterTrainingJobDefinition) *CreateHyperParameterTuningJobInput { s.TrainingJobDefinitions = v return s } // SetWarmStartConfig sets the WarmStartConfig field's value. func (s *CreateHyperParameterTuningJobInput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *CreateHyperParameterTuningJobInput { s.WarmStartConfig = v return s } type CreateHyperParameterTuningJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the tuning job. Amazon SageMaker assigns // an ARN to a hyperparameter tuning job when you create it. // // HyperParameterTuningJobArn is a required field HyperParameterTuningJobArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateHyperParameterTuningJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateHyperParameterTuningJobOutput) GoString() string { return s.String() } // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. func (s *CreateHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *CreateHyperParameterTuningJobOutput { s.HyperParameterTuningJobArn = &v return s } type CreateLabelingJobInput struct { _ struct{} `type:"structure"` // Configures the labeling task and how it is presented to workers; including, // but not limited to price, keywords, and batch size (task count). // // HumanTaskConfig is a required field HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"` // Input data for the labeling job, such as the Amazon S3 location of the data // objects and the location of the manifest file that describes the data objects. // // InputConfig is a required field InputConfig *LabelingJobInputConfig `type:"structure" required:"true"` // The attribute name to use for the label in the output manifest file. This // is the key for the key/value pair formed with the label that a worker assigns // to the object. The name can't end with "-metadata". If you are running a // semantic segmentation labeling job, the attribute name must end with "-ref". // If you are running any other kind of labeling job, the attribute name must // not end with "-ref". // // LabelAttributeName is a required field LabelAttributeName *string `min:"1" type:"string" required:"true"` // The S3 URL of the file that defines the categories used to label the data // objects. // // For 3D point cloud task types, see Create a Labeling Category Configuration // File for 3D Point Cloud Labeling Jobs (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-point-cloud-label-category-config.html). // // For all other built-in task types (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-task-types.html) // and custom tasks (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-custom-templates.html), // your label category configuration file must be a JSON file in the following // format. Identify the labels you want to use by replacing label_1, label_2,...,label_n // with your label categories. // // { // // "document-version": "2018-11-28" // // "labels": [ // // { // // "label": "label_1" // // }, // // { // // "label": "label_2" // // }, // // ... // // { // // "label": "label_n" // // } // // ] // // } LabelCategoryConfigS3Uri *string `type:"string"` // Configures the information required to perform automated data labeling. LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"` // The name of the labeling job. This name is used to identify the job in a // list of labeling jobs. // // LabelingJobName is a required field LabelingJobName *string `min:"1" type:"string" required:"true"` // The location of the output data and the AWS Key Management Service key ID // for the key used to encrypt the output data, if any. // // OutputConfig is a required field OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"` // The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform // tasks on your behalf during data labeling. You must grant this role the necessary // permissions so that Amazon SageMaker can successfully complete data labeling. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // A set of conditions for stopping the labeling job. If any of the conditions // are met, the job is automatically stopped. You can use these conditions to // control the cost of data labeling. StoppingConditions *LabelingJobStoppingConditions `type:"structure"` // An array of key/value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateLabelingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateLabelingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateLabelingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateLabelingJobInput"} if s.HumanTaskConfig == nil { invalidParams.Add(request.NewErrParamRequired("HumanTaskConfig")) } if s.InputConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputConfig")) } if s.LabelAttributeName == nil { invalidParams.Add(request.NewErrParamRequired("LabelAttributeName")) } if s.LabelAttributeName != nil && len(*s.LabelAttributeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LabelAttributeName", 1)) } if s.LabelingJobName == nil { invalidParams.Add(request.NewErrParamRequired("LabelingJobName")) } if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1)) } if s.OutputConfig == nil { invalidParams.Add(request.NewErrParamRequired("OutputConfig")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.HumanTaskConfig != nil { if err := s.HumanTaskConfig.Validate(); err != nil { invalidParams.AddNested("HumanTaskConfig", err.(request.ErrInvalidParams)) } } if s.InputConfig != nil { if err := s.InputConfig.Validate(); err != nil { invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams)) } } if s.LabelingJobAlgorithmsConfig != nil { if err := s.LabelingJobAlgorithmsConfig.Validate(); err != nil { invalidParams.AddNested("LabelingJobAlgorithmsConfig", err.(request.ErrInvalidParams)) } } if s.OutputConfig != nil { if err := s.OutputConfig.Validate(); err != nil { invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams)) } } if s.StoppingConditions != nil { if err := s.StoppingConditions.Validate(); err != nil { invalidParams.AddNested("StoppingConditions", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanTaskConfig sets the HumanTaskConfig field's value. func (s *CreateLabelingJobInput) SetHumanTaskConfig(v *HumanTaskConfig) *CreateLabelingJobInput { s.HumanTaskConfig = v return s } // SetInputConfig sets the InputConfig field's value. func (s *CreateLabelingJobInput) SetInputConfig(v *LabelingJobInputConfig) *CreateLabelingJobInput { s.InputConfig = v return s } // SetLabelAttributeName sets the LabelAttributeName field's value. func (s *CreateLabelingJobInput) SetLabelAttributeName(v string) *CreateLabelingJobInput { s.LabelAttributeName = &v return s } // SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value. func (s *CreateLabelingJobInput) SetLabelCategoryConfigS3Uri(v string) *CreateLabelingJobInput { s.LabelCategoryConfigS3Uri = &v return s } // SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value. func (s *CreateLabelingJobInput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *CreateLabelingJobInput { s.LabelingJobAlgorithmsConfig = v return s } // SetLabelingJobName sets the LabelingJobName field's value. func (s *CreateLabelingJobInput) SetLabelingJobName(v string) *CreateLabelingJobInput { s.LabelingJobName = &v return s } // SetOutputConfig sets the OutputConfig field's value. func (s *CreateLabelingJobInput) SetOutputConfig(v *LabelingJobOutputConfig) *CreateLabelingJobInput { s.OutputConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateLabelingJobInput) SetRoleArn(v string) *CreateLabelingJobInput { s.RoleArn = &v return s } // SetStoppingConditions sets the StoppingConditions field's value. func (s *CreateLabelingJobInput) SetStoppingConditions(v *LabelingJobStoppingConditions) *CreateLabelingJobInput { s.StoppingConditions = v return s } // SetTags sets the Tags field's value. func (s *CreateLabelingJobInput) SetTags(v []*Tag) *CreateLabelingJobInput { s.Tags = v return s } type CreateLabelingJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the labeling job. You use this ARN to identify // the labeling job. // // LabelingJobArn is a required field LabelingJobArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateLabelingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateLabelingJobOutput) GoString() string { return s.String() } // SetLabelingJobArn sets the LabelingJobArn field's value. func (s *CreateLabelingJobOutput) SetLabelingJobArn(v string) *CreateLabelingJobOutput { s.LabelingJobArn = &v return s } type CreateModelInput struct { _ struct{} `type:"structure"` // Specifies the containers in the inference pipeline. Containers []*ContainerDefinition `type:"list"` // Isolates the model container. No inbound or outbound network calls can be // made to or from the model container. EnableNetworkIsolation *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can // assume to access model artifacts and docker image for deployment on ML compute // instances or for batch transform jobs. Deploying on ML compute instances // is part of model hosting. For more information, see Amazon SageMaker Roles // (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). // // To be able to pass this role to Amazon SageMaker, the caller of this API // must have the iam:PassRole permission. // // ExecutionRoleArn is a required field ExecutionRoleArn *string `min:"20" type:"string" required:"true"` // The name of the new model. // // ModelName is a required field ModelName *string `type:"string" required:"true"` // The location of the primary docker image containing inference code, associated // artifacts, and custom environment map that the inference code uses when the // model is deployed for predictions. PrimaryContainer *ContainerDefinition `type:"structure"` // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` // A VpcConfig object that specifies the VPC that you want your model to connect // to. Control access to and from your model container by configuring the VPC. // VpcConfig is used in hosting services and in batch transform. For more information, // see Protect Endpoints by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) // and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private // Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html). VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s CreateModelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateModelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateModelInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} if s.ExecutionRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn")) } if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20)) } if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } if s.Containers != nil { for i, v := range s.Containers { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams)) } } } if s.PrimaryContainer != nil { if err := s.PrimaryContainer.Validate(); err != nil { invalidParams.AddNested("PrimaryContainer", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if s.VpcConfig != nil { if err := s.VpcConfig.Validate(); err != nil { invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainers sets the Containers field's value. func (s *CreateModelInput) SetContainers(v []*ContainerDefinition) *CreateModelInput { s.Containers = v return s } // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. func (s *CreateModelInput) SetEnableNetworkIsolation(v bool) *CreateModelInput { s.EnableNetworkIsolation = &v return s } // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *CreateModelInput) SetExecutionRoleArn(v string) *CreateModelInput { s.ExecutionRoleArn = &v return s } // SetModelName sets the ModelName field's value. func (s *CreateModelInput) SetModelName(v string) *CreateModelInput { s.ModelName = &v return s } // SetPrimaryContainer sets the PrimaryContainer field's value. func (s *CreateModelInput) SetPrimaryContainer(v *ContainerDefinition) *CreateModelInput { s.PrimaryContainer = v return s } // SetTags sets the Tags field's value. func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput { s.Tags = v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *CreateModelInput) SetVpcConfig(v *VpcConfig) *CreateModelInput { s.VpcConfig = v return s } type CreateModelOutput struct { _ struct{} `type:"structure"` // The ARN of the model created in Amazon SageMaker. // // ModelArn is a required field ModelArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s CreateModelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateModelOutput) GoString() string { return s.String() } // SetModelArn sets the ModelArn field's value. func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput { s.ModelArn = &v return s } type CreateModelPackageInput struct { _ struct{} `type:"structure"` // Whether to certify the model package for listing on AWS Marketplace. CertifyForMarketplace *bool `type:"boolean"` // Specifies details about inference jobs that can be run with models based // on this model package, including the following: // // * The Amazon ECR paths of containers that contain the inference code and // model artifacts. // // * The instance types that the model package supports for transform jobs // and real-time endpoints used for inference. // // * The input and output content formats that the model package supports // for inference. InferenceSpecification *InferenceSpecification `type:"structure"` // A description of the model package. ModelPackageDescription *string `type:"string"` // The name of the model package. The name must have 1 to 63 characters. Valid // characters are a-z, A-Z, 0-9, and - (hyphen). // // ModelPackageName is a required field ModelPackageName *string `min:"1" type:"string" required:"true"` // Details about the algorithm that was used to create the model package. SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"` // Specifies configurations for one or more transform jobs that Amazon SageMaker // runs to test the model package. ValidationSpecification *ModelPackageValidationSpecification `type:"structure"` } // String returns the string representation func (s CreateModelPackageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateModelPackageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateModelPackageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateModelPackageInput"} if s.ModelPackageName == nil { invalidParams.Add(request.NewErrParamRequired("ModelPackageName")) } if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) } if s.InferenceSpecification != nil { if err := s.InferenceSpecification.Validate(); err != nil { invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams)) } } if s.SourceAlgorithmSpecification != nil { if err := s.SourceAlgorithmSpecification.Validate(); err != nil { invalidParams.AddNested("SourceAlgorithmSpecification", err.(request.ErrInvalidParams)) } } if s.ValidationSpecification != nil { if err := s.ValidationSpecification.Validate(); err != nil { invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCertifyForMarketplace sets the CertifyForMarketplace field's value. func (s *CreateModelPackageInput) SetCertifyForMarketplace(v bool) *CreateModelPackageInput { s.CertifyForMarketplace = &v return s } // SetInferenceSpecification sets the InferenceSpecification field's value. func (s *CreateModelPackageInput) SetInferenceSpecification(v *InferenceSpecification) *CreateModelPackageInput { s.InferenceSpecification = v return s } // SetModelPackageDescription sets the ModelPackageDescription field's value. func (s *CreateModelPackageInput) SetModelPackageDescription(v string) *CreateModelPackageInput { s.ModelPackageDescription = &v return s } // SetModelPackageName sets the ModelPackageName field's value. func (s *CreateModelPackageInput) SetModelPackageName(v string) *CreateModelPackageInput { s.ModelPackageName = &v return s } // SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value. func (s *CreateModelPackageInput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *CreateModelPackageInput { s.SourceAlgorithmSpecification = v return s } // SetValidationSpecification sets the ValidationSpecification field's value. func (s *CreateModelPackageInput) SetValidationSpecification(v *ModelPackageValidationSpecification) *CreateModelPackageInput { s.ValidationSpecification = v return s } type CreateModelPackageOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the new model package. // // ModelPackageArn is a required field ModelPackageArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateModelPackageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateModelPackageOutput) GoString() string { return s.String() } // SetModelPackageArn sets the ModelPackageArn field's value. func (s *CreateModelPackageOutput) SetModelPackageArn(v string) *CreateModelPackageOutput { s.ModelPackageArn = &v return s } type CreateMonitoringScheduleInput struct { _ struct{} `type:"structure"` // The configuration object that specifies the monitoring schedule and defines // the monitoring job. // // MonitoringScheduleConfig is a required field MonitoringScheduleConfig *MonitoringScheduleConfig `type:"structure" required:"true"` // The name of the monitoring schedule. The name must be unique within an AWS // Region within an AWS account. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` // (Optional) An array of key-value pairs. For more information, see Using Cost // Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateMonitoringScheduleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateMonitoringScheduleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateMonitoringScheduleInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateMonitoringScheduleInput"} if s.MonitoringScheduleConfig == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleConfig")) } if s.MonitoringScheduleName == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleName")) } if s.MonitoringScheduleName != nil && len(*s.MonitoringScheduleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringScheduleName", 1)) } if s.MonitoringScheduleConfig != nil { if err := s.MonitoringScheduleConfig.Validate(); err != nil { invalidParams.AddNested("MonitoringScheduleConfig", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMonitoringScheduleConfig sets the MonitoringScheduleConfig field's value. func (s *CreateMonitoringScheduleInput) SetMonitoringScheduleConfig(v *MonitoringScheduleConfig) *CreateMonitoringScheduleInput { s.MonitoringScheduleConfig = v return s } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *CreateMonitoringScheduleInput) SetMonitoringScheduleName(v string) *CreateMonitoringScheduleInput { s.MonitoringScheduleName = &v return s } // SetTags sets the Tags field's value. func (s *CreateMonitoringScheduleInput) SetTags(v []*Tag) *CreateMonitoringScheduleInput { s.Tags = v return s } type CreateMonitoringScheduleOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the monitoring schedule. // // MonitoringScheduleArn is a required field MonitoringScheduleArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateMonitoringScheduleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateMonitoringScheduleOutput) GoString() string { return s.String() } // SetMonitoringScheduleArn sets the MonitoringScheduleArn field's value. func (s *CreateMonitoringScheduleOutput) SetMonitoringScheduleArn(v string) *CreateMonitoringScheduleOutput { s.MonitoringScheduleArn = &v return s } type CreateNotebookInstanceInput struct { _ struct{} `type:"structure"` // A list of Elastic Inference (EI) instance types to associate with this notebook // instance. Currently, only one instance type can be associated with a notebook // instance. For more information, see Using Elastic Inference in Amazon SageMaker // (https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). AcceleratorTypes []*string `type:"list"` // An array of up to three Git repositories to associate with the notebook instance. // These can be either the names of Git repositories stored as resources in // your account, or the URL of Git repositories in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. These repositories are cloned at the same // level as the default repository of your notebook instance. For more information, // see Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). AdditionalCodeRepositories []*string `type:"list"` // A Git repository to associate with the notebook instance as its default code // repository. This can be either the name of a Git repository stored as a resource // in your account, or the URL of a Git repository in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. When you open a notebook instance, it opens // in the directory that contains this repository. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). DefaultCodeRepository *string `min:"1" type:"string"` // Sets whether Amazon SageMaker provides internet access to the notebook instance. // If you set this to Disabled this notebook instance will be able to access // resources only in your VPC, and will not be able to connect to Amazon SageMaker // training and endpoint services unless your configure a NAT Gateway in your // VPC. // // For more information, see Notebook Instances Are Internet-Enabled by Default // (https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access). // You can set the value of this parameter to Disabled only if you set a value // for the SubnetId parameter. DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` // The type of ML compute instance to launch for the notebook instance. // // InstanceType is a required field InstanceType *string `type:"string" required:"true" enum:"InstanceType"` // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon // SageMaker uses to encrypt data on the storage volume attached to your notebook // instance. The KMS key you provide must be enabled. For information, see Enabling // and Disabling Keys (https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html) // in the AWS Key Management Service Developer Guide. KmsKeyId *string `type:"string"` // The name of a lifecycle configuration to associate with the notebook instance. // For information about lifestyle configurations, see Step 2.1: (Optional) // Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). LifecycleConfigName *string `type:"string"` // The name of the new notebook instance. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` // When you send any requests to AWS resources from the notebook instance, Amazon // SageMaker assumes this role to perform tasks on your behalf. You must grant // this role necessary permissions so Amazon SageMaker can perform these tasks. // The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com) // permissions to assume this role. For more information, see Amazon SageMaker // Roles (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). // // To be able to pass this role to Amazon SageMaker, the caller of this API // must have the iam:PassRole permission. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // Whether root access is enabled or disabled for users of the notebook instance. // The default value is Enabled. // // Lifecycle configurations need root access to be able to set up a notebook // instance. Because of this, lifecycle configurations associated with a notebook // instance always run with root access even if you disable root access for // users. RootAccess *string `type:"string" enum:"RootAccess"` // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups // must be for the same VPC as specified in the subnet. SecurityGroupIds []*string `type:"list"` // The ID of the subnet in a VPC to which you would like to have a connectivity // from your ML compute instance. SubnetId *string `type:"string"` // A list of tags to associate with the notebook instance. You can add tags // later by using the CreateTags API. Tags []*Tag `type:"list"` // The size, in GB, of the ML storage volume to attach to the notebook instance. // The default value is 5 GB. VolumeSizeInGB *int64 `min:"5" type:"integer"` } // String returns the string representation func (s CreateNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNotebookInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateNotebookInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceInput"} if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 { invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 { invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5)) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAcceleratorTypes sets the AcceleratorTypes field's value. func (s *CreateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *CreateNotebookInstanceInput { s.AcceleratorTypes = v return s } // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. func (s *CreateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *CreateNotebookInstanceInput { s.AdditionalCodeRepositories = v return s } // SetDefaultCodeRepository sets the DefaultCodeRepository field's value. func (s *CreateNotebookInstanceInput) SetDefaultCodeRepository(v string) *CreateNotebookInstanceInput { s.DefaultCodeRepository = &v return s } // SetDirectInternetAccess sets the DirectInternetAccess field's value. func (s *CreateNotebookInstanceInput) SetDirectInternetAccess(v string) *CreateNotebookInstanceInput { s.DirectInternetAccess = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *CreateNotebookInstanceInput) SetInstanceType(v string) *CreateNotebookInstanceInput { s.InstanceType = &v return s } // SetKmsKeyId sets the KmsKeyId field's value. func (s *CreateNotebookInstanceInput) SetKmsKeyId(v string) *CreateNotebookInstanceInput { s.KmsKeyId = &v return s } // SetLifecycleConfigName sets the LifecycleConfigName field's value. func (s *CreateNotebookInstanceInput) SetLifecycleConfigName(v string) *CreateNotebookInstanceInput { s.LifecycleConfigName = &v return s } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *CreateNotebookInstanceInput) SetNotebookInstanceName(v string) *CreateNotebookInstanceInput { s.NotebookInstanceName = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateNotebookInstanceInput) SetRoleArn(v string) *CreateNotebookInstanceInput { s.RoleArn = &v return s } // SetRootAccess sets the RootAccess field's value. func (s *CreateNotebookInstanceInput) SetRootAccess(v string) *CreateNotebookInstanceInput { s.RootAccess = &v return s } // SetSecurityGroupIds sets the SecurityGroupIds field's value. func (s *CreateNotebookInstanceInput) SetSecurityGroupIds(v []*string) *CreateNotebookInstanceInput { s.SecurityGroupIds = v return s } // SetSubnetId sets the SubnetId field's value. func (s *CreateNotebookInstanceInput) SetSubnetId(v string) *CreateNotebookInstanceInput { s.SubnetId = &v return s } // SetTags sets the Tags field's value. func (s *CreateNotebookInstanceInput) SetTags(v []*Tag) *CreateNotebookInstanceInput { s.Tags = v return s } // SetVolumeSizeInGB sets the VolumeSizeInGB field's value. func (s *CreateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *CreateNotebookInstanceInput { s.VolumeSizeInGB = &v return s } type CreateNotebookInstanceLifecycleConfigInput struct { _ struct{} `type:"structure"` // The name of the lifecycle configuration. // // NotebookInstanceLifecycleConfigName is a required field NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` // A shell script that runs only once, when you create a notebook instance. // The shell script must be a base64-encoded string. OnCreate []*NotebookInstanceLifecycleHook `type:"list"` // A shell script that runs every time you start a notebook instance, including // when you create the notebook instance. The shell script must be a base64-encoded // string. OnStart []*NotebookInstanceLifecycleHook `type:"list"` } // String returns the string representation func (s CreateNotebookInstanceLifecycleConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNotebookInstanceLifecycleConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateNotebookInstanceLifecycleConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceLifecycleConfigInput"} if s.NotebookInstanceLifecycleConfigName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) } if s.OnCreate != nil { for i, v := range s.OnCreate { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) } } } if s.OnStart != nil { for i, v := range s.OnStart { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *CreateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *CreateNotebookInstanceLifecycleConfigInput { s.NotebookInstanceLifecycleConfigName = &v return s } // SetOnCreate sets the OnCreate field's value. func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { s.OnCreate = v return s } // SetOnStart sets the OnStart field's value. func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { s.OnStart = v return s } type CreateNotebookInstanceLifecycleConfigOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the lifecycle configuration. NotebookInstanceLifecycleConfigArn *string `type:"string"` } // String returns the string representation func (s CreateNotebookInstanceLifecycleConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNotebookInstanceLifecycleConfigOutput) GoString() string { return s.String() } // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. func (s *CreateNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *CreateNotebookInstanceLifecycleConfigOutput { s.NotebookInstanceLifecycleConfigArn = &v return s } type CreateNotebookInstanceOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the notebook instance. NotebookInstanceArn *string `type:"string"` } // String returns the string representation func (s CreateNotebookInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNotebookInstanceOutput) GoString() string { return s.String() } // SetNotebookInstanceArn sets the NotebookInstanceArn field's value. func (s *CreateNotebookInstanceOutput) SetNotebookInstanceArn(v string) *CreateNotebookInstanceOutput { s.NotebookInstanceArn = &v return s } type CreatePresignedDomainUrlInput struct { _ struct{} `type:"structure"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The session expiration duration in seconds. SessionExpirationDurationInSeconds *int64 `min:"1800" type:"integer"` // The name of the UserProfile to sign-in as. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` } // String returns the string representation func (s CreatePresignedDomainUrlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePresignedDomainUrlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreatePresignedDomainUrlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreatePresignedDomainUrlInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.SessionExpirationDurationInSeconds != nil && *s.SessionExpirationDurationInSeconds < 1800 { invalidParams.Add(request.NewErrParamMinValue("SessionExpirationDurationInSeconds", 1800)) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainId sets the DomainId field's value. func (s *CreatePresignedDomainUrlInput) SetDomainId(v string) *CreatePresignedDomainUrlInput { s.DomainId = &v return s } // SetSessionExpirationDurationInSeconds sets the SessionExpirationDurationInSeconds field's value. func (s *CreatePresignedDomainUrlInput) SetSessionExpirationDurationInSeconds(v int64) *CreatePresignedDomainUrlInput { s.SessionExpirationDurationInSeconds = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *CreatePresignedDomainUrlInput) SetUserProfileName(v string) *CreatePresignedDomainUrlInput { s.UserProfileName = &v return s } type CreatePresignedDomainUrlOutput struct { _ struct{} `type:"structure"` // The presigned URL. AuthorizedUrl *string `type:"string"` } // String returns the string representation func (s CreatePresignedDomainUrlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePresignedDomainUrlOutput) GoString() string { return s.String() } // SetAuthorizedUrl sets the AuthorizedUrl field's value. func (s *CreatePresignedDomainUrlOutput) SetAuthorizedUrl(v string) *CreatePresignedDomainUrlOutput { s.AuthorizedUrl = &v return s } type CreatePresignedNotebookInstanceUrlInput struct { _ struct{} `type:"structure"` // The name of the notebook instance. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` // The duration of the session, in seconds. The default is 12 hours. SessionExpirationDurationInSeconds *int64 `min:"1800" type:"integer"` } // String returns the string representation func (s CreatePresignedNotebookInstanceUrlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePresignedNotebookInstanceUrlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreatePresignedNotebookInstanceUrlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreatePresignedNotebookInstanceUrlInput"} if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if s.SessionExpirationDurationInSeconds != nil && *s.SessionExpirationDurationInSeconds < 1800 { invalidParams.Add(request.NewErrParamMinValue("SessionExpirationDurationInSeconds", 1800)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *CreatePresignedNotebookInstanceUrlInput) SetNotebookInstanceName(v string) *CreatePresignedNotebookInstanceUrlInput { s.NotebookInstanceName = &v return s } // SetSessionExpirationDurationInSeconds sets the SessionExpirationDurationInSeconds field's value. func (s *CreatePresignedNotebookInstanceUrlInput) SetSessionExpirationDurationInSeconds(v int64) *CreatePresignedNotebookInstanceUrlInput { s.SessionExpirationDurationInSeconds = &v return s } type CreatePresignedNotebookInstanceUrlOutput struct { _ struct{} `type:"structure"` // A JSON object that contains the URL string. AuthorizedUrl *string `type:"string"` } // String returns the string representation func (s CreatePresignedNotebookInstanceUrlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePresignedNotebookInstanceUrlOutput) GoString() string { return s.String() } // SetAuthorizedUrl sets the AuthorizedUrl field's value. func (s *CreatePresignedNotebookInstanceUrlOutput) SetAuthorizedUrl(v string) *CreatePresignedNotebookInstanceUrlOutput { s.AuthorizedUrl = &v return s } type CreateProcessingJobInput struct { _ struct{} `type:"structure"` // Configures the processing job to run a specified Docker container image. // // AppSpecification is a required field AppSpecification *AppSpecification `type:"structure" required:"true"` // Sets the environment variables in the Docker container. Environment map[string]*string `type:"map"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // Networking options for a processing job. NetworkConfig *NetworkConfig `type:"structure"` // For each input, data is downloaded from S3 into the processing container // before the processing job begins running if "S3InputMode" is set to File. ProcessingInputs []*ProcessingInput `type:"list"` // The name of the processing job. The name must be unique within an AWS Region // in the AWS account. // // ProcessingJobName is a required field ProcessingJobName *string `min:"1" type:"string" required:"true"` // Output configuration for the processing job. ProcessingOutputConfig *ProcessingOutputConfig `type:"structure"` // Identifies the resources, ML compute instances, and ML storage volumes to // deploy for a processing job. In distributed training, you specify more than // one instance. // // ProcessingResources is a required field ProcessingResources *ProcessingResources `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume // to perform tasks on your behalf. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // The time limit for how long the processing job is allowed to run. StoppingCondition *ProcessingStoppingCondition `type:"structure"` // (Optional) An array of key-value pairs. For more information, see Using Cost // Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateProcessingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateProcessingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateProcessingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateProcessingJobInput"} if s.AppSpecification == nil { invalidParams.Add(request.NewErrParamRequired("AppSpecification")) } if s.ProcessingJobName == nil { invalidParams.Add(request.NewErrParamRequired("ProcessingJobName")) } if s.ProcessingJobName != nil && len(*s.ProcessingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProcessingJobName", 1)) } if s.ProcessingResources == nil { invalidParams.Add(request.NewErrParamRequired("ProcessingResources")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.AppSpecification != nil { if err := s.AppSpecification.Validate(); err != nil { invalidParams.AddNested("AppSpecification", err.(request.ErrInvalidParams)) } } if s.ExperimentConfig != nil { if err := s.ExperimentConfig.Validate(); err != nil { invalidParams.AddNested("ExperimentConfig", err.(request.ErrInvalidParams)) } } if s.NetworkConfig != nil { if err := s.NetworkConfig.Validate(); err != nil { invalidParams.AddNested("NetworkConfig", err.(request.ErrInvalidParams)) } } if s.ProcessingInputs != nil { for i, v := range s.ProcessingInputs { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProcessingInputs", i), err.(request.ErrInvalidParams)) } } } if s.ProcessingOutputConfig != nil { if err := s.ProcessingOutputConfig.Validate(); err != nil { invalidParams.AddNested("ProcessingOutputConfig", err.(request.ErrInvalidParams)) } } if s.ProcessingResources != nil { if err := s.ProcessingResources.Validate(); err != nil { invalidParams.AddNested("ProcessingResources", err.(request.ErrInvalidParams)) } } if s.StoppingCondition != nil { if err := s.StoppingCondition.Validate(); err != nil { invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppSpecification sets the AppSpecification field's value. func (s *CreateProcessingJobInput) SetAppSpecification(v *AppSpecification) *CreateProcessingJobInput { s.AppSpecification = v return s } // SetEnvironment sets the Environment field's value. func (s *CreateProcessingJobInput) SetEnvironment(v map[string]*string) *CreateProcessingJobInput { s.Environment = v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *CreateProcessingJobInput) SetExperimentConfig(v *ExperimentConfig) *CreateProcessingJobInput { s.ExperimentConfig = v return s } // SetNetworkConfig sets the NetworkConfig field's value. func (s *CreateProcessingJobInput) SetNetworkConfig(v *NetworkConfig) *CreateProcessingJobInput { s.NetworkConfig = v return s } // SetProcessingInputs sets the ProcessingInputs field's value. func (s *CreateProcessingJobInput) SetProcessingInputs(v []*ProcessingInput) *CreateProcessingJobInput { s.ProcessingInputs = v return s } // SetProcessingJobName sets the ProcessingJobName field's value. func (s *CreateProcessingJobInput) SetProcessingJobName(v string) *CreateProcessingJobInput { s.ProcessingJobName = &v return s } // SetProcessingOutputConfig sets the ProcessingOutputConfig field's value. func (s *CreateProcessingJobInput) SetProcessingOutputConfig(v *ProcessingOutputConfig) *CreateProcessingJobInput { s.ProcessingOutputConfig = v return s } // SetProcessingResources sets the ProcessingResources field's value. func (s *CreateProcessingJobInput) SetProcessingResources(v *ProcessingResources) *CreateProcessingJobInput { s.ProcessingResources = v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateProcessingJobInput) SetRoleArn(v string) *CreateProcessingJobInput { s.RoleArn = &v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *CreateProcessingJobInput) SetStoppingCondition(v *ProcessingStoppingCondition) *CreateProcessingJobInput { s.StoppingCondition = v return s } // SetTags sets the Tags field's value. func (s *CreateProcessingJobInput) SetTags(v []*Tag) *CreateProcessingJobInput { s.Tags = v return s } type CreateProcessingJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the processing job. // // ProcessingJobArn is a required field ProcessingJobArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateProcessingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateProcessingJobOutput) GoString() string { return s.String() } // SetProcessingJobArn sets the ProcessingJobArn field's value. func (s *CreateProcessingJobOutput) SetProcessingJobArn(v string) *CreateProcessingJobOutput { s.ProcessingJobArn = &v return s } type CreateTrainingJobInput struct { _ struct{} `type:"structure"` // The registry path of the Docker image that contains the training algorithm // and algorithm-specific metadata, including the input mode. For more information // about algorithms provided by Amazon SageMaker, see Algorithms (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). // For information about providing your own algorithms, see Using Your Own Algorithms // with Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). // // AlgorithmSpecification is a required field AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` // Contains information about the output location for managed spot training // checkpoint data. CheckpointConfig *CheckpointConfig `type:"structure"` // Configuration information for the debug hook parameters, collection configuration, // and storage paths. DebugHookConfig *DebugHookConfig `type:"structure"` // Configuration information for debugging rules. DebugRuleConfigurations []*DebugRuleConfiguration `type:"list"` // To encrypt all communications between ML compute instances in distributed // training, choose True. Encryption provides greater security for distributed // training, but training might take longer. How long it takes depends on the // amount of communication between compute instances, especially if you use // a deep learning algorithm in distributed training. For more information, // see Protect Communications Between ML Compute Instances in a Distributed // Training Job (https://docs.aws.amazon.com/sagemaker/latest/dg/train-encrypt.html). EnableInterContainerTrafficEncryption *bool `type:"boolean"` // To train models using managed spot training, choose True. Managed spot training // provides a fully managed and scalable infrastructure for training machine // learning models. this option is useful when training jobs can be interrupted // and when there is flexibility when the training job is run. // // The complete and intermediate results of jobs are stored in an Amazon S3 // bucket, and can be used as a starting point to train models incrementally. // Amazon SageMaker provides metrics and logs in CloudWatch. They can be used // to see when managed spot training jobs are running, interrupted, resumed, // or completed. EnableManagedSpotTraining *bool `type:"boolean"` // Isolates the training container. No inbound or outbound network calls can // be made, except for calls between peers within a training cluster for distributed // training. If you enable network isolation for training jobs that are configured // to use a VPC, Amazon SageMaker downloads and uploads customer data and model // artifacts through the specified VPC, but the training container does not // have network access. EnableNetworkIsolation *bool `type:"boolean"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // Algorithm-specific parameters that influence the quality of the model. You // set hyperparameters before you start the learning process. For a list of // hyperparameters for each training algorithm provided by Amazon SageMaker, // see Algorithms (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). // // You can specify a maximum of 100 hyperparameters. Each hyperparameter is // a key-value pair. Each key and value is limited to 256 characters, as specified // by the Length Constraint. HyperParameters map[string]*string `type:"map"` // An array of Channel objects. Each channel is a named input source. InputDataConfig // describes the input data and its location. // // Algorithms can accept input data from one or more channels. For example, // an algorithm might have two channels of input data, training_data and validation_data. // The configuration for each channel provides the S3, EFS, or FSx location // where the input data is stored. It also provides information about the stored // data: the MIME type, compression method, and whether the data is wrapped // in RecordIO format. // // Depending on the input mode that the algorithm supports, Amazon SageMaker // either copies input data files from an S3 bucket to a local directory in // the Docker container, or makes it available as input streams. For example, // if you specify an EFS location, input data files will be made available as // input streams. They do not need to be downloaded. InputDataConfig []*Channel `min:"1" type:"list"` // Specifies the path to the S3 location where you want to store model artifacts. // Amazon SageMaker creates subfolders for the artifacts. // // OutputDataConfig is a required field OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` // The resources, including the ML compute instances and ML storage volumes, // to use for model training. // // ML storage volumes store model artifacts and incremental states. Training // algorithms might also use ML storage volumes for scratch space. If you want // Amazon SageMaker to use the ML storage volume to store the training data, // choose File as the TrainingInputMode in the algorithm specification. For // distributed training algorithms, specify an instance count greater than 1. // // ResourceConfig is a required field ResourceConfig *ResourceConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume // to perform tasks on your behalf. // // During model training, Amazon SageMaker needs your permission to read input // data from an S3 bucket, download a Docker image that contains training code, // write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, // and publish metrics to Amazon CloudWatch. You grant permissions for all of // these tasks to an IAM role. For more information, see Amazon SageMaker Roles // (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). // // To be able to pass this role to Amazon SageMaker, the caller of this API // must have the iam:PassRole permission. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // Specifies a limit to how long a model training job can run. When the job // reaches the time limit, Amazon SageMaker ends the training job. Use this // API to cap model training costs. // // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which // delays job termination for 120 seconds. Algorithms can use this 120-second // window to save the model artifacts, so the results of training are not lost. // // StoppingCondition is a required field StoppingCondition *StoppingCondition `type:"structure" required:"true"` // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` // Configuration of storage locations for TensorBoard output. TensorBoardOutputConfig *TensorBoardOutputConfig `type:"structure"` // The name of the training job. The name must be unique within an AWS Region // in an AWS account. // // TrainingJobName is a required field TrainingJobName *string `min:"1" type:"string" required:"true"` // A VpcConfig object that specifies the VPC that you want your training job // to connect to. Control access to and from your training container by configuring // the VPC. For more information, see Protect Training Jobs by Using an Amazon // Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s CreateTrainingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTrainingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateTrainingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateTrainingJobInput"} if s.AlgorithmSpecification == nil { invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) } if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) } if s.OutputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) } if s.ResourceConfig == nil { invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.StoppingCondition == nil { invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) } if s.TrainingJobName == nil { invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) } if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) } if s.AlgorithmSpecification != nil { if err := s.AlgorithmSpecification.Validate(); err != nil { invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) } } if s.CheckpointConfig != nil { if err := s.CheckpointConfig.Validate(); err != nil { invalidParams.AddNested("CheckpointConfig", err.(request.ErrInvalidParams)) } } if s.DebugHookConfig != nil { if err := s.DebugHookConfig.Validate(); err != nil { invalidParams.AddNested("DebugHookConfig", err.(request.ErrInvalidParams)) } } if s.DebugRuleConfigurations != nil { for i, v := range s.DebugRuleConfigurations { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DebugRuleConfigurations", i), err.(request.ErrInvalidParams)) } } } if s.ExperimentConfig != nil { if err := s.ExperimentConfig.Validate(); err != nil { invalidParams.AddNested("ExperimentConfig", err.(request.ErrInvalidParams)) } } if s.InputDataConfig != nil { for i, v := range s.InputDataConfig { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) } } } if s.OutputDataConfig != nil { if err := s.OutputDataConfig.Validate(); err != nil { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } if s.ResourceConfig != nil { if err := s.ResourceConfig.Validate(); err != nil { invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) } } if s.StoppingCondition != nil { if err := s.StoppingCondition.Validate(); err != nil { invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if s.TensorBoardOutputConfig != nil { if err := s.TensorBoardOutputConfig.Validate(); err != nil { invalidParams.AddNested("TensorBoardOutputConfig", err.(request.ErrInvalidParams)) } } if s.VpcConfig != nil { if err := s.VpcConfig.Validate(); err != nil { invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmSpecification sets the AlgorithmSpecification field's value. func (s *CreateTrainingJobInput) SetAlgorithmSpecification(v *AlgorithmSpecification) *CreateTrainingJobInput { s.AlgorithmSpecification = v return s } // SetCheckpointConfig sets the CheckpointConfig field's value. func (s *CreateTrainingJobInput) SetCheckpointConfig(v *CheckpointConfig) *CreateTrainingJobInput { s.CheckpointConfig = v return s } // SetDebugHookConfig sets the DebugHookConfig field's value. func (s *CreateTrainingJobInput) SetDebugHookConfig(v *DebugHookConfig) *CreateTrainingJobInput { s.DebugHookConfig = v return s } // SetDebugRuleConfigurations sets the DebugRuleConfigurations field's value. func (s *CreateTrainingJobInput) SetDebugRuleConfigurations(v []*DebugRuleConfiguration) *CreateTrainingJobInput { s.DebugRuleConfigurations = v return s } // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value. func (s *CreateTrainingJobInput) SetEnableInterContainerTrafficEncryption(v bool) *CreateTrainingJobInput { s.EnableInterContainerTrafficEncryption = &v return s } // SetEnableManagedSpotTraining sets the EnableManagedSpotTraining field's value. func (s *CreateTrainingJobInput) SetEnableManagedSpotTraining(v bool) *CreateTrainingJobInput { s.EnableManagedSpotTraining = &v return s } // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. func (s *CreateTrainingJobInput) SetEnableNetworkIsolation(v bool) *CreateTrainingJobInput { s.EnableNetworkIsolation = &v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *CreateTrainingJobInput) SetExperimentConfig(v *ExperimentConfig) *CreateTrainingJobInput { s.ExperimentConfig = v return s } // SetHyperParameters sets the HyperParameters field's value. func (s *CreateTrainingJobInput) SetHyperParameters(v map[string]*string) *CreateTrainingJobInput { s.HyperParameters = v return s } // SetInputDataConfig sets the InputDataConfig field's value. func (s *CreateTrainingJobInput) SetInputDataConfig(v []*Channel) *CreateTrainingJobInput { s.InputDataConfig = v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. func (s *CreateTrainingJobInput) SetOutputDataConfig(v *OutputDataConfig) *CreateTrainingJobInput { s.OutputDataConfig = v return s } // SetResourceConfig sets the ResourceConfig field's value. func (s *CreateTrainingJobInput) SetResourceConfig(v *ResourceConfig) *CreateTrainingJobInput { s.ResourceConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateTrainingJobInput) SetRoleArn(v string) *CreateTrainingJobInput { s.RoleArn = &v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *CreateTrainingJobInput) SetStoppingCondition(v *StoppingCondition) *CreateTrainingJobInput { s.StoppingCondition = v return s } // SetTags sets the Tags field's value. func (s *CreateTrainingJobInput) SetTags(v []*Tag) *CreateTrainingJobInput { s.Tags = v return s } // SetTensorBoardOutputConfig sets the TensorBoardOutputConfig field's value. func (s *CreateTrainingJobInput) SetTensorBoardOutputConfig(v *TensorBoardOutputConfig) *CreateTrainingJobInput { s.TensorBoardOutputConfig = v return s } // SetTrainingJobName sets the TrainingJobName field's value. func (s *CreateTrainingJobInput) SetTrainingJobName(v string) *CreateTrainingJobInput { s.TrainingJobName = &v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *CreateTrainingJobInput) SetVpcConfig(v *VpcConfig) *CreateTrainingJobInput { s.VpcConfig = v return s } type CreateTrainingJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the training job. // // TrainingJobArn is a required field TrainingJobArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateTrainingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTrainingJobOutput) GoString() string { return s.String() } // SetTrainingJobArn sets the TrainingJobArn field's value. func (s *CreateTrainingJobOutput) SetTrainingJobArn(v string) *CreateTrainingJobOutput { s.TrainingJobArn = &v return s } type CreateTransformJobInput struct { _ struct{} `type:"structure"` // Specifies the number of records to include in a mini-batch for an HTTP inference // request. A record is a single unit of input data that inference can be made // on. For example, a single line in a CSV file is a record. // // To enable the batch strategy, you must set the SplitType property to Line, // RecordIO, or TFRecord. // // To use only one record when making an HTTP invocation request to a container, // set BatchStrategy to SingleRecord and SplitType to Line. // // To fit as many records in a mini-batch as can fit within the MaxPayloadInMB // limit, set BatchStrategy to MultiRecord and SplitType to Line. BatchStrategy *string `type:"string" enum:"BatchStrategy"` // The data structure used to specify the data to be used for inference in a // batch transform job and to associate the data that is relevant to the prediction // results in the output. The input filter provided allows you to exclude input // data that is not needed for inference in a batch transform job. The output // filter provided allows you to include input data relevant to interpreting // the predictions in the output from the job. For more information, see Associate // Prediction Results with their Corresponding Input Records (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform-data-processing.html). DataProcessing *DataProcessing `type:"structure"` // The environment variables to set in the Docker container. We support up to // 16 key and values entries in the map. Environment map[string]*string `type:"map"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // The maximum number of parallel requests that can be sent to each instance // in a transform job. If MaxConcurrentTransforms is set to 0 or left unset, // Amazon SageMaker checks the optional execution-parameters to determine the // settings for your chosen algorithm. If the execution-parameters endpoint // is not enabled, the default value is 1. For more information on execution-parameters, // see How Containers Serve Requests (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-batch-code.html#your-algorithms-batch-code-how-containe-serves-requests). // For built-in algorithms, you don't need to set a value for MaxConcurrentTransforms. MaxConcurrentTransforms *int64 `type:"integer"` // The maximum allowed size of the payload, in MB. A payload is the data portion // of a record (without metadata). The value in MaxPayloadInMB must be greater // than, or equal to, the size of a single record. To estimate the size of a // record in MB, divide the size of your dataset by the number of records. To // ensure that the records fit within the maximum payload size, we recommend // using a slightly larger value. The default value is 6 MB. // // For cases where the payload might be arbitrarily large and is transmitted // using HTTP chunked encoding, set the value to 0. This feature works only // in supported algorithms. Currently, Amazon SageMaker built-in algorithms // do not support HTTP chunked encoding. MaxPayloadInMB *int64 `type:"integer"` // Configures the timeout and maximum number of retries for processing a transform // job invocation. ModelClientConfig *ModelClientConfig `type:"structure"` // The name of the model that you want to use for the transform job. ModelName // must be the name of an existing Amazon SageMaker model within an AWS Region // in an AWS account. // // ModelName is a required field ModelName *string `type:"string" required:"true"` // (Optional) An array of key-value pairs. For more information, see Using Cost // Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` // Describes the input source and the way the transform job consumes it. // // TransformInput is a required field TransformInput *TransformInput `type:"structure" required:"true"` // The name of the transform job. The name must be unique within an AWS Region // in an AWS account. // // TransformJobName is a required field TransformJobName *string `min:"1" type:"string" required:"true"` // Describes the results of the transform job. // // TransformOutput is a required field TransformOutput *TransformOutput `type:"structure" required:"true"` // Describes the resources, including ML instance types and ML instance count, // to use for the transform job. // // TransformResources is a required field TransformResources *TransformResources `type:"structure" required:"true"` } // String returns the string representation func (s CreateTransformJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTransformJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateTransformJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateTransformJobInput"} if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } if s.TransformInput == nil { invalidParams.Add(request.NewErrParamRequired("TransformInput")) } if s.TransformJobName == nil { invalidParams.Add(request.NewErrParamRequired("TransformJobName")) } if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) } if s.TransformOutput == nil { invalidParams.Add(request.NewErrParamRequired("TransformOutput")) } if s.TransformResources == nil { invalidParams.Add(request.NewErrParamRequired("TransformResources")) } if s.ExperimentConfig != nil { if err := s.ExperimentConfig.Validate(); err != nil { invalidParams.AddNested("ExperimentConfig", err.(request.ErrInvalidParams)) } } if s.ModelClientConfig != nil { if err := s.ModelClientConfig.Validate(); err != nil { invalidParams.AddNested("ModelClientConfig", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if s.TransformInput != nil { if err := s.TransformInput.Validate(); err != nil { invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams)) } } if s.TransformOutput != nil { if err := s.TransformOutput.Validate(); err != nil { invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams)) } } if s.TransformResources != nil { if err := s.TransformResources.Validate(); err != nil { invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBatchStrategy sets the BatchStrategy field's value. func (s *CreateTransformJobInput) SetBatchStrategy(v string) *CreateTransformJobInput { s.BatchStrategy = &v return s } // SetDataProcessing sets the DataProcessing field's value. func (s *CreateTransformJobInput) SetDataProcessing(v *DataProcessing) *CreateTransformJobInput { s.DataProcessing = v return s } // SetEnvironment sets the Environment field's value. func (s *CreateTransformJobInput) SetEnvironment(v map[string]*string) *CreateTransformJobInput { s.Environment = v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *CreateTransformJobInput) SetExperimentConfig(v *ExperimentConfig) *CreateTransformJobInput { s.ExperimentConfig = v return s } // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. func (s *CreateTransformJobInput) SetMaxConcurrentTransforms(v int64) *CreateTransformJobInput { s.MaxConcurrentTransforms = &v return s } // SetMaxPayloadInMB sets the MaxPayloadInMB field's value. func (s *CreateTransformJobInput) SetMaxPayloadInMB(v int64) *CreateTransformJobInput { s.MaxPayloadInMB = &v return s } // SetModelClientConfig sets the ModelClientConfig field's value. func (s *CreateTransformJobInput) SetModelClientConfig(v *ModelClientConfig) *CreateTransformJobInput { s.ModelClientConfig = v return s } // SetModelName sets the ModelName field's value. func (s *CreateTransformJobInput) SetModelName(v string) *CreateTransformJobInput { s.ModelName = &v return s } // SetTags sets the Tags field's value. func (s *CreateTransformJobInput) SetTags(v []*Tag) *CreateTransformJobInput { s.Tags = v return s } // SetTransformInput sets the TransformInput field's value. func (s *CreateTransformJobInput) SetTransformInput(v *TransformInput) *CreateTransformJobInput { s.TransformInput = v return s } // SetTransformJobName sets the TransformJobName field's value. func (s *CreateTransformJobInput) SetTransformJobName(v string) *CreateTransformJobInput { s.TransformJobName = &v return s } // SetTransformOutput sets the TransformOutput field's value. func (s *CreateTransformJobInput) SetTransformOutput(v *TransformOutput) *CreateTransformJobInput { s.TransformOutput = v return s } // SetTransformResources sets the TransformResources field's value. func (s *CreateTransformJobInput) SetTransformResources(v *TransformResources) *CreateTransformJobInput { s.TransformResources = v return s } type CreateTransformJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the transform job. // // TransformJobArn is a required field TransformJobArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateTransformJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTransformJobOutput) GoString() string { return s.String() } // SetTransformJobArn sets the TransformJobArn field's value. func (s *CreateTransformJobOutput) SetTransformJobArn(v string) *CreateTransformJobOutput { s.TransformJobArn = &v return s } type CreateTrialComponentInput struct { _ struct{} `type:"structure"` // The name of the component as displayed. The name doesn't need to be unique. // If DisplayName isn't specified, TrialComponentName is displayed. DisplayName *string `min:"1" type:"string"` // When the component ended. EndTime *time.Time `type:"timestamp"` // The input artifacts for the component. Examples of input artifacts are datasets, // algorithms, hyperparameters, source code, and instance types. InputArtifacts map[string]*TrialComponentArtifact `type:"map"` // The output artifacts for the component. Examples of output artifacts are // metrics, snapshots, logs, and images. OutputArtifacts map[string]*TrialComponentArtifact `type:"map"` // The hyperparameters for the component. Parameters map[string]*TrialComponentParameterValue `type:"map"` // When the component started. StartTime *time.Time `type:"timestamp"` // The status of the component. States include: // // * InProgress // // * Completed // // * Failed Status *TrialComponentStatus `type:"structure"` // A list of tags to associate with the component. You can use Search API to // search on the tags. Tags []*Tag `type:"list"` // The name of the component. The name must be unique in your AWS account and // is not case-sensitive. // // TrialComponentName is a required field TrialComponentName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateTrialComponentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTrialComponentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateTrialComponentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateTrialComponentInput"} if s.DisplayName != nil && len(*s.DisplayName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) } if s.TrialComponentName == nil { invalidParams.Add(request.NewErrParamRequired("TrialComponentName")) } if s.TrialComponentName != nil && len(*s.TrialComponentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentName", 1)) } if s.InputArtifacts != nil { for i, v := range s.InputArtifacts { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputArtifacts", i), err.(request.ErrInvalidParams)) } } } if s.OutputArtifacts != nil { for i, v := range s.OutputArtifacts { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputArtifacts", i), err.(request.ErrInvalidParams)) } } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDisplayName sets the DisplayName field's value. func (s *CreateTrialComponentInput) SetDisplayName(v string) *CreateTrialComponentInput { s.DisplayName = &v return s } // SetEndTime sets the EndTime field's value. func (s *CreateTrialComponentInput) SetEndTime(v time.Time) *CreateTrialComponentInput { s.EndTime = &v return s } // SetInputArtifacts sets the InputArtifacts field's value. func (s *CreateTrialComponentInput) SetInputArtifacts(v map[string]*TrialComponentArtifact) *CreateTrialComponentInput { s.InputArtifacts = v return s } // SetOutputArtifacts sets the OutputArtifacts field's value. func (s *CreateTrialComponentInput) SetOutputArtifacts(v map[string]*TrialComponentArtifact) *CreateTrialComponentInput { s.OutputArtifacts = v return s } // SetParameters sets the Parameters field's value. func (s *CreateTrialComponentInput) SetParameters(v map[string]*TrialComponentParameterValue) *CreateTrialComponentInput { s.Parameters = v return s } // SetStartTime sets the StartTime field's value. func (s *CreateTrialComponentInput) SetStartTime(v time.Time) *CreateTrialComponentInput { s.StartTime = &v return s } // SetStatus sets the Status field's value. func (s *CreateTrialComponentInput) SetStatus(v *TrialComponentStatus) *CreateTrialComponentInput { s.Status = v return s } // SetTags sets the Tags field's value. func (s *CreateTrialComponentInput) SetTags(v []*Tag) *CreateTrialComponentInput { s.Tags = v return s } // SetTrialComponentName sets the TrialComponentName field's value. func (s *CreateTrialComponentInput) SetTrialComponentName(v string) *CreateTrialComponentInput { s.TrialComponentName = &v return s } type CreateTrialComponentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the trial component. TrialComponentArn *string `type:"string"` } // String returns the string representation func (s CreateTrialComponentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTrialComponentOutput) GoString() string { return s.String() } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *CreateTrialComponentOutput) SetTrialComponentArn(v string) *CreateTrialComponentOutput { s.TrialComponentArn = &v return s } type CreateTrialInput struct { _ struct{} `type:"structure"` // The name of the trial as displayed. The name doesn't need to be unique. If // DisplayName isn't specified, TrialName is displayed. DisplayName *string `min:"1" type:"string"` // The name of the experiment to associate the trial with. // // ExperimentName is a required field ExperimentName *string `min:"1" type:"string" required:"true"` // A list of tags to associate with the trial. You can use Search API to search // on the tags. Tags []*Tag `type:"list"` // The name of the trial. The name must be unique in your AWS account and is // not case-sensitive. // // TrialName is a required field TrialName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateTrialInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTrialInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateTrialInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateTrialInput"} if s.DisplayName != nil && len(*s.DisplayName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) } if s.ExperimentName == nil { invalidParams.Add(request.NewErrParamRequired("ExperimentName")) } if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if s.TrialName == nil { invalidParams.Add(request.NewErrParamRequired("TrialName")) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDisplayName sets the DisplayName field's value. func (s *CreateTrialInput) SetDisplayName(v string) *CreateTrialInput { s.DisplayName = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *CreateTrialInput) SetExperimentName(v string) *CreateTrialInput { s.ExperimentName = &v return s } // SetTags sets the Tags field's value. func (s *CreateTrialInput) SetTags(v []*Tag) *CreateTrialInput { s.Tags = v return s } // SetTrialName sets the TrialName field's value. func (s *CreateTrialInput) SetTrialName(v string) *CreateTrialInput { s.TrialName = &v return s } type CreateTrialOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the trial. TrialArn *string `type:"string"` } // String returns the string representation func (s CreateTrialOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTrialOutput) GoString() string { return s.String() } // SetTrialArn sets the TrialArn field's value. func (s *CreateTrialOutput) SetTrialArn(v string) *CreateTrialOutput { s.TrialArn = &v return s } type CreateUserProfileInput struct { _ struct{} `type:"structure"` // The ID of the associated Domain. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // A specifier for the type of value specified in SingleSignOnUserValue. Currently, // the only supported value is "UserName". If the Domain's AuthMode is SSO, // this field is required. If the Domain's AuthMode is not SSO, this field cannot // be specified. SingleSignOnUserIdentifier *string `type:"string"` // The username of the associated AWS Single Sign-On User for this UserProfile. // If the Domain's AuthMode is SSO, this field is required, and must match a // valid username of a user in your directory. If the Domain's AuthMode is not // SSO, this field cannot be specified. SingleSignOnUserValue *string `type:"string"` // Each tag consists of a key and an optional value. Tag keys must be unique // per resource. Tags []*Tag `type:"list"` // A name for the UserProfile. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` // A collection of settings. UserSettings *UserSettings `type:"structure"` } // String returns the string representation func (s CreateUserProfileInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUserProfileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateUserProfileInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateUserProfileInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if s.UserSettings != nil { if err := s.UserSettings.Validate(); err != nil { invalidParams.AddNested("UserSettings", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainId sets the DomainId field's value. func (s *CreateUserProfileInput) SetDomainId(v string) *CreateUserProfileInput { s.DomainId = &v return s } // SetSingleSignOnUserIdentifier sets the SingleSignOnUserIdentifier field's value. func (s *CreateUserProfileInput) SetSingleSignOnUserIdentifier(v string) *CreateUserProfileInput { s.SingleSignOnUserIdentifier = &v return s } // SetSingleSignOnUserValue sets the SingleSignOnUserValue field's value. func (s *CreateUserProfileInput) SetSingleSignOnUserValue(v string) *CreateUserProfileInput { s.SingleSignOnUserValue = &v return s } // SetTags sets the Tags field's value. func (s *CreateUserProfileInput) SetTags(v []*Tag) *CreateUserProfileInput { s.Tags = v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *CreateUserProfileInput) SetUserProfileName(v string) *CreateUserProfileInput { s.UserProfileName = &v return s } // SetUserSettings sets the UserSettings field's value. func (s *CreateUserProfileInput) SetUserSettings(v *UserSettings) *CreateUserProfileInput { s.UserSettings = v return s } type CreateUserProfileOutput struct { _ struct{} `type:"structure"` // The user profile Amazon Resource Name (ARN). UserProfileArn *string `type:"string"` } // String returns the string representation func (s CreateUserProfileOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUserProfileOutput) GoString() string { return s.String() } // SetUserProfileArn sets the UserProfileArn field's value. func (s *CreateUserProfileOutput) SetUserProfileArn(v string) *CreateUserProfileOutput { s.UserProfileArn = &v return s } type CreateWorkforceInput struct { _ struct{} `type:"structure"` // Use this parameter to configure an Amazon Cognito private workforce. A single // Cognito workforce is created using and corresponds to a single Amazon Cognito // user pool (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html). // // Do not use OidcConfig if you specify values for CognitoConfig. CognitoConfig *CognitoConfig `type:"structure"` // Use this parameter to configure a private workforce using your own OIDC Identity // Provider. // // Do not use CognitoConfig if you specify values for OidcConfig. OidcConfig *OidcConfig `type:"structure"` // A list of IP address ranges (CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html)). // Used to create an allow list of IP addresses for a private workforce. Workers // will only be able to login to their worker portal from an IP address within // this range. By default, a workforce isn't restricted to specific IP addresses. SourceIpConfig *SourceIpConfig `type:"structure"` // An array of key-value pairs that contain metadata to help you categorize // and organize our workforce. Each tag consists of a key and a value, both // of which you define. Tags []*Tag `type:"list"` // The name of the private workforce. // // WorkforceName is a required field WorkforceName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateWorkforceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateWorkforceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateWorkforceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateWorkforceInput"} if s.WorkforceName == nil { invalidParams.Add(request.NewErrParamRequired("WorkforceName")) } if s.WorkforceName != nil && len(*s.WorkforceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkforceName", 1)) } if s.CognitoConfig != nil { if err := s.CognitoConfig.Validate(); err != nil { invalidParams.AddNested("CognitoConfig", err.(request.ErrInvalidParams)) } } if s.OidcConfig != nil { if err := s.OidcConfig.Validate(); err != nil { invalidParams.AddNested("OidcConfig", err.(request.ErrInvalidParams)) } } if s.SourceIpConfig != nil { if err := s.SourceIpConfig.Validate(); err != nil { invalidParams.AddNested("SourceIpConfig", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCognitoConfig sets the CognitoConfig field's value. func (s *CreateWorkforceInput) SetCognitoConfig(v *CognitoConfig) *CreateWorkforceInput { s.CognitoConfig = v return s } // SetOidcConfig sets the OidcConfig field's value. func (s *CreateWorkforceInput) SetOidcConfig(v *OidcConfig) *CreateWorkforceInput { s.OidcConfig = v return s } // SetSourceIpConfig sets the SourceIpConfig field's value. func (s *CreateWorkforceInput) SetSourceIpConfig(v *SourceIpConfig) *CreateWorkforceInput { s.SourceIpConfig = v return s } // SetTags sets the Tags field's value. func (s *CreateWorkforceInput) SetTags(v []*Tag) *CreateWorkforceInput { s.Tags = v return s } // SetWorkforceName sets the WorkforceName field's value. func (s *CreateWorkforceInput) SetWorkforceName(v string) *CreateWorkforceInput { s.WorkforceName = &v return s } type CreateWorkforceOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the workforce. // // WorkforceArn is a required field WorkforceArn *string `type:"string" required:"true"` } // String returns the string representation func (s CreateWorkforceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateWorkforceOutput) GoString() string { return s.String() } // SetWorkforceArn sets the WorkforceArn field's value. func (s *CreateWorkforceOutput) SetWorkforceArn(v string) *CreateWorkforceOutput { s.WorkforceArn = &v return s } type CreateWorkteamInput struct { _ struct{} `type:"structure"` // A description of the work team. // // Description is a required field Description *string `min:"1" type:"string" required:"true"` // A list of MemberDefinition objects that contains objects that identify the // workers that make up the work team. // // Workforces can be created using Amazon Cognito or your own OIDC Identity // Provider (IdP). For private workforces created using Amazon Cognito use CognitoMemberDefinition. // For workforces created using your own OIDC identity provider (IdP) use OidcMemberDefinition. // Do not provide input for both of these parameters in a single request. // // For workforces created using Amazon Cognito, private work teams correspond // to Amazon Cognito user groups within the user pool used to create a workforce. // All of the CognitoMemberDefinition objects that make up the member definition // must have the same ClientId and UserPool values. To add a Amazon Cognito // user group to an existing worker pool, see Adding groups to a User Pool. // For more information about user pools, see Amazon Cognito User Pools (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html). // // For workforces created using your own OIDC IdP, specify the user groups that // you want to include in your private work team in OidcMemberDefinition by // listing those groups in Groups. // // MemberDefinitions is a required field MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"` // Configures notification of workers regarding available or expiring work items. NotificationConfiguration *NotificationConfiguration `type:"structure"` // An array of key-value pairs. // // For more information, see Resource Tag (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) // and Using Cost Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` // The name of the workforce. WorkforceName *string `min:"1" type:"string"` // The name of the work team. Use this name to identify the work team. // // WorkteamName is a required field WorkteamName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateWorkteamInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateWorkteamInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateWorkteamInput"} if s.Description == nil { invalidParams.Add(request.NewErrParamRequired("Description")) } if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.MemberDefinitions == nil { invalidParams.Add(request.NewErrParamRequired("MemberDefinitions")) } if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 { invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1)) } if s.WorkforceName != nil && len(*s.WorkforceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkforceName", 1)) } if s.WorkteamName == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamName")) } if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) } if s.MemberDefinitions != nil { for i, v := range s.MemberDefinitions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", i), err.(request.ErrInvalidParams)) } } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *CreateWorkteamInput) SetDescription(v string) *CreateWorkteamInput { s.Description = &v return s } // SetMemberDefinitions sets the MemberDefinitions field's value. func (s *CreateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *CreateWorkteamInput { s.MemberDefinitions = v return s } // SetNotificationConfiguration sets the NotificationConfiguration field's value. func (s *CreateWorkteamInput) SetNotificationConfiguration(v *NotificationConfiguration) *CreateWorkteamInput { s.NotificationConfiguration = v return s } // SetTags sets the Tags field's value. func (s *CreateWorkteamInput) SetTags(v []*Tag) *CreateWorkteamInput { s.Tags = v return s } // SetWorkforceName sets the WorkforceName field's value. func (s *CreateWorkteamInput) SetWorkforceName(v string) *CreateWorkteamInput { s.WorkforceName = &v return s } // SetWorkteamName sets the WorkteamName field's value. func (s *CreateWorkteamInput) SetWorkteamName(v string) *CreateWorkteamInput { s.WorkteamName = &v return s } type CreateWorkteamOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the work team. You can use this ARN to // identify the work team. WorkteamArn *string `type:"string"` } // String returns the string representation func (s CreateWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateWorkteamOutput) GoString() string { return s.String() } // SetWorkteamArn sets the WorkteamArn field's value. func (s *CreateWorkteamOutput) SetWorkteamArn(v string) *CreateWorkteamOutput { s.WorkteamArn = &v return s } type DataCaptureConfig struct { _ struct{} `type:"structure"` CaptureContentTypeHeader *CaptureContentTypeHeader `type:"structure"` // CaptureOptions is a required field CaptureOptions []*CaptureOption `min:"1" type:"list" required:"true"` // DestinationS3Uri is a required field DestinationS3Uri *string `type:"string" required:"true"` EnableCapture *bool `type:"boolean"` // InitialSamplingPercentage is a required field InitialSamplingPercentage *int64 `type:"integer" required:"true"` KmsKeyId *string `type:"string"` } // String returns the string representation func (s DataCaptureConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DataCaptureConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DataCaptureConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DataCaptureConfig"} if s.CaptureOptions == nil { invalidParams.Add(request.NewErrParamRequired("CaptureOptions")) } if s.CaptureOptions != nil && len(s.CaptureOptions) < 1 { invalidParams.Add(request.NewErrParamMinLen("CaptureOptions", 1)) } if s.DestinationS3Uri == nil { invalidParams.Add(request.NewErrParamRequired("DestinationS3Uri")) } if s.InitialSamplingPercentage == nil { invalidParams.Add(request.NewErrParamRequired("InitialSamplingPercentage")) } if s.CaptureContentTypeHeader != nil { if err := s.CaptureContentTypeHeader.Validate(); err != nil { invalidParams.AddNested("CaptureContentTypeHeader", err.(request.ErrInvalidParams)) } } if s.CaptureOptions != nil { for i, v := range s.CaptureOptions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CaptureOptions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCaptureContentTypeHeader sets the CaptureContentTypeHeader field's value. func (s *DataCaptureConfig) SetCaptureContentTypeHeader(v *CaptureContentTypeHeader) *DataCaptureConfig { s.CaptureContentTypeHeader = v return s } // SetCaptureOptions sets the CaptureOptions field's value. func (s *DataCaptureConfig) SetCaptureOptions(v []*CaptureOption) *DataCaptureConfig { s.CaptureOptions = v return s } // SetDestinationS3Uri sets the DestinationS3Uri field's value. func (s *DataCaptureConfig) SetDestinationS3Uri(v string) *DataCaptureConfig { s.DestinationS3Uri = &v return s } // SetEnableCapture sets the EnableCapture field's value. func (s *DataCaptureConfig) SetEnableCapture(v bool) *DataCaptureConfig { s.EnableCapture = &v return s } // SetInitialSamplingPercentage sets the InitialSamplingPercentage field's value. func (s *DataCaptureConfig) SetInitialSamplingPercentage(v int64) *DataCaptureConfig { s.InitialSamplingPercentage = &v return s } // SetKmsKeyId sets the KmsKeyId field's value. func (s *DataCaptureConfig) SetKmsKeyId(v string) *DataCaptureConfig { s.KmsKeyId = &v return s } type DataCaptureConfigSummary struct { _ struct{} `type:"structure"` // CaptureStatus is a required field CaptureStatus *string `type:"string" required:"true" enum:"CaptureStatus"` // CurrentSamplingPercentage is a required field CurrentSamplingPercentage *int64 `type:"integer" required:"true"` // DestinationS3Uri is a required field DestinationS3Uri *string `type:"string" required:"true"` // EnableCapture is a required field EnableCapture *bool `type:"boolean" required:"true"` // KmsKeyId is a required field KmsKeyId *string `type:"string" required:"true"` } // String returns the string representation func (s DataCaptureConfigSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DataCaptureConfigSummary) GoString() string { return s.String() } // SetCaptureStatus sets the CaptureStatus field's value. func (s *DataCaptureConfigSummary) SetCaptureStatus(v string) *DataCaptureConfigSummary { s.CaptureStatus = &v return s } // SetCurrentSamplingPercentage sets the CurrentSamplingPercentage field's value. func (s *DataCaptureConfigSummary) SetCurrentSamplingPercentage(v int64) *DataCaptureConfigSummary { s.CurrentSamplingPercentage = &v return s } // SetDestinationS3Uri sets the DestinationS3Uri field's value. func (s *DataCaptureConfigSummary) SetDestinationS3Uri(v string) *DataCaptureConfigSummary { s.DestinationS3Uri = &v return s } // SetEnableCapture sets the EnableCapture field's value. func (s *DataCaptureConfigSummary) SetEnableCapture(v bool) *DataCaptureConfigSummary { s.EnableCapture = &v return s } // SetKmsKeyId sets the KmsKeyId field's value. func (s *DataCaptureConfigSummary) SetKmsKeyId(v string) *DataCaptureConfigSummary { s.KmsKeyId = &v return s } // The data structure used to specify the data to be used for inference in a // batch transform job and to associate the data that is relevant to the prediction // results in the output. The input filter provided allows you to exclude input // data that is not needed for inference in a batch transform job. The output // filter provided allows you to include input data relevant to interpreting // the predictions in the output from the job. For more information, see Associate // Prediction Results with their Corresponding Input Records (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform-data-processing.html). type DataProcessing struct { _ struct{} `type:"structure"` // A JSONPath (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform-data-processing.html#data-processing-operators) // expression used to select a portion of the input data to pass to the algorithm. // Use the InputFilter parameter to exclude fields, such as an ID column, from // the input. If you want Amazon SageMaker to pass the entire input dataset // to the algorithm, accept the default value $. // // Examples: "$", "$[1:]", "$.features" InputFilter *string `type:"string"` // Specifies the source of the data to join with the transformed data. The valid // values are None and Input. The default value is None, which specifies not // to join the input with the transformed data. If you want the batch transform // job to join the original input data with the transformed data, set JoinSource // to Input. // // For JSON or JSONLines objects, such as a JSON array, Amazon SageMaker adds // the transformed data to the input JSON object in an attribute called SageMakerOutput. // The joined result for JSON must be a key-value pair object. If the input // is not a key-value pair object, Amazon SageMaker creates a new JSON file. // In the new JSON file, and the input data is stored under the SageMakerInput // key and the results are stored in SageMakerOutput. // // For CSV files, Amazon SageMaker combines the transformed data with the input // data at the end of the input data and stores it in the output file. The joined // data has the joined input data followed by the transformed data and the output // is a CSV file. JoinSource *string `type:"string" enum:"JoinSource"` // A JSONPath (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform-data-processing.html#data-processing-operators) // expression used to select a portion of the joined dataset to save in the // output file for a batch transform job. If you want Amazon SageMaker to store // the entire input dataset in the output file, leave the default value, $. // If you specify indexes that aren't within the dimension size of the joined // dataset, you get an error. // // Examples: "$", "$[0,5:]", "$['id','SageMakerOutput']" OutputFilter *string `type:"string"` } // String returns the string representation func (s DataProcessing) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DataProcessing) GoString() string { return s.String() } // SetInputFilter sets the InputFilter field's value. func (s *DataProcessing) SetInputFilter(v string) *DataProcessing { s.InputFilter = &v return s } // SetJoinSource sets the JoinSource field's value. func (s *DataProcessing) SetJoinSource(v string) *DataProcessing { s.JoinSource = &v return s } // SetOutputFilter sets the OutputFilter field's value. func (s *DataProcessing) SetOutputFilter(v string) *DataProcessing { s.OutputFilter = &v return s } // Describes the location of the channel data. type DataSource struct { _ struct{} `type:"structure"` // The file system that is associated with a channel. FileSystemDataSource *FileSystemDataSource `type:"structure"` // The S3 location of the data source that is associated with a channel. S3DataSource *S3DataSource `type:"structure"` } // String returns the string representation func (s DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DataSource"} if s.FileSystemDataSource != nil { if err := s.FileSystemDataSource.Validate(); err != nil { invalidParams.AddNested("FileSystemDataSource", err.(request.ErrInvalidParams)) } } if s.S3DataSource != nil { if err := s.S3DataSource.Validate(); err != nil { invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFileSystemDataSource sets the FileSystemDataSource field's value. func (s *DataSource) SetFileSystemDataSource(v *FileSystemDataSource) *DataSource { s.FileSystemDataSource = v return s } // SetS3DataSource sets the S3DataSource field's value. func (s *DataSource) SetS3DataSource(v *S3DataSource) *DataSource { s.S3DataSource = v return s } // Configuration information for the debug hook parameters, collection configuration, // and storage paths. type DebugHookConfig struct { _ struct{} `type:"structure"` // Configuration information for tensor collections. CollectionConfigurations []*CollectionConfiguration `type:"list"` // Configuration information for the debug hook parameters. HookParameters map[string]*string `type:"map"` // Path to local storage location for tensors. Defaults to /opt/ml/output/tensors/. LocalPath *string `type:"string"` // Path to Amazon S3 storage location for tensors. // // S3OutputPath is a required field S3OutputPath *string `type:"string" required:"true"` } // String returns the string representation func (s DebugHookConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DebugHookConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DebugHookConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DebugHookConfig"} if s.S3OutputPath == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) } if s.CollectionConfigurations != nil { for i, v := range s.CollectionConfigurations { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CollectionConfigurations", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCollectionConfigurations sets the CollectionConfigurations field's value. func (s *DebugHookConfig) SetCollectionConfigurations(v []*CollectionConfiguration) *DebugHookConfig { s.CollectionConfigurations = v return s } // SetHookParameters sets the HookParameters field's value. func (s *DebugHookConfig) SetHookParameters(v map[string]*string) *DebugHookConfig { s.HookParameters = v return s } // SetLocalPath sets the LocalPath field's value. func (s *DebugHookConfig) SetLocalPath(v string) *DebugHookConfig { s.LocalPath = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *DebugHookConfig) SetS3OutputPath(v string) *DebugHookConfig { s.S3OutputPath = &v return s } // Configuration information for debugging rules. type DebugRuleConfiguration struct { _ struct{} `type:"structure"` // The instance type to deploy for a training job. InstanceType *string `type:"string" enum:"ProcessingInstanceType"` // Path to local storage location for output of rules. Defaults to /opt/ml/processing/output/rule/. LocalPath *string `type:"string"` // The name of the rule configuration. It must be unique relative to other rule // configuration names. // // RuleConfigurationName is a required field RuleConfigurationName *string `min:"1" type:"string" required:"true"` // The Amazon Elastic Container (ECR) Image for the managed rule evaluation. // // RuleEvaluatorImage is a required field RuleEvaluatorImage *string `type:"string" required:"true"` // Runtime configuration for rule container. RuleParameters map[string]*string `type:"map"` // Path to Amazon S3 storage location for rules. S3OutputPath *string `type:"string"` // The size, in GB, of the ML storage volume attached to the processing instance. VolumeSizeInGB *int64 `type:"integer"` } // String returns the string representation func (s DebugRuleConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DebugRuleConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DebugRuleConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DebugRuleConfiguration"} if s.RuleConfigurationName == nil { invalidParams.Add(request.NewErrParamRequired("RuleConfigurationName")) } if s.RuleConfigurationName != nil && len(*s.RuleConfigurationName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RuleConfigurationName", 1)) } if s.RuleEvaluatorImage == nil { invalidParams.Add(request.NewErrParamRequired("RuleEvaluatorImage")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInstanceType sets the InstanceType field's value. func (s *DebugRuleConfiguration) SetInstanceType(v string) *DebugRuleConfiguration { s.InstanceType = &v return s } // SetLocalPath sets the LocalPath field's value. func (s *DebugRuleConfiguration) SetLocalPath(v string) *DebugRuleConfiguration { s.LocalPath = &v return s } // SetRuleConfigurationName sets the RuleConfigurationName field's value. func (s *DebugRuleConfiguration) SetRuleConfigurationName(v string) *DebugRuleConfiguration { s.RuleConfigurationName = &v return s } // SetRuleEvaluatorImage sets the RuleEvaluatorImage field's value. func (s *DebugRuleConfiguration) SetRuleEvaluatorImage(v string) *DebugRuleConfiguration { s.RuleEvaluatorImage = &v return s } // SetRuleParameters sets the RuleParameters field's value. func (s *DebugRuleConfiguration) SetRuleParameters(v map[string]*string) *DebugRuleConfiguration { s.RuleParameters = v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *DebugRuleConfiguration) SetS3OutputPath(v string) *DebugRuleConfiguration { s.S3OutputPath = &v return s } // SetVolumeSizeInGB sets the VolumeSizeInGB field's value. func (s *DebugRuleConfiguration) SetVolumeSizeInGB(v int64) *DebugRuleConfiguration { s.VolumeSizeInGB = &v return s } // Information about the status of the rule evaluation. type DebugRuleEvaluationStatus struct { _ struct{} `type:"structure"` // Timestamp when the rule evaluation status was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The name of the rule configuration RuleConfigurationName *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the rule evaluation job. RuleEvaluationJobArn *string `type:"string"` // Status of the rule evaluation. RuleEvaluationStatus *string `type:"string" enum:"RuleEvaluationStatus"` // Details from the rule evaluation. StatusDetails *string `type:"string"` } // String returns the string representation func (s DebugRuleEvaluationStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DebugRuleEvaluationStatus) GoString() string { return s.String() } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DebugRuleEvaluationStatus) SetLastModifiedTime(v time.Time) *DebugRuleEvaluationStatus { s.LastModifiedTime = &v return s } // SetRuleConfigurationName sets the RuleConfigurationName field's value. func (s *DebugRuleEvaluationStatus) SetRuleConfigurationName(v string) *DebugRuleEvaluationStatus { s.RuleConfigurationName = &v return s } // SetRuleEvaluationJobArn sets the RuleEvaluationJobArn field's value. func (s *DebugRuleEvaluationStatus) SetRuleEvaluationJobArn(v string) *DebugRuleEvaluationStatus { s.RuleEvaluationJobArn = &v return s } // SetRuleEvaluationStatus sets the RuleEvaluationStatus field's value. func (s *DebugRuleEvaluationStatus) SetRuleEvaluationStatus(v string) *DebugRuleEvaluationStatus { s.RuleEvaluationStatus = &v return s } // SetStatusDetails sets the StatusDetails field's value. func (s *DebugRuleEvaluationStatus) SetStatusDetails(v string) *DebugRuleEvaluationStatus { s.StatusDetails = &v return s } type DeleteAlgorithmInput struct { _ struct{} `type:"structure"` // The name of the algorithm to delete. // // AlgorithmName is a required field AlgorithmName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteAlgorithmInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAlgorithmInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAlgorithmInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAlgorithmInput"} if s.AlgorithmName == nil { invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) } if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmName sets the AlgorithmName field's value. func (s *DeleteAlgorithmInput) SetAlgorithmName(v string) *DeleteAlgorithmInput { s.AlgorithmName = &v return s } type DeleteAlgorithmOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAlgorithmOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAlgorithmOutput) GoString() string { return s.String() } type DeleteAppInput struct { _ struct{} `type:"structure"` // The name of the app. // // AppName is a required field AppName *string `type:"string" required:"true"` // The type of app. // // AppType is a required field AppType *string `type:"string" required:"true" enum:"AppType"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The user profile name. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteAppInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAppInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"} if s.AppName == nil { invalidParams.Add(request.NewErrParamRequired("AppName")) } if s.AppType == nil { invalidParams.Add(request.NewErrParamRequired("AppType")) } if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppName sets the AppName field's value. func (s *DeleteAppInput) SetAppName(v string) *DeleteAppInput { s.AppName = &v return s } // SetAppType sets the AppType field's value. func (s *DeleteAppInput) SetAppType(v string) *DeleteAppInput { s.AppType = &v return s } // SetDomainId sets the DomainId field's value. func (s *DeleteAppInput) SetDomainId(v string) *DeleteAppInput { s.DomainId = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *DeleteAppInput) SetUserProfileName(v string) *DeleteAppInput { s.UserProfileName = &v return s } type DeleteAppOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAppOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppOutput) GoString() string { return s.String() } type DeleteCodeRepositoryInput struct { _ struct{} `type:"structure"` // The name of the Git repository to delete. // // CodeRepositoryName is a required field CodeRepositoryName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteCodeRepositoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteCodeRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteCodeRepositoryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteCodeRepositoryInput"} if s.CodeRepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) } if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCodeRepositoryName sets the CodeRepositoryName field's value. func (s *DeleteCodeRepositoryInput) SetCodeRepositoryName(v string) *DeleteCodeRepositoryInput { s.CodeRepositoryName = &v return s } type DeleteCodeRepositoryOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteCodeRepositoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteCodeRepositoryOutput) GoString() string { return s.String() } type DeleteDomainInput struct { _ struct{} `type:"structure"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The retention policy for this domain, which specifies whether resources will // be retained after the Domain is deleted. By default, all resources are retained // (not automatically deleted). RetentionPolicy *RetentionPolicy `type:"structure"` } // String returns the string representation func (s DeleteDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDomainInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainId sets the DomainId field's value. func (s *DeleteDomainInput) SetDomainId(v string) *DeleteDomainInput { s.DomainId = &v return s } // SetRetentionPolicy sets the RetentionPolicy field's value. func (s *DeleteDomainInput) SetRetentionPolicy(v *RetentionPolicy) *DeleteDomainInput { s.RetentionPolicy = v return s } type DeleteDomainOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDomainOutput) GoString() string { return s.String() } type DeleteEndpointConfigInput struct { _ struct{} `type:"structure"` // The name of the endpoint configuration that you want to delete. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteEndpointConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteEndpointConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteEndpointConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointConfigInput"} if s.EndpointConfigName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *DeleteEndpointConfigInput) SetEndpointConfigName(v string) *DeleteEndpointConfigInput { s.EndpointConfigName = &v return s } type DeleteEndpointConfigOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteEndpointConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteEndpointConfigOutput) GoString() string { return s.String() } type DeleteEndpointInput struct { _ struct{} `type:"structure"` // The name of the endpoint that you want to delete. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteEndpointInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteEndpointInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteEndpointInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointName sets the EndpointName field's value. func (s *DeleteEndpointInput) SetEndpointName(v string) *DeleteEndpointInput { s.EndpointName = &v return s } type DeleteEndpointOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteEndpointOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteEndpointOutput) GoString() string { return s.String() } type DeleteExperimentInput struct { _ struct{} `type:"structure"` // The name of the experiment to delete. // // ExperimentName is a required field ExperimentName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteExperimentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteExperimentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteExperimentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteExperimentInput"} if s.ExperimentName == nil { invalidParams.Add(request.NewErrParamRequired("ExperimentName")) } if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExperimentName sets the ExperimentName field's value. func (s *DeleteExperimentInput) SetExperimentName(v string) *DeleteExperimentInput { s.ExperimentName = &v return s } type DeleteExperimentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the experiment that is being deleted. ExperimentArn *string `type:"string"` } // String returns the string representation func (s DeleteExperimentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteExperimentOutput) GoString() string { return s.String() } // SetExperimentArn sets the ExperimentArn field's value. func (s *DeleteExperimentOutput) SetExperimentArn(v string) *DeleteExperimentOutput { s.ExperimentArn = &v return s } type DeleteFlowDefinitionInput struct { _ struct{} `type:"structure"` // The name of the flow definition you are deleting. // // FlowDefinitionName is a required field FlowDefinitionName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteFlowDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteFlowDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteFlowDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteFlowDefinitionInput"} if s.FlowDefinitionName == nil { invalidParams.Add(request.NewErrParamRequired("FlowDefinitionName")) } if s.FlowDefinitionName != nil && len(*s.FlowDefinitionName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FlowDefinitionName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFlowDefinitionName sets the FlowDefinitionName field's value. func (s *DeleteFlowDefinitionInput) SetFlowDefinitionName(v string) *DeleteFlowDefinitionInput { s.FlowDefinitionName = &v return s } type DeleteFlowDefinitionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteFlowDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteFlowDefinitionOutput) GoString() string { return s.String() } type DeleteHumanTaskUiInput struct { _ struct{} `type:"structure"` // The name of the human task user interface (work task template) you want to // delete. // // HumanTaskUiName is a required field HumanTaskUiName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteHumanTaskUiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteHumanTaskUiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteHumanTaskUiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteHumanTaskUiInput"} if s.HumanTaskUiName == nil { invalidParams.Add(request.NewErrParamRequired("HumanTaskUiName")) } if s.HumanTaskUiName != nil && len(*s.HumanTaskUiName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HumanTaskUiName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanTaskUiName sets the HumanTaskUiName field's value. func (s *DeleteHumanTaskUiInput) SetHumanTaskUiName(v string) *DeleteHumanTaskUiInput { s.HumanTaskUiName = &v return s } type DeleteHumanTaskUiOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteHumanTaskUiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteHumanTaskUiOutput) GoString() string { return s.String() } type DeleteModelInput struct { _ struct{} `type:"structure"` // The name of the model to delete. // // ModelName is a required field ModelName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteModelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteModelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteModelInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetModelName sets the ModelName field's value. func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { s.ModelName = &v return s } type DeleteModelOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteModelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteModelOutput) GoString() string { return s.String() } type DeleteModelPackageInput struct { _ struct{} `type:"structure"` // The name of the model package. The name must have 1 to 63 characters. Valid // characters are a-z, A-Z, 0-9, and - (hyphen). // // ModelPackageName is a required field ModelPackageName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteModelPackageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteModelPackageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteModelPackageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteModelPackageInput"} if s.ModelPackageName == nil { invalidParams.Add(request.NewErrParamRequired("ModelPackageName")) } if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetModelPackageName sets the ModelPackageName field's value. func (s *DeleteModelPackageInput) SetModelPackageName(v string) *DeleteModelPackageInput { s.ModelPackageName = &v return s } type DeleteModelPackageOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteModelPackageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteModelPackageOutput) GoString() string { return s.String() } type DeleteMonitoringScheduleInput struct { _ struct{} `type:"structure"` // The name of the monitoring schedule to delete. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteMonitoringScheduleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteMonitoringScheduleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteMonitoringScheduleInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteMonitoringScheduleInput"} if s.MonitoringScheduleName == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleName")) } if s.MonitoringScheduleName != nil && len(*s.MonitoringScheduleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringScheduleName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *DeleteMonitoringScheduleInput) SetMonitoringScheduleName(v string) *DeleteMonitoringScheduleInput { s.MonitoringScheduleName = &v return s } type DeleteMonitoringScheduleOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteMonitoringScheduleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteMonitoringScheduleOutput) GoString() string { return s.String() } type DeleteNotebookInstanceInput struct { _ struct{} `type:"structure"` // The name of the Amazon SageMaker notebook instance to delete. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNotebookInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteNotebookInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceInput"} if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *DeleteNotebookInstanceInput) SetNotebookInstanceName(v string) *DeleteNotebookInstanceInput { s.NotebookInstanceName = &v return s } type DeleteNotebookInstanceLifecycleConfigInput struct { _ struct{} `type:"structure"` // The name of the lifecycle configuration to delete. // // NotebookInstanceLifecycleConfigName is a required field NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteNotebookInstanceLifecycleConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNotebookInstanceLifecycleConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteNotebookInstanceLifecycleConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceLifecycleConfigInput"} if s.NotebookInstanceLifecycleConfigName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *DeleteNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DeleteNotebookInstanceLifecycleConfigInput { s.NotebookInstanceLifecycleConfigName = &v return s } type DeleteNotebookInstanceLifecycleConfigOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteNotebookInstanceLifecycleConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNotebookInstanceLifecycleConfigOutput) GoString() string { return s.String() } type DeleteNotebookInstanceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteNotebookInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNotebookInstanceOutput) GoString() string { return s.String() } type DeleteTagsInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource whose tags you want to delete. // // ResourceArn is a required field ResourceArn *string `type:"string" required:"true"` // An array or one or more tag keys to delete. // // TagKeys is a required field TagKeys []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s DeleteTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteTagsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if s.TagKeys != nil && len(s.TagKeys) < 1 { invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *DeleteTagsInput) SetResourceArn(v string) *DeleteTagsInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { s.TagKeys = v return s } type DeleteTagsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTagsOutput) GoString() string { return s.String() } type DeleteTrialComponentInput struct { _ struct{} `type:"structure"` // The name of the component to delete. // // TrialComponentName is a required field TrialComponentName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteTrialComponentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTrialComponentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteTrialComponentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteTrialComponentInput"} if s.TrialComponentName == nil { invalidParams.Add(request.NewErrParamRequired("TrialComponentName")) } if s.TrialComponentName != nil && len(*s.TrialComponentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrialComponentName sets the TrialComponentName field's value. func (s *DeleteTrialComponentInput) SetTrialComponentName(v string) *DeleteTrialComponentInput { s.TrialComponentName = &v return s } type DeleteTrialComponentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the component is being deleted. TrialComponentArn *string `type:"string"` } // String returns the string representation func (s DeleteTrialComponentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTrialComponentOutput) GoString() string { return s.String() } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *DeleteTrialComponentOutput) SetTrialComponentArn(v string) *DeleteTrialComponentOutput { s.TrialComponentArn = &v return s } type DeleteTrialInput struct { _ struct{} `type:"structure"` // The name of the trial to delete. // // TrialName is a required field TrialName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteTrialInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTrialInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteTrialInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteTrialInput"} if s.TrialName == nil { invalidParams.Add(request.NewErrParamRequired("TrialName")) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrialName sets the TrialName field's value. func (s *DeleteTrialInput) SetTrialName(v string) *DeleteTrialInput { s.TrialName = &v return s } type DeleteTrialOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the trial that is being deleted. TrialArn *string `type:"string"` } // String returns the string representation func (s DeleteTrialOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTrialOutput) GoString() string { return s.String() } // SetTrialArn sets the TrialArn field's value. func (s *DeleteTrialOutput) SetTrialArn(v string) *DeleteTrialOutput { s.TrialArn = &v return s } type DeleteUserProfileInput struct { _ struct{} `type:"structure"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The user profile name. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteUserProfileInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteUserProfileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteUserProfileInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteUserProfileInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainId sets the DomainId field's value. func (s *DeleteUserProfileInput) SetDomainId(v string) *DeleteUserProfileInput { s.DomainId = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *DeleteUserProfileInput) SetUserProfileName(v string) *DeleteUserProfileInput { s.UserProfileName = &v return s } type DeleteUserProfileOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteUserProfileOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteUserProfileOutput) GoString() string { return s.String() } type DeleteWorkforceInput struct { _ struct{} `type:"structure"` // The name of the workforce. // // WorkforceName is a required field WorkforceName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteWorkforceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteWorkforceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteWorkforceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteWorkforceInput"} if s.WorkforceName == nil { invalidParams.Add(request.NewErrParamRequired("WorkforceName")) } if s.WorkforceName != nil && len(*s.WorkforceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkforceName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetWorkforceName sets the WorkforceName field's value. func (s *DeleteWorkforceInput) SetWorkforceName(v string) *DeleteWorkforceInput { s.WorkforceName = &v return s } type DeleteWorkforceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteWorkforceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteWorkforceOutput) GoString() string { return s.String() } type DeleteWorkteamInput struct { _ struct{} `type:"structure"` // The name of the work team to delete. // // WorkteamName is a required field WorkteamName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteWorkteamInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteWorkteamInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteWorkteamInput"} if s.WorkteamName == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamName")) } if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetWorkteamName sets the WorkteamName field's value. func (s *DeleteWorkteamInput) SetWorkteamName(v string) *DeleteWorkteamInput { s.WorkteamName = &v return s } type DeleteWorkteamOutput struct { _ struct{} `type:"structure"` // Returns true if the work team was successfully deleted; otherwise, returns // false. // // Success is a required field Success *bool `type:"boolean" required:"true"` } // String returns the string representation func (s DeleteWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteWorkteamOutput) GoString() string { return s.String() } // SetSuccess sets the Success field's value. func (s *DeleteWorkteamOutput) SetSuccess(v bool) *DeleteWorkteamOutput { s.Success = &v return s } // Gets the Amazon EC2 Container Registry path of the docker image of the model // that is hosted in this ProductionVariant. // // If you used the registry/repository[:tag] form to specify the image path // of the primary container when you created the model hosted in this ProductionVariant, // the path resolves to a path of the form registry/repository[@digest]. A digest // is a hash value that identifies a specific version of an image. For information // about Amazon ECR paths, see Pulling an Image (https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-pull-ecr-image.html) // in the Amazon ECR User Guide. type DeployedImage struct { _ struct{} `type:"structure"` // The date and time when the image path for the model resolved to the ResolvedImage ResolutionTime *time.Time `type:"timestamp"` // The specific digest path of the image hosted in this ProductionVariant. ResolvedImage *string `type:"string"` // The image path you specified when you created the model. SpecifiedImage *string `type:"string"` } // String returns the string representation func (s DeployedImage) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeployedImage) GoString() string { return s.String() } // SetResolutionTime sets the ResolutionTime field's value. func (s *DeployedImage) SetResolutionTime(v time.Time) *DeployedImage { s.ResolutionTime = &v return s } // SetResolvedImage sets the ResolvedImage field's value. func (s *DeployedImage) SetResolvedImage(v string) *DeployedImage { s.ResolvedImage = &v return s } // SetSpecifiedImage sets the SpecifiedImage field's value. func (s *DeployedImage) SetSpecifiedImage(v string) *DeployedImage { s.SpecifiedImage = &v return s } type DescribeAlgorithmInput struct { _ struct{} `type:"structure"` // The name of the algorithm to describe. // // AlgorithmName is a required field AlgorithmName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeAlgorithmInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAlgorithmInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAlgorithmInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAlgorithmInput"} if s.AlgorithmName == nil { invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) } if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmName sets the AlgorithmName field's value. func (s *DescribeAlgorithmInput) SetAlgorithmName(v string) *DescribeAlgorithmInput { s.AlgorithmName = &v return s } type DescribeAlgorithmOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the algorithm. // // AlgorithmArn is a required field AlgorithmArn *string `min:"1" type:"string" required:"true"` // A brief summary about the algorithm. AlgorithmDescription *string `type:"string"` // The name of the algorithm being described. // // AlgorithmName is a required field AlgorithmName *string `min:"1" type:"string" required:"true"` // The current status of the algorithm. // // AlgorithmStatus is a required field AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"` // Details about the current status of the algorithm. // // AlgorithmStatusDetails is a required field AlgorithmStatusDetails *AlgorithmStatusDetails `type:"structure" required:"true"` // Whether the algorithm is certified to be listed in AWS Marketplace. CertifyForMarketplace *bool `type:"boolean"` // A timestamp specifying when the algorithm was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // Details about inference jobs that the algorithm runs. InferenceSpecification *InferenceSpecification `type:"structure"` // The product identifier of the algorithm. ProductId *string `type:"string"` // Details about training jobs run by this algorithm. // // TrainingSpecification is a required field TrainingSpecification *TrainingSpecification `type:"structure" required:"true"` // Details about configurations for one or more training jobs that Amazon SageMaker // runs to test the algorithm. ValidationSpecification *AlgorithmValidationSpecification `type:"structure"` } // String returns the string representation func (s DescribeAlgorithmOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAlgorithmOutput) GoString() string { return s.String() } // SetAlgorithmArn sets the AlgorithmArn field's value. func (s *DescribeAlgorithmOutput) SetAlgorithmArn(v string) *DescribeAlgorithmOutput { s.AlgorithmArn = &v return s } // SetAlgorithmDescription sets the AlgorithmDescription field's value. func (s *DescribeAlgorithmOutput) SetAlgorithmDescription(v string) *DescribeAlgorithmOutput { s.AlgorithmDescription = &v return s } // SetAlgorithmName sets the AlgorithmName field's value. func (s *DescribeAlgorithmOutput) SetAlgorithmName(v string) *DescribeAlgorithmOutput { s.AlgorithmName = &v return s } // SetAlgorithmStatus sets the AlgorithmStatus field's value. func (s *DescribeAlgorithmOutput) SetAlgorithmStatus(v string) *DescribeAlgorithmOutput { s.AlgorithmStatus = &v return s } // SetAlgorithmStatusDetails sets the AlgorithmStatusDetails field's value. func (s *DescribeAlgorithmOutput) SetAlgorithmStatusDetails(v *AlgorithmStatusDetails) *DescribeAlgorithmOutput { s.AlgorithmStatusDetails = v return s } // SetCertifyForMarketplace sets the CertifyForMarketplace field's value. func (s *DescribeAlgorithmOutput) SetCertifyForMarketplace(v bool) *DescribeAlgorithmOutput { s.CertifyForMarketplace = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeAlgorithmOutput) SetCreationTime(v time.Time) *DescribeAlgorithmOutput { s.CreationTime = &v return s } // SetInferenceSpecification sets the InferenceSpecification field's value. func (s *DescribeAlgorithmOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeAlgorithmOutput { s.InferenceSpecification = v return s } // SetProductId sets the ProductId field's value. func (s *DescribeAlgorithmOutput) SetProductId(v string) *DescribeAlgorithmOutput { s.ProductId = &v return s } // SetTrainingSpecification sets the TrainingSpecification field's value. func (s *DescribeAlgorithmOutput) SetTrainingSpecification(v *TrainingSpecification) *DescribeAlgorithmOutput { s.TrainingSpecification = v return s } // SetValidationSpecification sets the ValidationSpecification field's value. func (s *DescribeAlgorithmOutput) SetValidationSpecification(v *AlgorithmValidationSpecification) *DescribeAlgorithmOutput { s.ValidationSpecification = v return s } type DescribeAppInput struct { _ struct{} `type:"structure"` // The name of the app. // // AppName is a required field AppName *string `type:"string" required:"true"` // The type of app. // // AppType is a required field AppType *string `type:"string" required:"true" enum:"AppType"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The user profile name. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeAppInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAppInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAppInput"} if s.AppName == nil { invalidParams.Add(request.NewErrParamRequired("AppName")) } if s.AppType == nil { invalidParams.Add(request.NewErrParamRequired("AppType")) } if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppName sets the AppName field's value. func (s *DescribeAppInput) SetAppName(v string) *DescribeAppInput { s.AppName = &v return s } // SetAppType sets the AppType field's value. func (s *DescribeAppInput) SetAppType(v string) *DescribeAppInput { s.AppType = &v return s } // SetDomainId sets the DomainId field's value. func (s *DescribeAppInput) SetDomainId(v string) *DescribeAppInput { s.DomainId = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *DescribeAppInput) SetUserProfileName(v string) *DescribeAppInput { s.UserProfileName = &v return s } type DescribeAppOutput struct { _ struct{} `type:"structure"` // The app's Amazon Resource Name (ARN). AppArn *string `type:"string"` // The name of the app. AppName *string `type:"string"` // The type of app. AppType *string `type:"string" enum:"AppType"` // The creation time. CreationTime *time.Time `type:"timestamp"` // The domain ID. DomainId *string `type:"string"` // The failure reason. FailureReason *string `type:"string"` // The timestamp of the last health check. LastHealthCheckTimestamp *time.Time `type:"timestamp"` // The timestamp of the last user's activity. LastUserActivityTimestamp *time.Time `type:"timestamp"` // The instance type and the Amazon Resource Name (ARN) of the SageMaker image // created on the instance. ResourceSpec *ResourceSpec `type:"structure"` // The status. Status *string `type:"string" enum:"AppStatus"` // The user profile name. UserProfileName *string `type:"string"` } // String returns the string representation func (s DescribeAppOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppOutput) GoString() string { return s.String() } // SetAppArn sets the AppArn field's value. func (s *DescribeAppOutput) SetAppArn(v string) *DescribeAppOutput { s.AppArn = &v return s } // SetAppName sets the AppName field's value. func (s *DescribeAppOutput) SetAppName(v string) *DescribeAppOutput { s.AppName = &v return s } // SetAppType sets the AppType field's value. func (s *DescribeAppOutput) SetAppType(v string) *DescribeAppOutput { s.AppType = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeAppOutput) SetCreationTime(v time.Time) *DescribeAppOutput { s.CreationTime = &v return s } // SetDomainId sets the DomainId field's value. func (s *DescribeAppOutput) SetDomainId(v string) *DescribeAppOutput { s.DomainId = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeAppOutput) SetFailureReason(v string) *DescribeAppOutput { s.FailureReason = &v return s } // SetLastHealthCheckTimestamp sets the LastHealthCheckTimestamp field's value. func (s *DescribeAppOutput) SetLastHealthCheckTimestamp(v time.Time) *DescribeAppOutput { s.LastHealthCheckTimestamp = &v return s } // SetLastUserActivityTimestamp sets the LastUserActivityTimestamp field's value. func (s *DescribeAppOutput) SetLastUserActivityTimestamp(v time.Time) *DescribeAppOutput { s.LastUserActivityTimestamp = &v return s } // SetResourceSpec sets the ResourceSpec field's value. func (s *DescribeAppOutput) SetResourceSpec(v *ResourceSpec) *DescribeAppOutput { s.ResourceSpec = v return s } // SetStatus sets the Status field's value. func (s *DescribeAppOutput) SetStatus(v string) *DescribeAppOutput { s.Status = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *DescribeAppOutput) SetUserProfileName(v string) *DescribeAppOutput { s.UserProfileName = &v return s } type DescribeAutoMLJobInput struct { _ struct{} `type:"structure"` // Request information about a job using that job's unique name. // // AutoMLJobName is a required field AutoMLJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeAutoMLJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAutoMLJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAutoMLJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAutoMLJobInput"} if s.AutoMLJobName == nil { invalidParams.Add(request.NewErrParamRequired("AutoMLJobName")) } if s.AutoMLJobName != nil && len(*s.AutoMLJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoMLJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoMLJobName sets the AutoMLJobName field's value. func (s *DescribeAutoMLJobInput) SetAutoMLJobName(v string) *DescribeAutoMLJobInput { s.AutoMLJobName = &v return s } type DescribeAutoMLJobOutput struct { _ struct{} `type:"structure"` // Returns the job's ARN. // // AutoMLJobArn is a required field AutoMLJobArn *string `min:"1" type:"string" required:"true"` // Returns information on the job's artifacts found in AutoMLJobArtifacts. AutoMLJobArtifacts *AutoMLJobArtifacts `type:"structure"` // Returns the job's config. AutoMLJobConfig *AutoMLJobConfig `type:"structure"` // Returns the name of a job. // // AutoMLJobName is a required field AutoMLJobName *string `min:"1" type:"string" required:"true"` // Returns the job's objective. AutoMLJobObjective *AutoMLJobObjective `type:"structure"` // Returns the job's AutoMLJobSecondaryStatus. // // AutoMLJobSecondaryStatus is a required field AutoMLJobSecondaryStatus *string `type:"string" required:"true" enum:"AutoMLJobSecondaryStatus"` // Returns the job's AutoMLJobStatus. // // AutoMLJobStatus is a required field AutoMLJobStatus *string `type:"string" required:"true" enum:"AutoMLJobStatus"` // Returns the job's BestCandidate. BestCandidate *AutoMLCandidate `type:"structure"` // Returns the job's creation time. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // Returns the job's end time. EndTime *time.Time `type:"timestamp"` // Returns the job's FailureReason. FailureReason *string `type:"string"` // Returns the job's output from GenerateCandidateDefinitionsOnly. GenerateCandidateDefinitionsOnly *bool `type:"boolean"` // Returns the job's input data config. // // InputDataConfig is a required field InputDataConfig []*AutoMLChannel `min:"1" type:"list" required:"true"` // Returns the job's last modified time. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // Returns the job's output data config. // // OutputDataConfig is a required field OutputDataConfig *AutoMLOutputDataConfig `type:"structure" required:"true"` // Returns the job's problem type. ProblemType *string `type:"string" enum:"ProblemType"` // This contains ProblemType, AutoMLJobObjective and CompletionCriteria. They're // auto-inferred values, if not provided by you. If you do provide them, then // they'll be the same as provided. ResolvedAttributes *ResolvedAttributes `type:"structure"` // The Amazon Resource Name (ARN) of the AWS Identity and Access Management // (IAM) role that has read permission to the input data location and write // permission to the output data location in Amazon S3. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s DescribeAutoMLJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAutoMLJobOutput) GoString() string { return s.String() } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *DescribeAutoMLJobOutput) SetAutoMLJobArn(v string) *DescribeAutoMLJobOutput { s.AutoMLJobArn = &v return s } // SetAutoMLJobArtifacts sets the AutoMLJobArtifacts field's value. func (s *DescribeAutoMLJobOutput) SetAutoMLJobArtifacts(v *AutoMLJobArtifacts) *DescribeAutoMLJobOutput { s.AutoMLJobArtifacts = v return s } // SetAutoMLJobConfig sets the AutoMLJobConfig field's value. func (s *DescribeAutoMLJobOutput) SetAutoMLJobConfig(v *AutoMLJobConfig) *DescribeAutoMLJobOutput { s.AutoMLJobConfig = v return s } // SetAutoMLJobName sets the AutoMLJobName field's value. func (s *DescribeAutoMLJobOutput) SetAutoMLJobName(v string) *DescribeAutoMLJobOutput { s.AutoMLJobName = &v return s } // SetAutoMLJobObjective sets the AutoMLJobObjective field's value. func (s *DescribeAutoMLJobOutput) SetAutoMLJobObjective(v *AutoMLJobObjective) *DescribeAutoMLJobOutput { s.AutoMLJobObjective = v return s } // SetAutoMLJobSecondaryStatus sets the AutoMLJobSecondaryStatus field's value. func (s *DescribeAutoMLJobOutput) SetAutoMLJobSecondaryStatus(v string) *DescribeAutoMLJobOutput { s.AutoMLJobSecondaryStatus = &v return s } // SetAutoMLJobStatus sets the AutoMLJobStatus field's value. func (s *DescribeAutoMLJobOutput) SetAutoMLJobStatus(v string) *DescribeAutoMLJobOutput { s.AutoMLJobStatus = &v return s } // SetBestCandidate sets the BestCandidate field's value. func (s *DescribeAutoMLJobOutput) SetBestCandidate(v *AutoMLCandidate) *DescribeAutoMLJobOutput { s.BestCandidate = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeAutoMLJobOutput) SetCreationTime(v time.Time) *DescribeAutoMLJobOutput { s.CreationTime = &v return s } // SetEndTime sets the EndTime field's value. func (s *DescribeAutoMLJobOutput) SetEndTime(v time.Time) *DescribeAutoMLJobOutput { s.EndTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeAutoMLJobOutput) SetFailureReason(v string) *DescribeAutoMLJobOutput { s.FailureReason = &v return s } // SetGenerateCandidateDefinitionsOnly sets the GenerateCandidateDefinitionsOnly field's value. func (s *DescribeAutoMLJobOutput) SetGenerateCandidateDefinitionsOnly(v bool) *DescribeAutoMLJobOutput { s.GenerateCandidateDefinitionsOnly = &v return s } // SetInputDataConfig sets the InputDataConfig field's value. func (s *DescribeAutoMLJobOutput) SetInputDataConfig(v []*AutoMLChannel) *DescribeAutoMLJobOutput { s.InputDataConfig = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeAutoMLJobOutput) SetLastModifiedTime(v time.Time) *DescribeAutoMLJobOutput { s.LastModifiedTime = &v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. func (s *DescribeAutoMLJobOutput) SetOutputDataConfig(v *AutoMLOutputDataConfig) *DescribeAutoMLJobOutput { s.OutputDataConfig = v return s } // SetProblemType sets the ProblemType field's value. func (s *DescribeAutoMLJobOutput) SetProblemType(v string) *DescribeAutoMLJobOutput { s.ProblemType = &v return s } // SetResolvedAttributes sets the ResolvedAttributes field's value. func (s *DescribeAutoMLJobOutput) SetResolvedAttributes(v *ResolvedAttributes) *DescribeAutoMLJobOutput { s.ResolvedAttributes = v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeAutoMLJobOutput) SetRoleArn(v string) *DescribeAutoMLJobOutput { s.RoleArn = &v return s } type DescribeCodeRepositoryInput struct { _ struct{} `type:"structure"` // The name of the Git repository to describe. // // CodeRepositoryName is a required field CodeRepositoryName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeCodeRepositoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeCodeRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeCodeRepositoryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeCodeRepositoryInput"} if s.CodeRepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) } if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCodeRepositoryName sets the CodeRepositoryName field's value. func (s *DescribeCodeRepositoryInput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryInput { s.CodeRepositoryName = &v return s } type DescribeCodeRepositoryOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the Git repository. // // CodeRepositoryArn is a required field CodeRepositoryArn *string `min:"1" type:"string" required:"true"` // The name of the Git repository. // // CodeRepositoryName is a required field CodeRepositoryName *string `min:"1" type:"string" required:"true"` // The date and time that the repository was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // Configuration details about the repository, including the URL where the repository // is located, the default branch, and the Amazon Resource Name (ARN) of the // AWS Secrets Manager secret that contains the credentials used to access the // repository. GitConfig *GitConfig `type:"structure"` // The date and time that the repository was last changed. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s DescribeCodeRepositoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeCodeRepositoryOutput) GoString() string { return s.String() } // SetCodeRepositoryArn sets the CodeRepositoryArn field's value. func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryArn(v string) *DescribeCodeRepositoryOutput { s.CodeRepositoryArn = &v return s } // SetCodeRepositoryName sets the CodeRepositoryName field's value. func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryOutput { s.CodeRepositoryName = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeCodeRepositoryOutput) SetCreationTime(v time.Time) *DescribeCodeRepositoryOutput { s.CreationTime = &v return s } // SetGitConfig sets the GitConfig field's value. func (s *DescribeCodeRepositoryOutput) SetGitConfig(v *GitConfig) *DescribeCodeRepositoryOutput { s.GitConfig = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeCodeRepositoryOutput) SetLastModifiedTime(v time.Time) *DescribeCodeRepositoryOutput { s.LastModifiedTime = &v return s } type DescribeCompilationJobInput struct { _ struct{} `type:"structure"` // The name of the model compilation job that you want information about. // // CompilationJobName is a required field CompilationJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeCompilationJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeCompilationJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeCompilationJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeCompilationJobInput"} if s.CompilationJobName == nil { invalidParams.Add(request.NewErrParamRequired("CompilationJobName")) } if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCompilationJobName sets the CompilationJobName field's value. func (s *DescribeCompilationJobInput) SetCompilationJobName(v string) *DescribeCompilationJobInput { s.CompilationJobName = &v return s } type DescribeCompilationJobOutput struct { _ struct{} `type:"structure"` // The time when the model compilation job on a compilation job instance ended. // For a successful or stopped job, this is when the job's model artifacts have // finished uploading. For a failed job, this is when Amazon SageMaker detected // that the job failed. CompilationEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes // to perform the model compilation job. // // CompilationJobArn is a required field CompilationJobArn *string `type:"string" required:"true"` // The name of the model compilation job. // // CompilationJobName is a required field CompilationJobName *string `min:"1" type:"string" required:"true"` // The status of the model compilation job. // // CompilationJobStatus is a required field CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"` // The time when the model compilation job started the CompilationJob instances. // // You are billed for the time between this timestamp and the timestamp in the // DescribeCompilationJobResponse$CompilationEndTime field. In Amazon CloudWatch // Logs, the start time might be later than this time. That's because it takes // time to download the compilation job, which depends on the size of the compilation // job container. CompilationStartTime *time.Time `type:"timestamp"` // The time that the model compilation job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // If a model compilation job failed, the reason it failed. // // FailureReason is a required field FailureReason *string `type:"string" required:"true"` // Information about the location in Amazon S3 of the input model artifacts, // the name and shape of the expected data inputs, and the framework in which // the model was trained. // // InputConfig is a required field InputConfig *InputConfig `type:"structure" required:"true"` // The time that the status of the model compilation job was last modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // Information about the location in Amazon S3 that has been configured for // storing the model artifacts used in the compilation job. // // ModelArtifacts is a required field ModelArtifacts *ModelArtifacts `type:"structure" required:"true"` // Information about the output location for the compiled model and the target // device that the model runs on. // // OutputConfig is a required field OutputConfig *OutputConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of the model compilation job. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // Specifies a limit to how long a model compilation job can run. When the job // reaches the time limit, Amazon SageMaker ends the compilation job. Use this // API to cap model training costs. // // StoppingCondition is a required field StoppingCondition *StoppingCondition `type:"structure" required:"true"` } // String returns the string representation func (s DescribeCompilationJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeCompilationJobOutput) GoString() string { return s.String() } // SetCompilationEndTime sets the CompilationEndTime field's value. func (s *DescribeCompilationJobOutput) SetCompilationEndTime(v time.Time) *DescribeCompilationJobOutput { s.CompilationEndTime = &v return s } // SetCompilationJobArn sets the CompilationJobArn field's value. func (s *DescribeCompilationJobOutput) SetCompilationJobArn(v string) *DescribeCompilationJobOutput { s.CompilationJobArn = &v return s } // SetCompilationJobName sets the CompilationJobName field's value. func (s *DescribeCompilationJobOutput) SetCompilationJobName(v string) *DescribeCompilationJobOutput { s.CompilationJobName = &v return s } // SetCompilationJobStatus sets the CompilationJobStatus field's value. func (s *DescribeCompilationJobOutput) SetCompilationJobStatus(v string) *DescribeCompilationJobOutput { s.CompilationJobStatus = &v return s } // SetCompilationStartTime sets the CompilationStartTime field's value. func (s *DescribeCompilationJobOutput) SetCompilationStartTime(v time.Time) *DescribeCompilationJobOutput { s.CompilationStartTime = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeCompilationJobOutput) SetCreationTime(v time.Time) *DescribeCompilationJobOutput { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeCompilationJobOutput) SetFailureReason(v string) *DescribeCompilationJobOutput { s.FailureReason = &v return s } // SetInputConfig sets the InputConfig field's value. func (s *DescribeCompilationJobOutput) SetInputConfig(v *InputConfig) *DescribeCompilationJobOutput { s.InputConfig = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeCompilationJobOutput) SetLastModifiedTime(v time.Time) *DescribeCompilationJobOutput { s.LastModifiedTime = &v return s } // SetModelArtifacts sets the ModelArtifacts field's value. func (s *DescribeCompilationJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeCompilationJobOutput { s.ModelArtifacts = v return s } // SetOutputConfig sets the OutputConfig field's value. func (s *DescribeCompilationJobOutput) SetOutputConfig(v *OutputConfig) *DescribeCompilationJobOutput { s.OutputConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeCompilationJobOutput) SetRoleArn(v string) *DescribeCompilationJobOutput { s.RoleArn = &v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *DescribeCompilationJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeCompilationJobOutput { s.StoppingCondition = v return s } type DescribeDomainInput struct { _ struct{} `type:"structure"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeDomainInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeDomainInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainId sets the DomainId field's value. func (s *DescribeDomainInput) SetDomainId(v string) *DescribeDomainInput { s.DomainId = &v return s } type DescribeDomainOutput struct { _ struct{} `type:"structure"` // The domain's authentication mode. AuthMode *string `type:"string" enum:"AuthMode"` // The creation time. CreationTime *time.Time `type:"timestamp"` // Settings which are applied to all UserProfile in this domain, if settings // are not explicitly specified in a given UserProfile. DefaultUserSettings *UserSettings `type:"structure"` // The domain's Amazon Resource Name (ARN). DomainArn *string `type:"string"` // The domain ID. DomainId *string `type:"string"` // The domain name. DomainName *string `type:"string"` // The failure reason. FailureReason *string `type:"string"` // The ID of the Amazon Elastic File System (EFS) managed by this Domain. HomeEfsFileSystemId *string `type:"string"` // The AWS Key Management Service encryption key ID. HomeEfsFileSystemKmsKeyId *string `type:"string"` // The last modified time. LastModifiedTime *time.Time `type:"timestamp"` // The SSO managed application instance ID. SingleSignOnManagedApplicationInstanceId *string `type:"string"` // The status. Status *string `type:"string" enum:"DomainStatus"` // Security setting to limit to a set of subnets. SubnetIds []*string `min:"1" type:"list"` // The domain's URL. Url *string `type:"string"` // The ID of the Amazon Virtual Private Cloud. VpcId *string `type:"string"` } // String returns the string representation func (s DescribeDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDomainOutput) GoString() string { return s.String() } // SetAuthMode sets the AuthMode field's value. func (s *DescribeDomainOutput) SetAuthMode(v string) *DescribeDomainOutput { s.AuthMode = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeDomainOutput) SetCreationTime(v time.Time) *DescribeDomainOutput { s.CreationTime = &v return s } // SetDefaultUserSettings sets the DefaultUserSettings field's value. func (s *DescribeDomainOutput) SetDefaultUserSettings(v *UserSettings) *DescribeDomainOutput { s.DefaultUserSettings = v return s } // SetDomainArn sets the DomainArn field's value. func (s *DescribeDomainOutput) SetDomainArn(v string) *DescribeDomainOutput { s.DomainArn = &v return s } // SetDomainId sets the DomainId field's value. func (s *DescribeDomainOutput) SetDomainId(v string) *DescribeDomainOutput { s.DomainId = &v return s } // SetDomainName sets the DomainName field's value. func (s *DescribeDomainOutput) SetDomainName(v string) *DescribeDomainOutput { s.DomainName = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeDomainOutput) SetFailureReason(v string) *DescribeDomainOutput { s.FailureReason = &v return s } // SetHomeEfsFileSystemId sets the HomeEfsFileSystemId field's value. func (s *DescribeDomainOutput) SetHomeEfsFileSystemId(v string) *DescribeDomainOutput { s.HomeEfsFileSystemId = &v return s } // SetHomeEfsFileSystemKmsKeyId sets the HomeEfsFileSystemKmsKeyId field's value. func (s *DescribeDomainOutput) SetHomeEfsFileSystemKmsKeyId(v string) *DescribeDomainOutput { s.HomeEfsFileSystemKmsKeyId = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeDomainOutput) SetLastModifiedTime(v time.Time) *DescribeDomainOutput { s.LastModifiedTime = &v return s } // SetSingleSignOnManagedApplicationInstanceId sets the SingleSignOnManagedApplicationInstanceId field's value. func (s *DescribeDomainOutput) SetSingleSignOnManagedApplicationInstanceId(v string) *DescribeDomainOutput { s.SingleSignOnManagedApplicationInstanceId = &v return s } // SetStatus sets the Status field's value. func (s *DescribeDomainOutput) SetStatus(v string) *DescribeDomainOutput { s.Status = &v return s } // SetSubnetIds sets the SubnetIds field's value. func (s *DescribeDomainOutput) SetSubnetIds(v []*string) *DescribeDomainOutput { s.SubnetIds = v return s } // SetUrl sets the Url field's value. func (s *DescribeDomainOutput) SetUrl(v string) *DescribeDomainOutput { s.Url = &v return s } // SetVpcId sets the VpcId field's value. func (s *DescribeDomainOutput) SetVpcId(v string) *DescribeDomainOutput { s.VpcId = &v return s } type DescribeEndpointConfigInput struct { _ struct{} `type:"structure"` // The name of the endpoint configuration. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeEndpointConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeEndpointConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeEndpointConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointConfigInput"} if s.EndpointConfigName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *DescribeEndpointConfigInput) SetEndpointConfigName(v string) *DescribeEndpointConfigInput { s.EndpointConfigName = &v return s } type DescribeEndpointConfigOutput struct { _ struct{} `type:"structure"` // A timestamp that shows when the endpoint configuration was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` DataCaptureConfig *DataCaptureConfig `type:"structure"` // The Amazon Resource Name (ARN) of the endpoint configuration. // // EndpointConfigArn is a required field EndpointConfigArn *string `min:"20" type:"string" required:"true"` // Name of the Amazon SageMaker endpoint configuration. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the // ML storage volume attached to the instance. KmsKeyId *string `type:"string"` // An array of ProductionVariant objects, one for each model that you want to // host at this endpoint. // // ProductionVariants is a required field ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` } // String returns the string representation func (s DescribeEndpointConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeEndpointConfigOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeEndpointConfigOutput) SetCreationTime(v time.Time) *DescribeEndpointConfigOutput { s.CreationTime = &v return s } // SetDataCaptureConfig sets the DataCaptureConfig field's value. func (s *DescribeEndpointConfigOutput) SetDataCaptureConfig(v *DataCaptureConfig) *DescribeEndpointConfigOutput { s.DataCaptureConfig = v return s } // SetEndpointConfigArn sets the EndpointConfigArn field's value. func (s *DescribeEndpointConfigOutput) SetEndpointConfigArn(v string) *DescribeEndpointConfigOutput { s.EndpointConfigArn = &v return s } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *DescribeEndpointConfigOutput) SetEndpointConfigName(v string) *DescribeEndpointConfigOutput { s.EndpointConfigName = &v return s } // SetKmsKeyId sets the KmsKeyId field's value. func (s *DescribeEndpointConfigOutput) SetKmsKeyId(v string) *DescribeEndpointConfigOutput { s.KmsKeyId = &v return s } // SetProductionVariants sets the ProductionVariants field's value. func (s *DescribeEndpointConfigOutput) SetProductionVariants(v []*ProductionVariant) *DescribeEndpointConfigOutput { s.ProductionVariants = v return s } type DescribeEndpointInput struct { _ struct{} `type:"structure"` // The name of the endpoint. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeEndpointInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeEndpointInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeEndpointInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointInput"} if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointName sets the EndpointName field's value. func (s *DescribeEndpointInput) SetEndpointName(v string) *DescribeEndpointInput { s.EndpointName = &v return s } type DescribeEndpointOutput struct { _ struct{} `type:"structure"` // A timestamp that shows when the endpoint was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` DataCaptureConfig *DataCaptureConfigSummary `type:"structure"` // The Amazon Resource Name (ARN) of the endpoint. // // EndpointArn is a required field EndpointArn *string `min:"20" type:"string" required:"true"` // The name of the endpoint configuration associated with this endpoint. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` // Name of the endpoint. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` // The status of the endpoint. // // * OutOfService: Endpoint is not available to take incoming requests. // // * Creating: CreateEndpoint is executing. // // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing. // // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated // or deleted or re-scaled until it has completed. This maintenance operation // does not change any customer-specified values such as VPC config, KMS // encryption, model, instance type, or instance count. // // * RollingBack: Endpoint fails to scale up or down or change its variant // weight and is in the process of rolling back to its previous configuration. // Once the rollback completes, endpoint returns to an InService status. // This transitional status only applies to an endpoint that has autoscaling // enabled and is undergoing variant weight or capacity changes as part of // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities // operation is called explicitly. // // * InService: Endpoint is available to process incoming requests. // // * Deleting: DeleteEndpoint is executing. // // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason // for information about the failure. DeleteEndpoint is the only operation // that can be performed on a failed endpoint. // // EndpointStatus is a required field EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` // If the status of the endpoint is Failed, the reason why it failed. FailureReason *string `type:"string"` // A timestamp that shows when the endpoint was last modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // An array of ProductionVariantSummary objects, one for each model hosted behind // this endpoint. ProductionVariants []*ProductionVariantSummary `min:"1" type:"list"` } // String returns the string representation func (s DescribeEndpointOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeEndpointOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeEndpointOutput) SetCreationTime(v time.Time) *DescribeEndpointOutput { s.CreationTime = &v return s } // SetDataCaptureConfig sets the DataCaptureConfig field's value. func (s *DescribeEndpointOutput) SetDataCaptureConfig(v *DataCaptureConfigSummary) *DescribeEndpointOutput { s.DataCaptureConfig = v return s } // SetEndpointArn sets the EndpointArn field's value. func (s *DescribeEndpointOutput) SetEndpointArn(v string) *DescribeEndpointOutput { s.EndpointArn = &v return s } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *DescribeEndpointOutput) SetEndpointConfigName(v string) *DescribeEndpointOutput { s.EndpointConfigName = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *DescribeEndpointOutput) SetEndpointName(v string) *DescribeEndpointOutput { s.EndpointName = &v return s } // SetEndpointStatus sets the EndpointStatus field's value. func (s *DescribeEndpointOutput) SetEndpointStatus(v string) *DescribeEndpointOutput { s.EndpointStatus = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeEndpointOutput) SetFailureReason(v string) *DescribeEndpointOutput { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeEndpointOutput) SetLastModifiedTime(v time.Time) *DescribeEndpointOutput { s.LastModifiedTime = &v return s } // SetProductionVariants sets the ProductionVariants field's value. func (s *DescribeEndpointOutput) SetProductionVariants(v []*ProductionVariantSummary) *DescribeEndpointOutput { s.ProductionVariants = v return s } type DescribeExperimentInput struct { _ struct{} `type:"structure"` // The name of the experiment to describe. // // ExperimentName is a required field ExperimentName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeExperimentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeExperimentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeExperimentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeExperimentInput"} if s.ExperimentName == nil { invalidParams.Add(request.NewErrParamRequired("ExperimentName")) } if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExperimentName sets the ExperimentName field's value. func (s *DescribeExperimentInput) SetExperimentName(v string) *DescribeExperimentInput { s.ExperimentName = &v return s } type DescribeExperimentOutput struct { _ struct{} `type:"structure"` // Who created the experiment. CreatedBy *UserContext `type:"structure"` // When the experiment was created. CreationTime *time.Time `type:"timestamp"` // The description of the experiment. Description *string `type:"string"` // The name of the experiment as displayed. If DisplayName isn't specified, // ExperimentName is displayed. DisplayName *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the experiment. ExperimentArn *string `type:"string"` // The name of the experiment. ExperimentName *string `min:"1" type:"string"` // Who last modified the experiment. LastModifiedBy *UserContext `type:"structure"` // When the experiment was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The ARN of the source and, optionally, the type. Source *ExperimentSource `type:"structure"` } // String returns the string representation func (s DescribeExperimentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeExperimentOutput) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *DescribeExperimentOutput) SetCreatedBy(v *UserContext) *DescribeExperimentOutput { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeExperimentOutput) SetCreationTime(v time.Time) *DescribeExperimentOutput { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *DescribeExperimentOutput) SetDescription(v string) *DescribeExperimentOutput { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *DescribeExperimentOutput) SetDisplayName(v string) *DescribeExperimentOutput { s.DisplayName = &v return s } // SetExperimentArn sets the ExperimentArn field's value. func (s *DescribeExperimentOutput) SetExperimentArn(v string) *DescribeExperimentOutput { s.ExperimentArn = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *DescribeExperimentOutput) SetExperimentName(v string) *DescribeExperimentOutput { s.ExperimentName = &v return s } // SetLastModifiedBy sets the LastModifiedBy field's value. func (s *DescribeExperimentOutput) SetLastModifiedBy(v *UserContext) *DescribeExperimentOutput { s.LastModifiedBy = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeExperimentOutput) SetLastModifiedTime(v time.Time) *DescribeExperimentOutput { s.LastModifiedTime = &v return s } // SetSource sets the Source field's value. func (s *DescribeExperimentOutput) SetSource(v *ExperimentSource) *DescribeExperimentOutput { s.Source = v return s } type DescribeFlowDefinitionInput struct { _ struct{} `type:"structure"` // The name of the flow definition. // // FlowDefinitionName is a required field FlowDefinitionName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeFlowDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeFlowDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeFlowDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeFlowDefinitionInput"} if s.FlowDefinitionName == nil { invalidParams.Add(request.NewErrParamRequired("FlowDefinitionName")) } if s.FlowDefinitionName != nil && len(*s.FlowDefinitionName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FlowDefinitionName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFlowDefinitionName sets the FlowDefinitionName field's value. func (s *DescribeFlowDefinitionInput) SetFlowDefinitionName(v string) *DescribeFlowDefinitionInput { s.FlowDefinitionName = &v return s } type DescribeFlowDefinitionOutput struct { _ struct{} `type:"structure"` // The timestamp when the flow definition was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The reason your flow definition failed. FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the flow defintion. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the flow definition. // // FlowDefinitionName is a required field FlowDefinitionName *string `min:"1" type:"string" required:"true"` // The status of the flow definition. Valid values are listed below. // // FlowDefinitionStatus is a required field FlowDefinitionStatus *string `type:"string" required:"true" enum:"FlowDefinitionStatus"` // An object containing information about what triggers a human review workflow. HumanLoopActivationConfig *HumanLoopActivationConfig `type:"structure"` // An object containing information about who works on the task, the workforce // task price, and other task details. // // HumanLoopConfig is a required field HumanLoopConfig *HumanLoopConfig `type:"structure" required:"true"` // Container for configuring the source of human task requests. Used to specify // if Amazon Rekognition or Amazon Textract is used as an integration source. HumanLoopRequestSource *HumanLoopRequestSource `type:"structure"` // An object containing information about the output file. // // OutputConfig is a required field OutputConfig *FlowDefinitionOutputConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of the AWS Identity and Access Management // (IAM) execution role for the flow definition. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s DescribeFlowDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeFlowDefinitionOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeFlowDefinitionOutput) SetCreationTime(v time.Time) *DescribeFlowDefinitionOutput { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeFlowDefinitionOutput) SetFailureReason(v string) *DescribeFlowDefinitionOutput { s.FailureReason = &v return s } // SetFlowDefinitionArn sets the FlowDefinitionArn field's value. func (s *DescribeFlowDefinitionOutput) SetFlowDefinitionArn(v string) *DescribeFlowDefinitionOutput { s.FlowDefinitionArn = &v return s } // SetFlowDefinitionName sets the FlowDefinitionName field's value. func (s *DescribeFlowDefinitionOutput) SetFlowDefinitionName(v string) *DescribeFlowDefinitionOutput { s.FlowDefinitionName = &v return s } // SetFlowDefinitionStatus sets the FlowDefinitionStatus field's value. func (s *DescribeFlowDefinitionOutput) SetFlowDefinitionStatus(v string) *DescribeFlowDefinitionOutput { s.FlowDefinitionStatus = &v return s } // SetHumanLoopActivationConfig sets the HumanLoopActivationConfig field's value. func (s *DescribeFlowDefinitionOutput) SetHumanLoopActivationConfig(v *HumanLoopActivationConfig) *DescribeFlowDefinitionOutput { s.HumanLoopActivationConfig = v return s } // SetHumanLoopConfig sets the HumanLoopConfig field's value. func (s *DescribeFlowDefinitionOutput) SetHumanLoopConfig(v *HumanLoopConfig) *DescribeFlowDefinitionOutput { s.HumanLoopConfig = v return s } // SetHumanLoopRequestSource sets the HumanLoopRequestSource field's value. func (s *DescribeFlowDefinitionOutput) SetHumanLoopRequestSource(v *HumanLoopRequestSource) *DescribeFlowDefinitionOutput { s.HumanLoopRequestSource = v return s } // SetOutputConfig sets the OutputConfig field's value. func (s *DescribeFlowDefinitionOutput) SetOutputConfig(v *FlowDefinitionOutputConfig) *DescribeFlowDefinitionOutput { s.OutputConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeFlowDefinitionOutput) SetRoleArn(v string) *DescribeFlowDefinitionOutput { s.RoleArn = &v return s } type DescribeHumanTaskUiInput struct { _ struct{} `type:"structure"` // The name of the human task user interface (worker task template) you want // information about. // // HumanTaskUiName is a required field HumanTaskUiName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeHumanTaskUiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeHumanTaskUiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeHumanTaskUiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeHumanTaskUiInput"} if s.HumanTaskUiName == nil { invalidParams.Add(request.NewErrParamRequired("HumanTaskUiName")) } if s.HumanTaskUiName != nil && len(*s.HumanTaskUiName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HumanTaskUiName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanTaskUiName sets the HumanTaskUiName field's value. func (s *DescribeHumanTaskUiInput) SetHumanTaskUiName(v string) *DescribeHumanTaskUiInput { s.HumanTaskUiName = &v return s } type DescribeHumanTaskUiOutput struct { _ struct{} `type:"structure"` // The timestamp when the human task user interface was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the human task user interface (worker task // template). // // HumanTaskUiArn is a required field HumanTaskUiArn *string `type:"string" required:"true"` // The name of the human task user interface (worker task template). // // HumanTaskUiName is a required field HumanTaskUiName *string `min:"1" type:"string" required:"true"` // The status of the human task user interface (worker task template). Valid // values are listed below. HumanTaskUiStatus *string `type:"string" enum:"HumanTaskUiStatus"` // Container for user interface template information. // // UiTemplate is a required field UiTemplate *UiTemplateInfo `type:"structure" required:"true"` } // String returns the string representation func (s DescribeHumanTaskUiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeHumanTaskUiOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeHumanTaskUiOutput) SetCreationTime(v time.Time) *DescribeHumanTaskUiOutput { s.CreationTime = &v return s } // SetHumanTaskUiArn sets the HumanTaskUiArn field's value. func (s *DescribeHumanTaskUiOutput) SetHumanTaskUiArn(v string) *DescribeHumanTaskUiOutput { s.HumanTaskUiArn = &v return s } // SetHumanTaskUiName sets the HumanTaskUiName field's value. func (s *DescribeHumanTaskUiOutput) SetHumanTaskUiName(v string) *DescribeHumanTaskUiOutput { s.HumanTaskUiName = &v return s } // SetHumanTaskUiStatus sets the HumanTaskUiStatus field's value. func (s *DescribeHumanTaskUiOutput) SetHumanTaskUiStatus(v string) *DescribeHumanTaskUiOutput { s.HumanTaskUiStatus = &v return s } // SetUiTemplate sets the UiTemplate field's value. func (s *DescribeHumanTaskUiOutput) SetUiTemplate(v *UiTemplateInfo) *DescribeHumanTaskUiOutput { s.UiTemplate = v return s } type DescribeHyperParameterTuningJobInput struct { _ struct{} `type:"structure"` // The name of the tuning job. // // HyperParameterTuningJobName is a required field HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeHyperParameterTuningJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeHyperParameterTuningJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeHyperParameterTuningJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeHyperParameterTuningJobInput"} if s.HyperParameterTuningJobName == nil { invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) } if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. func (s *DescribeHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobInput { s.HyperParameterTuningJobName = &v return s } type DescribeHyperParameterTuningJobOutput struct { _ struct{} `type:"structure"` // A TrainingJobSummary object that describes the training job that completed // with the best current HyperParameterTuningJobObjective. BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` // The date and time that the tuning job started. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // If the tuning job failed, the reason it failed. FailureReason *string `type:"string"` // The date and time that the tuning job ended. HyperParameterTuningEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the tuning job. // // HyperParameterTuningJobArn is a required field HyperParameterTuningJobArn *string `type:"string" required:"true"` // The HyperParameterTuningJobConfig object that specifies the configuration // of the tuning job. // // HyperParameterTuningJobConfig is a required field HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` // The name of the tuning job. // // HyperParameterTuningJobName is a required field HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` // The status of the tuning job: InProgress, Completed, Failed, Stopping, or // Stopped. // // HyperParameterTuningJobStatus is a required field HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` // The date and time that the status of the tuning job was modified. LastModifiedTime *time.Time `type:"timestamp"` // The ObjectiveStatusCounters object that specifies the number of training // jobs, categorized by the status of their final objective metric, that this // tuning job launched. // // ObjectiveStatusCounters is a required field ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` // If the hyperparameter tuning job is an warm start tuning job with a WarmStartType // of IDENTICAL_DATA_AND_ALGORITHM, this is the TrainingJobSummary for the training // job with the best objective metric value of all training jobs launched by // this tuning job and all parent jobs specified for the warm start tuning job. OverallBestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` // The HyperParameterTrainingJobDefinition object that specifies the definition // of the training jobs that this tuning job launches. TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure"` // A list of the HyperParameterTrainingJobDefinition objects launched for this // tuning job. TrainingJobDefinitions []*HyperParameterTrainingJobDefinition `min:"1" type:"list"` // The TrainingJobStatusCounters object that specifies the number of training // jobs, categorized by status, that this tuning job launched. // // TrainingJobStatusCounters is a required field TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` // The configuration for starting the hyperparameter parameter tuning job using // one or more previous tuning jobs as a starting point. The results of previous // tuning jobs are used to inform which combinations of hyperparameters to search // over in the new tuning job. WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"` } // String returns the string representation func (s DescribeHyperParameterTuningJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeHyperParameterTuningJobOutput) GoString() string { return s.String() } // SetBestTrainingJob sets the BestTrainingJob field's value. func (s *DescribeHyperParameterTuningJobOutput) SetBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput { s.BestTrainingJob = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeHyperParameterTuningJobOutput) SetCreationTime(v time.Time) *DescribeHyperParameterTuningJobOutput { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeHyperParameterTuningJobOutput) SetFailureReason(v string) *DescribeHyperParameterTuningJobOutput { s.FailureReason = &v return s } // SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningEndTime(v time.Time) *DescribeHyperParameterTuningJobOutput { s.HyperParameterTuningEndTime = &v return s } // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *DescribeHyperParameterTuningJobOutput { s.HyperParameterTuningJobArn = &v return s } // SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *DescribeHyperParameterTuningJobOutput { s.HyperParameterTuningJobConfig = v return s } // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobOutput { s.HyperParameterTuningJobName = &v return s } // SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobStatus(v string) *DescribeHyperParameterTuningJobOutput { s.HyperParameterTuningJobStatus = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeHyperParameterTuningJobOutput) SetLastModifiedTime(v time.Time) *DescribeHyperParameterTuningJobOutput { s.LastModifiedTime = &v return s } // SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. func (s *DescribeHyperParameterTuningJobOutput) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *DescribeHyperParameterTuningJobOutput { s.ObjectiveStatusCounters = v return s } // SetOverallBestTrainingJob sets the OverallBestTrainingJob field's value. func (s *DescribeHyperParameterTuningJobOutput) SetOverallBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput { s.OverallBestTrainingJob = v return s } // SetTrainingJobDefinition sets the TrainingJobDefinition field's value. func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *DescribeHyperParameterTuningJobOutput { s.TrainingJobDefinition = v return s } // SetTrainingJobDefinitions sets the TrainingJobDefinitions field's value. func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobDefinitions(v []*HyperParameterTrainingJobDefinition) *DescribeHyperParameterTuningJobOutput { s.TrainingJobDefinitions = v return s } // SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *DescribeHyperParameterTuningJobOutput { s.TrainingJobStatusCounters = v return s } // SetWarmStartConfig sets the WarmStartConfig field's value. func (s *DescribeHyperParameterTuningJobOutput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *DescribeHyperParameterTuningJobOutput { s.WarmStartConfig = v return s } type DescribeLabelingJobInput struct { _ struct{} `type:"structure"` // The name of the labeling job to return information for. // // LabelingJobName is a required field LabelingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeLabelingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeLabelingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeLabelingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeLabelingJobInput"} if s.LabelingJobName == nil { invalidParams.Add(request.NewErrParamRequired("LabelingJobName")) } if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLabelingJobName sets the LabelingJobName field's value. func (s *DescribeLabelingJobInput) SetLabelingJobName(v string) *DescribeLabelingJobInput { s.LabelingJobName = &v return s } type DescribeLabelingJobOutput struct { _ struct{} `type:"structure"` // The date and time that the labeling job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // If the job failed, the reason that it failed. FailureReason *string `type:"string"` // Configuration information required for human workers to complete a labeling // task. // // HumanTaskConfig is a required field HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"` // Input configuration information for the labeling job, such as the Amazon // S3 location of the data objects and the location of the manifest file that // describes the data objects. // // InputConfig is a required field InputConfig *LabelingJobInputConfig `type:"structure" required:"true"` // A unique identifier for work done as part of a labeling job. // // JobReferenceCode is a required field JobReferenceCode *string `min:"1" type:"string" required:"true"` // The attribute used as the label in the output manifest file. LabelAttributeName *string `min:"1" type:"string"` // The S3 location of the JSON file that defines the categories used to label // data objects. Please note the following label-category limits: // // * Semantic segmentation labeling jobs using automated labeling: 20 labels // // * Box bounding labeling jobs (all): 10 labels // // The file is a JSON structure in the following format: // // { // // "document-version": "2018-11-28" // // "labels": [ // // { // // "label": "label 1" // // }, // // { // // "label": "label 2" // // }, // // ... // // { // // "label": "label n" // // } // // ] // // } LabelCategoryConfigS3Uri *string `type:"string"` // Provides a breakdown of the number of data objects labeled by humans, the // number of objects labeled by machine, the number of objects than couldn't // be labeled, and the total number of objects labeled. // // LabelCounters is a required field LabelCounters *LabelCounters `type:"structure" required:"true"` // Configuration information for automated data labeling. LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"` // The Amazon Resource Name (ARN) of the labeling job. // // LabelingJobArn is a required field LabelingJobArn *string `type:"string" required:"true"` // The name assigned to the labeling job when it was created. // // LabelingJobName is a required field LabelingJobName *string `min:"1" type:"string" required:"true"` // The location of the output produced by the labeling job. LabelingJobOutput *LabelingJobOutput `type:"structure"` // The processing status of the labeling job. // // LabelingJobStatus is a required field LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"` // The date and time that the labeling job was last updated. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // The location of the job's output data and the AWS Key Management Service // key ID for the key used to encrypt the output data, if any. // // OutputConfig is a required field OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks // on your behalf during data labeling. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // A set of conditions for stopping a labeling job. If any of the conditions // are met, the job is automatically stopped. StoppingConditions *LabelingJobStoppingConditions `type:"structure"` // An array of key/value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` } // String returns the string representation func (s DescribeLabelingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeLabelingJobOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeLabelingJobOutput) SetCreationTime(v time.Time) *DescribeLabelingJobOutput { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeLabelingJobOutput) SetFailureReason(v string) *DescribeLabelingJobOutput { s.FailureReason = &v return s } // SetHumanTaskConfig sets the HumanTaskConfig field's value. func (s *DescribeLabelingJobOutput) SetHumanTaskConfig(v *HumanTaskConfig) *DescribeLabelingJobOutput { s.HumanTaskConfig = v return s } // SetInputConfig sets the InputConfig field's value. func (s *DescribeLabelingJobOutput) SetInputConfig(v *LabelingJobInputConfig) *DescribeLabelingJobOutput { s.InputConfig = v return s } // SetJobReferenceCode sets the JobReferenceCode field's value. func (s *DescribeLabelingJobOutput) SetJobReferenceCode(v string) *DescribeLabelingJobOutput { s.JobReferenceCode = &v return s } // SetLabelAttributeName sets the LabelAttributeName field's value. func (s *DescribeLabelingJobOutput) SetLabelAttributeName(v string) *DescribeLabelingJobOutput { s.LabelAttributeName = &v return s } // SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value. func (s *DescribeLabelingJobOutput) SetLabelCategoryConfigS3Uri(v string) *DescribeLabelingJobOutput { s.LabelCategoryConfigS3Uri = &v return s } // SetLabelCounters sets the LabelCounters field's value. func (s *DescribeLabelingJobOutput) SetLabelCounters(v *LabelCounters) *DescribeLabelingJobOutput { s.LabelCounters = v return s } // SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value. func (s *DescribeLabelingJobOutput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *DescribeLabelingJobOutput { s.LabelingJobAlgorithmsConfig = v return s } // SetLabelingJobArn sets the LabelingJobArn field's value. func (s *DescribeLabelingJobOutput) SetLabelingJobArn(v string) *DescribeLabelingJobOutput { s.LabelingJobArn = &v return s } // SetLabelingJobName sets the LabelingJobName field's value. func (s *DescribeLabelingJobOutput) SetLabelingJobName(v string) *DescribeLabelingJobOutput { s.LabelingJobName = &v return s } // SetLabelingJobOutput sets the LabelingJobOutput field's value. func (s *DescribeLabelingJobOutput) SetLabelingJobOutput(v *LabelingJobOutput) *DescribeLabelingJobOutput { s.LabelingJobOutput = v return s } // SetLabelingJobStatus sets the LabelingJobStatus field's value. func (s *DescribeLabelingJobOutput) SetLabelingJobStatus(v string) *DescribeLabelingJobOutput { s.LabelingJobStatus = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeLabelingJobOutput) SetLastModifiedTime(v time.Time) *DescribeLabelingJobOutput { s.LastModifiedTime = &v return s } // SetOutputConfig sets the OutputConfig field's value. func (s *DescribeLabelingJobOutput) SetOutputConfig(v *LabelingJobOutputConfig) *DescribeLabelingJobOutput { s.OutputConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeLabelingJobOutput) SetRoleArn(v string) *DescribeLabelingJobOutput { s.RoleArn = &v return s } // SetStoppingConditions sets the StoppingConditions field's value. func (s *DescribeLabelingJobOutput) SetStoppingConditions(v *LabelingJobStoppingConditions) *DescribeLabelingJobOutput { s.StoppingConditions = v return s } // SetTags sets the Tags field's value. func (s *DescribeLabelingJobOutput) SetTags(v []*Tag) *DescribeLabelingJobOutput { s.Tags = v return s } type DescribeModelInput struct { _ struct{} `type:"structure"` // The name of the model. // // ModelName is a required field ModelName *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeModelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeModelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeModelInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"} if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetModelName sets the ModelName field's value. func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput { s.ModelName = &v return s } type DescribeModelOutput struct { _ struct{} `type:"structure"` // The containers in the inference pipeline. Containers []*ContainerDefinition `type:"list"` // A timestamp that shows when the model was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // If True, no inbound or outbound network calls can be made to or from the // model container. EnableNetworkIsolation *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the IAM role that you specified for the // model. // // ExecutionRoleArn is a required field ExecutionRoleArn *string `min:"20" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the model. // // ModelArn is a required field ModelArn *string `min:"20" type:"string" required:"true"` // Name of the Amazon SageMaker model. // // ModelName is a required field ModelName *string `type:"string" required:"true"` // The location of the primary inference code, associated artifacts, and custom // environment map that the inference code uses when it is deployed in production. PrimaryContainer *ContainerDefinition `type:"structure"` // A VpcConfig object that specifies the VPC that this model has access to. // For more information, see Protect Endpoints by Using an Amazon Virtual Private // Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s DescribeModelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeModelOutput) GoString() string { return s.String() } // SetContainers sets the Containers field's value. func (s *DescribeModelOutput) SetContainers(v []*ContainerDefinition) *DescribeModelOutput { s.Containers = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeModelOutput) SetCreationTime(v time.Time) *DescribeModelOutput { s.CreationTime = &v return s } // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. func (s *DescribeModelOutput) SetEnableNetworkIsolation(v bool) *DescribeModelOutput { s.EnableNetworkIsolation = &v return s } // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *DescribeModelOutput) SetExecutionRoleArn(v string) *DescribeModelOutput { s.ExecutionRoleArn = &v return s } // SetModelArn sets the ModelArn field's value. func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput { s.ModelArn = &v return s } // SetModelName sets the ModelName field's value. func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput { s.ModelName = &v return s } // SetPrimaryContainer sets the PrimaryContainer field's value. func (s *DescribeModelOutput) SetPrimaryContainer(v *ContainerDefinition) *DescribeModelOutput { s.PrimaryContainer = v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *DescribeModelOutput) SetVpcConfig(v *VpcConfig) *DescribeModelOutput { s.VpcConfig = v return s } type DescribeModelPackageInput struct { _ struct{} `type:"structure"` // The name of the model package to describe. // // ModelPackageName is a required field ModelPackageName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeModelPackageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeModelPackageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeModelPackageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeModelPackageInput"} if s.ModelPackageName == nil { invalidParams.Add(request.NewErrParamRequired("ModelPackageName")) } if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetModelPackageName sets the ModelPackageName field's value. func (s *DescribeModelPackageInput) SetModelPackageName(v string) *DescribeModelPackageInput { s.ModelPackageName = &v return s } type DescribeModelPackageOutput struct { _ struct{} `type:"structure"` // Whether the model package is certified for listing on AWS Marketplace. CertifyForMarketplace *bool `type:"boolean"` // A timestamp specifying when the model package was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // Details about inference jobs that can be run with models based on this model // package. InferenceSpecification *InferenceSpecification `type:"structure"` // The Amazon Resource Name (ARN) of the model package. // // ModelPackageArn is a required field ModelPackageArn *string `min:"1" type:"string" required:"true"` // A brief summary of the model package. ModelPackageDescription *string `type:"string"` // The name of the model package being described. // // ModelPackageName is a required field ModelPackageName *string `min:"1" type:"string" required:"true"` // The current status of the model package. // // ModelPackageStatus is a required field ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"` // Details about the current status of the model package. // // ModelPackageStatusDetails is a required field ModelPackageStatusDetails *ModelPackageStatusDetails `type:"structure" required:"true"` // Details about the algorithm that was used to create the model package. SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"` // Configurations for one or more transform jobs that Amazon SageMaker runs // to test the model package. ValidationSpecification *ModelPackageValidationSpecification `type:"structure"` } // String returns the string representation func (s DescribeModelPackageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeModelPackageOutput) GoString() string { return s.String() } // SetCertifyForMarketplace sets the CertifyForMarketplace field's value. func (s *DescribeModelPackageOutput) SetCertifyForMarketplace(v bool) *DescribeModelPackageOutput { s.CertifyForMarketplace = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeModelPackageOutput) SetCreationTime(v time.Time) *DescribeModelPackageOutput { s.CreationTime = &v return s } // SetInferenceSpecification sets the InferenceSpecification field's value. func (s *DescribeModelPackageOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeModelPackageOutput { s.InferenceSpecification = v return s } // SetModelPackageArn sets the ModelPackageArn field's value. func (s *DescribeModelPackageOutput) SetModelPackageArn(v string) *DescribeModelPackageOutput { s.ModelPackageArn = &v return s } // SetModelPackageDescription sets the ModelPackageDescription field's value. func (s *DescribeModelPackageOutput) SetModelPackageDescription(v string) *DescribeModelPackageOutput { s.ModelPackageDescription = &v return s } // SetModelPackageName sets the ModelPackageName field's value. func (s *DescribeModelPackageOutput) SetModelPackageName(v string) *DescribeModelPackageOutput { s.ModelPackageName = &v return s } // SetModelPackageStatus sets the ModelPackageStatus field's value. func (s *DescribeModelPackageOutput) SetModelPackageStatus(v string) *DescribeModelPackageOutput { s.ModelPackageStatus = &v return s } // SetModelPackageStatusDetails sets the ModelPackageStatusDetails field's value. func (s *DescribeModelPackageOutput) SetModelPackageStatusDetails(v *ModelPackageStatusDetails) *DescribeModelPackageOutput { s.ModelPackageStatusDetails = v return s } // SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value. func (s *DescribeModelPackageOutput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *DescribeModelPackageOutput { s.SourceAlgorithmSpecification = v return s } // SetValidationSpecification sets the ValidationSpecification field's value. func (s *DescribeModelPackageOutput) SetValidationSpecification(v *ModelPackageValidationSpecification) *DescribeModelPackageOutput { s.ValidationSpecification = v return s } type DescribeMonitoringScheduleInput struct { _ struct{} `type:"structure"` // Name of a previously created monitoring schedule. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeMonitoringScheduleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeMonitoringScheduleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeMonitoringScheduleInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeMonitoringScheduleInput"} if s.MonitoringScheduleName == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleName")) } if s.MonitoringScheduleName != nil && len(*s.MonitoringScheduleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringScheduleName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *DescribeMonitoringScheduleInput) SetMonitoringScheduleName(v string) *DescribeMonitoringScheduleInput { s.MonitoringScheduleName = &v return s } type DescribeMonitoringScheduleOutput struct { _ struct{} `type:"structure"` // The time at which the monitoring job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The name of the endpoint for the monitoring job. EndpointName *string `type:"string"` // A string, up to one KB in size, that contains the reason a monitoring job // failed, if it failed. FailureReason *string `type:"string"` // The time at which the monitoring job was last modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // Describes metadata on the last execution to run, if there was one. LastMonitoringExecutionSummary *MonitoringExecutionSummary `type:"structure"` // The Amazon Resource Name (ARN) of the monitoring schedule. // // MonitoringScheduleArn is a required field MonitoringScheduleArn *string `type:"string" required:"true"` // The configuration object that specifies the monitoring schedule and defines // the monitoring job. // // MonitoringScheduleConfig is a required field MonitoringScheduleConfig *MonitoringScheduleConfig `type:"structure" required:"true"` // Name of the monitoring schedule. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` // The status of an monitoring job. // // MonitoringScheduleStatus is a required field MonitoringScheduleStatus *string `type:"string" required:"true" enum:"ScheduleStatus"` } // String returns the string representation func (s DescribeMonitoringScheduleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeMonitoringScheduleOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeMonitoringScheduleOutput) SetCreationTime(v time.Time) *DescribeMonitoringScheduleOutput { s.CreationTime = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *DescribeMonitoringScheduleOutput) SetEndpointName(v string) *DescribeMonitoringScheduleOutput { s.EndpointName = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeMonitoringScheduleOutput) SetFailureReason(v string) *DescribeMonitoringScheduleOutput { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeMonitoringScheduleOutput) SetLastModifiedTime(v time.Time) *DescribeMonitoringScheduleOutput { s.LastModifiedTime = &v return s } // SetLastMonitoringExecutionSummary sets the LastMonitoringExecutionSummary field's value. func (s *DescribeMonitoringScheduleOutput) SetLastMonitoringExecutionSummary(v *MonitoringExecutionSummary) *DescribeMonitoringScheduleOutput { s.LastMonitoringExecutionSummary = v return s } // SetMonitoringScheduleArn sets the MonitoringScheduleArn field's value. func (s *DescribeMonitoringScheduleOutput) SetMonitoringScheduleArn(v string) *DescribeMonitoringScheduleOutput { s.MonitoringScheduleArn = &v return s } // SetMonitoringScheduleConfig sets the MonitoringScheduleConfig field's value. func (s *DescribeMonitoringScheduleOutput) SetMonitoringScheduleConfig(v *MonitoringScheduleConfig) *DescribeMonitoringScheduleOutput { s.MonitoringScheduleConfig = v return s } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *DescribeMonitoringScheduleOutput) SetMonitoringScheduleName(v string) *DescribeMonitoringScheduleOutput { s.MonitoringScheduleName = &v return s } // SetMonitoringScheduleStatus sets the MonitoringScheduleStatus field's value. func (s *DescribeMonitoringScheduleOutput) SetMonitoringScheduleStatus(v string) *DescribeMonitoringScheduleOutput { s.MonitoringScheduleStatus = &v return s } type DescribeNotebookInstanceInput struct { _ struct{} `type:"structure"` // The name of the notebook instance that you want information about. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeNotebookInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeNotebookInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceInput"} if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *DescribeNotebookInstanceInput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceInput { s.NotebookInstanceName = &v return s } type DescribeNotebookInstanceLifecycleConfigInput struct { _ struct{} `type:"structure"` // The name of the lifecycle configuration to describe. // // NotebookInstanceLifecycleConfigName is a required field NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeNotebookInstanceLifecycleConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeNotebookInstanceLifecycleConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeNotebookInstanceLifecycleConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceLifecycleConfigInput"} if s.NotebookInstanceLifecycleConfigName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *DescribeNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigInput { s.NotebookInstanceLifecycleConfigName = &v return s } type DescribeNotebookInstanceLifecycleConfigOutput struct { _ struct{} `type:"structure"` // A timestamp that tells when the lifecycle configuration was created. CreationTime *time.Time `type:"timestamp"` // A timestamp that tells when the lifecycle configuration was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the lifecycle configuration. NotebookInstanceLifecycleConfigArn *string `type:"string"` // The name of the lifecycle configuration. NotebookInstanceLifecycleConfigName *string `type:"string"` // The shell script that runs only once, when you create a notebook instance. OnCreate []*NotebookInstanceLifecycleHook `type:"list"` // The shell script that runs every time you start a notebook instance, including // when you create the notebook instance. OnStart []*NotebookInstanceLifecycleHook `type:"list"` } // String returns the string representation func (s DescribeNotebookInstanceLifecycleConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeNotebookInstanceLifecycleConfigOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { s.CreationTime = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { s.LastModifiedTime = &v return s } // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *DescribeNotebookInstanceLifecycleConfigOutput { s.NotebookInstanceLifecycleConfigArn = &v return s } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigOutput { s.NotebookInstanceLifecycleConfigName = &v return s } // SetOnCreate sets the OnCreate field's value. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { s.OnCreate = v return s } // SetOnStart sets the OnStart field's value. func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnStart(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { s.OnStart = v return s } type DescribeNotebookInstanceOutput struct { _ struct{} `type:"structure"` // A list of the Elastic Inference (EI) instance types associated with this // notebook instance. Currently only one EI instance type can be associated // with a notebook instance. For more information, see Using Elastic Inference // in Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). AcceleratorTypes []*string `type:"list"` // An array of up to three Git repositories associated with the notebook instance. // These can be either the names of Git repositories stored as resources in // your account, or the URL of Git repositories in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. These repositories are cloned at the same // level as the default repository of your notebook instance. For more information, // see Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). AdditionalCodeRepositories []*string `type:"list"` // A timestamp. Use this parameter to return the time when the notebook instance // was created CreationTime *time.Time `type:"timestamp"` // The Git repository associated with the notebook instance as its default code // repository. This can be either the name of a Git repository stored as a resource // in your account, or the URL of a Git repository in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. When you open a notebook instance, it opens // in the directory that contains this repository. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). DefaultCodeRepository *string `min:"1" type:"string"` // Describes whether Amazon SageMaker provides internet access to the notebook // instance. If this value is set to Disabled, the notebook instance does not // have internet access, and cannot connect to Amazon SageMaker training and // endpoint services. // // For more information, see Notebook Instances Are Internet-Enabled by Default // (https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access). DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` // If status is Failed, the reason it failed. FailureReason *string `type:"string"` // The type of ML compute instance running on the notebook instance. InstanceType *string `type:"string" enum:"InstanceType"` // The AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it // on the ML storage volume attached to the instance. KmsKeyId *string `type:"string"` // A timestamp. Use this parameter to retrieve the time when the notebook instance // was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The network interface IDs that Amazon SageMaker created at the time of creating // the instance. NetworkInterfaceId *string `type:"string"` // The Amazon Resource Name (ARN) of the notebook instance. NotebookInstanceArn *string `type:"string"` // Returns the name of a notebook instance lifecycle configuration. // // For information about notebook instance lifestyle configurations, see Step // 2.1: (Optional) Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html) NotebookInstanceLifecycleConfigName *string `type:"string"` // The name of the Amazon SageMaker notebook instance. NotebookInstanceName *string `type:"string"` // The status of the notebook instance. NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` // The Amazon Resource Name (ARN) of the IAM role associated with the instance. RoleArn *string `min:"20" type:"string"` // Whether root access is enabled or disabled for users of the notebook instance. // // Lifecycle configurations need root access to be able to set up a notebook // instance. Because of this, lifecycle configurations associated with a notebook // instance always run with root access even if you disable root access for // users. RootAccess *string `type:"string" enum:"RootAccess"` // The IDs of the VPC security groups. SecurityGroups []*string `type:"list"` // The ID of the VPC subnet. SubnetId *string `type:"string"` // The URL that you use to connect to the Jupyter notebook that is running in // your notebook instance. Url *string `type:"string"` // The size, in GB, of the ML storage volume attached to the notebook instance. VolumeSizeInGB *int64 `min:"5" type:"integer"` } // String returns the string representation func (s DescribeNotebookInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeNotebookInstanceOutput) GoString() string { return s.String() } // SetAcceleratorTypes sets the AcceleratorTypes field's value. func (s *DescribeNotebookInstanceOutput) SetAcceleratorTypes(v []*string) *DescribeNotebookInstanceOutput { s.AcceleratorTypes = v return s } // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. func (s *DescribeNotebookInstanceOutput) SetAdditionalCodeRepositories(v []*string) *DescribeNotebookInstanceOutput { s.AdditionalCodeRepositories = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeNotebookInstanceOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceOutput { s.CreationTime = &v return s } // SetDefaultCodeRepository sets the DefaultCodeRepository field's value. func (s *DescribeNotebookInstanceOutput) SetDefaultCodeRepository(v string) *DescribeNotebookInstanceOutput { s.DefaultCodeRepository = &v return s } // SetDirectInternetAccess sets the DirectInternetAccess field's value. func (s *DescribeNotebookInstanceOutput) SetDirectInternetAccess(v string) *DescribeNotebookInstanceOutput { s.DirectInternetAccess = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeNotebookInstanceOutput) SetFailureReason(v string) *DescribeNotebookInstanceOutput { s.FailureReason = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *DescribeNotebookInstanceOutput) SetInstanceType(v string) *DescribeNotebookInstanceOutput { s.InstanceType = &v return s } // SetKmsKeyId sets the KmsKeyId field's value. func (s *DescribeNotebookInstanceOutput) SetKmsKeyId(v string) *DescribeNotebookInstanceOutput { s.KmsKeyId = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeNotebookInstanceOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceOutput { s.LastModifiedTime = &v return s } // SetNetworkInterfaceId sets the NetworkInterfaceId field's value. func (s *DescribeNotebookInstanceOutput) SetNetworkInterfaceId(v string) *DescribeNotebookInstanceOutput { s.NetworkInterfaceId = &v return s } // SetNotebookInstanceArn sets the NotebookInstanceArn field's value. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceArn(v string) *DescribeNotebookInstanceOutput { s.NotebookInstanceArn = &v return s } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceOutput { s.NotebookInstanceLifecycleConfigName = &v return s } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceOutput { s.NotebookInstanceName = &v return s } // SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceStatus(v string) *DescribeNotebookInstanceOutput { s.NotebookInstanceStatus = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeNotebookInstanceOutput) SetRoleArn(v string) *DescribeNotebookInstanceOutput { s.RoleArn = &v return s } // SetRootAccess sets the RootAccess field's value. func (s *DescribeNotebookInstanceOutput) SetRootAccess(v string) *DescribeNotebookInstanceOutput { s.RootAccess = &v return s } // SetSecurityGroups sets the SecurityGroups field's value. func (s *DescribeNotebookInstanceOutput) SetSecurityGroups(v []*string) *DescribeNotebookInstanceOutput { s.SecurityGroups = v return s } // SetSubnetId sets the SubnetId field's value. func (s *DescribeNotebookInstanceOutput) SetSubnetId(v string) *DescribeNotebookInstanceOutput { s.SubnetId = &v return s } // SetUrl sets the Url field's value. func (s *DescribeNotebookInstanceOutput) SetUrl(v string) *DescribeNotebookInstanceOutput { s.Url = &v return s } // SetVolumeSizeInGB sets the VolumeSizeInGB field's value. func (s *DescribeNotebookInstanceOutput) SetVolumeSizeInGB(v int64) *DescribeNotebookInstanceOutput { s.VolumeSizeInGB = &v return s } type DescribeProcessingJobInput struct { _ struct{} `type:"structure"` // The name of the processing job. The name must be unique within an AWS Region // in the AWS account. // // ProcessingJobName is a required field ProcessingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeProcessingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeProcessingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeProcessingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeProcessingJobInput"} if s.ProcessingJobName == nil { invalidParams.Add(request.NewErrParamRequired("ProcessingJobName")) } if s.ProcessingJobName != nil && len(*s.ProcessingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProcessingJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetProcessingJobName sets the ProcessingJobName field's value. func (s *DescribeProcessingJobInput) SetProcessingJobName(v string) *DescribeProcessingJobInput { s.ProcessingJobName = &v return s } type DescribeProcessingJobOutput struct { _ struct{} `type:"structure"` // Configures the processing job to run a specified container image. // // AppSpecification is a required field AppSpecification *AppSpecification `type:"structure" required:"true"` // The ARN of an AutoML job associated with this processing job. AutoMLJobArn *string `min:"1" type:"string"` // The time at which the processing job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The environment variables set in the Docker container. Environment map[string]*string `type:"map"` // An optional string, up to one KB in size, that contains metadata from the // processing container when the processing job exits. ExitMessage *string `type:"string"` // The configuration information used to create an experiment. ExperimentConfig *ExperimentConfig `type:"structure"` // A string, up to one KB in size, that contains the reason a processing job // failed, if it failed. FailureReason *string `type:"string"` // The time at which the processing job was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The ARN of a monitoring schedule for an endpoint associated with this processing // job. MonitoringScheduleArn *string `type:"string"` // Networking options for a processing job. NetworkConfig *NetworkConfig `type:"structure"` // The time at which the processing job completed. ProcessingEndTime *time.Time `type:"timestamp"` // The inputs for a processing job. ProcessingInputs []*ProcessingInput `type:"list"` // The Amazon Resource Name (ARN) of the processing job. // // ProcessingJobArn is a required field ProcessingJobArn *string `type:"string" required:"true"` // The name of the processing job. The name must be unique within an AWS Region // in the AWS account. // // ProcessingJobName is a required field ProcessingJobName *string `min:"1" type:"string" required:"true"` // Provides the status of a processing job. // // ProcessingJobStatus is a required field ProcessingJobStatus *string `type:"string" required:"true" enum:"ProcessingJobStatus"` // Output configuration for the processing job. ProcessingOutputConfig *ProcessingOutputConfig `type:"structure"` // Identifies the resources, ML compute instances, and ML storage volumes to // deploy for a processing job. In distributed training, you specify more than // one instance. // // ProcessingResources is a required field ProcessingResources *ProcessingResources `type:"structure" required:"true"` // The time at which the processing job started. ProcessingStartTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume // to perform tasks on your behalf. RoleArn *string `min:"20" type:"string"` // The time limit for how long the processing job is allowed to run. StoppingCondition *ProcessingStoppingCondition `type:"structure"` // The ARN of a training job associated with this processing job. TrainingJobArn *string `type:"string"` } // String returns the string representation func (s DescribeProcessingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeProcessingJobOutput) GoString() string { return s.String() } // SetAppSpecification sets the AppSpecification field's value. func (s *DescribeProcessingJobOutput) SetAppSpecification(v *AppSpecification) *DescribeProcessingJobOutput { s.AppSpecification = v return s } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *DescribeProcessingJobOutput) SetAutoMLJobArn(v string) *DescribeProcessingJobOutput { s.AutoMLJobArn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeProcessingJobOutput) SetCreationTime(v time.Time) *DescribeProcessingJobOutput { s.CreationTime = &v return s } // SetEnvironment sets the Environment field's value. func (s *DescribeProcessingJobOutput) SetEnvironment(v map[string]*string) *DescribeProcessingJobOutput { s.Environment = v return s } // SetExitMessage sets the ExitMessage field's value. func (s *DescribeProcessingJobOutput) SetExitMessage(v string) *DescribeProcessingJobOutput { s.ExitMessage = &v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *DescribeProcessingJobOutput) SetExperimentConfig(v *ExperimentConfig) *DescribeProcessingJobOutput { s.ExperimentConfig = v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeProcessingJobOutput) SetFailureReason(v string) *DescribeProcessingJobOutput { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeProcessingJobOutput) SetLastModifiedTime(v time.Time) *DescribeProcessingJobOutput { s.LastModifiedTime = &v return s } // SetMonitoringScheduleArn sets the MonitoringScheduleArn field's value. func (s *DescribeProcessingJobOutput) SetMonitoringScheduleArn(v string) *DescribeProcessingJobOutput { s.MonitoringScheduleArn = &v return s } // SetNetworkConfig sets the NetworkConfig field's value. func (s *DescribeProcessingJobOutput) SetNetworkConfig(v *NetworkConfig) *DescribeProcessingJobOutput { s.NetworkConfig = v return s } // SetProcessingEndTime sets the ProcessingEndTime field's value. func (s *DescribeProcessingJobOutput) SetProcessingEndTime(v time.Time) *DescribeProcessingJobOutput { s.ProcessingEndTime = &v return s } // SetProcessingInputs sets the ProcessingInputs field's value. func (s *DescribeProcessingJobOutput) SetProcessingInputs(v []*ProcessingInput) *DescribeProcessingJobOutput { s.ProcessingInputs = v return s } // SetProcessingJobArn sets the ProcessingJobArn field's value. func (s *DescribeProcessingJobOutput) SetProcessingJobArn(v string) *DescribeProcessingJobOutput { s.ProcessingJobArn = &v return s } // SetProcessingJobName sets the ProcessingJobName field's value. func (s *DescribeProcessingJobOutput) SetProcessingJobName(v string) *DescribeProcessingJobOutput { s.ProcessingJobName = &v return s } // SetProcessingJobStatus sets the ProcessingJobStatus field's value. func (s *DescribeProcessingJobOutput) SetProcessingJobStatus(v string) *DescribeProcessingJobOutput { s.ProcessingJobStatus = &v return s } // SetProcessingOutputConfig sets the ProcessingOutputConfig field's value. func (s *DescribeProcessingJobOutput) SetProcessingOutputConfig(v *ProcessingOutputConfig) *DescribeProcessingJobOutput { s.ProcessingOutputConfig = v return s } // SetProcessingResources sets the ProcessingResources field's value. func (s *DescribeProcessingJobOutput) SetProcessingResources(v *ProcessingResources) *DescribeProcessingJobOutput { s.ProcessingResources = v return s } // SetProcessingStartTime sets the ProcessingStartTime field's value. func (s *DescribeProcessingJobOutput) SetProcessingStartTime(v time.Time) *DescribeProcessingJobOutput { s.ProcessingStartTime = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeProcessingJobOutput) SetRoleArn(v string) *DescribeProcessingJobOutput { s.RoleArn = &v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *DescribeProcessingJobOutput) SetStoppingCondition(v *ProcessingStoppingCondition) *DescribeProcessingJobOutput { s.StoppingCondition = v return s } // SetTrainingJobArn sets the TrainingJobArn field's value. func (s *DescribeProcessingJobOutput) SetTrainingJobArn(v string) *DescribeProcessingJobOutput { s.TrainingJobArn = &v return s } type DescribeSubscribedWorkteamInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the subscribed work team to describe. // // WorkteamArn is a required field WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeSubscribedWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeSubscribedWorkteamInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeSubscribedWorkteamInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeSubscribedWorkteamInput"} if s.WorkteamArn == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetWorkteamArn sets the WorkteamArn field's value. func (s *DescribeSubscribedWorkteamInput) SetWorkteamArn(v string) *DescribeSubscribedWorkteamInput { s.WorkteamArn = &v return s } type DescribeSubscribedWorkteamOutput struct { _ struct{} `type:"structure"` // A Workteam instance that contains information about the work team. // // SubscribedWorkteam is a required field SubscribedWorkteam *SubscribedWorkteam `type:"structure" required:"true"` } // String returns the string representation func (s DescribeSubscribedWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeSubscribedWorkteamOutput) GoString() string { return s.String() } // SetSubscribedWorkteam sets the SubscribedWorkteam field's value. func (s *DescribeSubscribedWorkteamOutput) SetSubscribedWorkteam(v *SubscribedWorkteam) *DescribeSubscribedWorkteamOutput { s.SubscribedWorkteam = v return s } type DescribeTrainingJobInput struct { _ struct{} `type:"structure"` // The name of the training job. // // TrainingJobName is a required field TrainingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeTrainingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTrainingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeTrainingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeTrainingJobInput"} if s.TrainingJobName == nil { invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) } if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrainingJobName sets the TrainingJobName field's value. func (s *DescribeTrainingJobInput) SetTrainingJobName(v string) *DescribeTrainingJobInput { s.TrainingJobName = &v return s } type DescribeTrainingJobOutput struct { _ struct{} `type:"structure"` // Information about the algorithm used for training, and algorithm metadata. // // AlgorithmSpecification is a required field AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of an AutoML job. AutoMLJobArn *string `min:"1" type:"string"` // The billable time in seconds. // // You can calculate the savings from using managed spot training using the // formula (1 - BillableTimeInSeconds / TrainingTimeInSeconds) * 100. For example, // if BillableTimeInSeconds is 100 and TrainingTimeInSeconds is 500, the savings // is 80%. BillableTimeInSeconds *int64 `min:"1" type:"integer"` // Contains information about the output location for managed spot training // checkpoint data. CheckpointConfig *CheckpointConfig `type:"structure"` // A timestamp that indicates when the training job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // Configuration information for the debug hook parameters, collection configuration, // and storage paths. DebugHookConfig *DebugHookConfig `type:"structure"` // Configuration information for debugging rules. DebugRuleConfigurations []*DebugRuleConfiguration `type:"list"` // Status about the debug rule evaluation. DebugRuleEvaluationStatuses []*DebugRuleEvaluationStatus `type:"list"` // To encrypt all communications between ML compute instances in distributed // training, choose True. Encryption provides greater security for distributed // training, but training might take longer. How long it takes depends on the // amount of communication between compute instances, especially if you use // a deep learning algorithms in distributed training. EnableInterContainerTrafficEncryption *bool `type:"boolean"` // A Boolean indicating whether managed spot training is enabled (True) or not // (False). EnableManagedSpotTraining *bool `type:"boolean"` // If you want to allow inbound or outbound network calls, except for calls // between peers within a training cluster for distributed training, choose // True. If you enable network isolation for training jobs that are configured // to use a VPC, Amazon SageMaker downloads and uploads customer data and model // artifacts through the specified VPC, but the training container does not // have network access. EnableNetworkIsolation *bool `type:"boolean"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // If the training job failed, the reason it failed. FailureReason *string `type:"string"` // A collection of MetricData objects that specify the names, values, and dates // and times that the training algorithm emitted to Amazon CloudWatch. FinalMetricDataList []*MetricData `type:"list"` // Algorithm-specific parameters. HyperParameters map[string]*string `type:"map"` // An array of Channel objects that describes each data input channel. InputDataConfig []*Channel `min:"1" type:"list"` // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling // job that created the transform or training job. LabelingJobArn *string `type:"string"` // A timestamp that indicates when the status of the training job was last modified. LastModifiedTime *time.Time `type:"timestamp"` // Information about the Amazon S3 location that is configured for storing model // artifacts. // // ModelArtifacts is a required field ModelArtifacts *ModelArtifacts `type:"structure" required:"true"` // The S3 path where model artifacts that you configured when creating the job // are stored. Amazon SageMaker creates subfolders for model artifacts. OutputDataConfig *OutputDataConfig `type:"structure"` // Resources, including ML compute instances and ML storage volumes, that are // configured for model training. // // ResourceConfig is a required field ResourceConfig *ResourceConfig `type:"structure" required:"true"` // The AWS Identity and Access Management (IAM) role configured for the training // job. RoleArn *string `min:"20" type:"string"` // Provides detailed information about the state of the training job. For detailed // information on the secondary status of the training job, see StatusMessage // under SecondaryStatusTransition. // // Amazon SageMaker provides primary statuses and secondary statuses that apply // to each of them: // // InProgress // // * Starting - Starting the training job. // // * Downloading - An optional stage for algorithms that support File training // input mode. It indicates that data is being downloaded to the ML storage // volumes. // // * Training - Training is in progress. // // * Interrupted - The job stopped because the managed spot training instances // were interrupted. // // * Uploading - Training is complete and the model artifacts are being uploaded // to the S3 location. // // Completed // // * Completed - The training job has completed. // // Failed // // * Failed - The training job has failed. The reason for the failure is // returned in the FailureReason field of DescribeTrainingJobResponse. // // Stopped // // * MaxRuntimeExceeded - The job stopped because it exceeded the maximum // allowed runtime. // // * MaxWaitTimeExceeded - The job stopped because it exceeded the maximum // allowed wait time. // // * Stopped - The training job has stopped. // // Stopping // // * Stopping - Stopping the training job. // // Valid values for SecondaryStatus are subject to change. // // We no longer support the following secondary statuses: // // * LaunchingMLInstances // // * PreparingTrainingStack // // * DownloadingTrainingImage // // SecondaryStatus is a required field SecondaryStatus *string `type:"string" required:"true" enum:"SecondaryStatus"` // A history of all of the secondary statuses that the training job has transitioned // through. SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"` // Specifies a limit to how long a model training job can run. It also specifies // the maximum time to wait for a spot instance. When the job reaches the time // limit, Amazon SageMaker ends the training job. Use this API to cap model // training costs. // // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which // delays job termination for 120 seconds. Algorithms can use this 120-second // window to save the model artifacts, so the results of training are not lost. // // StoppingCondition is a required field StoppingCondition *StoppingCondition `type:"structure" required:"true"` // Configuration of storage locations for TensorBoard output. TensorBoardOutputConfig *TensorBoardOutputConfig `type:"structure"` // Indicates the time when the training job ends on training instances. You // are billed for the time interval between the value of TrainingStartTime and // this time. For successful jobs and stopped jobs, this is the time after model // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker // detects a job failure. TrainingEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the training job. // // TrainingJobArn is a required field TrainingJobArn *string `type:"string" required:"true"` // Name of the model training job. // // TrainingJobName is a required field TrainingJobName *string `min:"1" type:"string" required:"true"` // The status of the training job. // // Amazon SageMaker provides the following training job statuses: // // * InProgress - The training is in progress. // // * Completed - The training job has completed. // // * Failed - The training job has failed. To see the reason for the failure, // see the FailureReason field in the response to a DescribeTrainingJobResponse // call. // // * Stopping - The training job is stopping. // // * Stopped - The training job has stopped. // // For more detailed information, see SecondaryStatus. // // TrainingJobStatus is a required field TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` // Indicates the time when the training job starts on training instances. You // are billed for the time interval between this time and the value of TrainingEndTime. // The start time in CloudWatch Logs might be later than this time. The difference // is due to the time it takes to download the training data and to the size // of the training container. TrainingStartTime *time.Time `type:"timestamp"` // The training time in seconds. TrainingTimeInSeconds *int64 `min:"1" type:"integer"` // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job // if the training job was launched by a hyperparameter tuning job. TuningJobArn *string `type:"string"` // A VpcConfig object that specifies the VPC that this training job has access // to. For more information, see Protect Training Jobs by Using an Amazon Virtual // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s DescribeTrainingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTrainingJobOutput) GoString() string { return s.String() } // SetAlgorithmSpecification sets the AlgorithmSpecification field's value. func (s *DescribeTrainingJobOutput) SetAlgorithmSpecification(v *AlgorithmSpecification) *DescribeTrainingJobOutput { s.AlgorithmSpecification = v return s } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *DescribeTrainingJobOutput) SetAutoMLJobArn(v string) *DescribeTrainingJobOutput { s.AutoMLJobArn = &v return s } // SetBillableTimeInSeconds sets the BillableTimeInSeconds field's value. func (s *DescribeTrainingJobOutput) SetBillableTimeInSeconds(v int64) *DescribeTrainingJobOutput { s.BillableTimeInSeconds = &v return s } // SetCheckpointConfig sets the CheckpointConfig field's value. func (s *DescribeTrainingJobOutput) SetCheckpointConfig(v *CheckpointConfig) *DescribeTrainingJobOutput { s.CheckpointConfig = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeTrainingJobOutput) SetCreationTime(v time.Time) *DescribeTrainingJobOutput { s.CreationTime = &v return s } // SetDebugHookConfig sets the DebugHookConfig field's value. func (s *DescribeTrainingJobOutput) SetDebugHookConfig(v *DebugHookConfig) *DescribeTrainingJobOutput { s.DebugHookConfig = v return s } // SetDebugRuleConfigurations sets the DebugRuleConfigurations field's value. func (s *DescribeTrainingJobOutput) SetDebugRuleConfigurations(v []*DebugRuleConfiguration) *DescribeTrainingJobOutput { s.DebugRuleConfigurations = v return s } // SetDebugRuleEvaluationStatuses sets the DebugRuleEvaluationStatuses field's value. func (s *DescribeTrainingJobOutput) SetDebugRuleEvaluationStatuses(v []*DebugRuleEvaluationStatus) *DescribeTrainingJobOutput { s.DebugRuleEvaluationStatuses = v return s } // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value. func (s *DescribeTrainingJobOutput) SetEnableInterContainerTrafficEncryption(v bool) *DescribeTrainingJobOutput { s.EnableInterContainerTrafficEncryption = &v return s } // SetEnableManagedSpotTraining sets the EnableManagedSpotTraining field's value. func (s *DescribeTrainingJobOutput) SetEnableManagedSpotTraining(v bool) *DescribeTrainingJobOutput { s.EnableManagedSpotTraining = &v return s } // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. func (s *DescribeTrainingJobOutput) SetEnableNetworkIsolation(v bool) *DescribeTrainingJobOutput { s.EnableNetworkIsolation = &v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *DescribeTrainingJobOutput) SetExperimentConfig(v *ExperimentConfig) *DescribeTrainingJobOutput { s.ExperimentConfig = v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeTrainingJobOutput) SetFailureReason(v string) *DescribeTrainingJobOutput { s.FailureReason = &v return s } // SetFinalMetricDataList sets the FinalMetricDataList field's value. func (s *DescribeTrainingJobOutput) SetFinalMetricDataList(v []*MetricData) *DescribeTrainingJobOutput { s.FinalMetricDataList = v return s } // SetHyperParameters sets the HyperParameters field's value. func (s *DescribeTrainingJobOutput) SetHyperParameters(v map[string]*string) *DescribeTrainingJobOutput { s.HyperParameters = v return s } // SetInputDataConfig sets the InputDataConfig field's value. func (s *DescribeTrainingJobOutput) SetInputDataConfig(v []*Channel) *DescribeTrainingJobOutput { s.InputDataConfig = v return s } // SetLabelingJobArn sets the LabelingJobArn field's value. func (s *DescribeTrainingJobOutput) SetLabelingJobArn(v string) *DescribeTrainingJobOutput { s.LabelingJobArn = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeTrainingJobOutput) SetLastModifiedTime(v time.Time) *DescribeTrainingJobOutput { s.LastModifiedTime = &v return s } // SetModelArtifacts sets the ModelArtifacts field's value. func (s *DescribeTrainingJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeTrainingJobOutput { s.ModelArtifacts = v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. func (s *DescribeTrainingJobOutput) SetOutputDataConfig(v *OutputDataConfig) *DescribeTrainingJobOutput { s.OutputDataConfig = v return s } // SetResourceConfig sets the ResourceConfig field's value. func (s *DescribeTrainingJobOutput) SetResourceConfig(v *ResourceConfig) *DescribeTrainingJobOutput { s.ResourceConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeTrainingJobOutput) SetRoleArn(v string) *DescribeTrainingJobOutput { s.RoleArn = &v return s } // SetSecondaryStatus sets the SecondaryStatus field's value. func (s *DescribeTrainingJobOutput) SetSecondaryStatus(v string) *DescribeTrainingJobOutput { s.SecondaryStatus = &v return s } // SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value. func (s *DescribeTrainingJobOutput) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *DescribeTrainingJobOutput { s.SecondaryStatusTransitions = v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *DescribeTrainingJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeTrainingJobOutput { s.StoppingCondition = v return s } // SetTensorBoardOutputConfig sets the TensorBoardOutputConfig field's value. func (s *DescribeTrainingJobOutput) SetTensorBoardOutputConfig(v *TensorBoardOutputConfig) *DescribeTrainingJobOutput { s.TensorBoardOutputConfig = v return s } // SetTrainingEndTime sets the TrainingEndTime field's value. func (s *DescribeTrainingJobOutput) SetTrainingEndTime(v time.Time) *DescribeTrainingJobOutput { s.TrainingEndTime = &v return s } // SetTrainingJobArn sets the TrainingJobArn field's value. func (s *DescribeTrainingJobOutput) SetTrainingJobArn(v string) *DescribeTrainingJobOutput { s.TrainingJobArn = &v return s } // SetTrainingJobName sets the TrainingJobName field's value. func (s *DescribeTrainingJobOutput) SetTrainingJobName(v string) *DescribeTrainingJobOutput { s.TrainingJobName = &v return s } // SetTrainingJobStatus sets the TrainingJobStatus field's value. func (s *DescribeTrainingJobOutput) SetTrainingJobStatus(v string) *DescribeTrainingJobOutput { s.TrainingJobStatus = &v return s } // SetTrainingStartTime sets the TrainingStartTime field's value. func (s *DescribeTrainingJobOutput) SetTrainingStartTime(v time.Time) *DescribeTrainingJobOutput { s.TrainingStartTime = &v return s } // SetTrainingTimeInSeconds sets the TrainingTimeInSeconds field's value. func (s *DescribeTrainingJobOutput) SetTrainingTimeInSeconds(v int64) *DescribeTrainingJobOutput { s.TrainingTimeInSeconds = &v return s } // SetTuningJobArn sets the TuningJobArn field's value. func (s *DescribeTrainingJobOutput) SetTuningJobArn(v string) *DescribeTrainingJobOutput { s.TuningJobArn = &v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *DescribeTrainingJobOutput) SetVpcConfig(v *VpcConfig) *DescribeTrainingJobOutput { s.VpcConfig = v return s } type DescribeTransformJobInput struct { _ struct{} `type:"structure"` // The name of the transform job that you want to view details of. // // TransformJobName is a required field TransformJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeTransformJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTransformJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeTransformJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeTransformJobInput"} if s.TransformJobName == nil { invalidParams.Add(request.NewErrParamRequired("TransformJobName")) } if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTransformJobName sets the TransformJobName field's value. func (s *DescribeTransformJobInput) SetTransformJobName(v string) *DescribeTransformJobInput { s.TransformJobName = &v return s } type DescribeTransformJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the AutoML transform job. AutoMLJobArn *string `min:"1" type:"string"` // Specifies the number of records to include in a mini-batch for an HTTP inference // request. A record is a single unit of input data that inference can be made // on. For example, a single line in a CSV file is a record. // // To enable the batch strategy, you must set SplitType to Line, RecordIO, or // TFRecord. BatchStrategy *string `type:"string" enum:"BatchStrategy"` // A timestamp that shows when the transform Job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The data structure used to specify the data to be used for inference in a // batch transform job and to associate the data that is relevant to the prediction // results in the output. The input filter provided allows you to exclude input // data that is not needed for inference in a batch transform job. The output // filter provided allows you to include input data relevant to interpreting // the predictions in the output from the job. For more information, see Associate // Prediction Results with their Corresponding Input Records (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform-data-processing.html). DataProcessing *DataProcessing `type:"structure"` // The environment variables to set in the Docker container. We support up to // 16 key and values entries in the map. Environment map[string]*string `type:"map"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // If the transform job failed, FailureReason describes why it failed. A transform // job creates a log file, which includes error messages, and stores it as an // Amazon S3 object. For more information, see Log Amazon SageMaker Events with // Amazon CloudWatch (https://docs.aws.amazon.com/sagemaker/latest/dg/logging-cloudwatch.html). FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling // job that created the transform or training job. LabelingJobArn *string `type:"string"` // The maximum number of parallel requests on each instance node that can be // launched in a transform job. The default value is 1. MaxConcurrentTransforms *int64 `type:"integer"` // The maximum payload size, in MB, used in the transform job. MaxPayloadInMB *int64 `type:"integer"` // The timeout and maximum number of retries for processing a transform job // invocation. ModelClientConfig *ModelClientConfig `type:"structure"` // The name of the model used in the transform job. // // ModelName is a required field ModelName *string `type:"string" required:"true"` // Indicates when the transform job has been completed, or has stopped or failed. // You are billed for the time interval between this time and the value of TransformStartTime. TransformEndTime *time.Time `type:"timestamp"` // Describes the dataset to be transformed and the Amazon S3 location where // it is stored. // // TransformInput is a required field TransformInput *TransformInput `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of the transform job. // // TransformJobArn is a required field TransformJobArn *string `type:"string" required:"true"` // The name of the transform job. // // TransformJobName is a required field TransformJobName *string `min:"1" type:"string" required:"true"` // The status of the transform job. If the transform job failed, the reason // is returned in the FailureReason field. // // TransformJobStatus is a required field TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"` // Identifies the Amazon S3 location where you want Amazon SageMaker to save // the results from the transform job. TransformOutput *TransformOutput `type:"structure"` // Describes the resources, including ML instance types and ML instance count, // to use for the transform job. // // TransformResources is a required field TransformResources *TransformResources `type:"structure" required:"true"` // Indicates when the transform job starts on ML instances. You are billed for // the time interval between this time and the value of TransformEndTime. TransformStartTime *time.Time `type:"timestamp"` } // String returns the string representation func (s DescribeTransformJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTransformJobOutput) GoString() string { return s.String() } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *DescribeTransformJobOutput) SetAutoMLJobArn(v string) *DescribeTransformJobOutput { s.AutoMLJobArn = &v return s } // SetBatchStrategy sets the BatchStrategy field's value. func (s *DescribeTransformJobOutput) SetBatchStrategy(v string) *DescribeTransformJobOutput { s.BatchStrategy = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeTransformJobOutput) SetCreationTime(v time.Time) *DescribeTransformJobOutput { s.CreationTime = &v return s } // SetDataProcessing sets the DataProcessing field's value. func (s *DescribeTransformJobOutput) SetDataProcessing(v *DataProcessing) *DescribeTransformJobOutput { s.DataProcessing = v return s } // SetEnvironment sets the Environment field's value. func (s *DescribeTransformJobOutput) SetEnvironment(v map[string]*string) *DescribeTransformJobOutput { s.Environment = v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *DescribeTransformJobOutput) SetExperimentConfig(v *ExperimentConfig) *DescribeTransformJobOutput { s.ExperimentConfig = v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeTransformJobOutput) SetFailureReason(v string) *DescribeTransformJobOutput { s.FailureReason = &v return s } // SetLabelingJobArn sets the LabelingJobArn field's value. func (s *DescribeTransformJobOutput) SetLabelingJobArn(v string) *DescribeTransformJobOutput { s.LabelingJobArn = &v return s } // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. func (s *DescribeTransformJobOutput) SetMaxConcurrentTransforms(v int64) *DescribeTransformJobOutput { s.MaxConcurrentTransforms = &v return s } // SetMaxPayloadInMB sets the MaxPayloadInMB field's value. func (s *DescribeTransformJobOutput) SetMaxPayloadInMB(v int64) *DescribeTransformJobOutput { s.MaxPayloadInMB = &v return s } // SetModelClientConfig sets the ModelClientConfig field's value. func (s *DescribeTransformJobOutput) SetModelClientConfig(v *ModelClientConfig) *DescribeTransformJobOutput { s.ModelClientConfig = v return s } // SetModelName sets the ModelName field's value. func (s *DescribeTransformJobOutput) SetModelName(v string) *DescribeTransformJobOutput { s.ModelName = &v return s } // SetTransformEndTime sets the TransformEndTime field's value. func (s *DescribeTransformJobOutput) SetTransformEndTime(v time.Time) *DescribeTransformJobOutput { s.TransformEndTime = &v return s } // SetTransformInput sets the TransformInput field's value. func (s *DescribeTransformJobOutput) SetTransformInput(v *TransformInput) *DescribeTransformJobOutput { s.TransformInput = v return s } // SetTransformJobArn sets the TransformJobArn field's value. func (s *DescribeTransformJobOutput) SetTransformJobArn(v string) *DescribeTransformJobOutput { s.TransformJobArn = &v return s } // SetTransformJobName sets the TransformJobName field's value. func (s *DescribeTransformJobOutput) SetTransformJobName(v string) *DescribeTransformJobOutput { s.TransformJobName = &v return s } // SetTransformJobStatus sets the TransformJobStatus field's value. func (s *DescribeTransformJobOutput) SetTransformJobStatus(v string) *DescribeTransformJobOutput { s.TransformJobStatus = &v return s } // SetTransformOutput sets the TransformOutput field's value. func (s *DescribeTransformJobOutput) SetTransformOutput(v *TransformOutput) *DescribeTransformJobOutput { s.TransformOutput = v return s } // SetTransformResources sets the TransformResources field's value. func (s *DescribeTransformJobOutput) SetTransformResources(v *TransformResources) *DescribeTransformJobOutput { s.TransformResources = v return s } // SetTransformStartTime sets the TransformStartTime field's value. func (s *DescribeTransformJobOutput) SetTransformStartTime(v time.Time) *DescribeTransformJobOutput { s.TransformStartTime = &v return s } type DescribeTrialComponentInput struct { _ struct{} `type:"structure"` // The name of the trial component to describe. // // TrialComponentName is a required field TrialComponentName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeTrialComponentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTrialComponentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeTrialComponentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeTrialComponentInput"} if s.TrialComponentName == nil { invalidParams.Add(request.NewErrParamRequired("TrialComponentName")) } if s.TrialComponentName != nil && len(*s.TrialComponentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrialComponentName sets the TrialComponentName field's value. func (s *DescribeTrialComponentInput) SetTrialComponentName(v string) *DescribeTrialComponentInput { s.TrialComponentName = &v return s } type DescribeTrialComponentOutput struct { _ struct{} `type:"structure"` // Who created the component. CreatedBy *UserContext `type:"structure"` // When the component was created. CreationTime *time.Time `type:"timestamp"` // The name of the component as displayed. If DisplayName isn't specified, TrialComponentName // is displayed. DisplayName *string `min:"1" type:"string"` // When the component ended. EndTime *time.Time `type:"timestamp"` // The input artifacts of the component. InputArtifacts map[string]*TrialComponentArtifact `type:"map"` // Who last modified the component. LastModifiedBy *UserContext `type:"structure"` // When the component was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The metrics for the component. Metrics []*TrialComponentMetricSummary `type:"list"` // The output artifacts of the component. OutputArtifacts map[string]*TrialComponentArtifact `type:"map"` // The hyperparameters of the component. Parameters map[string]*TrialComponentParameterValue `type:"map"` // The Amazon Resource Name (ARN) of the source and, optionally, the job type. Source *TrialComponentSource `type:"structure"` // When the component started. StartTime *time.Time `type:"timestamp"` // The status of the component. States include: // // * InProgress // // * Completed // // * Failed Status *TrialComponentStatus `type:"structure"` // The Amazon Resource Name (ARN) of the trial component. TrialComponentArn *string `type:"string"` // The name of the trial component. TrialComponentName *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeTrialComponentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTrialComponentOutput) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *DescribeTrialComponentOutput) SetCreatedBy(v *UserContext) *DescribeTrialComponentOutput { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeTrialComponentOutput) SetCreationTime(v time.Time) *DescribeTrialComponentOutput { s.CreationTime = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *DescribeTrialComponentOutput) SetDisplayName(v string) *DescribeTrialComponentOutput { s.DisplayName = &v return s } // SetEndTime sets the EndTime field's value. func (s *DescribeTrialComponentOutput) SetEndTime(v time.Time) *DescribeTrialComponentOutput { s.EndTime = &v return s } // SetInputArtifacts sets the InputArtifacts field's value. func (s *DescribeTrialComponentOutput) SetInputArtifacts(v map[string]*TrialComponentArtifact) *DescribeTrialComponentOutput { s.InputArtifacts = v return s } // SetLastModifiedBy sets the LastModifiedBy field's value. func (s *DescribeTrialComponentOutput) SetLastModifiedBy(v *UserContext) *DescribeTrialComponentOutput { s.LastModifiedBy = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeTrialComponentOutput) SetLastModifiedTime(v time.Time) *DescribeTrialComponentOutput { s.LastModifiedTime = &v return s } // SetMetrics sets the Metrics field's value. func (s *DescribeTrialComponentOutput) SetMetrics(v []*TrialComponentMetricSummary) *DescribeTrialComponentOutput { s.Metrics = v return s } // SetOutputArtifacts sets the OutputArtifacts field's value. func (s *DescribeTrialComponentOutput) SetOutputArtifacts(v map[string]*TrialComponentArtifact) *DescribeTrialComponentOutput { s.OutputArtifacts = v return s } // SetParameters sets the Parameters field's value. func (s *DescribeTrialComponentOutput) SetParameters(v map[string]*TrialComponentParameterValue) *DescribeTrialComponentOutput { s.Parameters = v return s } // SetSource sets the Source field's value. func (s *DescribeTrialComponentOutput) SetSource(v *TrialComponentSource) *DescribeTrialComponentOutput { s.Source = v return s } // SetStartTime sets the StartTime field's value. func (s *DescribeTrialComponentOutput) SetStartTime(v time.Time) *DescribeTrialComponentOutput { s.StartTime = &v return s } // SetStatus sets the Status field's value. func (s *DescribeTrialComponentOutput) SetStatus(v *TrialComponentStatus) *DescribeTrialComponentOutput { s.Status = v return s } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *DescribeTrialComponentOutput) SetTrialComponentArn(v string) *DescribeTrialComponentOutput { s.TrialComponentArn = &v return s } // SetTrialComponentName sets the TrialComponentName field's value. func (s *DescribeTrialComponentOutput) SetTrialComponentName(v string) *DescribeTrialComponentOutput { s.TrialComponentName = &v return s } type DescribeTrialInput struct { _ struct{} `type:"structure"` // The name of the trial to describe. // // TrialName is a required field TrialName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeTrialInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTrialInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeTrialInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeTrialInput"} if s.TrialName == nil { invalidParams.Add(request.NewErrParamRequired("TrialName")) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrialName sets the TrialName field's value. func (s *DescribeTrialInput) SetTrialName(v string) *DescribeTrialInput { s.TrialName = &v return s } type DescribeTrialOutput struct { _ struct{} `type:"structure"` // Who created the trial. CreatedBy *UserContext `type:"structure"` // When the trial was created. CreationTime *time.Time `type:"timestamp"` // The name of the trial as displayed. If DisplayName isn't specified, TrialName // is displayed. DisplayName *string `min:"1" type:"string"` // The name of the experiment the trial is part of. ExperimentName *string `min:"1" type:"string"` // Who last modified the trial. LastModifiedBy *UserContext `type:"structure"` // When the trial was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the source and, optionally, the job type. Source *TrialSource `type:"structure"` // The Amazon Resource Name (ARN) of the trial. TrialArn *string `type:"string"` // The name of the trial. TrialName *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeTrialOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTrialOutput) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *DescribeTrialOutput) SetCreatedBy(v *UserContext) *DescribeTrialOutput { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *DescribeTrialOutput) SetCreationTime(v time.Time) *DescribeTrialOutput { s.CreationTime = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *DescribeTrialOutput) SetDisplayName(v string) *DescribeTrialOutput { s.DisplayName = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *DescribeTrialOutput) SetExperimentName(v string) *DescribeTrialOutput { s.ExperimentName = &v return s } // SetLastModifiedBy sets the LastModifiedBy field's value. func (s *DescribeTrialOutput) SetLastModifiedBy(v *UserContext) *DescribeTrialOutput { s.LastModifiedBy = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeTrialOutput) SetLastModifiedTime(v time.Time) *DescribeTrialOutput { s.LastModifiedTime = &v return s } // SetSource sets the Source field's value. func (s *DescribeTrialOutput) SetSource(v *TrialSource) *DescribeTrialOutput { s.Source = v return s } // SetTrialArn sets the TrialArn field's value. func (s *DescribeTrialOutput) SetTrialArn(v string) *DescribeTrialOutput { s.TrialArn = &v return s } // SetTrialName sets the TrialName field's value. func (s *DescribeTrialOutput) SetTrialName(v string) *DescribeTrialOutput { s.TrialName = &v return s } type DescribeUserProfileInput struct { _ struct{} `type:"structure"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The user profile name. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` } // String returns the string representation func (s DescribeUserProfileInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUserProfileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeUserProfileInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeUserProfileInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainId sets the DomainId field's value. func (s *DescribeUserProfileInput) SetDomainId(v string) *DescribeUserProfileInput { s.DomainId = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *DescribeUserProfileInput) SetUserProfileName(v string) *DescribeUserProfileInput { s.UserProfileName = &v return s } type DescribeUserProfileOutput struct { _ struct{} `type:"structure"` // The creation time. CreationTime *time.Time `type:"timestamp"` // The ID of the domain that contains the profile. DomainId *string `type:"string"` // The failure reason. FailureReason *string `type:"string"` // The ID of the user's profile in the Amazon Elastic File System (EFS) volume. HomeEfsFileSystemUid *string `type:"string"` // The last modified time. LastModifiedTime *time.Time `type:"timestamp"` // The SSO user identifier. SingleSignOnUserIdentifier *string `type:"string"` // The SSO user value. SingleSignOnUserValue *string `type:"string"` // The status. Status *string `type:"string" enum:"UserProfileStatus"` // The user profile Amazon Resource Name (ARN). UserProfileArn *string `type:"string"` // The user profile name. UserProfileName *string `type:"string"` // A collection of settings. UserSettings *UserSettings `type:"structure"` } // String returns the string representation func (s DescribeUserProfileOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUserProfileOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeUserProfileOutput) SetCreationTime(v time.Time) *DescribeUserProfileOutput { s.CreationTime = &v return s } // SetDomainId sets the DomainId field's value. func (s *DescribeUserProfileOutput) SetDomainId(v string) *DescribeUserProfileOutput { s.DomainId = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeUserProfileOutput) SetFailureReason(v string) *DescribeUserProfileOutput { s.FailureReason = &v return s } // SetHomeEfsFileSystemUid sets the HomeEfsFileSystemUid field's value. func (s *DescribeUserProfileOutput) SetHomeEfsFileSystemUid(v string) *DescribeUserProfileOutput { s.HomeEfsFileSystemUid = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DescribeUserProfileOutput) SetLastModifiedTime(v time.Time) *DescribeUserProfileOutput { s.LastModifiedTime = &v return s } // SetSingleSignOnUserIdentifier sets the SingleSignOnUserIdentifier field's value. func (s *DescribeUserProfileOutput) SetSingleSignOnUserIdentifier(v string) *DescribeUserProfileOutput { s.SingleSignOnUserIdentifier = &v return s } // SetSingleSignOnUserValue sets the SingleSignOnUserValue field's value. func (s *DescribeUserProfileOutput) SetSingleSignOnUserValue(v string) *DescribeUserProfileOutput { s.SingleSignOnUserValue = &v return s } // SetStatus sets the Status field's value. func (s *DescribeUserProfileOutput) SetStatus(v string) *DescribeUserProfileOutput { s.Status = &v return s } // SetUserProfileArn sets the UserProfileArn field's value. func (s *DescribeUserProfileOutput) SetUserProfileArn(v string) *DescribeUserProfileOutput { s.UserProfileArn = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *DescribeUserProfileOutput) SetUserProfileName(v string) *DescribeUserProfileOutput { s.UserProfileName = &v return s } // SetUserSettings sets the UserSettings field's value. func (s *DescribeUserProfileOutput) SetUserSettings(v *UserSettings) *DescribeUserProfileOutput { s.UserSettings = v return s } type DescribeWorkforceInput struct { _ struct{} `type:"structure"` // The name of the private workforce whose access you want to restrict. WorkforceName // is automatically set to default when a workforce is created and cannot be // modified. // // WorkforceName is a required field WorkforceName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeWorkforceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeWorkforceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeWorkforceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeWorkforceInput"} if s.WorkforceName == nil { invalidParams.Add(request.NewErrParamRequired("WorkforceName")) } if s.WorkforceName != nil && len(*s.WorkforceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkforceName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetWorkforceName sets the WorkforceName field's value. func (s *DescribeWorkforceInput) SetWorkforceName(v string) *DescribeWorkforceInput { s.WorkforceName = &v return s } type DescribeWorkforceOutput struct { _ struct{} `type:"structure"` // A single private workforce, which is automatically created when you create // your first private work team. You can create one private work force in each // AWS Region. By default, any workforce-related API operation used in a specific // region will apply to the workforce created in that region. To learn how to // create a private workforce, see Create a Private Workforce (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-create-private.html). // // Workforce is a required field Workforce *Workforce `type:"structure" required:"true"` } // String returns the string representation func (s DescribeWorkforceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeWorkforceOutput) GoString() string { return s.String() } // SetWorkforce sets the Workforce field's value. func (s *DescribeWorkforceOutput) SetWorkforce(v *Workforce) *DescribeWorkforceOutput { s.Workforce = v return s } type DescribeWorkteamInput struct { _ struct{} `type:"structure"` // The name of the work team to return a description of. // // WorkteamName is a required field WorkteamName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeWorkteamInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeWorkteamInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeWorkteamInput"} if s.WorkteamName == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamName")) } if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetWorkteamName sets the WorkteamName field's value. func (s *DescribeWorkteamInput) SetWorkteamName(v string) *DescribeWorkteamInput { s.WorkteamName = &v return s } type DescribeWorkteamOutput struct { _ struct{} `type:"structure"` // A Workteam instance that contains information about the work team. // // Workteam is a required field Workteam *Workteam `type:"structure" required:"true"` } // String returns the string representation func (s DescribeWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeWorkteamOutput) GoString() string { return s.String() } // SetWorkteam sets the Workteam field's value. func (s *DescribeWorkteamOutput) SetWorkteam(v *Workteam) *DescribeWorkteamOutput { s.Workteam = v return s } // Specifies weight and capacity values for a production variant. type DesiredWeightAndCapacity struct { _ struct{} `type:"structure"` // The variant's capacity. DesiredInstanceCount *int64 `min:"1" type:"integer"` // The variant's weight. DesiredWeight *float64 `type:"float"` // The name of the variant to update. // // VariantName is a required field VariantName *string `type:"string" required:"true"` } // String returns the string representation func (s DesiredWeightAndCapacity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DesiredWeightAndCapacity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DesiredWeightAndCapacity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DesiredWeightAndCapacity"} if s.DesiredInstanceCount != nil && *s.DesiredInstanceCount < 1 { invalidParams.Add(request.NewErrParamMinValue("DesiredInstanceCount", 1)) } if s.VariantName == nil { invalidParams.Add(request.NewErrParamRequired("VariantName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDesiredInstanceCount sets the DesiredInstanceCount field's value. func (s *DesiredWeightAndCapacity) SetDesiredInstanceCount(v int64) *DesiredWeightAndCapacity { s.DesiredInstanceCount = &v return s } // SetDesiredWeight sets the DesiredWeight field's value. func (s *DesiredWeightAndCapacity) SetDesiredWeight(v float64) *DesiredWeightAndCapacity { s.DesiredWeight = &v return s } // SetVariantName sets the VariantName field's value. func (s *DesiredWeightAndCapacity) SetVariantName(v string) *DesiredWeightAndCapacity { s.VariantName = &v return s } type DisassociateTrialComponentInput struct { _ struct{} `type:"structure"` // The name of the component to disassociate from the trial. // // TrialComponentName is a required field TrialComponentName *string `min:"1" type:"string" required:"true"` // The name of the trial to disassociate from. // // TrialName is a required field TrialName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DisassociateTrialComponentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateTrialComponentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateTrialComponentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateTrialComponentInput"} if s.TrialComponentName == nil { invalidParams.Add(request.NewErrParamRequired("TrialComponentName")) } if s.TrialComponentName != nil && len(*s.TrialComponentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentName", 1)) } if s.TrialName == nil { invalidParams.Add(request.NewErrParamRequired("TrialName")) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrialComponentName sets the TrialComponentName field's value. func (s *DisassociateTrialComponentInput) SetTrialComponentName(v string) *DisassociateTrialComponentInput { s.TrialComponentName = &v return s } // SetTrialName sets the TrialName field's value. func (s *DisassociateTrialComponentInput) SetTrialName(v string) *DisassociateTrialComponentInput { s.TrialName = &v return s } type DisassociateTrialComponentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the trial. TrialArn *string `type:"string"` // The ARN of the trial component. TrialComponentArn *string `type:"string"` } // String returns the string representation func (s DisassociateTrialComponentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateTrialComponentOutput) GoString() string { return s.String() } // SetTrialArn sets the TrialArn field's value. func (s *DisassociateTrialComponentOutput) SetTrialArn(v string) *DisassociateTrialComponentOutput { s.TrialArn = &v return s } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *DisassociateTrialComponentOutput) SetTrialComponentArn(v string) *DisassociateTrialComponentOutput { s.TrialComponentArn = &v return s } // The domain's details. type DomainDetails struct { _ struct{} `type:"structure"` // The creation time. CreationTime *time.Time `type:"timestamp"` // The domain's Amazon Resource Name (ARN). DomainArn *string `type:"string"` // The domain ID. DomainId *string `type:"string"` // The domain name. DomainName *string `type:"string"` // The last modified time. LastModifiedTime *time.Time `type:"timestamp"` // The status. Status *string `type:"string" enum:"DomainStatus"` // The domain's URL. Url *string `type:"string"` } // String returns the string representation func (s DomainDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DomainDetails) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DomainDetails) SetCreationTime(v time.Time) *DomainDetails { s.CreationTime = &v return s } // SetDomainArn sets the DomainArn field's value. func (s *DomainDetails) SetDomainArn(v string) *DomainDetails { s.DomainArn = &v return s } // SetDomainId sets the DomainId field's value. func (s *DomainDetails) SetDomainId(v string) *DomainDetails { s.DomainId = &v return s } // SetDomainName sets the DomainName field's value. func (s *DomainDetails) SetDomainName(v string) *DomainDetails { s.DomainName = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *DomainDetails) SetLastModifiedTime(v time.Time) *DomainDetails { s.LastModifiedTime = &v return s } // SetStatus sets the Status field's value. func (s *DomainDetails) SetStatus(v string) *DomainDetails { s.Status = &v return s } // SetUrl sets the Url field's value. func (s *DomainDetails) SetUrl(v string) *DomainDetails { s.Url = &v return s } // Provides summary information for an endpoint configuration. type EndpointConfigSummary struct { _ struct{} `type:"structure"` // A timestamp that shows when the endpoint configuration was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the endpoint configuration. // // EndpointConfigArn is a required field EndpointConfigArn *string `min:"20" type:"string" required:"true"` // The name of the endpoint configuration. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` } // String returns the string representation func (s EndpointConfigSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EndpointConfigSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *EndpointConfigSummary) SetCreationTime(v time.Time) *EndpointConfigSummary { s.CreationTime = &v return s } // SetEndpointConfigArn sets the EndpointConfigArn field's value. func (s *EndpointConfigSummary) SetEndpointConfigArn(v string) *EndpointConfigSummary { s.EndpointConfigArn = &v return s } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *EndpointConfigSummary) SetEndpointConfigName(v string) *EndpointConfigSummary { s.EndpointConfigName = &v return s } // Input object for the endpoint type EndpointInput struct { _ struct{} `type:"structure"` // An endpoint in customer's account which has enabled DataCaptureConfig enabled. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` // Path to the filesystem where the endpoint data is available to the container. // // LocalPath is a required field LocalPath *string `type:"string" required:"true"` // Whether input data distributed in Amazon S3 is fully replicated or sharded // by an S3 key. Defauts to FullyReplicated S3DataDistributionType *string `type:"string" enum:"ProcessingS3DataDistributionType"` // Whether the Pipe or File is used as the input mode for transfering data for // the monitoring job. Pipe mode is recommended for large datasets. File mode // is useful for small files that fit in memory. Defaults to File. S3InputMode *string `type:"string" enum:"ProcessingS3InputMode"` } // String returns the string representation func (s EndpointInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EndpointInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EndpointInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EndpointInput"} if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } if s.LocalPath == nil { invalidParams.Add(request.NewErrParamRequired("LocalPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointName sets the EndpointName field's value. func (s *EndpointInput) SetEndpointName(v string) *EndpointInput { s.EndpointName = &v return s } // SetLocalPath sets the LocalPath field's value. func (s *EndpointInput) SetLocalPath(v string) *EndpointInput { s.LocalPath = &v return s } // SetS3DataDistributionType sets the S3DataDistributionType field's value. func (s *EndpointInput) SetS3DataDistributionType(v string) *EndpointInput { s.S3DataDistributionType = &v return s } // SetS3InputMode sets the S3InputMode field's value. func (s *EndpointInput) SetS3InputMode(v string) *EndpointInput { s.S3InputMode = &v return s } // Provides summary information for an endpoint. type EndpointSummary struct { _ struct{} `type:"structure"` // A timestamp that shows when the endpoint was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the endpoint. // // EndpointArn is a required field EndpointArn *string `min:"20" type:"string" required:"true"` // The name of the endpoint. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` // The status of the endpoint. // // * OutOfService: Endpoint is not available to take incoming requests. // // * Creating: CreateEndpoint is executing. // // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing. // // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated // or deleted or re-scaled until it has completed. This maintenance operation // does not change any customer-specified values such as VPC config, KMS // encryption, model, instance type, or instance count. // // * RollingBack: Endpoint fails to scale up or down or change its variant // weight and is in the process of rolling back to its previous configuration. // Once the rollback completes, endpoint returns to an InService status. // This transitional status only applies to an endpoint that has autoscaling // enabled and is undergoing variant weight or capacity changes as part of // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities // operation is called explicitly. // // * InService: Endpoint is available to process incoming requests. // // * Deleting: DeleteEndpoint is executing. // // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason // for information about the failure. DeleteEndpoint is the only operation // that can be performed on a failed endpoint. // // To get a list of endpoints with a specified status, use the ListEndpointsInput$StatusEquals // filter. // // EndpointStatus is a required field EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` // A timestamp that shows when the endpoint was last modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s EndpointSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EndpointSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *EndpointSummary) SetCreationTime(v time.Time) *EndpointSummary { s.CreationTime = &v return s } // SetEndpointArn sets the EndpointArn field's value. func (s *EndpointSummary) SetEndpointArn(v string) *EndpointSummary { s.EndpointArn = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *EndpointSummary) SetEndpointName(v string) *EndpointSummary { s.EndpointName = &v return s } // SetEndpointStatus sets the EndpointStatus field's value. func (s *EndpointSummary) SetEndpointStatus(v string) *EndpointSummary { s.EndpointStatus = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *EndpointSummary) SetLastModifiedTime(v time.Time) *EndpointSummary { s.LastModifiedTime = &v return s } // The properties of an experiment as returned by the Search API. type Experiment struct { _ struct{} `type:"structure"` // Information about the user who created or modified an experiment, trial, // or trial component. CreatedBy *UserContext `type:"structure"` // When the experiment was created. CreationTime *time.Time `type:"timestamp"` // The description of the experiment. Description *string `type:"string"` // The name of the experiment as displayed. If DisplayName isn't specified, // ExperimentName is displayed. DisplayName *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the experiment. ExperimentArn *string `type:"string"` // The name of the experiment. ExperimentName *string `min:"1" type:"string"` // Information about the user who created or modified an experiment, trial, // or trial component. LastModifiedBy *UserContext `type:"structure"` // When the experiment was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The source of the experiment. Source *ExperimentSource `type:"structure"` // The list of tags that are associated with the experiment. You can use Search // API to search on the tags. Tags []*Tag `type:"list"` } // String returns the string representation func (s Experiment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Experiment) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *Experiment) SetCreatedBy(v *UserContext) *Experiment { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *Experiment) SetCreationTime(v time.Time) *Experiment { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *Experiment) SetDescription(v string) *Experiment { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *Experiment) SetDisplayName(v string) *Experiment { s.DisplayName = &v return s } // SetExperimentArn sets the ExperimentArn field's value. func (s *Experiment) SetExperimentArn(v string) *Experiment { s.ExperimentArn = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *Experiment) SetExperimentName(v string) *Experiment { s.ExperimentName = &v return s } // SetLastModifiedBy sets the LastModifiedBy field's value. func (s *Experiment) SetLastModifiedBy(v *UserContext) *Experiment { s.LastModifiedBy = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *Experiment) SetLastModifiedTime(v time.Time) *Experiment { s.LastModifiedTime = &v return s } // SetSource sets the Source field's value. func (s *Experiment) SetSource(v *ExperimentSource) *Experiment { s.Source = v return s } // SetTags sets the Tags field's value. func (s *Experiment) SetTags(v []*Tag) *Experiment { s.Tags = v return s } // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob type ExperimentConfig struct { _ struct{} `type:"structure"` // The name of an existing experiment to associate the trial component with. ExperimentName *string `min:"1" type:"string"` // The display name for the trial component. If this key isn't specified, the // display name is the trial component name. TrialComponentDisplayName *string `min:"1" type:"string"` // The name of an existing trial to associate the trial component with. If not // specified, a new trial is created. TrialName *string `min:"1" type:"string"` } // String returns the string representation func (s ExperimentConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExperimentConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ExperimentConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ExperimentConfig"} if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if s.TrialComponentDisplayName != nil && len(*s.TrialComponentDisplayName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentDisplayName", 1)) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExperimentName sets the ExperimentName field's value. func (s *ExperimentConfig) SetExperimentName(v string) *ExperimentConfig { s.ExperimentName = &v return s } // SetTrialComponentDisplayName sets the TrialComponentDisplayName field's value. func (s *ExperimentConfig) SetTrialComponentDisplayName(v string) *ExperimentConfig { s.TrialComponentDisplayName = &v return s } // SetTrialName sets the TrialName field's value. func (s *ExperimentConfig) SetTrialName(v string) *ExperimentConfig { s.TrialName = &v return s } // The source of the experiment. type ExperimentSource struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the source. // // SourceArn is a required field SourceArn *string `type:"string" required:"true"` // The source type. SourceType *string `type:"string"` } // String returns the string representation func (s ExperimentSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExperimentSource) GoString() string { return s.String() } // SetSourceArn sets the SourceArn field's value. func (s *ExperimentSource) SetSourceArn(v string) *ExperimentSource { s.SourceArn = &v return s } // SetSourceType sets the SourceType field's value. func (s *ExperimentSource) SetSourceType(v string) *ExperimentSource { s.SourceType = &v return s } // A summary of the properties of an experiment. To get the complete set of // properties, call the DescribeExperiment API and provide the ExperimentName. type ExperimentSummary struct { _ struct{} `type:"structure"` // When the experiment was created. CreationTime *time.Time `type:"timestamp"` // The name of the experiment as displayed. If DisplayName isn't specified, // ExperimentName is displayed. DisplayName *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the experiment. ExperimentArn *string `type:"string"` // The name of the experiment. ExperimentName *string `min:"1" type:"string"` // The source of the experiment. ExperimentSource *ExperimentSource `type:"structure"` // When the experiment was last modified. LastModifiedTime *time.Time `type:"timestamp"` } // String returns the string representation func (s ExperimentSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExperimentSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *ExperimentSummary) SetCreationTime(v time.Time) *ExperimentSummary { s.CreationTime = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *ExperimentSummary) SetDisplayName(v string) *ExperimentSummary { s.DisplayName = &v return s } // SetExperimentArn sets the ExperimentArn field's value. func (s *ExperimentSummary) SetExperimentArn(v string) *ExperimentSummary { s.ExperimentArn = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *ExperimentSummary) SetExperimentName(v string) *ExperimentSummary { s.ExperimentName = &v return s } // SetExperimentSource sets the ExperimentSource field's value. func (s *ExperimentSummary) SetExperimentSource(v *ExperimentSource) *ExperimentSummary { s.ExperimentSource = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *ExperimentSummary) SetLastModifiedTime(v time.Time) *ExperimentSummary { s.LastModifiedTime = &v return s } // Specifies a file system data source for a channel. type FileSystemDataSource struct { _ struct{} `type:"structure"` // The full path to the directory to associate with the channel. // // DirectoryPath is a required field DirectoryPath *string `type:"string" required:"true"` // The access mode of the mount of the directory associated with the channel. // A directory can be mounted either in ro (read-only) or rw (read-write) mode. // // FileSystemAccessMode is a required field FileSystemAccessMode *string `type:"string" required:"true" enum:"FileSystemAccessMode"` // The file system id. // // FileSystemId is a required field FileSystemId *string `min:"11" type:"string" required:"true"` // The file system type. // // FileSystemType is a required field FileSystemType *string `type:"string" required:"true" enum:"FileSystemType"` } // String returns the string representation func (s FileSystemDataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FileSystemDataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *FileSystemDataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "FileSystemDataSource"} if s.DirectoryPath == nil { invalidParams.Add(request.NewErrParamRequired("DirectoryPath")) } if s.FileSystemAccessMode == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemAccessMode")) } if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } if s.FileSystemId != nil && len(*s.FileSystemId) < 11 { invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 11)) } if s.FileSystemType == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDirectoryPath sets the DirectoryPath field's value. func (s *FileSystemDataSource) SetDirectoryPath(v string) *FileSystemDataSource { s.DirectoryPath = &v return s } // SetFileSystemAccessMode sets the FileSystemAccessMode field's value. func (s *FileSystemDataSource) SetFileSystemAccessMode(v string) *FileSystemDataSource { s.FileSystemAccessMode = &v return s } // SetFileSystemId sets the FileSystemId field's value. func (s *FileSystemDataSource) SetFileSystemId(v string) *FileSystemDataSource { s.FileSystemId = &v return s } // SetFileSystemType sets the FileSystemType field's value. func (s *FileSystemDataSource) SetFileSystemType(v string) *FileSystemDataSource { s.FileSystemType = &v return s } // A conditional statement for a search expression that includes a resource // property, a Boolean operator, and a value. Resources that match the statement // are returned in the results from the Search API. // // If you specify a Value, but not an Operator, Amazon SageMaker uses the equals // operator. // // In search, there are several property types: // // Metrics // // To define a metric filter, enter a value using the form "Metrics.", // where is a metric name. For example, the following filter searches // for training jobs with an "accuracy" metric greater than "0.9": // // { // // "Name": "Metrics.accuracy", // // "Operator": "GreaterThan", // // "Value": "0.9" // // } // // HyperParameters // // To define a hyperparameter filter, enter a value with the form "HyperParameters.". // Decimal hyperparameter values are treated as a decimal in a comparison if // the specified Value is also a decimal value. If the specified Value is an // integer, the decimal hyperparameter values are treated as integers. For example, // the following filter is satisfied by training jobs with a "learning_rate" // hyperparameter that is less than "0.5": // // { // // "Name": "HyperParameters.learning_rate", // // "Operator": "LessThan", // // "Value": "0.5" // // } // // Tags // // To define a tag filter, enter a value with the form Tags.. type Filter struct { _ struct{} `type:"structure"` // A resource property name. For example, TrainingJobName. For valid property // names, see SearchRecord. You must specify a valid property for the resource. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // A Boolean binary operator that is used to evaluate the filter. The operator // field contains one of the following values: // // Equals // // The value of Name equals Value. // // NotEquals // // The value of Name doesn't equal Value. // // Exists // // The Name property exists. // // NotExists // // The Name property does not exist. // // GreaterThan // // The value of Name is greater than Value. Not supported for text properties. // // GreaterThanOrEqualTo // // The value of Name is greater than or equal to Value. Not supported for text // properties. // // LessThan // // The value of Name is less than Value. Not supported for text properties. // // LessThanOrEqualTo // // The value of Name is less than or equal to Value. Not supported for text // properties. // // In // // The value of Name is one of the comma delimited strings in Value. Only supported // for text properties. // // Contains // // The value of Name contains the string Value. Only supported for text properties. // // A SearchExpression can include the Contains operator multiple times when // the value of Name is one of the following: // // * Experiment.DisplayName // // * Experiment.ExperimentName // // * Experiment.Tags // // * Trial.DisplayName // // * Trial.TrialName // // * Trial.Tags // // * TrialComponent.DisplayName // // * TrialComponent.TrialComponentName // // * TrialComponent.Tags // // * TrialComponent.InputArtifacts // // * TrialComponent.OutputArtifacts // // A SearchExpression can include only one Contains operator for all other values // of Name. In these cases, if you include multiple Contains operators in the // SearchExpression, the result is the following error message: "'CONTAINS' // operator usage limit of 1 exceeded." Operator *string `type:"string" enum:"Operator"` // A value used with Name and Operator to determine which resources satisfy // the filter's condition. For numerical properties, Value must be an integer // or floating-point decimal. For timestamp properties, Value must be an ISO // 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS. Value *string `min:"1" type:"string"` } // String returns the string representation func (s Filter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Filter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Filter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Filter"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Value != nil && len(*s.Value) < 1 { invalidParams.Add(request.NewErrParamMinLen("Value", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *Filter) SetName(v string) *Filter { s.Name = &v return s } // SetOperator sets the Operator field's value. func (s *Filter) SetOperator(v string) *Filter { s.Operator = &v return s } // SetValue sets the Value field's value. func (s *Filter) SetValue(v string) *Filter { s.Value = &v return s } // The best candidate result from an AutoML training job. type FinalAutoMLJobObjectiveMetric struct { _ struct{} `type:"structure"` // The name of the metric with the best result. For a description of the possible // objective metrics, see AutoMLJobObjective$MetricName. // // MetricName is a required field MetricName *string `type:"string" required:"true" enum:"AutoMLMetricEnum"` // The type of metric with the best result. Type *string `type:"string" enum:"AutoMLJobObjectiveType"` // The value of the metric with the best result. // // Value is a required field Value *float64 `type:"float" required:"true"` } // String returns the string representation func (s FinalAutoMLJobObjectiveMetric) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FinalAutoMLJobObjectiveMetric) GoString() string { return s.String() } // SetMetricName sets the MetricName field's value. func (s *FinalAutoMLJobObjectiveMetric) SetMetricName(v string) *FinalAutoMLJobObjectiveMetric { s.MetricName = &v return s } // SetType sets the Type field's value. func (s *FinalAutoMLJobObjectiveMetric) SetType(v string) *FinalAutoMLJobObjectiveMetric { s.Type = &v return s } // SetValue sets the Value field's value. func (s *FinalAutoMLJobObjectiveMetric) SetValue(v float64) *FinalAutoMLJobObjectiveMetric { s.Value = &v return s } // Shows the final value for the objective metric for a training job that was // launched by a hyperparameter tuning job. You define the objective metric // in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig. type FinalHyperParameterTuningJobObjectiveMetric struct { _ struct{} `type:"structure"` // The name of the objective metric. // // MetricName is a required field MetricName *string `min:"1" type:"string" required:"true"` // Whether to minimize or maximize the objective metric. Valid values are Minimize // and Maximize. Type *string `type:"string" enum:"HyperParameterTuningJobObjectiveType"` // The value of the objective metric. // // Value is a required field Value *float64 `type:"float" required:"true"` } // String returns the string representation func (s FinalHyperParameterTuningJobObjectiveMetric) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FinalHyperParameterTuningJobObjectiveMetric) GoString() string { return s.String() } // SetMetricName sets the MetricName field's value. func (s *FinalHyperParameterTuningJobObjectiveMetric) SetMetricName(v string) *FinalHyperParameterTuningJobObjectiveMetric { s.MetricName = &v return s } // SetType sets the Type field's value. func (s *FinalHyperParameterTuningJobObjectiveMetric) SetType(v string) *FinalHyperParameterTuningJobObjectiveMetric { s.Type = &v return s } // SetValue sets the Value field's value. func (s *FinalHyperParameterTuningJobObjectiveMetric) SetValue(v float64) *FinalHyperParameterTuningJobObjectiveMetric { s.Value = &v return s } // Contains information about where human output will be stored. type FlowDefinitionOutputConfig struct { _ struct{} `type:"structure"` // The Amazon Key Management Service (KMS) key ID for server-side encryption. KmsKeyId *string `type:"string"` // The Amazon S3 path where the object containing human output will be made // available. // // S3OutputPath is a required field S3OutputPath *string `type:"string" required:"true"` } // String returns the string representation func (s FlowDefinitionOutputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FlowDefinitionOutputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *FlowDefinitionOutputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "FlowDefinitionOutputConfig"} if s.S3OutputPath == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKmsKeyId sets the KmsKeyId field's value. func (s *FlowDefinitionOutputConfig) SetKmsKeyId(v string) *FlowDefinitionOutputConfig { s.KmsKeyId = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *FlowDefinitionOutputConfig) SetS3OutputPath(v string) *FlowDefinitionOutputConfig { s.S3OutputPath = &v return s } // Contains summary information about the flow definition. type FlowDefinitionSummary struct { _ struct{} `type:"structure"` // The timestamp when SageMaker created the flow definition. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The reason why the flow definition creation failed. A failure reason is returned // only when the flow definition status is Failed. FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the flow definition. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `type:"string" required:"true"` // The name of the flow definition. // // FlowDefinitionName is a required field FlowDefinitionName *string `min:"1" type:"string" required:"true"` // The status of the flow definition. Valid values: // // FlowDefinitionStatus is a required field FlowDefinitionStatus *string `type:"string" required:"true" enum:"FlowDefinitionStatus"` } // String returns the string representation func (s FlowDefinitionSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FlowDefinitionSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *FlowDefinitionSummary) SetCreationTime(v time.Time) *FlowDefinitionSummary { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *FlowDefinitionSummary) SetFailureReason(v string) *FlowDefinitionSummary { s.FailureReason = &v return s } // SetFlowDefinitionArn sets the FlowDefinitionArn field's value. func (s *FlowDefinitionSummary) SetFlowDefinitionArn(v string) *FlowDefinitionSummary { s.FlowDefinitionArn = &v return s } // SetFlowDefinitionName sets the FlowDefinitionName field's value. func (s *FlowDefinitionSummary) SetFlowDefinitionName(v string) *FlowDefinitionSummary { s.FlowDefinitionName = &v return s } // SetFlowDefinitionStatus sets the FlowDefinitionStatus field's value. func (s *FlowDefinitionSummary) SetFlowDefinitionStatus(v string) *FlowDefinitionSummary { s.FlowDefinitionStatus = &v return s } type GetSearchSuggestionsInput struct { _ struct{} `type:"structure"` // The name of the Amazon SageMaker resource to search for. // // Resource is a required field Resource *string `type:"string" required:"true" enum:"ResourceType"` // Limits the property names that are included in the response. SuggestionQuery *SuggestionQuery `type:"structure"` } // String returns the string representation func (s GetSearchSuggestionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetSearchSuggestionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetSearchSuggestionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetSearchSuggestionsInput"} if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } if s.SuggestionQuery != nil { if err := s.SuggestionQuery.Validate(); err != nil { invalidParams.AddNested("SuggestionQuery", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResource sets the Resource field's value. func (s *GetSearchSuggestionsInput) SetResource(v string) *GetSearchSuggestionsInput { s.Resource = &v return s } // SetSuggestionQuery sets the SuggestionQuery field's value. func (s *GetSearchSuggestionsInput) SetSuggestionQuery(v *SuggestionQuery) *GetSearchSuggestionsInput { s.SuggestionQuery = v return s } type GetSearchSuggestionsOutput struct { _ struct{} `type:"structure"` // A list of property names for a Resource that match a SuggestionQuery. PropertyNameSuggestions []*PropertyNameSuggestion `type:"list"` } // String returns the string representation func (s GetSearchSuggestionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetSearchSuggestionsOutput) GoString() string { return s.String() } // SetPropertyNameSuggestions sets the PropertyNameSuggestions field's value. func (s *GetSearchSuggestionsOutput) SetPropertyNameSuggestions(v []*PropertyNameSuggestion) *GetSearchSuggestionsOutput { s.PropertyNameSuggestions = v return s } // Specifies configuration details for a Git repository in your AWS account. type GitConfig struct { _ struct{} `type:"structure"` // The default branch for the Git repository. Branch *string `min:"1" type:"string"` // The URL where the Git repository is located. // // RepositoryUrl is a required field RepositoryUrl *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains // the credentials used to access the git repository. The secret must have a // staging label of AWSCURRENT and must be in the following format: // // {"username": UserName, "password": Password} SecretArn *string `min:"1" type:"string"` } // String returns the string representation func (s GitConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GitConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GitConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GitConfig"} if s.Branch != nil && len(*s.Branch) < 1 { invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) } if s.RepositoryUrl == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryUrl")) } if s.SecretArn != nil && len(*s.SecretArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBranch sets the Branch field's value. func (s *GitConfig) SetBranch(v string) *GitConfig { s.Branch = &v return s } // SetRepositoryUrl sets the RepositoryUrl field's value. func (s *GitConfig) SetRepositoryUrl(v string) *GitConfig { s.RepositoryUrl = &v return s } // SetSecretArn sets the SecretArn field's value. func (s *GitConfig) SetSecretArn(v string) *GitConfig { s.SecretArn = &v return s } // Specifies configuration details for a Git repository when the repository // is updated. type GitConfigForUpdate struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains // the credentials used to access the git repository. The secret must have a // staging label of AWSCURRENT and must be in the following format: // // {"username": UserName, "password": Password} SecretArn *string `min:"1" type:"string"` } // String returns the string representation func (s GitConfigForUpdate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GitConfigForUpdate) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GitConfigForUpdate) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GitConfigForUpdate"} if s.SecretArn != nil && len(*s.SecretArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSecretArn sets the SecretArn field's value. func (s *GitConfigForUpdate) SetSecretArn(v string) *GitConfigForUpdate { s.SecretArn = &v return s } // Defines under what conditions SageMaker creates a human loop. Used within // . See for the required format of activation conditions. type HumanLoopActivationConditionsConfig struct { _ struct{} `type:"structure"` // JSON expressing use-case specific conditions declaratively. If any condition // is matched, atomic tasks are created against the configured work team. The // set of conditions is different for Rekognition and Textract. For more information // about how to structure the JSON, see JSON Schema for Human Loop Activation // Conditions in Amazon Augmented AI (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-human-fallback-conditions-json-schema.html) // in the Amazon SageMaker Developer Guide. // // HumanLoopActivationConditions is a required field HumanLoopActivationConditions aws.JSONValue `type:"jsonvalue" required:"true"` } // String returns the string representation func (s HumanLoopActivationConditionsConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopActivationConditionsConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HumanLoopActivationConditionsConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HumanLoopActivationConditionsConfig"} if s.HumanLoopActivationConditions == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopActivationConditions")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanLoopActivationConditions sets the HumanLoopActivationConditions field's value. func (s *HumanLoopActivationConditionsConfig) SetHumanLoopActivationConditions(v aws.JSONValue) *HumanLoopActivationConditionsConfig { s.HumanLoopActivationConditions = v return s } // Provides information about how and under what conditions SageMaker creates // a human loop. If HumanLoopActivationConfig is not given, then all requests // go to humans. type HumanLoopActivationConfig struct { _ struct{} `type:"structure"` // Container structure for defining under what conditions SageMaker creates // a human loop. // // HumanLoopActivationConditionsConfig is a required field HumanLoopActivationConditionsConfig *HumanLoopActivationConditionsConfig `type:"structure" required:"true"` } // String returns the string representation func (s HumanLoopActivationConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopActivationConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HumanLoopActivationConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HumanLoopActivationConfig"} if s.HumanLoopActivationConditionsConfig == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopActivationConditionsConfig")) } if s.HumanLoopActivationConditionsConfig != nil { if err := s.HumanLoopActivationConditionsConfig.Validate(); err != nil { invalidParams.AddNested("HumanLoopActivationConditionsConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanLoopActivationConditionsConfig sets the HumanLoopActivationConditionsConfig field's value. func (s *HumanLoopActivationConfig) SetHumanLoopActivationConditionsConfig(v *HumanLoopActivationConditionsConfig) *HumanLoopActivationConfig { s.HumanLoopActivationConditionsConfig = v return s } // Describes the work to be performed by human workers. type HumanLoopConfig struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the human task user interface. // // HumanTaskUiArn is a required field HumanTaskUiArn *string `type:"string" required:"true"` // Defines the amount of money paid to an Amazon Mechanical Turk worker for // each task performed. // // Use one of the following prices for bounding box tasks. Prices are in US // dollars and should be based on the complexity of the task; the longer it // takes in your initial testing, the more you should offer. // // * 0.036 // // * 0.048 // // * 0.060 // // * 0.072 // // * 0.120 // // * 0.240 // // * 0.360 // // * 0.480 // // * 0.600 // // * 0.720 // // * 0.840 // // * 0.960 // // * 1.080 // // * 1.200 // // Use one of the following prices for image classification, text classification, // and custom tasks. Prices are in US dollars. // // * 0.012 // // * 0.024 // // * 0.036 // // * 0.048 // // * 0.060 // // * 0.072 // // * 0.120 // // * 0.240 // // * 0.360 // // * 0.480 // // * 0.600 // // * 0.720 // // * 0.840 // // * 0.960 // // * 1.080 // // * 1.200 // // Use one of the following prices for semantic segmentation tasks. Prices are // in US dollars. // // * 0.840 // // * 0.960 // // * 1.080 // // * 1.200 // // Use one of the following prices for Textract AnalyzeDocument Important Form // Key Amazon Augmented AI review tasks. Prices are in US dollars. // // * 2.400 // // * 2.280 // // * 2.160 // // * 2.040 // // * 1.920 // // * 1.800 // // * 1.680 // // * 1.560 // // * 1.440 // // * 1.320 // // * 1.200 // // * 1.080 // // * 0.960 // // * 0.840 // // * 0.720 // // * 0.600 // // * 0.480 // // * 0.360 // // * 0.240 // // * 0.120 // // * 0.072 // // * 0.060 // // * 0.048 // // * 0.036 // // * 0.024 // // * 0.012 // // Use one of the following prices for Rekognition DetectModerationLabels Amazon // Augmented AI review tasks. Prices are in US dollars. // // * 1.200 // // * 1.080 // // * 0.960 // // * 0.840 // // * 0.720 // // * 0.600 // // * 0.480 // // * 0.360 // // * 0.240 // // * 0.120 // // * 0.072 // // * 0.060 // // * 0.048 // // * 0.036 // // * 0.024 // // * 0.012 // // Use one of the following prices for Amazon Augmented AI custom human review // tasks. Prices are in US dollars. // // * 1.200 // // * 1.080 // // * 0.960 // // * 0.840 // // * 0.720 // // * 0.600 // // * 0.480 // // * 0.360 // // * 0.240 // // * 0.120 // // * 0.072 // // * 0.060 // // * 0.048 // // * 0.036 // // * 0.024 // // * 0.012 PublicWorkforceTaskPrice *PublicWorkforceTaskPrice `type:"structure"` // The length of time that a task remains available for review by human workers. TaskAvailabilityLifetimeInSeconds *int64 `min:"1" type:"integer"` // The number of distinct workers who will perform the same task on each object. // For example, if TaskCount is set to 3 for an image classification labeling // job, three workers will classify each input image. Increasing TaskCount can // improve label accuracy. // // TaskCount is a required field TaskCount *int64 `min:"1" type:"integer" required:"true"` // A description for the human worker task. // // TaskDescription is a required field TaskDescription *string `min:"1" type:"string" required:"true"` // Keywords used to describe the task so that workers can discover the task. TaskKeywords []*string `min:"1" type:"list"` // The amount of time that a worker has to complete a task. The default value // is 3,600 seconds (1 hour) TaskTimeLimitInSeconds *int64 `min:"30" type:"integer"` // A title for the human worker task. // // TaskTitle is a required field TaskTitle *string `min:"1" type:"string" required:"true"` // Amazon Resource Name (ARN) of a team of workers. // // WorkteamArn is a required field WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation func (s HumanLoopConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HumanLoopConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HumanLoopConfig"} if s.HumanTaskUiArn == nil { invalidParams.Add(request.NewErrParamRequired("HumanTaskUiArn")) } if s.TaskAvailabilityLifetimeInSeconds != nil && *s.TaskAvailabilityLifetimeInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("TaskAvailabilityLifetimeInSeconds", 1)) } if s.TaskCount == nil { invalidParams.Add(request.NewErrParamRequired("TaskCount")) } if s.TaskCount != nil && *s.TaskCount < 1 { invalidParams.Add(request.NewErrParamMinValue("TaskCount", 1)) } if s.TaskDescription == nil { invalidParams.Add(request.NewErrParamRequired("TaskDescription")) } if s.TaskDescription != nil && len(*s.TaskDescription) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskDescription", 1)) } if s.TaskKeywords != nil && len(s.TaskKeywords) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskKeywords", 1)) } if s.TaskTimeLimitInSeconds != nil && *s.TaskTimeLimitInSeconds < 30 { invalidParams.Add(request.NewErrParamMinValue("TaskTimeLimitInSeconds", 30)) } if s.TaskTitle == nil { invalidParams.Add(request.NewErrParamRequired("TaskTitle")) } if s.TaskTitle != nil && len(*s.TaskTitle) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskTitle", 1)) } if s.WorkteamArn == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanTaskUiArn sets the HumanTaskUiArn field's value. func (s *HumanLoopConfig) SetHumanTaskUiArn(v string) *HumanLoopConfig { s.HumanTaskUiArn = &v return s } // SetPublicWorkforceTaskPrice sets the PublicWorkforceTaskPrice field's value. func (s *HumanLoopConfig) SetPublicWorkforceTaskPrice(v *PublicWorkforceTaskPrice) *HumanLoopConfig { s.PublicWorkforceTaskPrice = v return s } // SetTaskAvailabilityLifetimeInSeconds sets the TaskAvailabilityLifetimeInSeconds field's value. func (s *HumanLoopConfig) SetTaskAvailabilityLifetimeInSeconds(v int64) *HumanLoopConfig { s.TaskAvailabilityLifetimeInSeconds = &v return s } // SetTaskCount sets the TaskCount field's value. func (s *HumanLoopConfig) SetTaskCount(v int64) *HumanLoopConfig { s.TaskCount = &v return s } // SetTaskDescription sets the TaskDescription field's value. func (s *HumanLoopConfig) SetTaskDescription(v string) *HumanLoopConfig { s.TaskDescription = &v return s } // SetTaskKeywords sets the TaskKeywords field's value. func (s *HumanLoopConfig) SetTaskKeywords(v []*string) *HumanLoopConfig { s.TaskKeywords = v return s } // SetTaskTimeLimitInSeconds sets the TaskTimeLimitInSeconds field's value. func (s *HumanLoopConfig) SetTaskTimeLimitInSeconds(v int64) *HumanLoopConfig { s.TaskTimeLimitInSeconds = &v return s } // SetTaskTitle sets the TaskTitle field's value. func (s *HumanLoopConfig) SetTaskTitle(v string) *HumanLoopConfig { s.TaskTitle = &v return s } // SetWorkteamArn sets the WorkteamArn field's value. func (s *HumanLoopConfig) SetWorkteamArn(v string) *HumanLoopConfig { s.WorkteamArn = &v return s } // Container for configuring the source of human task requests. type HumanLoopRequestSource struct { _ struct{} `type:"structure"` // Specifies whether Amazon Rekognition or Amazon Textract are used as the integration // source. The default field settings and JSON parsing rules are different based // on the integration source. Valid values: // // AwsManagedHumanLoopRequestSource is a required field AwsManagedHumanLoopRequestSource *string `type:"string" required:"true" enum:"AwsManagedHumanLoopRequestSource"` } // String returns the string representation func (s HumanLoopRequestSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopRequestSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HumanLoopRequestSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HumanLoopRequestSource"} if s.AwsManagedHumanLoopRequestSource == nil { invalidParams.Add(request.NewErrParamRequired("AwsManagedHumanLoopRequestSource")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAwsManagedHumanLoopRequestSource sets the AwsManagedHumanLoopRequestSource field's value. func (s *HumanLoopRequestSource) SetAwsManagedHumanLoopRequestSource(v string) *HumanLoopRequestSource { s.AwsManagedHumanLoopRequestSource = &v return s } // Information required for human workers to complete a labeling task. type HumanTaskConfig struct { _ struct{} `type:"structure"` // Configures how labels are consolidated across human workers. // // AnnotationConsolidationConfig is a required field AnnotationConsolidationConfig *AnnotationConsolidationConfig `type:"structure" required:"true"` // Defines the maximum number of data objects that can be labeled by human workers // at the same time. Also referred to as batch size. Each object may have more // than one worker at one time. The default value is 1000 objects. MaxConcurrentTaskCount *int64 `min:"1" type:"integer"` // The number of human workers that will label an object. // // NumberOfHumanWorkersPerDataObject is a required field NumberOfHumanWorkersPerDataObject *int64 `min:"1" type:"integer" required:"true"` // The Amazon Resource Name (ARN) of a Lambda function that is run before a // data object is sent to a human worker. Use this function to provide input // to a custom labeling job. // // For built-in task types (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-task-types.html), // use one of the following Amazon SageMaker Ground Truth Lambda function ARNs // for PreHumanTaskLambdaArn. For custom labeling workflows, see Pre-annotation // Lambda (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-custom-templates-step3.html#sms-custom-templates-step3-prelambda). // // Bounding box - Finds the most similar boxes from different workers based // on the Jaccard index of the boxes. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-BoundingBox // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-BoundingBox // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-BoundingBox // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-BoundingBox // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-BoundingBox // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-BoundingBox // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-BoundingBox // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-BoundingBox // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-BoundingBox // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-BoundingBox // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-BoundingBox // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-BoundingBox // // Image classification - Uses a variant of the Expectation Maximization approach // to estimate the true class of an image based on annotations from individual // workers. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-ImageMultiClass // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-ImageMultiClass // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-ImageMultiClass // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-ImageMultiClass // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-ImageMultiClass // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-ImageMultiClass // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-ImageMultiClass // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-ImageMultiClass // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-ImageMultiClass // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-ImageMultiClass // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-ImageMultiClass // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-ImageMultiClass // // Multi-label image classification - Uses a variant of the Expectation Maximization // approach to estimate the true classes of an image based on annotations from // individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-ImageMultiClassMultiLabel // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-ImageMultiClassMultiLabel // // Semantic segmentation - Treats each pixel in an image as a multi-class classification // and treats pixel annotations from workers as "votes" for the correct label. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-SemanticSegmentation // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-SemanticSegmentation // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-SemanticSegmentation // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-SemanticSegmentation // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-SemanticSegmentation // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-SemanticSegmentation // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-SemanticSegmentation // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-SemanticSegmentation // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-SemanticSegmentation // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-SemanticSegmentation // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-SemanticSegmentation // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-SemanticSegmentation // // Text classification - Uses a variant of the Expectation Maximization approach // to estimate the true class of text based on annotations from individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-TextMultiClass // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-TextMultiClass // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-TextMultiClass // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-TextMultiClass // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-TextMultiClass // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-TextMultiClass // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-TextMultiClass // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-TextMultiClass // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-TextMultiClass // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-TextMultiClass // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-TextMultiClass // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-TextMultiClass // // Multi-label text classification - Uses a variant of the Expectation Maximization // approach to estimate the true classes of text based on annotations from individual // workers. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-TextMultiClassMultiLabel // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-TextMultiClassMultiLabel // // Named entity recognition - Groups similar selections and calculates aggregate // boundaries, resolving to most-assigned label. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-NamedEntityRecognition // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-NamedEntityRecognition // // Video Classification - Use this task type when you need workers to classify // videos using predefined labels that you specify. Workers are shown videos // and are asked to choose one label for each video. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-VideoMultiClass // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-VideoMultiClass // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-VideoMultiClass // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-VideoMultiClass // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-VideoMultiClass // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-VideoMultiClass // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-VideoMultiClass // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-VideoMultiClass // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-VideoMultiClass // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-VideoMultiClass // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-VideoMultiClass // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-VideoMultiClass // // Video Frame Object Detection - Use this task type to have workers identify // and locate objects in a sequence of video frames (images extracted from a // video) using bounding boxes. For example, you can use this task to ask workers // to identify and localize various objects in a series of video frames, such // as cars, bikes, and pedestrians. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-VideoObjectDetection // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-VideoObjectDetection // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-VideoObjectDetection // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-VideoObjectDetection // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-VideoObjectDetection // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-VideoObjectDetection // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-VideoObjectDetection // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-VideoObjectDetection // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-VideoObjectDetection // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-VideoObjectDetection // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-VideoObjectDetection // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-VideoObjectDetection // // Video Frame Object Tracking - Use this task type to have workers track the // movement of objects in a sequence of video frames (images extracted from // a video) using bounding boxes. For example, you can use this task to ask // workers to track the movement of objects, such as cars, bikes, and pedestrians. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-VideoObjectTracking // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-VideoObjectTracking // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-VideoObjectTracking // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-VideoObjectTracking // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-VideoObjectTracking // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-VideoObjectTracking // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-VideoObjectTracking // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-VideoObjectTracking // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-VideoObjectTracking // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-VideoObjectTracking // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-VideoObjectTracking // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-VideoObjectTracking // // 3D Point Cloud Modalities // // Use the following pre-annotation lambdas for 3D point cloud labeling modality // tasks. See 3D Point Cloud Task types (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-point-cloud-task-types.html) // to learn more. // // 3D Point Cloud Object Detection - Use this task type when you want workers // to classify objects in a 3D point cloud by drawing 3D cuboids around objects. // For example, you can use this task type to ask workers to identify different // types of objects in a point cloud, such as cars, bikes, and pedestrians. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-3DPointCloudObjectDetection // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-3DPointCloudObjectDetection // // 3D Point Cloud Object Tracking - Use this task type when you want workers // to draw 3D cuboids around objects that appear in a sequence of 3D point cloud // frames. For example, you can use this task type to ask workers to track the // movement of vehicles across multiple point cloud frames. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-3DPointCloudObjectTracking // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-3DPointCloudObjectTracking // // 3D Point Cloud Semantic Segmentation - Use this task type when you want workers // to create a point-level semantic segmentation masks by painting objects in // a 3D point cloud using different colors where each color is assigned to one // of the classes you specify. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-3DPointCloudSemanticSegmentation // // Use the following ARNs for Label Verification and Adjustment Jobs // // Use label verification and adjustment jobs to review and adjust labels. To // learn more, see Verify and Adjust Labels (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-verification-data.html). // // Bounding box verification - Uses a variant of the Expectation Maximization // approach to estimate the true class of verification judgement for bounding // box labels based on annotations from individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-Adjustment3DPointCloudObjectTracking // // Bounding box adjustment - Finds the most similar boxes from different workers // based on the Jaccard index of the adjusted annotations. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-AdjustmentBoundingBox // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-AdjustmentBoundingBox // // Semantic segmentation verification - Uses a variant of the Expectation Maximization // approach to estimate the true class of verification judgment for semantic // segmentation labels based on annotations from individual workers. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-VerificationSemanticSegmentation // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-VerificationSemanticSegmentation // // Semantic segmentation adjustment - Treats each pixel in an image as a multi-class // classification and treats pixel adjusted annotations from workers as "votes" // for the correct label. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-AdjustmentSemanticSegmentation // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-AdjustmentSemanticSegmentation // // Video Frame Object Detection Adjustment - Use this task type when you want // workers to adjust bounding boxes that workers have added to video frames // to classify and localize objects in a sequence of video frames. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-AdjustmentVideoObjectDetection // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-AdjustmentVideoObjectDetection // // Video Frame Object Tracking Adjustment - Use this task type when you want // workers to adjust bounding boxes that workers have added to video frames // to track object movement across a sequence of video frames. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-AdjustmentVideoObjectTracking // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-AdjustmentVideoObjectTracking // // 3D point cloud object detection adjustment - Adjust 3D cuboids in a point // cloud frame. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-Adjustment3DPointCloudObjectDetection // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-Adjustment3DPointCloudObjectDetection // // 3D point cloud object tracking adjustment - Adjust 3D cuboids across a sequence // of point cloud frames. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-Adjustment3DPointCloudObjectTracking // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-Adjustment3DPointCloudObjectTracking // // 3D point cloud semantic segmentation adjustment - Adjust semantic segmentation // masks in a 3D point cloud. // // * arn:aws:lambda:us-east-1:432418664414:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:us-east-2:266458841044:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:us-west-2:081040173940:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:eu-west-1:568282634449:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-northeast-1:477331159723:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-southeast-2:454466003867:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-south-1:565803892007:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:eu-central-1:203001061592:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-northeast-2:845288260483:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:eu-west-2:487402164563:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ap-southeast-1:377565633583:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // * arn:aws:lambda:ca-central-1:918755190332:function:PRE-Adjustment3DPointCloudSemanticSegmentation // // PreHumanTaskLambdaArn is a required field PreHumanTaskLambdaArn *string `type:"string" required:"true"` // The price that you pay for each task performed by an Amazon Mechanical Turk // worker. PublicWorkforceTaskPrice *PublicWorkforceTaskPrice `type:"structure"` // The length of time that a task remains available for labeling by human workers. // If you choose the Amazon Mechanical Turk workforce, the maximum is 12 hours // (43200). The default value is 864000 seconds (10 days). For private and vendor // workforces, the maximum is as listed. TaskAvailabilityLifetimeInSeconds *int64 `min:"60" type:"integer"` // A description of the task for your human workers. // // TaskDescription is a required field TaskDescription *string `min:"1" type:"string" required:"true"` // Keywords used to describe the task so that workers on Amazon Mechanical Turk // can discover the task. TaskKeywords []*string `min:"1" type:"list"` // The amount of time that a worker has to complete a task. // // TaskTimeLimitInSeconds is a required field TaskTimeLimitInSeconds *int64 `min:"30" type:"integer" required:"true"` // A title for the task for your human workers. // // TaskTitle is a required field TaskTitle *string `min:"1" type:"string" required:"true"` // Information about the user interface that workers use to complete the labeling // task. // // UiConfig is a required field UiConfig *UiConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of the work team assigned to complete the // tasks. // // WorkteamArn is a required field WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation func (s HumanTaskConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanTaskConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HumanTaskConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HumanTaskConfig"} if s.AnnotationConsolidationConfig == nil { invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationConfig")) } if s.MaxConcurrentTaskCount != nil && *s.MaxConcurrentTaskCount < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxConcurrentTaskCount", 1)) } if s.NumberOfHumanWorkersPerDataObject == nil { invalidParams.Add(request.NewErrParamRequired("NumberOfHumanWorkersPerDataObject")) } if s.NumberOfHumanWorkersPerDataObject != nil && *s.NumberOfHumanWorkersPerDataObject < 1 { invalidParams.Add(request.NewErrParamMinValue("NumberOfHumanWorkersPerDataObject", 1)) } if s.PreHumanTaskLambdaArn == nil { invalidParams.Add(request.NewErrParamRequired("PreHumanTaskLambdaArn")) } if s.TaskAvailabilityLifetimeInSeconds != nil && *s.TaskAvailabilityLifetimeInSeconds < 60 { invalidParams.Add(request.NewErrParamMinValue("TaskAvailabilityLifetimeInSeconds", 60)) } if s.TaskDescription == nil { invalidParams.Add(request.NewErrParamRequired("TaskDescription")) } if s.TaskDescription != nil && len(*s.TaskDescription) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskDescription", 1)) } if s.TaskKeywords != nil && len(s.TaskKeywords) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskKeywords", 1)) } if s.TaskTimeLimitInSeconds == nil { invalidParams.Add(request.NewErrParamRequired("TaskTimeLimitInSeconds")) } if s.TaskTimeLimitInSeconds != nil && *s.TaskTimeLimitInSeconds < 30 { invalidParams.Add(request.NewErrParamMinValue("TaskTimeLimitInSeconds", 30)) } if s.TaskTitle == nil { invalidParams.Add(request.NewErrParamRequired("TaskTitle")) } if s.TaskTitle != nil && len(*s.TaskTitle) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskTitle", 1)) } if s.UiConfig == nil { invalidParams.Add(request.NewErrParamRequired("UiConfig")) } if s.WorkteamArn == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamArn")) } if s.AnnotationConsolidationConfig != nil { if err := s.AnnotationConsolidationConfig.Validate(); err != nil { invalidParams.AddNested("AnnotationConsolidationConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAnnotationConsolidationConfig sets the AnnotationConsolidationConfig field's value. func (s *HumanTaskConfig) SetAnnotationConsolidationConfig(v *AnnotationConsolidationConfig) *HumanTaskConfig { s.AnnotationConsolidationConfig = v return s } // SetMaxConcurrentTaskCount sets the MaxConcurrentTaskCount field's value. func (s *HumanTaskConfig) SetMaxConcurrentTaskCount(v int64) *HumanTaskConfig { s.MaxConcurrentTaskCount = &v return s } // SetNumberOfHumanWorkersPerDataObject sets the NumberOfHumanWorkersPerDataObject field's value. func (s *HumanTaskConfig) SetNumberOfHumanWorkersPerDataObject(v int64) *HumanTaskConfig { s.NumberOfHumanWorkersPerDataObject = &v return s } // SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value. func (s *HumanTaskConfig) SetPreHumanTaskLambdaArn(v string) *HumanTaskConfig { s.PreHumanTaskLambdaArn = &v return s } // SetPublicWorkforceTaskPrice sets the PublicWorkforceTaskPrice field's value. func (s *HumanTaskConfig) SetPublicWorkforceTaskPrice(v *PublicWorkforceTaskPrice) *HumanTaskConfig { s.PublicWorkforceTaskPrice = v return s } // SetTaskAvailabilityLifetimeInSeconds sets the TaskAvailabilityLifetimeInSeconds field's value. func (s *HumanTaskConfig) SetTaskAvailabilityLifetimeInSeconds(v int64) *HumanTaskConfig { s.TaskAvailabilityLifetimeInSeconds = &v return s } // SetTaskDescription sets the TaskDescription field's value. func (s *HumanTaskConfig) SetTaskDescription(v string) *HumanTaskConfig { s.TaskDescription = &v return s } // SetTaskKeywords sets the TaskKeywords field's value. func (s *HumanTaskConfig) SetTaskKeywords(v []*string) *HumanTaskConfig { s.TaskKeywords = v return s } // SetTaskTimeLimitInSeconds sets the TaskTimeLimitInSeconds field's value. func (s *HumanTaskConfig) SetTaskTimeLimitInSeconds(v int64) *HumanTaskConfig { s.TaskTimeLimitInSeconds = &v return s } // SetTaskTitle sets the TaskTitle field's value. func (s *HumanTaskConfig) SetTaskTitle(v string) *HumanTaskConfig { s.TaskTitle = &v return s } // SetUiConfig sets the UiConfig field's value. func (s *HumanTaskConfig) SetUiConfig(v *UiConfig) *HumanTaskConfig { s.UiConfig = v return s } // SetWorkteamArn sets the WorkteamArn field's value. func (s *HumanTaskConfig) SetWorkteamArn(v string) *HumanTaskConfig { s.WorkteamArn = &v return s } // Container for human task user interface information. type HumanTaskUiSummary struct { _ struct{} `type:"structure"` // A timestamp when SageMaker created the human task user interface. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the human task user interface. // // HumanTaskUiArn is a required field HumanTaskUiArn *string `type:"string" required:"true"` // The name of the human task user interface. // // HumanTaskUiName is a required field HumanTaskUiName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s HumanTaskUiSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanTaskUiSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *HumanTaskUiSummary) SetCreationTime(v time.Time) *HumanTaskUiSummary { s.CreationTime = &v return s } // SetHumanTaskUiArn sets the HumanTaskUiArn field's value. func (s *HumanTaskUiSummary) SetHumanTaskUiArn(v string) *HumanTaskUiSummary { s.HumanTaskUiArn = &v return s } // SetHumanTaskUiName sets the HumanTaskUiName field's value. func (s *HumanTaskUiSummary) SetHumanTaskUiName(v string) *HumanTaskUiSummary { s.HumanTaskUiName = &v return s } // Specifies which training algorithm to use for training jobs that a hyperparameter // tuning job launches and the metrics to monitor. type HyperParameterAlgorithmSpecification struct { _ struct{} `type:"structure"` // The name of the resource algorithm to use for the hyperparameter tuning job. // If you specify a value for this parameter, do not specify a value for TrainingImage. AlgorithmName *string `min:"1" type:"string"` // An array of MetricDefinition objects that specify the metrics that the algorithm // emits. MetricDefinitions []*MetricDefinition `type:"list"` // The registry path of the Docker image that contains the training algorithm. // For information about Docker registry paths for built-in algorithms, see // Algorithms Provided by Amazon SageMaker: Common Parameters (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html). // Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] // image path formats. For more information, see Using Your Own Algorithms with // Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). TrainingImage *string `type:"string"` // The input mode that the algorithm supports: File or Pipe. In File input mode, // Amazon SageMaker downloads the training data from Amazon S3 to the storage // volume that is attached to the training instance and mounts the directory // to the Docker volume for the training container. In Pipe input mode, Amazon // SageMaker streams data directly from Amazon S3 to the container. // // If you specify File mode, make sure that you provision the storage volume // that is attached to the training instance with enough capacity to accommodate // the training data downloaded from Amazon S3, the model artifacts, and intermediate // information. // // For more information about input modes, see Algorithms (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). // // TrainingInputMode is a required field TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` } // String returns the string representation func (s HyperParameterAlgorithmSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterAlgorithmSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HyperParameterAlgorithmSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HyperParameterAlgorithmSpecification"} if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) } if s.TrainingInputMode == nil { invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) } if s.MetricDefinitions != nil { for i, v := range s.MetricDefinitions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmName sets the AlgorithmName field's value. func (s *HyperParameterAlgorithmSpecification) SetAlgorithmName(v string) *HyperParameterAlgorithmSpecification { s.AlgorithmName = &v return s } // SetMetricDefinitions sets the MetricDefinitions field's value. func (s *HyperParameterAlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *HyperParameterAlgorithmSpecification { s.MetricDefinitions = v return s } // SetTrainingImage sets the TrainingImage field's value. func (s *HyperParameterAlgorithmSpecification) SetTrainingImage(v string) *HyperParameterAlgorithmSpecification { s.TrainingImage = &v return s } // SetTrainingInputMode sets the TrainingInputMode field's value. func (s *HyperParameterAlgorithmSpecification) SetTrainingInputMode(v string) *HyperParameterAlgorithmSpecification { s.TrainingInputMode = &v return s } // Defines a hyperparameter to be used by an algorithm. type HyperParameterSpecification struct { _ struct{} `type:"structure"` // The default value for this hyperparameter. If a default value is specified, // a hyperparameter cannot be required. DefaultValue *string `type:"string"` // A brief description of the hyperparameter. Description *string `type:"string"` // Indicates whether this hyperparameter is required. IsRequired *bool `type:"boolean"` // Indicates whether this hyperparameter is tunable in a hyperparameter tuning // job. IsTunable *bool `type:"boolean"` // The name of this hyperparameter. The name must be unique. // // Name is a required field Name *string `type:"string" required:"true"` // The allowed range for this hyperparameter. Range *ParameterRange `type:"structure"` // The type of this hyperparameter. The valid types are Integer, Continuous, // Categorical, and FreeText. // // Type is a required field Type *string `type:"string" required:"true" enum:"ParameterType"` } // String returns the string representation func (s HyperParameterSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HyperParameterSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HyperParameterSpecification"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.Range != nil { if err := s.Range.Validate(); err != nil { invalidParams.AddNested("Range", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDefaultValue sets the DefaultValue field's value. func (s *HyperParameterSpecification) SetDefaultValue(v string) *HyperParameterSpecification { s.DefaultValue = &v return s } // SetDescription sets the Description field's value. func (s *HyperParameterSpecification) SetDescription(v string) *HyperParameterSpecification { s.Description = &v return s } // SetIsRequired sets the IsRequired field's value. func (s *HyperParameterSpecification) SetIsRequired(v bool) *HyperParameterSpecification { s.IsRequired = &v return s } // SetIsTunable sets the IsTunable field's value. func (s *HyperParameterSpecification) SetIsTunable(v bool) *HyperParameterSpecification { s.IsTunable = &v return s } // SetName sets the Name field's value. func (s *HyperParameterSpecification) SetName(v string) *HyperParameterSpecification { s.Name = &v return s } // SetRange sets the Range field's value. func (s *HyperParameterSpecification) SetRange(v *ParameterRange) *HyperParameterSpecification { s.Range = v return s } // SetType sets the Type field's value. func (s *HyperParameterSpecification) SetType(v string) *HyperParameterSpecification { s.Type = &v return s } // Defines the training jobs launched by a hyperparameter tuning job. type HyperParameterTrainingJobDefinition struct { _ struct{} `type:"structure"` // The HyperParameterAlgorithmSpecification object that specifies the resource // algorithm to use for the training jobs that the tuning job launches. // // AlgorithmSpecification is a required field AlgorithmSpecification *HyperParameterAlgorithmSpecification `type:"structure" required:"true"` // Contains information about the output location for managed spot training // checkpoint data. CheckpointConfig *CheckpointConfig `type:"structure"` // The job definition name. DefinitionName *string `min:"1" type:"string"` // To encrypt all communications between ML compute instances in distributed // training, choose True. Encryption provides greater security for distributed // training, but training might take longer. How long it takes depends on the // amount of communication between compute instances, especially if you use // a deep learning algorithm in distributed training. EnableInterContainerTrafficEncryption *bool `type:"boolean"` // A Boolean indicating whether managed spot training is enabled (True) or not // (False). EnableManagedSpotTraining *bool `type:"boolean"` // Isolates the training container. No inbound or outbound network calls can // be made, except for calls between peers within a training cluster for distributed // training. If network isolation is used for training jobs that are configured // to use a VPC, Amazon SageMaker downloads and uploads customer data and model // artifacts through the specified VPC, but the training container does not // have network access. EnableNetworkIsolation *bool `type:"boolean"` // Specifies ranges of integer, continuous, and categorical hyperparameters // that a hyperparameter tuning job searches. The hyperparameter tuning job // launches training jobs with hyperparameter values within these ranges to // find the combination of values that result in the training job with the best // performance as measured by the objective metric of the hyperparameter tuning // job. // // You can specify a maximum of 20 hyperparameters that a hyperparameter tuning // job can search over. Every possible value of a categorical parameter range // counts against this limit. HyperParameterRanges *ParameterRanges `type:"structure"` // An array of Channel objects that specify the input for the training jobs // that the tuning job launches. InputDataConfig []*Channel `min:"1" type:"list"` // Specifies the path to the Amazon S3 bucket where you store model artifacts // from the training jobs that the tuning job launches. // // OutputDataConfig is a required field OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` // The resources, including the compute instances and storage volumes, to use // for the training jobs that the tuning job launches. // // Storage volumes store model artifacts and incremental states. Training algorithms // might also use storage volumes for scratch space. If you want Amazon SageMaker // to use the storage volume to store the training data, choose File as the // TrainingInputMode in the algorithm specification. For distributed training // algorithms, specify an instance count greater than 1. // // ResourceConfig is a required field ResourceConfig *ResourceConfig `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of the IAM role associated with the training // jobs that the tuning job launches. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // Specifies the values of hyperparameters that do not change for the tuning // job. StaticHyperParameters map[string]*string `type:"map"` // Specifies a limit to how long a model hyperparameter training job can run. // It also specifies how long you are willing to wait for a managed spot training // job to complete. When the job reaches the a limit, Amazon SageMaker ends // the training job. Use this API to cap model training costs. // // StoppingCondition is a required field StoppingCondition *StoppingCondition `type:"structure" required:"true"` // Defines the objective metric for a hyperparameter tuning job. Hyperparameter // tuning uses the value of this metric to evaluate the training jobs it launches, // and returns the training job that results in either the highest or lowest // value for this metric, depending on the value you specify for the Type parameter. TuningObjective *HyperParameterTuningJobObjective `type:"structure"` // The VpcConfig object that specifies the VPC that you want the training jobs // that this hyperparameter tuning job launches to connect to. Control access // to and from your training container by configuring the VPC. For more information, // see Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s HyperParameterTrainingJobDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterTrainingJobDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HyperParameterTrainingJobDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HyperParameterTrainingJobDefinition"} if s.AlgorithmSpecification == nil { invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) } if s.DefinitionName != nil && len(*s.DefinitionName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DefinitionName", 1)) } if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) } if s.OutputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) } if s.ResourceConfig == nil { invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.StoppingCondition == nil { invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) } if s.AlgorithmSpecification != nil { if err := s.AlgorithmSpecification.Validate(); err != nil { invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) } } if s.CheckpointConfig != nil { if err := s.CheckpointConfig.Validate(); err != nil { invalidParams.AddNested("CheckpointConfig", err.(request.ErrInvalidParams)) } } if s.HyperParameterRanges != nil { if err := s.HyperParameterRanges.Validate(); err != nil { invalidParams.AddNested("HyperParameterRanges", err.(request.ErrInvalidParams)) } } if s.InputDataConfig != nil { for i, v := range s.InputDataConfig { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) } } } if s.OutputDataConfig != nil { if err := s.OutputDataConfig.Validate(); err != nil { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } if s.ResourceConfig != nil { if err := s.ResourceConfig.Validate(); err != nil { invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) } } if s.StoppingCondition != nil { if err := s.StoppingCondition.Validate(); err != nil { invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) } } if s.TuningObjective != nil { if err := s.TuningObjective.Validate(); err != nil { invalidParams.AddNested("TuningObjective", err.(request.ErrInvalidParams)) } } if s.VpcConfig != nil { if err := s.VpcConfig.Validate(); err != nil { invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmSpecification sets the AlgorithmSpecification field's value. func (s *HyperParameterTrainingJobDefinition) SetAlgorithmSpecification(v *HyperParameterAlgorithmSpecification) *HyperParameterTrainingJobDefinition { s.AlgorithmSpecification = v return s } // SetCheckpointConfig sets the CheckpointConfig field's value. func (s *HyperParameterTrainingJobDefinition) SetCheckpointConfig(v *CheckpointConfig) *HyperParameterTrainingJobDefinition { s.CheckpointConfig = v return s } // SetDefinitionName sets the DefinitionName field's value. func (s *HyperParameterTrainingJobDefinition) SetDefinitionName(v string) *HyperParameterTrainingJobDefinition { s.DefinitionName = &v return s } // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value. func (s *HyperParameterTrainingJobDefinition) SetEnableInterContainerTrafficEncryption(v bool) *HyperParameterTrainingJobDefinition { s.EnableInterContainerTrafficEncryption = &v return s } // SetEnableManagedSpotTraining sets the EnableManagedSpotTraining field's value. func (s *HyperParameterTrainingJobDefinition) SetEnableManagedSpotTraining(v bool) *HyperParameterTrainingJobDefinition { s.EnableManagedSpotTraining = &v return s } // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. func (s *HyperParameterTrainingJobDefinition) SetEnableNetworkIsolation(v bool) *HyperParameterTrainingJobDefinition { s.EnableNetworkIsolation = &v return s } // SetHyperParameterRanges sets the HyperParameterRanges field's value. func (s *HyperParameterTrainingJobDefinition) SetHyperParameterRanges(v *ParameterRanges) *HyperParameterTrainingJobDefinition { s.HyperParameterRanges = v return s } // SetInputDataConfig sets the InputDataConfig field's value. func (s *HyperParameterTrainingJobDefinition) SetInputDataConfig(v []*Channel) *HyperParameterTrainingJobDefinition { s.InputDataConfig = v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. func (s *HyperParameterTrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *HyperParameterTrainingJobDefinition { s.OutputDataConfig = v return s } // SetResourceConfig sets the ResourceConfig field's value. func (s *HyperParameterTrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *HyperParameterTrainingJobDefinition { s.ResourceConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *HyperParameterTrainingJobDefinition) SetRoleArn(v string) *HyperParameterTrainingJobDefinition { s.RoleArn = &v return s } // SetStaticHyperParameters sets the StaticHyperParameters field's value. func (s *HyperParameterTrainingJobDefinition) SetStaticHyperParameters(v map[string]*string) *HyperParameterTrainingJobDefinition { s.StaticHyperParameters = v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *HyperParameterTrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *HyperParameterTrainingJobDefinition { s.StoppingCondition = v return s } // SetTuningObjective sets the TuningObjective field's value. func (s *HyperParameterTrainingJobDefinition) SetTuningObjective(v *HyperParameterTuningJobObjective) *HyperParameterTrainingJobDefinition { s.TuningObjective = v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *HyperParameterTrainingJobDefinition) SetVpcConfig(v *VpcConfig) *HyperParameterTrainingJobDefinition { s.VpcConfig = v return s } // Specifies summary information about a training job. type HyperParameterTrainingJobSummary struct { _ struct{} `type:"structure"` // The date and time that the training job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The reason that the training job failed. FailureReason *string `type:"string"` // The FinalHyperParameterTuningJobObjectiveMetric object that specifies the // value of the objective metric of the tuning job that launched this training // job. FinalHyperParameterTuningJobObjectiveMetric *FinalHyperParameterTuningJobObjectiveMetric `type:"structure"` // The status of the objective metric for the training job: // // * Succeeded: The final objective metric for the training job was evaluated // by the hyperparameter tuning job and used in the hyperparameter tuning // process. // // * Pending: The training job is in progress and evaluation of its final // objective metric is pending. // // * Failed: The final objective metric for the training job was not evaluated, // and was not used in the hyperparameter tuning process. This typically // occurs when the training job failed or did not emit an objective metric. ObjectiveStatus *string `type:"string" enum:"ObjectiveStatus"` // Specifies the time when the training job ends on training instances. You // are billed for the time interval between the value of TrainingStartTime and // this time. For successful jobs and stopped jobs, this is the time after model // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker // detects a job failure. TrainingEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the training job. // // TrainingJobArn is a required field TrainingJobArn *string `type:"string" required:"true"` // The training job definition name. TrainingJobDefinitionName *string `min:"1" type:"string"` // The name of the training job. // // TrainingJobName is a required field TrainingJobName *string `min:"1" type:"string" required:"true"` // The status of the training job. // // TrainingJobStatus is a required field TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` // The date and time that the training job started. TrainingStartTime *time.Time `type:"timestamp"` // A list of the hyperparameters for which you specified ranges to search. // // TunedHyperParameters is a required field TunedHyperParameters map[string]*string `type:"map" required:"true"` // The HyperParameter tuning job that launched the training job. TuningJobName *string `min:"1" type:"string"` } // String returns the string representation func (s HyperParameterTrainingJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterTrainingJobSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *HyperParameterTrainingJobSummary) SetCreationTime(v time.Time) *HyperParameterTrainingJobSummary { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *HyperParameterTrainingJobSummary) SetFailureReason(v string) *HyperParameterTrainingJobSummary { s.FailureReason = &v return s } // SetFinalHyperParameterTuningJobObjectiveMetric sets the FinalHyperParameterTuningJobObjectiveMetric field's value. func (s *HyperParameterTrainingJobSummary) SetFinalHyperParameterTuningJobObjectiveMetric(v *FinalHyperParameterTuningJobObjectiveMetric) *HyperParameterTrainingJobSummary { s.FinalHyperParameterTuningJobObjectiveMetric = v return s } // SetObjectiveStatus sets the ObjectiveStatus field's value. func (s *HyperParameterTrainingJobSummary) SetObjectiveStatus(v string) *HyperParameterTrainingJobSummary { s.ObjectiveStatus = &v return s } // SetTrainingEndTime sets the TrainingEndTime field's value. func (s *HyperParameterTrainingJobSummary) SetTrainingEndTime(v time.Time) *HyperParameterTrainingJobSummary { s.TrainingEndTime = &v return s } // SetTrainingJobArn sets the TrainingJobArn field's value. func (s *HyperParameterTrainingJobSummary) SetTrainingJobArn(v string) *HyperParameterTrainingJobSummary { s.TrainingJobArn = &v return s } // SetTrainingJobDefinitionName sets the TrainingJobDefinitionName field's value. func (s *HyperParameterTrainingJobSummary) SetTrainingJobDefinitionName(v string) *HyperParameterTrainingJobSummary { s.TrainingJobDefinitionName = &v return s } // SetTrainingJobName sets the TrainingJobName field's value. func (s *HyperParameterTrainingJobSummary) SetTrainingJobName(v string) *HyperParameterTrainingJobSummary { s.TrainingJobName = &v return s } // SetTrainingJobStatus sets the TrainingJobStatus field's value. func (s *HyperParameterTrainingJobSummary) SetTrainingJobStatus(v string) *HyperParameterTrainingJobSummary { s.TrainingJobStatus = &v return s } // SetTrainingStartTime sets the TrainingStartTime field's value. func (s *HyperParameterTrainingJobSummary) SetTrainingStartTime(v time.Time) *HyperParameterTrainingJobSummary { s.TrainingStartTime = &v return s } // SetTunedHyperParameters sets the TunedHyperParameters field's value. func (s *HyperParameterTrainingJobSummary) SetTunedHyperParameters(v map[string]*string) *HyperParameterTrainingJobSummary { s.TunedHyperParameters = v return s } // SetTuningJobName sets the TuningJobName field's value. func (s *HyperParameterTrainingJobSummary) SetTuningJobName(v string) *HyperParameterTrainingJobSummary { s.TuningJobName = &v return s } // Configures a hyperparameter tuning job. type HyperParameterTuningJobConfig struct { _ struct{} `type:"structure"` // The HyperParameterTuningJobObjective object that specifies the objective // metric for this tuning job. HyperParameterTuningJobObjective *HyperParameterTuningJobObjective `type:"structure"` // The ParameterRanges object that specifies the ranges of hyperparameters that // this tuning job searches. ParameterRanges *ParameterRanges `type:"structure"` // The ResourceLimits object that specifies the maximum number of training jobs // and parallel training jobs for this tuning job. // // ResourceLimits is a required field ResourceLimits *ResourceLimits `type:"structure" required:"true"` // Specifies how hyperparameter tuning chooses the combinations of hyperparameter // values to use for the training job it launches. To use the Bayesian search // strategy, set this to Bayesian. To randomly search, set it to Random. For // information about search strategies, see How Hyperparameter Tuning Works // (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html). // // Strategy is a required field Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` // Specifies whether to use early stopping for training jobs launched by the // hyperparameter tuning job. This can be one of the following values (the default // value is OFF): // // OFF // // Training jobs launched by the hyperparameter tuning job do not use early // stopping. // // AUTO // // Amazon SageMaker stops training jobs launched by the hyperparameter tuning // job when they are unlikely to perform better than previously completed training // jobs. For more information, see Stop Training Jobs Early (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html). TrainingJobEarlyStoppingType *string `type:"string" enum:"TrainingJobEarlyStoppingType"` // The tuning job's completion criteria. TuningJobCompletionCriteria *TuningJobCompletionCriteria `type:"structure"` } // String returns the string representation func (s HyperParameterTuningJobConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterTuningJobConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HyperParameterTuningJobConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobConfig"} if s.ResourceLimits == nil { invalidParams.Add(request.NewErrParamRequired("ResourceLimits")) } if s.Strategy == nil { invalidParams.Add(request.NewErrParamRequired("Strategy")) } if s.HyperParameterTuningJobObjective != nil { if err := s.HyperParameterTuningJobObjective.Validate(); err != nil { invalidParams.AddNested("HyperParameterTuningJobObjective", err.(request.ErrInvalidParams)) } } if s.ParameterRanges != nil { if err := s.ParameterRanges.Validate(); err != nil { invalidParams.AddNested("ParameterRanges", err.(request.ErrInvalidParams)) } } if s.ResourceLimits != nil { if err := s.ResourceLimits.Validate(); err != nil { invalidParams.AddNested("ResourceLimits", err.(request.ErrInvalidParams)) } } if s.TuningJobCompletionCriteria != nil { if err := s.TuningJobCompletionCriteria.Validate(); err != nil { invalidParams.AddNested("TuningJobCompletionCriteria", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHyperParameterTuningJobObjective sets the HyperParameterTuningJobObjective field's value. func (s *HyperParameterTuningJobConfig) SetHyperParameterTuningJobObjective(v *HyperParameterTuningJobObjective) *HyperParameterTuningJobConfig { s.HyperParameterTuningJobObjective = v return s } // SetParameterRanges sets the ParameterRanges field's value. func (s *HyperParameterTuningJobConfig) SetParameterRanges(v *ParameterRanges) *HyperParameterTuningJobConfig { s.ParameterRanges = v return s } // SetResourceLimits sets the ResourceLimits field's value. func (s *HyperParameterTuningJobConfig) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobConfig { s.ResourceLimits = v return s } // SetStrategy sets the Strategy field's value. func (s *HyperParameterTuningJobConfig) SetStrategy(v string) *HyperParameterTuningJobConfig { s.Strategy = &v return s } // SetTrainingJobEarlyStoppingType sets the TrainingJobEarlyStoppingType field's value. func (s *HyperParameterTuningJobConfig) SetTrainingJobEarlyStoppingType(v string) *HyperParameterTuningJobConfig { s.TrainingJobEarlyStoppingType = &v return s } // SetTuningJobCompletionCriteria sets the TuningJobCompletionCriteria field's value. func (s *HyperParameterTuningJobConfig) SetTuningJobCompletionCriteria(v *TuningJobCompletionCriteria) *HyperParameterTuningJobConfig { s.TuningJobCompletionCriteria = v return s } // Defines the objective metric for a hyperparameter tuning job. Hyperparameter // tuning uses the value of this metric to evaluate the training jobs it launches, // and returns the training job that results in either the highest or lowest // value for this metric, depending on the value you specify for the Type parameter. type HyperParameterTuningJobObjective struct { _ struct{} `type:"structure"` // The name of the metric to use for the objective metric. // // MetricName is a required field MetricName *string `min:"1" type:"string" required:"true"` // Whether to minimize or maximize the objective metric. // // Type is a required field Type *string `type:"string" required:"true" enum:"HyperParameterTuningJobObjectiveType"` } // String returns the string representation func (s HyperParameterTuningJobObjective) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterTuningJobObjective) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HyperParameterTuningJobObjective) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobObjective"} if s.MetricName == nil { invalidParams.Add(request.NewErrParamRequired("MetricName")) } if s.MetricName != nil && len(*s.MetricName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMetricName sets the MetricName field's value. func (s *HyperParameterTuningJobObjective) SetMetricName(v string) *HyperParameterTuningJobObjective { s.MetricName = &v return s } // SetType sets the Type field's value. func (s *HyperParameterTuningJobObjective) SetType(v string) *HyperParameterTuningJobObjective { s.Type = &v return s } // Provides summary information about a hyperparameter tuning job. type HyperParameterTuningJobSummary struct { _ struct{} `type:"structure"` // The date and time that the tuning job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The date and time that the tuning job ended. HyperParameterTuningEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the tuning job. // // HyperParameterTuningJobArn is a required field HyperParameterTuningJobArn *string `type:"string" required:"true"` // The name of the tuning job. // // HyperParameterTuningJobName is a required field HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` // The status of the tuning job. // // HyperParameterTuningJobStatus is a required field HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` // The date and time that the tuning job was modified. LastModifiedTime *time.Time `type:"timestamp"` // The ObjectiveStatusCounters object that specifies the numbers of training // jobs, categorized by objective metric status, that this tuning job launched. // // ObjectiveStatusCounters is a required field ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` // The ResourceLimits object that specifies the maximum number of training jobs // and parallel training jobs allowed for this tuning job. ResourceLimits *ResourceLimits `type:"structure"` // Specifies the search strategy hyperparameter tuning uses to choose which // hyperparameters to use for each iteration. Currently, the only valid value // is Bayesian. // // Strategy is a required field Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` // The TrainingJobStatusCounters object that specifies the numbers of training // jobs, categorized by status, that this tuning job launched. // // TrainingJobStatusCounters is a required field TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` } // String returns the string representation func (s HyperParameterTuningJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterTuningJobSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *HyperParameterTuningJobSummary) SetCreationTime(v time.Time) *HyperParameterTuningJobSummary { s.CreationTime = &v return s } // SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningEndTime(v time.Time) *HyperParameterTuningJobSummary { s.HyperParameterTuningEndTime = &v return s } // SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobArn(v string) *HyperParameterTuningJobSummary { s.HyperParameterTuningJobArn = &v return s } // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobName(v string) *HyperParameterTuningJobSummary { s.HyperParameterTuningJobName = &v return s } // SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobStatus(v string) *HyperParameterTuningJobSummary { s.HyperParameterTuningJobStatus = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *HyperParameterTuningJobSummary) SetLastModifiedTime(v time.Time) *HyperParameterTuningJobSummary { s.LastModifiedTime = &v return s } // SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. func (s *HyperParameterTuningJobSummary) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *HyperParameterTuningJobSummary { s.ObjectiveStatusCounters = v return s } // SetResourceLimits sets the ResourceLimits field's value. func (s *HyperParameterTuningJobSummary) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobSummary { s.ResourceLimits = v return s } // SetStrategy sets the Strategy field's value. func (s *HyperParameterTuningJobSummary) SetStrategy(v string) *HyperParameterTuningJobSummary { s.Strategy = &v return s } // SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. func (s *HyperParameterTuningJobSummary) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *HyperParameterTuningJobSummary { s.TrainingJobStatusCounters = v return s } // Specifies the configuration for a hyperparameter tuning job that uses one // or more previous hyperparameter tuning jobs as a starting point. The results // of previous tuning jobs are used to inform which combinations of hyperparameters // to search over in the new tuning job. // // All training jobs launched by the new hyperparameter tuning job are evaluated // by using the objective metric, and the training job that performs the best // is compared to the best training jobs from the parent tuning jobs. From these, // the training job that performs the best as measured by the objective metric // is returned as the overall best training job. // // All training jobs launched by parent hyperparameter tuning jobs and the new // hyperparameter tuning jobs count against the limit of training jobs for the // tuning job. type HyperParameterTuningJobWarmStartConfig struct { _ struct{} `type:"structure"` // An array of hyperparameter tuning jobs that are used as the starting point // for the new hyperparameter tuning job. For more information about warm starting // a hyperparameter tuning job, see Using a Previous Hyperparameter Tuning Job // as a Starting Point (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-warm-start.html). // // Hyperparameter tuning jobs created before October 1, 2018 cannot be used // as parent jobs for warm start tuning jobs. // // ParentHyperParameterTuningJobs is a required field ParentHyperParameterTuningJobs []*ParentHyperParameterTuningJob `min:"1" type:"list" required:"true"` // Specifies one of the following: // // IDENTICAL_DATA_AND_ALGORITHM // // The new hyperparameter tuning job uses the same input data and training image // as the parent tuning jobs. You can change the hyperparameter ranges to search // and the maximum number of training jobs that the hyperparameter tuning job // launches. You cannot use a new version of the training algorithm, unless // the changes in the new version do not affect the algorithm itself. For example, // changes that improve logging or adding support for a different data format // are allowed. You can also change hyperparameters from tunable to static, // and from static to tunable, but the total number of static plus tunable hyperparameters // must remain the same as it is in all parent jobs. The objective metric for // the new tuning job must be the same as for all parent jobs. // // TRANSFER_LEARNING // // The new hyperparameter tuning job can include input data, hyperparameter // ranges, maximum number of concurrent training jobs, and maximum number of // training jobs that are different than those of its parent hyperparameter // tuning jobs. The training image can also be a different version from the // version used in the parent hyperparameter tuning job. You can also change // hyperparameters from tunable to static, and from static to tunable, but the // total number of static plus tunable hyperparameters must remain the same // as it is in all parent jobs. The objective metric for the new tuning job // must be the same as for all parent jobs. // // WarmStartType is a required field WarmStartType *string `type:"string" required:"true" enum:"HyperParameterTuningJobWarmStartType"` } // String returns the string representation func (s HyperParameterTuningJobWarmStartConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HyperParameterTuningJobWarmStartConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HyperParameterTuningJobWarmStartConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobWarmStartConfig"} if s.ParentHyperParameterTuningJobs == nil { invalidParams.Add(request.NewErrParamRequired("ParentHyperParameterTuningJobs")) } if s.ParentHyperParameterTuningJobs != nil && len(s.ParentHyperParameterTuningJobs) < 1 { invalidParams.Add(request.NewErrParamMinLen("ParentHyperParameterTuningJobs", 1)) } if s.WarmStartType == nil { invalidParams.Add(request.NewErrParamRequired("WarmStartType")) } if s.ParentHyperParameterTuningJobs != nil { for i, v := range s.ParentHyperParameterTuningJobs { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParentHyperParameterTuningJobs", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetParentHyperParameterTuningJobs sets the ParentHyperParameterTuningJobs field's value. func (s *HyperParameterTuningJobWarmStartConfig) SetParentHyperParameterTuningJobs(v []*ParentHyperParameterTuningJob) *HyperParameterTuningJobWarmStartConfig { s.ParentHyperParameterTuningJobs = v return s } // SetWarmStartType sets the WarmStartType field's value. func (s *HyperParameterTuningJobWarmStartConfig) SetWarmStartType(v string) *HyperParameterTuningJobWarmStartConfig { s.WarmStartType = &v return s } // Specifies whether the model container is in Amazon ECR or a private Docker // registry accessible from your Amazon Virtual Private Cloud (VPC). type ImageConfig struct { _ struct{} `type:"structure"` // Set this to one of the following values: // // * Platform - The model image is hosted in Amazon ECR. // // * Vpc - The model image is hosted in a private Docker registry in your // VPC. // // RepositoryAccessMode is a required field RepositoryAccessMode *string `type:"string" required:"true" enum:"RepositoryAccessMode"` } // String returns the string representation func (s ImageConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImageConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ImageConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ImageConfig"} if s.RepositoryAccessMode == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryAccessMode")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetRepositoryAccessMode sets the RepositoryAccessMode field's value. func (s *ImageConfig) SetRepositoryAccessMode(v string) *ImageConfig { s.RepositoryAccessMode = &v return s } // Defines how to perform inference generation after a training job is run. type InferenceSpecification struct { _ struct{} `type:"structure"` // The Amazon ECR registry path of the Docker image that contains the inference // code. // // Containers is a required field Containers []*ModelPackageContainerDefinition `min:"1" type:"list" required:"true"` // The supported MIME types for the input data. // // SupportedContentTypes is a required field SupportedContentTypes []*string `type:"list" required:"true"` // A list of the instance types that are used to generate inferences in real-time. // // SupportedRealtimeInferenceInstanceTypes is a required field SupportedRealtimeInferenceInstanceTypes []*string `type:"list" required:"true"` // The supported MIME types for the output data. // // SupportedResponseMIMETypes is a required field SupportedResponseMIMETypes []*string `type:"list" required:"true"` // A list of the instance types on which a transformation job can be run or // on which an endpoint can be deployed. // // SupportedTransformInstanceTypes is a required field SupportedTransformInstanceTypes []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s InferenceSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InferenceSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *InferenceSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "InferenceSpecification"} if s.Containers == nil { invalidParams.Add(request.NewErrParamRequired("Containers")) } if s.Containers != nil && len(s.Containers) < 1 { invalidParams.Add(request.NewErrParamMinLen("Containers", 1)) } if s.SupportedContentTypes == nil { invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes")) } if s.SupportedRealtimeInferenceInstanceTypes == nil { invalidParams.Add(request.NewErrParamRequired("SupportedRealtimeInferenceInstanceTypes")) } if s.SupportedResponseMIMETypes == nil { invalidParams.Add(request.NewErrParamRequired("SupportedResponseMIMETypes")) } if s.SupportedTransformInstanceTypes == nil { invalidParams.Add(request.NewErrParamRequired("SupportedTransformInstanceTypes")) } if s.SupportedTransformInstanceTypes != nil && len(s.SupportedTransformInstanceTypes) < 1 { invalidParams.Add(request.NewErrParamMinLen("SupportedTransformInstanceTypes", 1)) } if s.Containers != nil { for i, v := range s.Containers { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainers sets the Containers field's value. func (s *InferenceSpecification) SetContainers(v []*ModelPackageContainerDefinition) *InferenceSpecification { s.Containers = v return s } // SetSupportedContentTypes sets the SupportedContentTypes field's value. func (s *InferenceSpecification) SetSupportedContentTypes(v []*string) *InferenceSpecification { s.SupportedContentTypes = v return s } // SetSupportedRealtimeInferenceInstanceTypes sets the SupportedRealtimeInferenceInstanceTypes field's value. func (s *InferenceSpecification) SetSupportedRealtimeInferenceInstanceTypes(v []*string) *InferenceSpecification { s.SupportedRealtimeInferenceInstanceTypes = v return s } // SetSupportedResponseMIMETypes sets the SupportedResponseMIMETypes field's value. func (s *InferenceSpecification) SetSupportedResponseMIMETypes(v []*string) *InferenceSpecification { s.SupportedResponseMIMETypes = v return s } // SetSupportedTransformInstanceTypes sets the SupportedTransformInstanceTypes field's value. func (s *InferenceSpecification) SetSupportedTransformInstanceTypes(v []*string) *InferenceSpecification { s.SupportedTransformInstanceTypes = v return s } // Contains information about the location of input model artifacts, the name // and shape of the expected data inputs, and the framework in which the model // was trained. type InputConfig struct { _ struct{} `type:"structure"` // Specifies the name and shape of the expected data inputs for your trained // model with a JSON dictionary form. The data inputs are InputConfig$Framework // specific. // // * TensorFlow: You must specify the name and shape (NHWC format) of the // expected data inputs using a dictionary format for your trained model. // The dictionary formats required for the console and CLI are different. // Examples for one input: If using the console, {"input":[1,1024,1024,3]} // If using the CLI, {\"input\":[1,1024,1024,3]} Examples for two inputs: // If using the console, {"data1": [1,28,28,1], "data2":[1,28,28,1]} If using // the CLI, {\"data1\": [1,28,28,1], \"data2\":[1,28,28,1]} // // * KERAS: You must specify the name and shape (NCHW format) of expected // data inputs using a dictionary format for your trained model. Note that // while Keras model artifacts should be uploaded in NHWC (channel-last) // format, DataInputConfig should be specified in NCHW (channel-first) format. // The dictionary formats required for the console and CLI are different. // Examples for one input: If using the console, {"input_1":[1,3,224,224]} // If using the CLI, {\"input_1\":[1,3,224,224]} Examples for two inputs: // If using the console, {"input_1": [1,3,224,224], "input_2":[1,3,224,224]} // If using the CLI, {\"input_1\": [1,3,224,224], \"input_2\":[1,3,224,224]} // // * MXNET/ONNX: You must specify the name and shape (NCHW format) of the // expected data inputs in order using a dictionary format for your trained // model. The dictionary formats required for the console and CLI are different. // Examples for one input: If using the console, {"data":[1,3,1024,1024]} // If using the CLI, {\"data\":[1,3,1024,1024]} Examples for two inputs: // If using the console, {"var1": [1,1,28,28], "var2":[1,1,28,28]} If using // the CLI, {\"var1\": [1,1,28,28], \"var2\":[1,1,28,28]} // // * PyTorch: You can either specify the name and shape (NCHW format) of // expected data inputs in order using a dictionary format for your trained // model or you can specify the shape only using a list format. The dictionary // formats required for the console and CLI are different. The list formats // for the console and CLI are the same. Examples for one input in dictionary // format: If using the console, {"input0":[1,3,224,224]} If using the CLI, // {\"input0\":[1,3,224,224]} Example for one input in list format: [[1,3,224,224]] // Examples for two inputs in dictionary format: If using the console, {"input0":[1,3,224,224], // "input1":[1,3,224,224]} If using the CLI, {\"input0\":[1,3,224,224], \"input1\":[1,3,224,224]} // Example for two inputs in list format: [[1,3,224,224], [1,3,224,224]] // // * XGBOOST: input data name and shape are not needed. // // DataInputConfig is a required field DataInputConfig *string `min:"1" type:"string" required:"true"` // Identifies the framework in which the model was trained. For example: TENSORFLOW. // // Framework is a required field Framework *string `type:"string" required:"true" enum:"Framework"` // The S3 path where the model artifacts, which result from model training, // are stored. This path must point to a single gzip compressed tar archive // (.tar.gz suffix). // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s InputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *InputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "InputConfig"} if s.DataInputConfig == nil { invalidParams.Add(request.NewErrParamRequired("DataInputConfig")) } if s.DataInputConfig != nil && len(*s.DataInputConfig) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataInputConfig", 1)) } if s.Framework == nil { invalidParams.Add(request.NewErrParamRequired("Framework")) } if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDataInputConfig sets the DataInputConfig field's value. func (s *InputConfig) SetDataInputConfig(v string) *InputConfig { s.DataInputConfig = &v return s } // SetFramework sets the Framework field's value. func (s *InputConfig) SetFramework(v string) *InputConfig { s.Framework = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *InputConfig) SetS3Uri(v string) *InputConfig { s.S3Uri = &v return s } // For a hyperparameter of the integer type, specifies the range that a hyperparameter // tuning job searches. type IntegerParameterRange struct { _ struct{} `type:"structure"` // The maximum value of the hyperparameter to search. // // MaxValue is a required field MaxValue *string `type:"string" required:"true"` // The minimum value of the hyperparameter to search. // // MinValue is a required field MinValue *string `type:"string" required:"true"` // The name of the hyperparameter to search. // // Name is a required field Name *string `type:"string" required:"true"` // The scale that hyperparameter tuning uses to search the hyperparameter range. // For information about choosing a hyperparameter scale, see Hyperparameter // Scaling (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html#scaling-type). // One of the following values: // // Auto // // Amazon SageMaker hyperparameter tuning chooses the best scale for the hyperparameter. // // Linear // // Hyperparameter tuning searches the values in the hyperparameter range by // using a linear scale. // // Logarithmic // // Hyperparameter tuning searches the values in the hyperparameter range by // using a logarithmic scale. // // Logarithmic scaling works only for ranges that have only values greater than // 0. ScalingType *string `type:"string" enum:"HyperParameterScalingType"` } // String returns the string representation func (s IntegerParameterRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s IntegerParameterRange) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *IntegerParameterRange) Validate() error { invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRange"} if s.MaxValue == nil { invalidParams.Add(request.NewErrParamRequired("MaxValue")) } if s.MinValue == nil { invalidParams.Add(request.NewErrParamRequired("MinValue")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxValue sets the MaxValue field's value. func (s *IntegerParameterRange) SetMaxValue(v string) *IntegerParameterRange { s.MaxValue = &v return s } // SetMinValue sets the MinValue field's value. func (s *IntegerParameterRange) SetMinValue(v string) *IntegerParameterRange { s.MinValue = &v return s } // SetName sets the Name field's value. func (s *IntegerParameterRange) SetName(v string) *IntegerParameterRange { s.Name = &v return s } // SetScalingType sets the ScalingType field's value. func (s *IntegerParameterRange) SetScalingType(v string) *IntegerParameterRange { s.ScalingType = &v return s } // Defines the possible values for an integer hyperparameter. type IntegerParameterRangeSpecification struct { _ struct{} `type:"structure"` // The maximum integer value allowed. // // MaxValue is a required field MaxValue *string `type:"string" required:"true"` // The minimum integer value allowed. // // MinValue is a required field MinValue *string `type:"string" required:"true"` } // String returns the string representation func (s IntegerParameterRangeSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s IntegerParameterRangeSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *IntegerParameterRangeSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRangeSpecification"} if s.MaxValue == nil { invalidParams.Add(request.NewErrParamRequired("MaxValue")) } if s.MinValue == nil { invalidParams.Add(request.NewErrParamRequired("MinValue")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxValue sets the MaxValue field's value. func (s *IntegerParameterRangeSpecification) SetMaxValue(v string) *IntegerParameterRangeSpecification { s.MaxValue = &v return s } // SetMinValue sets the MinValue field's value. func (s *IntegerParameterRangeSpecification) SetMinValue(v string) *IntegerParameterRangeSpecification { s.MinValue = &v return s } // Jupyter server's app settings. type JupyterServerAppSettings struct { _ struct{} `type:"structure"` // The default instance type and the Amazon Resource Name (ARN) of the SageMaker // image created on the instance. DefaultResourceSpec *ResourceSpec `type:"structure"` } // String returns the string representation func (s JupyterServerAppSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s JupyterServerAppSettings) GoString() string { return s.String() } // SetDefaultResourceSpec sets the DefaultResourceSpec field's value. func (s *JupyterServerAppSettings) SetDefaultResourceSpec(v *ResourceSpec) *JupyterServerAppSettings { s.DefaultResourceSpec = v return s } // The kernel gateway app settings. type KernelGatewayAppSettings struct { _ struct{} `type:"structure"` // The default instance type and the Amazon Resource Name (ARN) of the SageMaker // image created on the instance. DefaultResourceSpec *ResourceSpec `type:"structure"` } // String returns the string representation func (s KernelGatewayAppSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s KernelGatewayAppSettings) GoString() string { return s.String() } // SetDefaultResourceSpec sets the DefaultResourceSpec field's value. func (s *KernelGatewayAppSettings) SetDefaultResourceSpec(v *ResourceSpec) *KernelGatewayAppSettings { s.DefaultResourceSpec = v return s } // Provides a breakdown of the number of objects labeled. type LabelCounters struct { _ struct{} `type:"structure"` // The total number of objects that could not be labeled due to an error. FailedNonRetryableError *int64 `type:"integer"` // The total number of objects labeled by a human worker. HumanLabeled *int64 `type:"integer"` // The total number of objects labeled by automated data labeling. MachineLabeled *int64 `type:"integer"` // The total number of objects labeled. TotalLabeled *int64 `type:"integer"` // The total number of objects not yet labeled. Unlabeled *int64 `type:"integer"` } // String returns the string representation func (s LabelCounters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelCounters) GoString() string { return s.String() } // SetFailedNonRetryableError sets the FailedNonRetryableError field's value. func (s *LabelCounters) SetFailedNonRetryableError(v int64) *LabelCounters { s.FailedNonRetryableError = &v return s } // SetHumanLabeled sets the HumanLabeled field's value. func (s *LabelCounters) SetHumanLabeled(v int64) *LabelCounters { s.HumanLabeled = &v return s } // SetMachineLabeled sets the MachineLabeled field's value. func (s *LabelCounters) SetMachineLabeled(v int64) *LabelCounters { s.MachineLabeled = &v return s } // SetTotalLabeled sets the TotalLabeled field's value. func (s *LabelCounters) SetTotalLabeled(v int64) *LabelCounters { s.TotalLabeled = &v return s } // SetUnlabeled sets the Unlabeled field's value. func (s *LabelCounters) SetUnlabeled(v int64) *LabelCounters { s.Unlabeled = &v return s } // Provides counts for human-labeled tasks in the labeling job. type LabelCountersForWorkteam struct { _ struct{} `type:"structure"` // The total number of data objects labeled by a human worker. HumanLabeled *int64 `type:"integer"` // The total number of data objects that need to be labeled by a human worker. PendingHuman *int64 `type:"integer"` // The total number of tasks in the labeling job. Total *int64 `type:"integer"` } // String returns the string representation func (s LabelCountersForWorkteam) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelCountersForWorkteam) GoString() string { return s.String() } // SetHumanLabeled sets the HumanLabeled field's value. func (s *LabelCountersForWorkteam) SetHumanLabeled(v int64) *LabelCountersForWorkteam { s.HumanLabeled = &v return s } // SetPendingHuman sets the PendingHuman field's value. func (s *LabelCountersForWorkteam) SetPendingHuman(v int64) *LabelCountersForWorkteam { s.PendingHuman = &v return s } // SetTotal sets the Total field's value. func (s *LabelCountersForWorkteam) SetTotal(v int64) *LabelCountersForWorkteam { s.Total = &v return s } // Provides configuration information for auto-labeling of your data objects. // A LabelingJobAlgorithmsConfig object must be supplied in order to use auto-labeling. type LabelingJobAlgorithmsConfig struct { _ struct{} `type:"structure"` // At the end of an auto-label job Ground Truth sends the Amazon Resource Name // (ARN) of the final model used for auto-labeling. You can use this model as // the starting point for subsequent similar jobs by providing the ARN of the // model here. InitialActiveLearningModelArn *string `min:"20" type:"string"` // Specifies the Amazon Resource Name (ARN) of the algorithm used for auto-labeling. // You must select one of the following ARNs: // // * Image classification arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/image-classification // // * Text classification arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/text-classification // // * Object detection arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/object-detection // // * Semantic Segmentation arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/semantic-segmentation // // LabelingJobAlgorithmSpecificationArn is a required field LabelingJobAlgorithmSpecificationArn *string `type:"string" required:"true"` // Provides configuration information for a labeling job. LabelingJobResourceConfig *LabelingJobResourceConfig `type:"structure"` } // String returns the string representation func (s LabelingJobAlgorithmsConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobAlgorithmsConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LabelingJobAlgorithmsConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LabelingJobAlgorithmsConfig"} if s.InitialActiveLearningModelArn != nil && len(*s.InitialActiveLearningModelArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("InitialActiveLearningModelArn", 20)) } if s.LabelingJobAlgorithmSpecificationArn == nil { invalidParams.Add(request.NewErrParamRequired("LabelingJobAlgorithmSpecificationArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInitialActiveLearningModelArn sets the InitialActiveLearningModelArn field's value. func (s *LabelingJobAlgorithmsConfig) SetInitialActiveLearningModelArn(v string) *LabelingJobAlgorithmsConfig { s.InitialActiveLearningModelArn = &v return s } // SetLabelingJobAlgorithmSpecificationArn sets the LabelingJobAlgorithmSpecificationArn field's value. func (s *LabelingJobAlgorithmsConfig) SetLabelingJobAlgorithmSpecificationArn(v string) *LabelingJobAlgorithmsConfig { s.LabelingJobAlgorithmSpecificationArn = &v return s } // SetLabelingJobResourceConfig sets the LabelingJobResourceConfig field's value. func (s *LabelingJobAlgorithmsConfig) SetLabelingJobResourceConfig(v *LabelingJobResourceConfig) *LabelingJobAlgorithmsConfig { s.LabelingJobResourceConfig = v return s } // Attributes of the data specified by the customer. Use these to describe the // data to be labeled. type LabelingJobDataAttributes struct { _ struct{} `type:"structure"` // Declares that your content is free of personally identifiable information // or adult content. Amazon SageMaker may restrict the Amazon Mechanical Turk // workers that can view your task based on this information. ContentClassifiers []*string `type:"list"` } // String returns the string representation func (s LabelingJobDataAttributes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobDataAttributes) GoString() string { return s.String() } // SetContentClassifiers sets the ContentClassifiers field's value. func (s *LabelingJobDataAttributes) SetContentClassifiers(v []*string) *LabelingJobDataAttributes { s.ContentClassifiers = v return s } // Provides information about the location of input data. // // You must specify at least one of the following: S3DataSource or SnsDataSource. // // Use SnsDataSource to specify an SNS input topic for a streaming labeling // job. If you do not specify and SNS input topic ARN, Ground Truth will create // a one-time labeling job. // // Use S3DataSource to specify an input manifest file for both streaming and // one-time labeling jobs. Adding an S3DataSource is optional if you use SnsDataSource // to create a streaming labeling job. type LabelingJobDataSource struct { _ struct{} `type:"structure"` // The Amazon S3 location of the input data objects. S3DataSource *LabelingJobS3DataSource `type:"structure"` // An Amazon SNS data source used for streaming labeling jobs. SnsDataSource *LabelingJobSnsDataSource `type:"structure"` } // String returns the string representation func (s LabelingJobDataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobDataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LabelingJobDataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LabelingJobDataSource"} if s.S3DataSource != nil { if err := s.S3DataSource.Validate(); err != nil { invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) } } if s.SnsDataSource != nil { if err := s.SnsDataSource.Validate(); err != nil { invalidParams.AddNested("SnsDataSource", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3DataSource sets the S3DataSource field's value. func (s *LabelingJobDataSource) SetS3DataSource(v *LabelingJobS3DataSource) *LabelingJobDataSource { s.S3DataSource = v return s } // SetSnsDataSource sets the SnsDataSource field's value. func (s *LabelingJobDataSource) SetSnsDataSource(v *LabelingJobSnsDataSource) *LabelingJobDataSource { s.SnsDataSource = v return s } // Provides summary information for a work team. type LabelingJobForWorkteamSummary struct { _ struct{} `type:"structure"` // The date and time that the labeling job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // A unique identifier for a labeling job. You can use this to refer to a specific // labeling job. // // JobReferenceCode is a required field JobReferenceCode *string `min:"1" type:"string" required:"true"` // Provides information about the progress of a labeling job. LabelCounters *LabelCountersForWorkteam `type:"structure"` // The name of the labeling job that the work team is assigned to. LabelingJobName *string `min:"1" type:"string"` // The configured number of workers per data object. NumberOfHumanWorkersPerDataObject *int64 `min:"1" type:"integer"` // WorkRequesterAccountId is a required field WorkRequesterAccountId *string `type:"string" required:"true"` } // String returns the string representation func (s LabelingJobForWorkteamSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobForWorkteamSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *LabelingJobForWorkteamSummary) SetCreationTime(v time.Time) *LabelingJobForWorkteamSummary { s.CreationTime = &v return s } // SetJobReferenceCode sets the JobReferenceCode field's value. func (s *LabelingJobForWorkteamSummary) SetJobReferenceCode(v string) *LabelingJobForWorkteamSummary { s.JobReferenceCode = &v return s } // SetLabelCounters sets the LabelCounters field's value. func (s *LabelingJobForWorkteamSummary) SetLabelCounters(v *LabelCountersForWorkteam) *LabelingJobForWorkteamSummary { s.LabelCounters = v return s } // SetLabelingJobName sets the LabelingJobName field's value. func (s *LabelingJobForWorkteamSummary) SetLabelingJobName(v string) *LabelingJobForWorkteamSummary { s.LabelingJobName = &v return s } // SetNumberOfHumanWorkersPerDataObject sets the NumberOfHumanWorkersPerDataObject field's value. func (s *LabelingJobForWorkteamSummary) SetNumberOfHumanWorkersPerDataObject(v int64) *LabelingJobForWorkteamSummary { s.NumberOfHumanWorkersPerDataObject = &v return s } // SetWorkRequesterAccountId sets the WorkRequesterAccountId field's value. func (s *LabelingJobForWorkteamSummary) SetWorkRequesterAccountId(v string) *LabelingJobForWorkteamSummary { s.WorkRequesterAccountId = &v return s } // Input configuration information for a labeling job. type LabelingJobInputConfig struct { _ struct{} `type:"structure"` // Attributes of the data specified by the customer. DataAttributes *LabelingJobDataAttributes `type:"structure"` // The location of the input data. // // DataSource is a required field DataSource *LabelingJobDataSource `type:"structure" required:"true"` } // String returns the string representation func (s LabelingJobInputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobInputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LabelingJobInputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LabelingJobInputConfig"} if s.DataSource == nil { invalidParams.Add(request.NewErrParamRequired("DataSource")) } if s.DataSource != nil { if err := s.DataSource.Validate(); err != nil { invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDataAttributes sets the DataAttributes field's value. func (s *LabelingJobInputConfig) SetDataAttributes(v *LabelingJobDataAttributes) *LabelingJobInputConfig { s.DataAttributes = v return s } // SetDataSource sets the DataSource field's value. func (s *LabelingJobInputConfig) SetDataSource(v *LabelingJobDataSource) *LabelingJobInputConfig { s.DataSource = v return s } // Specifies the location of the output produced by the labeling job. type LabelingJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the most recent Amazon SageMaker model // trained as part of automated data labeling. FinalActiveLearningModelArn *string `min:"20" type:"string"` // The Amazon S3 bucket location of the manifest file for labeled data. // // OutputDatasetS3Uri is a required field OutputDatasetS3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s LabelingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobOutput) GoString() string { return s.String() } // SetFinalActiveLearningModelArn sets the FinalActiveLearningModelArn field's value. func (s *LabelingJobOutput) SetFinalActiveLearningModelArn(v string) *LabelingJobOutput { s.FinalActiveLearningModelArn = &v return s } // SetOutputDatasetS3Uri sets the OutputDatasetS3Uri field's value. func (s *LabelingJobOutput) SetOutputDatasetS3Uri(v string) *LabelingJobOutput { s.OutputDatasetS3Uri = &v return s } // Output configuration information for a labeling job. type LabelingJobOutputConfig struct { _ struct{} `type:"structure"` // The AWS Key Management Service ID of the key used to encrypt the output data, // if any. // // If you use a KMS key ID or an alias of your master key, the Amazon SageMaker // execution role must include permissions to call kms:Encrypt. If you don't // provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon // S3 for your role's account. Amazon SageMaker uses server-side encryption // with KMS-managed keys for LabelingJobOutputConfig. If you use a bucket policy // with an s3:PutObject permission that only allows objects with server-side // encryption, set the condition key of s3:x-amz-server-side-encryption to "aws:kms". // For more information, see KMS-Managed Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) // in the Amazon Simple Storage Service Developer Guide. // // The KMS key policy must grant permission to the IAM role that you specify // in your CreateLabelingJob request. For more information, see Using Key Policies // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) // in the AWS Key Management Service Developer Guide. KmsKeyId *string `type:"string"` // The Amazon S3 location to write output data. // // S3OutputPath is a required field S3OutputPath *string `type:"string" required:"true"` // An Amazon Simple Notification Service (Amazon SNS) output topic ARN. // // When workers complete labeling tasks, Ground Truth will send labeling task // output data to the SNS output topic you specify here. // // You must provide a value for this parameter if you provide an Amazon SNS // input topic in SnsDataSource in InputConfig. SnsTopicArn *string `type:"string"` } // String returns the string representation func (s LabelingJobOutputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobOutputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LabelingJobOutputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LabelingJobOutputConfig"} if s.S3OutputPath == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKmsKeyId sets the KmsKeyId field's value. func (s *LabelingJobOutputConfig) SetKmsKeyId(v string) *LabelingJobOutputConfig { s.KmsKeyId = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *LabelingJobOutputConfig) SetS3OutputPath(v string) *LabelingJobOutputConfig { s.S3OutputPath = &v return s } // SetSnsTopicArn sets the SnsTopicArn field's value. func (s *LabelingJobOutputConfig) SetSnsTopicArn(v string) *LabelingJobOutputConfig { s.SnsTopicArn = &v return s } // Provides configuration information for labeling jobs. type LabelingJobResourceConfig struct { _ struct{} `type:"structure"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt data on the storage volume attached to the ML compute instance(s) // that run the training job. The VolumeKmsKeyId can be any of the following // formats: // // * // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab" // // * // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` } // String returns the string representation func (s LabelingJobResourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobResourceConfig) GoString() string { return s.String() } // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. func (s *LabelingJobResourceConfig) SetVolumeKmsKeyId(v string) *LabelingJobResourceConfig { s.VolumeKmsKeyId = &v return s } // The Amazon S3 location of the input data objects. type LabelingJobS3DataSource struct { _ struct{} `type:"structure"` // The Amazon S3 location of the manifest file that describes the input data // objects. // // ManifestS3Uri is a required field ManifestS3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s LabelingJobS3DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobS3DataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LabelingJobS3DataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LabelingJobS3DataSource"} if s.ManifestS3Uri == nil { invalidParams.Add(request.NewErrParamRequired("ManifestS3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetManifestS3Uri sets the ManifestS3Uri field's value. func (s *LabelingJobS3DataSource) SetManifestS3Uri(v string) *LabelingJobS3DataSource { s.ManifestS3Uri = &v return s } // An Amazon SNS data source used for streaming labeling jobs. type LabelingJobSnsDataSource struct { _ struct{} `type:"structure"` // The Amazon SNS input topic Amazon Resource Name (ARN). Specify the ARN of // the input topic you will use to send new data objects to a streaming labeling // job. // // If you specify an input topic for SnsTopicArn in InputConfig, you must specify // a value for SnsTopicArn in OutputConfig. // // SnsTopicArn is a required field SnsTopicArn *string `type:"string" required:"true"` } // String returns the string representation func (s LabelingJobSnsDataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobSnsDataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LabelingJobSnsDataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LabelingJobSnsDataSource"} if s.SnsTopicArn == nil { invalidParams.Add(request.NewErrParamRequired("SnsTopicArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSnsTopicArn sets the SnsTopicArn field's value. func (s *LabelingJobSnsDataSource) SetSnsTopicArn(v string) *LabelingJobSnsDataSource { s.SnsTopicArn = &v return s } // A set of conditions for stopping a labeling job. If any of the conditions // are met, the job is automatically stopped. You can use these conditions to // control the cost of data labeling. // // Labeling jobs fail after 30 days with an appropriate client error message. type LabelingJobStoppingConditions struct { _ struct{} `type:"structure"` // The maximum number of objects that can be labeled by human workers. MaxHumanLabeledObjectCount *int64 `min:"1" type:"integer"` // The maximum number of input data objects that should be labeled. MaxPercentageOfInputDatasetLabeled *int64 `min:"1" type:"integer"` } // String returns the string representation func (s LabelingJobStoppingConditions) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobStoppingConditions) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LabelingJobStoppingConditions) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LabelingJobStoppingConditions"} if s.MaxHumanLabeledObjectCount != nil && *s.MaxHumanLabeledObjectCount < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxHumanLabeledObjectCount", 1)) } if s.MaxPercentageOfInputDatasetLabeled != nil && *s.MaxPercentageOfInputDatasetLabeled < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxPercentageOfInputDatasetLabeled", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxHumanLabeledObjectCount sets the MaxHumanLabeledObjectCount field's value. func (s *LabelingJobStoppingConditions) SetMaxHumanLabeledObjectCount(v int64) *LabelingJobStoppingConditions { s.MaxHumanLabeledObjectCount = &v return s } // SetMaxPercentageOfInputDatasetLabeled sets the MaxPercentageOfInputDatasetLabeled field's value. func (s *LabelingJobStoppingConditions) SetMaxPercentageOfInputDatasetLabeled(v int64) *LabelingJobStoppingConditions { s.MaxPercentageOfInputDatasetLabeled = &v return s } // Provides summary information about a labeling job. type LabelingJobSummary struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the Lambda function used to consolidate // the annotations from individual workers into a label for a data object. For // more information, see Annotation Consolidation (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html). AnnotationConsolidationLambdaArn *string `type:"string"` // The date and time that the job was created (timestamp). // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // If the LabelingJobStatus field is Failed, this field contains a description // of the error. FailureReason *string `type:"string"` // Input configuration for the labeling job. InputConfig *LabelingJobInputConfig `type:"structure"` // Counts showing the progress of the labeling job. // // LabelCounters is a required field LabelCounters *LabelCounters `type:"structure" required:"true"` // The Amazon Resource Name (ARN) assigned to the labeling job when it was created. // // LabelingJobArn is a required field LabelingJobArn *string `type:"string" required:"true"` // The name of the labeling job. // // LabelingJobName is a required field LabelingJobName *string `min:"1" type:"string" required:"true"` // The location of the output produced by the labeling job. LabelingJobOutput *LabelingJobOutput `type:"structure"` // The current status of the labeling job. // // LabelingJobStatus is a required field LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"` // The date and time that the job was last modified (timestamp). // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of a Lambda function. The function is run // before each data object is sent to a worker. // // PreHumanTaskLambdaArn is a required field PreHumanTaskLambdaArn *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the work team assigned to the job. // // WorkteamArn is a required field WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation func (s LabelingJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LabelingJobSummary) GoString() string { return s.String() } // SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value. func (s *LabelingJobSummary) SetAnnotationConsolidationLambdaArn(v string) *LabelingJobSummary { s.AnnotationConsolidationLambdaArn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *LabelingJobSummary) SetCreationTime(v time.Time) *LabelingJobSummary { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *LabelingJobSummary) SetFailureReason(v string) *LabelingJobSummary { s.FailureReason = &v return s } // SetInputConfig sets the InputConfig field's value. func (s *LabelingJobSummary) SetInputConfig(v *LabelingJobInputConfig) *LabelingJobSummary { s.InputConfig = v return s } // SetLabelCounters sets the LabelCounters field's value. func (s *LabelingJobSummary) SetLabelCounters(v *LabelCounters) *LabelingJobSummary { s.LabelCounters = v return s } // SetLabelingJobArn sets the LabelingJobArn field's value. func (s *LabelingJobSummary) SetLabelingJobArn(v string) *LabelingJobSummary { s.LabelingJobArn = &v return s } // SetLabelingJobName sets the LabelingJobName field's value. func (s *LabelingJobSummary) SetLabelingJobName(v string) *LabelingJobSummary { s.LabelingJobName = &v return s } // SetLabelingJobOutput sets the LabelingJobOutput field's value. func (s *LabelingJobSummary) SetLabelingJobOutput(v *LabelingJobOutput) *LabelingJobSummary { s.LabelingJobOutput = v return s } // SetLabelingJobStatus sets the LabelingJobStatus field's value. func (s *LabelingJobSummary) SetLabelingJobStatus(v string) *LabelingJobSummary { s.LabelingJobStatus = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *LabelingJobSummary) SetLastModifiedTime(v time.Time) *LabelingJobSummary { s.LastModifiedTime = &v return s } // SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value. func (s *LabelingJobSummary) SetPreHumanTaskLambdaArn(v string) *LabelingJobSummary { s.PreHumanTaskLambdaArn = &v return s } // SetWorkteamArn sets the WorkteamArn field's value. func (s *LabelingJobSummary) SetWorkteamArn(v string) *LabelingJobSummary { s.WorkteamArn = &v return s } type ListAlgorithmsInput struct { _ struct{} `type:"structure"` // A filter that returns only algorithms created after the specified time (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only algorithms created before the specified time (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // The maximum number of algorithms to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the algorithm name. This filter returns only algorithms whose // name contains the specified string. NameContains *string `type:"string"` // If the response to a previous ListAlgorithms request was truncated, the response // includes a NextToken. To retrieve the next set of algorithms, use the token // in the next request. NextToken *string `type:"string"` // The parameter by which to sort the results. The default is CreationTime. SortBy *string `type:"string" enum:"AlgorithmSortBy"` // The sort order for the results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListAlgorithmsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAlgorithmsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAlgorithmsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAlgorithmsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListAlgorithmsInput) SetCreationTimeAfter(v time.Time) *ListAlgorithmsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListAlgorithmsInput) SetCreationTimeBefore(v time.Time) *ListAlgorithmsInput { s.CreationTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAlgorithmsInput) SetMaxResults(v int64) *ListAlgorithmsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListAlgorithmsInput) SetNameContains(v string) *ListAlgorithmsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAlgorithmsInput) SetNextToken(v string) *ListAlgorithmsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListAlgorithmsInput) SetSortBy(v string) *ListAlgorithmsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListAlgorithmsInput) SetSortOrder(v string) *ListAlgorithmsInput { s.SortOrder = &v return s } type ListAlgorithmsOutput struct { _ struct{} `type:"structure"` // >An array of AlgorithmSummary objects, each of which lists an algorithm. // // AlgorithmSummaryList is a required field AlgorithmSummaryList []*AlgorithmSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of algorithms, use it in the subsequent request. NextToken *string `type:"string"` } // String returns the string representation func (s ListAlgorithmsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAlgorithmsOutput) GoString() string { return s.String() } // SetAlgorithmSummaryList sets the AlgorithmSummaryList field's value. func (s *ListAlgorithmsOutput) SetAlgorithmSummaryList(v []*AlgorithmSummary) *ListAlgorithmsOutput { s.AlgorithmSummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAlgorithmsOutput) SetNextToken(v string) *ListAlgorithmsOutput { s.NextToken = &v return s } type ListAppsInput struct { _ struct{} `type:"structure"` // A parameter to search for the domain ID. DomainIdEquals *string `type:"string"` // Returns a list up to a specified limit. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was truncated, you will receive this token. Use // it in your next request to receive the next set of results. NextToken *string `type:"string"` // The parameter by which to sort the results. The default is CreationTime. SortBy *string `type:"string" enum:"AppSortKey"` // The sort order for the results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A parameter to search by user profile name. UserProfileNameEquals *string `type:"string"` } // String returns the string representation func (s ListAppsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAppsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAppsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainIdEquals sets the DomainIdEquals field's value. func (s *ListAppsInput) SetDomainIdEquals(v string) *ListAppsInput { s.DomainIdEquals = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAppsInput) SetMaxResults(v int64) *ListAppsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppsInput) SetNextToken(v string) *ListAppsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListAppsInput) SetSortBy(v string) *ListAppsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListAppsInput) SetSortOrder(v string) *ListAppsInput { s.SortOrder = &v return s } // SetUserProfileNameEquals sets the UserProfileNameEquals field's value. func (s *ListAppsInput) SetUserProfileNameEquals(v string) *ListAppsInput { s.UserProfileNameEquals = &v return s } type ListAppsOutput struct { _ struct{} `type:"structure"` // The list of apps. Apps []*AppDetails `type:"list"` // If the previous response was truncated, you will receive this token. Use // it in your next request to receive the next set of results. NextToken *string `type:"string"` } // String returns the string representation func (s ListAppsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppsOutput) GoString() string { return s.String() } // SetApps sets the Apps field's value. func (s *ListAppsOutput) SetApps(v []*AppDetails) *ListAppsOutput { s.Apps = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput { s.NextToken = &v return s } type ListAutoMLJobsInput struct { _ struct{} `type:"structure"` // Request a list of jobs, using a filter for time. CreationTimeAfter *time.Time `type:"timestamp"` // Request a list of jobs, using a filter for time. CreationTimeBefore *time.Time `type:"timestamp"` // Request a list of jobs, using a filter for time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // Request a list of jobs, using a filter for time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // Request a list of jobs up to a specified limit. MaxResults *int64 `min:"1" type:"integer"` // Request a list of jobs, using a search filter for name. NameContains *string `type:"string"` // If the previous response was truncated, you receive this token. Use it in // your next request to receive the next set of results. NextToken *string `type:"string"` // The parameter by which to sort the results. The default is AutoMLJobName. SortBy *string `type:"string" enum:"AutoMLSortBy"` // The sort order for the results. The default is Descending. SortOrder *string `type:"string" enum:"AutoMLSortOrder"` // Request a list of jobs, using a filter for status. StatusEquals *string `type:"string" enum:"AutoMLJobStatus"` } // String returns the string representation func (s ListAutoMLJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAutoMLJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAutoMLJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAutoMLJobsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListAutoMLJobsInput) SetCreationTimeAfter(v time.Time) *ListAutoMLJobsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListAutoMLJobsInput) SetCreationTimeBefore(v time.Time) *ListAutoMLJobsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListAutoMLJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListAutoMLJobsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListAutoMLJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListAutoMLJobsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAutoMLJobsInput) SetMaxResults(v int64) *ListAutoMLJobsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListAutoMLJobsInput) SetNameContains(v string) *ListAutoMLJobsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAutoMLJobsInput) SetNextToken(v string) *ListAutoMLJobsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListAutoMLJobsInput) SetSortBy(v string) *ListAutoMLJobsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListAutoMLJobsInput) SetSortOrder(v string) *ListAutoMLJobsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListAutoMLJobsInput) SetStatusEquals(v string) *ListAutoMLJobsInput { s.StatusEquals = &v return s } type ListAutoMLJobsOutput struct { _ struct{} `type:"structure"` // Returns a summary list of jobs. // // AutoMLJobSummaries is a required field AutoMLJobSummaries []*AutoMLJobSummary `type:"list" required:"true"` // If the previous response was truncated, you receive this token. Use it in // your next request to receive the next set of results. NextToken *string `type:"string"` } // String returns the string representation func (s ListAutoMLJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAutoMLJobsOutput) GoString() string { return s.String() } // SetAutoMLJobSummaries sets the AutoMLJobSummaries field's value. func (s *ListAutoMLJobsOutput) SetAutoMLJobSummaries(v []*AutoMLJobSummary) *ListAutoMLJobsOutput { s.AutoMLJobSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAutoMLJobsOutput) SetNextToken(v string) *ListAutoMLJobsOutput { s.NextToken = &v return s } type ListCandidatesForAutoMLJobInput struct { _ struct{} `type:"structure"` // List the Candidates created for the job by providing the job's name. // // AutoMLJobName is a required field AutoMLJobName *string `min:"1" type:"string" required:"true"` // List the Candidates for the job and filter by candidate name. CandidateNameEquals *string `min:"1" type:"string"` // List the job's Candidates up to a specified limit. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was truncated, you receive this token. Use it in // your next request to receive the next set of results. NextToken *string `type:"string"` // The parameter by which to sort the results. The default is Descending. SortBy *string `type:"string" enum:"CandidateSortBy"` // The sort order for the results. The default is Ascending. SortOrder *string `type:"string" enum:"AutoMLSortOrder"` // List the Candidates for the job and filter by status. StatusEquals *string `type:"string" enum:"CandidateStatus"` } // String returns the string representation func (s ListCandidatesForAutoMLJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListCandidatesForAutoMLJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListCandidatesForAutoMLJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListCandidatesForAutoMLJobInput"} if s.AutoMLJobName == nil { invalidParams.Add(request.NewErrParamRequired("AutoMLJobName")) } if s.AutoMLJobName != nil && len(*s.AutoMLJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoMLJobName", 1)) } if s.CandidateNameEquals != nil && len(*s.CandidateNameEquals) < 1 { invalidParams.Add(request.NewErrParamMinLen("CandidateNameEquals", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoMLJobName sets the AutoMLJobName field's value. func (s *ListCandidatesForAutoMLJobInput) SetAutoMLJobName(v string) *ListCandidatesForAutoMLJobInput { s.AutoMLJobName = &v return s } // SetCandidateNameEquals sets the CandidateNameEquals field's value. func (s *ListCandidatesForAutoMLJobInput) SetCandidateNameEquals(v string) *ListCandidatesForAutoMLJobInput { s.CandidateNameEquals = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListCandidatesForAutoMLJobInput) SetMaxResults(v int64) *ListCandidatesForAutoMLJobInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListCandidatesForAutoMLJobInput) SetNextToken(v string) *ListCandidatesForAutoMLJobInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListCandidatesForAutoMLJobInput) SetSortBy(v string) *ListCandidatesForAutoMLJobInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListCandidatesForAutoMLJobInput) SetSortOrder(v string) *ListCandidatesForAutoMLJobInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListCandidatesForAutoMLJobInput) SetStatusEquals(v string) *ListCandidatesForAutoMLJobInput { s.StatusEquals = &v return s } type ListCandidatesForAutoMLJobOutput struct { _ struct{} `type:"structure"` // Summaries about the Candidates. // // Candidates is a required field Candidates []*AutoMLCandidate `type:"list" required:"true"` // If the previous response was truncated, you receive this token. Use it in // your next request to receive the next set of results. NextToken *string `type:"string"` } // String returns the string representation func (s ListCandidatesForAutoMLJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListCandidatesForAutoMLJobOutput) GoString() string { return s.String() } // SetCandidates sets the Candidates field's value. func (s *ListCandidatesForAutoMLJobOutput) SetCandidates(v []*AutoMLCandidate) *ListCandidatesForAutoMLJobOutput { s.Candidates = v return s } // SetNextToken sets the NextToken field's value. func (s *ListCandidatesForAutoMLJobOutput) SetNextToken(v string) *ListCandidatesForAutoMLJobOutput { s.NextToken = &v return s } type ListCodeRepositoriesInput struct { _ struct{} `type:"structure"` // A filter that returns only Git repositories that were created after the specified // time. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only Git repositories that were created before the // specified time. CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only Git repositories that were last modified after // the specified time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only Git repositories that were last modified before // the specified time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of Git repositories to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the Git repositories name. This filter returns only repositories // whose name contains the specified string. NameContains *string `type:"string"` // If the result of a ListCodeRepositoriesOutput request was truncated, the // response includes a NextToken. To get the next set of Git repositories, use // the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is Name. SortBy *string `type:"string" enum:"CodeRepositorySortBy"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"CodeRepositorySortOrder"` } // String returns the string representation func (s ListCodeRepositoriesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListCodeRepositoriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListCodeRepositoriesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListCodeRepositoriesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListCodeRepositoriesInput) SetCreationTimeAfter(v time.Time) *ListCodeRepositoriesInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListCodeRepositoriesInput) SetCreationTimeBefore(v time.Time) *ListCodeRepositoriesInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListCodeRepositoriesInput) SetLastModifiedTimeAfter(v time.Time) *ListCodeRepositoriesInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListCodeRepositoriesInput) SetLastModifiedTimeBefore(v time.Time) *ListCodeRepositoriesInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListCodeRepositoriesInput) SetMaxResults(v int64) *ListCodeRepositoriesInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListCodeRepositoriesInput) SetNameContains(v string) *ListCodeRepositoriesInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListCodeRepositoriesInput) SetNextToken(v string) *ListCodeRepositoriesInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListCodeRepositoriesInput) SetSortBy(v string) *ListCodeRepositoriesInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListCodeRepositoriesInput) SetSortOrder(v string) *ListCodeRepositoriesInput { s.SortOrder = &v return s } type ListCodeRepositoriesOutput struct { _ struct{} `type:"structure"` // Gets a list of summaries of the Git repositories. Each summary specifies // the following values for the repository: // // * Name // // * Amazon Resource Name (ARN) // // * Creation time // // * Last modified time // // * Configuration information, including the URL location of the repository // and the ARN of the AWS Secrets Manager secret that contains the credentials // used to access the repository. // // CodeRepositorySummaryList is a required field CodeRepositorySummaryList []*CodeRepositorySummary `type:"list" required:"true"` // If the result of a ListCodeRepositoriesOutput request was truncated, the // response includes a NextToken. To get the next set of Git repositories, use // the token in the next request. NextToken *string `type:"string"` } // String returns the string representation func (s ListCodeRepositoriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListCodeRepositoriesOutput) GoString() string { return s.String() } // SetCodeRepositorySummaryList sets the CodeRepositorySummaryList field's value. func (s *ListCodeRepositoriesOutput) SetCodeRepositorySummaryList(v []*CodeRepositorySummary) *ListCodeRepositoriesOutput { s.CodeRepositorySummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListCodeRepositoriesOutput) SetNextToken(v string) *ListCodeRepositoriesOutput { s.NextToken = &v return s } type ListCompilationJobsInput struct { _ struct{} `type:"structure"` // A filter that returns the model compilation jobs that were created after // a specified time. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns the model compilation jobs that were created before // a specified time. CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns the model compilation jobs that were modified after // a specified time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns the model compilation jobs that were modified before // a specified time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of model compilation jobs to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A filter that returns the model compilation jobs whose name contains a specified // string. NameContains *string `type:"string"` // If the result of the previous ListCompilationJobs request was truncated, // the response includes a NextToken. To retrieve the next set of model compilation // jobs, use the token in the next request. NextToken *string `type:"string"` // The field by which to sort results. The default is CreationTime. SortBy *string `type:"string" enum:"ListCompilationJobsSortBy"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that retrieves model compilation jobs with a specific DescribeCompilationJobResponse$CompilationJobStatus // status. StatusEquals *string `type:"string" enum:"CompilationJobStatus"` } // String returns the string representation func (s ListCompilationJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListCompilationJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListCompilationJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListCompilationJobsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListCompilationJobsInput) SetCreationTimeAfter(v time.Time) *ListCompilationJobsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListCompilationJobsInput) SetCreationTimeBefore(v time.Time) *ListCompilationJobsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListCompilationJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListCompilationJobsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListCompilationJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListCompilationJobsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListCompilationJobsInput) SetMaxResults(v int64) *ListCompilationJobsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListCompilationJobsInput) SetNameContains(v string) *ListCompilationJobsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListCompilationJobsInput) SetNextToken(v string) *ListCompilationJobsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListCompilationJobsInput) SetSortBy(v string) *ListCompilationJobsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListCompilationJobsInput) SetSortOrder(v string) *ListCompilationJobsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListCompilationJobsInput) SetStatusEquals(v string) *ListCompilationJobsInput { s.StatusEquals = &v return s } type ListCompilationJobsOutput struct { _ struct{} `type:"structure"` // An array of CompilationJobSummary objects, each describing a model compilation // job. // // CompilationJobSummaries is a required field CompilationJobSummaries []*CompilationJobSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this NextToken. To // retrieve the next set of model compilation jobs, use this token in the next // request. NextToken *string `type:"string"` } // String returns the string representation func (s ListCompilationJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListCompilationJobsOutput) GoString() string { return s.String() } // SetCompilationJobSummaries sets the CompilationJobSummaries field's value. func (s *ListCompilationJobsOutput) SetCompilationJobSummaries(v []*CompilationJobSummary) *ListCompilationJobsOutput { s.CompilationJobSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListCompilationJobsOutput) SetNextToken(v string) *ListCompilationJobsOutput { s.NextToken = &v return s } type ListDomainsInput struct { _ struct{} `type:"structure"` // Returns a list up to a specified limit. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was truncated, you will receive this token. Use // it in your next request to receive the next set of results. NextToken *string `type:"string"` } // String returns the string representation func (s ListDomainsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDomainsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDomainsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDomainsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListDomainsInput) SetMaxResults(v int64) *ListDomainsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDomainsInput) SetNextToken(v string) *ListDomainsInput { s.NextToken = &v return s } type ListDomainsOutput struct { _ struct{} `type:"structure"` // The list of domains. Domains []*DomainDetails `type:"list"` // If the previous response was truncated, you will receive this token. Use // it in your next request to receive the next set of results. NextToken *string `type:"string"` } // String returns the string representation func (s ListDomainsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDomainsOutput) GoString() string { return s.String() } // SetDomains sets the Domains field's value. func (s *ListDomainsOutput) SetDomains(v []*DomainDetails) *ListDomainsOutput { s.Domains = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDomainsOutput) SetNextToken(v string) *ListDomainsOutput { s.NextToken = &v return s } type ListEndpointConfigsInput struct { _ struct{} `type:"structure"` // A filter that returns only endpoint configurations with a creation time greater // than or equal to the specified time (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only endpoint configurations created before the specified // time (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // The maximum number of training jobs to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the endpoint configuration name. This filter returns only endpoint // configurations whose name contains the specified string. NameContains *string `type:"string"` // If the result of the previous ListEndpointConfig request was truncated, the // response includes a NextToken. To retrieve the next set of endpoint configurations, // use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is CreationTime. SortBy *string `type:"string" enum:"EndpointConfigSortKey"` // The sort order for results. The default is Descending. SortOrder *string `type:"string" enum:"OrderKey"` } // String returns the string representation func (s ListEndpointConfigsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListEndpointConfigsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListEndpointConfigsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListEndpointConfigsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListEndpointConfigsInput) SetCreationTimeAfter(v time.Time) *ListEndpointConfigsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListEndpointConfigsInput) SetCreationTimeBefore(v time.Time) *ListEndpointConfigsInput { s.CreationTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListEndpointConfigsInput) SetMaxResults(v int64) *ListEndpointConfigsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListEndpointConfigsInput) SetNameContains(v string) *ListEndpointConfigsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListEndpointConfigsInput) SetNextToken(v string) *ListEndpointConfigsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListEndpointConfigsInput) SetSortBy(v string) *ListEndpointConfigsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListEndpointConfigsInput) SetSortOrder(v string) *ListEndpointConfigsInput { s.SortOrder = &v return s } type ListEndpointConfigsOutput struct { _ struct{} `type:"structure"` // An array of endpoint configurations. // // EndpointConfigs is a required field EndpointConfigs []*EndpointConfigSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of endpoint configurations, use it in the subsequent request NextToken *string `type:"string"` } // String returns the string representation func (s ListEndpointConfigsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListEndpointConfigsOutput) GoString() string { return s.String() } // SetEndpointConfigs sets the EndpointConfigs field's value. func (s *ListEndpointConfigsOutput) SetEndpointConfigs(v []*EndpointConfigSummary) *ListEndpointConfigsOutput { s.EndpointConfigs = v return s } // SetNextToken sets the NextToken field's value. func (s *ListEndpointConfigsOutput) SetNextToken(v string) *ListEndpointConfigsOutput { s.NextToken = &v return s } type ListEndpointsInput struct { _ struct{} `type:"structure"` // A filter that returns only endpoints with a creation time greater than or // equal to the specified time (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only endpoints that were created before the specified // time (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only endpoints that were modified after the specified // timestamp. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only endpoints that were modified before the specified // timestamp. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of endpoints to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in endpoint names. This filter returns only endpoints whose name // contains the specified string. NameContains *string `type:"string"` // If the result of a ListEndpoints request was truncated, the response includes // a NextToken. To retrieve the next set of endpoints, use the token in the // next request. NextToken *string `type:"string"` // Sorts the list of results. The default is CreationTime. SortBy *string `type:"string" enum:"EndpointSortKey"` // The sort order for results. The default is Descending. SortOrder *string `type:"string" enum:"OrderKey"` // A filter that returns only endpoints with the specified status. StatusEquals *string `type:"string" enum:"EndpointStatus"` } // String returns the string representation func (s ListEndpointsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListEndpointsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListEndpointsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListEndpointsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListEndpointsInput) SetCreationTimeAfter(v time.Time) *ListEndpointsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListEndpointsInput) SetCreationTimeBefore(v time.Time) *ListEndpointsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListEndpointsInput) SetLastModifiedTimeAfter(v time.Time) *ListEndpointsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListEndpointsInput) SetLastModifiedTimeBefore(v time.Time) *ListEndpointsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListEndpointsInput) SetMaxResults(v int64) *ListEndpointsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListEndpointsInput) SetNameContains(v string) *ListEndpointsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListEndpointsInput) SetNextToken(v string) *ListEndpointsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListEndpointsInput) SetSortBy(v string) *ListEndpointsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListEndpointsInput) SetSortOrder(v string) *ListEndpointsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListEndpointsInput) SetStatusEquals(v string) *ListEndpointsInput { s.StatusEquals = &v return s } type ListEndpointsOutput struct { _ struct{} `type:"structure"` // An array or endpoint objects. // // Endpoints is a required field Endpoints []*EndpointSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of training jobs, use it in the subsequent request. NextToken *string `type:"string"` } // String returns the string representation func (s ListEndpointsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListEndpointsOutput) GoString() string { return s.String() } // SetEndpoints sets the Endpoints field's value. func (s *ListEndpointsOutput) SetEndpoints(v []*EndpointSummary) *ListEndpointsOutput { s.Endpoints = v return s } // SetNextToken sets the NextToken field's value. func (s *ListEndpointsOutput) SetNextToken(v string) *ListEndpointsOutput { s.NextToken = &v return s } type ListExperimentsInput struct { _ struct{} `type:"structure"` // A filter that returns only experiments created after the specified time. CreatedAfter *time.Time `type:"timestamp"` // A filter that returns only experiments created before the specified time. CreatedBefore *time.Time `type:"timestamp"` // The maximum number of experiments to return in the response. The default // value is 10. MaxResults *int64 `min:"1" type:"integer"` // If the previous call to ListExperiments didn't return the full set of experiments, // the call returns a token for getting the next set of experiments. NextToken *string `type:"string"` // The property used to sort results. The default value is CreationTime. SortBy *string `type:"string" enum:"SortExperimentsBy"` // The sort order. The default value is Descending. SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListExperimentsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListExperimentsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListExperimentsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListExperimentsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreatedAfter sets the CreatedAfter field's value. func (s *ListExperimentsInput) SetCreatedAfter(v time.Time) *ListExperimentsInput { s.CreatedAfter = &v return s } // SetCreatedBefore sets the CreatedBefore field's value. func (s *ListExperimentsInput) SetCreatedBefore(v time.Time) *ListExperimentsInput { s.CreatedBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListExperimentsInput) SetMaxResults(v int64) *ListExperimentsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListExperimentsInput) SetNextToken(v string) *ListExperimentsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListExperimentsInput) SetSortBy(v string) *ListExperimentsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListExperimentsInput) SetSortOrder(v string) *ListExperimentsInput { s.SortOrder = &v return s } type ListExperimentsOutput struct { _ struct{} `type:"structure"` // A list of the summaries of your experiments. ExperimentSummaries []*ExperimentSummary `type:"list"` // A token for getting the next set of experiments, if there are any. NextToken *string `type:"string"` } // String returns the string representation func (s ListExperimentsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListExperimentsOutput) GoString() string { return s.String() } // SetExperimentSummaries sets the ExperimentSummaries field's value. func (s *ListExperimentsOutput) SetExperimentSummaries(v []*ExperimentSummary) *ListExperimentsOutput { s.ExperimentSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListExperimentsOutput) SetNextToken(v string) *ListExperimentsOutput { s.NextToken = &v return s } type ListFlowDefinitionsInput struct { _ struct{} `type:"structure"` // A filter that returns only flow definitions with a creation time greater // than or equal to the specified timestamp. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only flow definitions that were created before the // specified timestamp. CreationTimeBefore *time.Time `type:"timestamp"` // The total number of items to return. If the total number of available items // is more than the value specified in MaxResults, then a NextToken will be // provided in the output that you can use to resume pagination. MaxResults *int64 `min:"1" type:"integer"` // A token to resume pagination. NextToken *string `type:"string"` // An optional value that specifies whether you want the results sorted in Ascending // or Descending order. SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListFlowDefinitionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListFlowDefinitionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListFlowDefinitionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListFlowDefinitionsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListFlowDefinitionsInput) SetCreationTimeAfter(v time.Time) *ListFlowDefinitionsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListFlowDefinitionsInput) SetCreationTimeBefore(v time.Time) *ListFlowDefinitionsInput { s.CreationTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListFlowDefinitionsInput) SetMaxResults(v int64) *ListFlowDefinitionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListFlowDefinitionsInput) SetNextToken(v string) *ListFlowDefinitionsInput { s.NextToken = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListFlowDefinitionsInput) SetSortOrder(v string) *ListFlowDefinitionsInput { s.SortOrder = &v return s } type ListFlowDefinitionsOutput struct { _ struct{} `type:"structure"` // An array of objects describing the flow definitions. // // FlowDefinitionSummaries is a required field FlowDefinitionSummaries []*FlowDefinitionSummary `type:"list" required:"true"` // A token to resume pagination. NextToken *string `type:"string"` } // String returns the string representation func (s ListFlowDefinitionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListFlowDefinitionsOutput) GoString() string { return s.String() } // SetFlowDefinitionSummaries sets the FlowDefinitionSummaries field's value. func (s *ListFlowDefinitionsOutput) SetFlowDefinitionSummaries(v []*FlowDefinitionSummary) *ListFlowDefinitionsOutput { s.FlowDefinitionSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListFlowDefinitionsOutput) SetNextToken(v string) *ListFlowDefinitionsOutput { s.NextToken = &v return s } type ListHumanTaskUisInput struct { _ struct{} `type:"structure"` // A filter that returns only human task user interfaces with a creation time // greater than or equal to the specified timestamp. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only human task user interfaces that were created before // the specified timestamp. CreationTimeBefore *time.Time `type:"timestamp"` // The total number of items to return. If the total number of available items // is more than the value specified in MaxResults, then a NextToken will be // provided in the output that you can use to resume pagination. MaxResults *int64 `min:"1" type:"integer"` // A token to resume pagination. NextToken *string `type:"string"` // An optional value that specifies whether you want the results sorted in Ascending // or Descending order. SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListHumanTaskUisInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListHumanTaskUisInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListHumanTaskUisInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListHumanTaskUisInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListHumanTaskUisInput) SetCreationTimeAfter(v time.Time) *ListHumanTaskUisInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListHumanTaskUisInput) SetCreationTimeBefore(v time.Time) *ListHumanTaskUisInput { s.CreationTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListHumanTaskUisInput) SetMaxResults(v int64) *ListHumanTaskUisInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListHumanTaskUisInput) SetNextToken(v string) *ListHumanTaskUisInput { s.NextToken = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListHumanTaskUisInput) SetSortOrder(v string) *ListHumanTaskUisInput { s.SortOrder = &v return s } type ListHumanTaskUisOutput struct { _ struct{} `type:"structure"` // An array of objects describing the human task user interfaces. // // HumanTaskUiSummaries is a required field HumanTaskUiSummaries []*HumanTaskUiSummary `type:"list" required:"true"` // A token to resume pagination. NextToken *string `type:"string"` } // String returns the string representation func (s ListHumanTaskUisOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListHumanTaskUisOutput) GoString() string { return s.String() } // SetHumanTaskUiSummaries sets the HumanTaskUiSummaries field's value. func (s *ListHumanTaskUisOutput) SetHumanTaskUiSummaries(v []*HumanTaskUiSummary) *ListHumanTaskUisOutput { s.HumanTaskUiSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListHumanTaskUisOutput) SetNextToken(v string) *ListHumanTaskUisOutput { s.NextToken = &v return s } type ListHyperParameterTuningJobsInput struct { _ struct{} `type:"structure"` // A filter that returns only tuning jobs that were created after the specified // time. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only tuning jobs that were created before the specified // time. CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only tuning jobs that were modified after the specified // time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only tuning jobs that were modified before the specified // time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of tuning jobs to return. The default value is 10. MaxResults *int64 `min:"1" type:"integer"` // A string in the tuning job name. This filter returns only tuning jobs whose // name contains the specified string. NameContains *string `type:"string"` // If the result of the previous ListHyperParameterTuningJobs request was truncated, // the response includes a NextToken. To retrieve the next set of tuning jobs, // use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is Name. SortBy *string `type:"string" enum:"HyperParameterTuningJobSortByOptions"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that returns only tuning jobs with the specified status. StatusEquals *string `type:"string" enum:"HyperParameterTuningJobStatus"` } // String returns the string representation func (s ListHyperParameterTuningJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListHyperParameterTuningJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListHyperParameterTuningJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListHyperParameterTuningJobsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListHyperParameterTuningJobsInput) SetCreationTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListHyperParameterTuningJobsInput) SetCreationTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListHyperParameterTuningJobsInput) SetMaxResults(v int64) *ListHyperParameterTuningJobsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListHyperParameterTuningJobsInput) SetNameContains(v string) *ListHyperParameterTuningJobsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListHyperParameterTuningJobsInput) SetNextToken(v string) *ListHyperParameterTuningJobsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListHyperParameterTuningJobsInput) SetSortBy(v string) *ListHyperParameterTuningJobsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListHyperParameterTuningJobsInput) SetSortOrder(v string) *ListHyperParameterTuningJobsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListHyperParameterTuningJobsInput) SetStatusEquals(v string) *ListHyperParameterTuningJobsInput { s.StatusEquals = &v return s } type ListHyperParameterTuningJobsOutput struct { _ struct{} `type:"structure"` // A list of HyperParameterTuningJobSummary objects that describe the tuning // jobs that the ListHyperParameterTuningJobs request returned. // // HyperParameterTuningJobSummaries is a required field HyperParameterTuningJobSummaries []*HyperParameterTuningJobSummary `type:"list" required:"true"` // If the result of this ListHyperParameterTuningJobs request was truncated, // the response includes a NextToken. To retrieve the next set of tuning jobs, // use the token in the next request. NextToken *string `type:"string"` } // String returns the string representation func (s ListHyperParameterTuningJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListHyperParameterTuningJobsOutput) GoString() string { return s.String() } // SetHyperParameterTuningJobSummaries sets the HyperParameterTuningJobSummaries field's value. func (s *ListHyperParameterTuningJobsOutput) SetHyperParameterTuningJobSummaries(v []*HyperParameterTuningJobSummary) *ListHyperParameterTuningJobsOutput { s.HyperParameterTuningJobSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListHyperParameterTuningJobsOutput) SetNextToken(v string) *ListHyperParameterTuningJobsOutput { s.NextToken = &v return s } type ListLabelingJobsForWorkteamInput struct { _ struct{} `type:"structure"` // A filter that returns only labeling jobs created after the specified time // (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only labeling jobs created before the specified time // (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // A filter the limits jobs to only the ones whose job reference code contains // the specified string. JobReferenceCodeContains *string `min:"1" type:"string"` // The maximum number of labeling jobs to return in each page of the response. MaxResults *int64 `min:"1" type:"integer"` // If the result of the previous ListLabelingJobsForWorkteam request was truncated, // the response includes a NextToken. To retrieve the next set of labeling jobs, // use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is CreationTime. SortBy *string `type:"string" enum:"ListLabelingJobsForWorkteamSortByOptions"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // The Amazon Resource Name (ARN) of the work team for which you want to see // labeling jobs for. // // WorkteamArn is a required field WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation func (s ListLabelingJobsForWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListLabelingJobsForWorkteamInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListLabelingJobsForWorkteamInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsForWorkteamInput"} if s.JobReferenceCodeContains != nil && len(*s.JobReferenceCodeContains) < 1 { invalidParams.Add(request.NewErrParamMinLen("JobReferenceCodeContains", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.WorkteamArn == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsForWorkteamInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsForWorkteamInput { s.CreationTimeBefore = &v return s } // SetJobReferenceCodeContains sets the JobReferenceCodeContains field's value. func (s *ListLabelingJobsForWorkteamInput) SetJobReferenceCodeContains(v string) *ListLabelingJobsForWorkteamInput { s.JobReferenceCodeContains = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListLabelingJobsForWorkteamInput) SetMaxResults(v int64) *ListLabelingJobsForWorkteamInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListLabelingJobsForWorkteamInput) SetNextToken(v string) *ListLabelingJobsForWorkteamInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListLabelingJobsForWorkteamInput) SetSortBy(v string) *ListLabelingJobsForWorkteamInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListLabelingJobsForWorkteamInput) SetSortOrder(v string) *ListLabelingJobsForWorkteamInput { s.SortOrder = &v return s } // SetWorkteamArn sets the WorkteamArn field's value. func (s *ListLabelingJobsForWorkteamInput) SetWorkteamArn(v string) *ListLabelingJobsForWorkteamInput { s.WorkteamArn = &v return s } type ListLabelingJobsForWorkteamOutput struct { _ struct{} `type:"structure"` // An array of LabelingJobSummary objects, each describing a labeling job. // // LabelingJobSummaryList is a required field LabelingJobSummaryList []*LabelingJobForWorkteamSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of labeling jobs, use it in the subsequent request. NextToken *string `type:"string"` } // String returns the string representation func (s ListLabelingJobsForWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListLabelingJobsForWorkteamOutput) GoString() string { return s.String() } // SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value. func (s *ListLabelingJobsForWorkteamOutput) SetLabelingJobSummaryList(v []*LabelingJobForWorkteamSummary) *ListLabelingJobsForWorkteamOutput { s.LabelingJobSummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListLabelingJobsForWorkteamOutput) SetNextToken(v string) *ListLabelingJobsForWorkteamOutput { s.NextToken = &v return s } type ListLabelingJobsInput struct { _ struct{} `type:"structure"` // A filter that returns only labeling jobs created after the specified time // (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only labeling jobs created before the specified time // (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only labeling jobs modified after the specified time // (timestamp). LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only labeling jobs modified before the specified time // (timestamp). LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of labeling jobs to return in each page of the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the labeling job name. This filter returns only labeling jobs // whose name contains the specified string. NameContains *string `type:"string"` // If the result of the previous ListLabelingJobs request was truncated, the // response includes a NextToken. To retrieve the next set of labeling jobs, // use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is CreationTime. SortBy *string `type:"string" enum:"SortBy"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that retrieves only labeling jobs with a specific status. StatusEquals *string `type:"string" enum:"LabelingJobStatus"` } // String returns the string representation func (s ListLabelingJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListLabelingJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListLabelingJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListLabelingJobsInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListLabelingJobsInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListLabelingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListLabelingJobsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListLabelingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListLabelingJobsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListLabelingJobsInput) SetMaxResults(v int64) *ListLabelingJobsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListLabelingJobsInput) SetNameContains(v string) *ListLabelingJobsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListLabelingJobsInput) SetNextToken(v string) *ListLabelingJobsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListLabelingJobsInput) SetSortBy(v string) *ListLabelingJobsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListLabelingJobsInput) SetSortOrder(v string) *ListLabelingJobsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListLabelingJobsInput) SetStatusEquals(v string) *ListLabelingJobsInput { s.StatusEquals = &v return s } type ListLabelingJobsOutput struct { _ struct{} `type:"structure"` // An array of LabelingJobSummary objects, each describing a labeling job. LabelingJobSummaryList []*LabelingJobSummary `type:"list"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of labeling jobs, use it in the subsequent request. NextToken *string `type:"string"` } // String returns the string representation func (s ListLabelingJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListLabelingJobsOutput) GoString() string { return s.String() } // SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value. func (s *ListLabelingJobsOutput) SetLabelingJobSummaryList(v []*LabelingJobSummary) *ListLabelingJobsOutput { s.LabelingJobSummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListLabelingJobsOutput) SetNextToken(v string) *ListLabelingJobsOutput { s.NextToken = &v return s } type ListModelPackagesInput struct { _ struct{} `type:"structure"` // A filter that returns only model packages created after the specified time // (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only model packages created before the specified time // (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // The maximum number of model packages to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the model package name. This filter returns only model packages // whose name contains the specified string. NameContains *string `type:"string"` // If the response to a previous ListModelPackages request was truncated, the // response includes a NextToken. To retrieve the next set of model packages, // use the token in the next request. NextToken *string `type:"string"` // The parameter by which to sort the results. The default is CreationTime. SortBy *string `type:"string" enum:"ModelPackageSortBy"` // The sort order for the results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListModelPackagesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListModelPackagesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListModelPackagesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListModelPackagesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListModelPackagesInput) SetCreationTimeAfter(v time.Time) *ListModelPackagesInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListModelPackagesInput) SetCreationTimeBefore(v time.Time) *ListModelPackagesInput { s.CreationTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListModelPackagesInput) SetMaxResults(v int64) *ListModelPackagesInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListModelPackagesInput) SetNameContains(v string) *ListModelPackagesInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListModelPackagesInput) SetNextToken(v string) *ListModelPackagesInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListModelPackagesInput) SetSortBy(v string) *ListModelPackagesInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListModelPackagesInput) SetSortOrder(v string) *ListModelPackagesInput { s.SortOrder = &v return s } type ListModelPackagesOutput struct { _ struct{} `type:"structure"` // An array of ModelPackageSummary objects, each of which lists a model package. // // ModelPackageSummaryList is a required field ModelPackageSummaryList []*ModelPackageSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of model packages, use it in the subsequent request. NextToken *string `type:"string"` } // String returns the string representation func (s ListModelPackagesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListModelPackagesOutput) GoString() string { return s.String() } // SetModelPackageSummaryList sets the ModelPackageSummaryList field's value. func (s *ListModelPackagesOutput) SetModelPackageSummaryList(v []*ModelPackageSummary) *ListModelPackagesOutput { s.ModelPackageSummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListModelPackagesOutput) SetNextToken(v string) *ListModelPackagesOutput { s.NextToken = &v return s } type ListModelsInput struct { _ struct{} `type:"structure"` // A filter that returns only models with a creation time greater than or equal // to the specified time (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only models created before the specified time (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // The maximum number of models to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the training job name. This filter returns only models in the // training job whose name contains the specified string. NameContains *string `type:"string"` // If the response to a previous ListModels request was truncated, the response // includes a NextToken. To retrieve the next set of models, use the token in // the next request. NextToken *string `type:"string"` // Sorts the list of results. The default is CreationTime. SortBy *string `type:"string" enum:"ModelSortKey"` // The sort order for results. The default is Descending. SortOrder *string `type:"string" enum:"OrderKey"` } // String returns the string representation func (s ListModelsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListModelsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListModelsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListModelsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListModelsInput) SetCreationTimeAfter(v time.Time) *ListModelsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListModelsInput) SetCreationTimeBefore(v time.Time) *ListModelsInput { s.CreationTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListModelsInput) SetMaxResults(v int64) *ListModelsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListModelsInput) SetNameContains(v string) *ListModelsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListModelsInput) SetNextToken(v string) *ListModelsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListModelsInput) SetSortBy(v string) *ListModelsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListModelsInput) SetSortOrder(v string) *ListModelsInput { s.SortOrder = &v return s } type ListModelsOutput struct { _ struct{} `type:"structure"` // An array of ModelSummary objects, each of which lists a model. // // Models is a required field Models []*ModelSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of models, use it in the subsequent request. NextToken *string `type:"string"` } // String returns the string representation func (s ListModelsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListModelsOutput) GoString() string { return s.String() } // SetModels sets the Models field's value. func (s *ListModelsOutput) SetModels(v []*ModelSummary) *ListModelsOutput { s.Models = v return s } // SetNextToken sets the NextToken field's value. func (s *ListModelsOutput) SetNextToken(v string) *ListModelsOutput { s.NextToken = &v return s } type ListMonitoringExecutionsInput struct { _ struct{} `type:"structure"` // A filter that returns only jobs created after a specified time. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only jobs created before a specified time. CreationTimeBefore *time.Time `type:"timestamp"` // Name of a specific endpoint to fetch jobs for. EndpointName *string `type:"string"` // A filter that returns only jobs modified before a specified time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only jobs modified after a specified time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of jobs to return in the response. The default value is // 10. MaxResults *int64 `min:"1" type:"integer"` // Name of a specific schedule to fetch jobs for. MonitoringScheduleName *string `min:"1" type:"string"` // The token returned if the response is truncated. To retrieve the next set // of job executions, use it in the next request. NextToken *string `type:"string"` // Filter for jobs scheduled after a specified time. ScheduledTimeAfter *time.Time `type:"timestamp"` // Filter for jobs scheduled before a specified time. ScheduledTimeBefore *time.Time `type:"timestamp"` // Whether to sort results by Status, CreationTime, ScheduledTime field. The // default is CreationTime. SortBy *string `type:"string" enum:"MonitoringExecutionSortKey"` // Whether to sort the results in Ascending or Descending order. The default // is Descending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that retrieves only jobs with a specific status. StatusEquals *string `type:"string" enum:"ExecutionStatus"` } // String returns the string representation func (s ListMonitoringExecutionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListMonitoringExecutionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListMonitoringExecutionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListMonitoringExecutionsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.MonitoringScheduleName != nil && len(*s.MonitoringScheduleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringScheduleName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListMonitoringExecutionsInput) SetCreationTimeAfter(v time.Time) *ListMonitoringExecutionsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListMonitoringExecutionsInput) SetCreationTimeBefore(v time.Time) *ListMonitoringExecutionsInput { s.CreationTimeBefore = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *ListMonitoringExecutionsInput) SetEndpointName(v string) *ListMonitoringExecutionsInput { s.EndpointName = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListMonitoringExecutionsInput) SetLastModifiedTimeAfter(v time.Time) *ListMonitoringExecutionsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListMonitoringExecutionsInput) SetLastModifiedTimeBefore(v time.Time) *ListMonitoringExecutionsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListMonitoringExecutionsInput) SetMaxResults(v int64) *ListMonitoringExecutionsInput { s.MaxResults = &v return s } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *ListMonitoringExecutionsInput) SetMonitoringScheduleName(v string) *ListMonitoringExecutionsInput { s.MonitoringScheduleName = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListMonitoringExecutionsInput) SetNextToken(v string) *ListMonitoringExecutionsInput { s.NextToken = &v return s } // SetScheduledTimeAfter sets the ScheduledTimeAfter field's value. func (s *ListMonitoringExecutionsInput) SetScheduledTimeAfter(v time.Time) *ListMonitoringExecutionsInput { s.ScheduledTimeAfter = &v return s } // SetScheduledTimeBefore sets the ScheduledTimeBefore field's value. func (s *ListMonitoringExecutionsInput) SetScheduledTimeBefore(v time.Time) *ListMonitoringExecutionsInput { s.ScheduledTimeBefore = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListMonitoringExecutionsInput) SetSortBy(v string) *ListMonitoringExecutionsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListMonitoringExecutionsInput) SetSortOrder(v string) *ListMonitoringExecutionsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListMonitoringExecutionsInput) SetStatusEquals(v string) *ListMonitoringExecutionsInput { s.StatusEquals = &v return s } type ListMonitoringExecutionsOutput struct { _ struct{} `type:"structure"` // A JSON array in which each element is a summary for a monitoring execution. // // MonitoringExecutionSummaries is a required field MonitoringExecutionSummaries []*MonitoringExecutionSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of jobs, use it in the subsequent reques NextToken *string `type:"string"` } // String returns the string representation func (s ListMonitoringExecutionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListMonitoringExecutionsOutput) GoString() string { return s.String() } // SetMonitoringExecutionSummaries sets the MonitoringExecutionSummaries field's value. func (s *ListMonitoringExecutionsOutput) SetMonitoringExecutionSummaries(v []*MonitoringExecutionSummary) *ListMonitoringExecutionsOutput { s.MonitoringExecutionSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListMonitoringExecutionsOutput) SetNextToken(v string) *ListMonitoringExecutionsOutput { s.NextToken = &v return s } type ListMonitoringSchedulesInput struct { _ struct{} `type:"structure"` // A filter that returns only monitoring schedules created after a specified // time. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only monitoring schedules created before a specified // time. CreationTimeBefore *time.Time `type:"timestamp"` // Name of a specific endpoint to fetch schedules for. EndpointName *string `type:"string"` // A filter that returns only monitoring schedules modified after a specified // time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only monitoring schedules modified before a specified // time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of jobs to return in the response. The default value is // 10. MaxResults *int64 `min:"1" type:"integer"` // Filter for monitoring schedules whose name contains a specified string. NameContains *string `type:"string"` // The token returned if the response is truncated. To retrieve the next set // of job executions, use it in the next request. NextToken *string `type:"string"` // Whether to sort results by Status, CreationTime, ScheduledTime field. The // default is CreationTime. SortBy *string `type:"string" enum:"MonitoringScheduleSortKey"` // Whether to sort the results in Ascending or Descending order. The default // is Descending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that returns only monitoring schedules modified before a specified // time. StatusEquals *string `type:"string" enum:"ScheduleStatus"` } // String returns the string representation func (s ListMonitoringSchedulesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListMonitoringSchedulesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListMonitoringSchedulesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListMonitoringSchedulesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListMonitoringSchedulesInput) SetCreationTimeAfter(v time.Time) *ListMonitoringSchedulesInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListMonitoringSchedulesInput) SetCreationTimeBefore(v time.Time) *ListMonitoringSchedulesInput { s.CreationTimeBefore = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *ListMonitoringSchedulesInput) SetEndpointName(v string) *ListMonitoringSchedulesInput { s.EndpointName = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListMonitoringSchedulesInput) SetLastModifiedTimeAfter(v time.Time) *ListMonitoringSchedulesInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListMonitoringSchedulesInput) SetLastModifiedTimeBefore(v time.Time) *ListMonitoringSchedulesInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListMonitoringSchedulesInput) SetMaxResults(v int64) *ListMonitoringSchedulesInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListMonitoringSchedulesInput) SetNameContains(v string) *ListMonitoringSchedulesInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListMonitoringSchedulesInput) SetNextToken(v string) *ListMonitoringSchedulesInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListMonitoringSchedulesInput) SetSortBy(v string) *ListMonitoringSchedulesInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListMonitoringSchedulesInput) SetSortOrder(v string) *ListMonitoringSchedulesInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListMonitoringSchedulesInput) SetStatusEquals(v string) *ListMonitoringSchedulesInput { s.StatusEquals = &v return s } type ListMonitoringSchedulesOutput struct { _ struct{} `type:"structure"` // A JSON array in which each element is a summary for a monitoring schedule. // // MonitoringScheduleSummaries is a required field MonitoringScheduleSummaries []*MonitoringScheduleSummary `type:"list" required:"true"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of jobs, use it in the subsequent reques NextToken *string `type:"string"` } // String returns the string representation func (s ListMonitoringSchedulesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListMonitoringSchedulesOutput) GoString() string { return s.String() } // SetMonitoringScheduleSummaries sets the MonitoringScheduleSummaries field's value. func (s *ListMonitoringSchedulesOutput) SetMonitoringScheduleSummaries(v []*MonitoringScheduleSummary) *ListMonitoringSchedulesOutput { s.MonitoringScheduleSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListMonitoringSchedulesOutput) SetNextToken(v string) *ListMonitoringSchedulesOutput { s.NextToken = &v return s } type ListNotebookInstanceLifecycleConfigsInput struct { _ struct{} `type:"structure"` // A filter that returns only lifecycle configurations that were created after // the specified time (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only lifecycle configurations that were created before // the specified time (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only lifecycle configurations that were modified after // the specified time (timestamp). LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only lifecycle configurations that were modified before // the specified time (timestamp). LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of lifecycle configurations to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the lifecycle configuration name. This filter returns only lifecycle // configurations whose name contains the specified string. NameContains *string `type:"string"` // If the result of a ListNotebookInstanceLifecycleConfigs request was truncated, // the response includes a NextToken. To get the next set of lifecycle configurations, // use the token in the next request. NextToken *string `type:"string"` // Sorts the list of results. The default is CreationTime. SortBy *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortKey"` // The sort order for results. SortOrder *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortOrder"` } // String returns the string representation func (s ListNotebookInstanceLifecycleConfigsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNotebookInstanceLifecycleConfigsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListNotebookInstanceLifecycleConfigsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstanceLifecycleConfigsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetMaxResults(v int64) *ListNotebookInstanceLifecycleConfigsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetNameContains(v string) *ListNotebookInstanceLifecycleConfigsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortBy(v string) *ListNotebookInstanceLifecycleConfigsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortOrder(v string) *ListNotebookInstanceLifecycleConfigsInput { s.SortOrder = &v return s } type ListNotebookInstanceLifecycleConfigsOutput struct { _ struct{} `type:"structure"` // If the response is truncated, Amazon SageMaker returns this token. To get // the next set of lifecycle configurations, use it in the next request. NextToken *string `type:"string"` // An array of NotebookInstanceLifecycleConfiguration objects, each listing // a lifecycle configuration. NotebookInstanceLifecycleConfigs []*NotebookInstanceLifecycleConfigSummary `type:"list"` } // String returns the string representation func (s ListNotebookInstanceLifecycleConfigsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNotebookInstanceLifecycleConfigsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsOutput { s.NextToken = &v return s } // SetNotebookInstanceLifecycleConfigs sets the NotebookInstanceLifecycleConfigs field's value. func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNotebookInstanceLifecycleConfigs(v []*NotebookInstanceLifecycleConfigSummary) *ListNotebookInstanceLifecycleConfigsOutput { s.NotebookInstanceLifecycleConfigs = v return s } type ListNotebookInstancesInput struct { _ struct{} `type:"structure"` // A filter that returns only notebook instances with associated with the specified // git repository. AdditionalCodeRepositoryEquals *string `min:"1" type:"string"` // A filter that returns only notebook instances that were created after the // specified time (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only notebook instances that were created before the // specified time (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // A string in the name or URL of a Git repository associated with this notebook // instance. This filter returns only notebook instances associated with a git // repository with a name that contains the specified string. DefaultCodeRepositoryContains *string `type:"string"` // A filter that returns only notebook instances that were modified after the // specified time (timestamp). LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only notebook instances that were modified before the // specified time (timestamp). LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of notebook instances to return. MaxResults *int64 `min:"1" type:"integer"` // A string in the notebook instances' name. This filter returns only notebook // instances whose name contains the specified string. NameContains *string `type:"string"` // If the previous call to the ListNotebookInstances is truncated, the response // includes a NextToken. You can use this token in your subsequent ListNotebookInstances // request to fetch the next set of notebook instances. // // You might specify a filter or a sort order in your request. When response // is truncated, you must use the same values for the filer and sort order in // the next request. NextToken *string `type:"string"` // A string in the name of a notebook instances lifecycle configuration associated // with this notebook instance. This filter returns only notebook instances // associated with a lifecycle configuration with a name that contains the specified // string. NotebookInstanceLifecycleConfigNameContains *string `type:"string"` // The field to sort results by. The default is Name. SortBy *string `type:"string" enum:"NotebookInstanceSortKey"` // The sort order for results. SortOrder *string `type:"string" enum:"NotebookInstanceSortOrder"` // A filter that returns only notebook instances with the specified status. StatusEquals *string `type:"string" enum:"NotebookInstanceStatus"` } // String returns the string representation func (s ListNotebookInstancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNotebookInstancesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListNotebookInstancesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstancesInput"} if s.AdditionalCodeRepositoryEquals != nil && len(*s.AdditionalCodeRepositoryEquals) < 1 { invalidParams.Add(request.NewErrParamMinLen("AdditionalCodeRepositoryEquals", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAdditionalCodeRepositoryEquals sets the AdditionalCodeRepositoryEquals field's value. func (s *ListNotebookInstancesInput) SetAdditionalCodeRepositoryEquals(v string) *ListNotebookInstancesInput { s.AdditionalCodeRepositoryEquals = &v return s } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListNotebookInstancesInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstancesInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListNotebookInstancesInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstancesInput { s.CreationTimeBefore = &v return s } // SetDefaultCodeRepositoryContains sets the DefaultCodeRepositoryContains field's value. func (s *ListNotebookInstancesInput) SetDefaultCodeRepositoryContains(v string) *ListNotebookInstancesInput { s.DefaultCodeRepositoryContains = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListNotebookInstancesInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstancesInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListNotebookInstancesInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstancesInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListNotebookInstancesInput) SetMaxResults(v int64) *ListNotebookInstancesInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListNotebookInstancesInput) SetNameContains(v string) *ListNotebookInstancesInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListNotebookInstancesInput) SetNextToken(v string) *ListNotebookInstancesInput { s.NextToken = &v return s } // SetNotebookInstanceLifecycleConfigNameContains sets the NotebookInstanceLifecycleConfigNameContains field's value. func (s *ListNotebookInstancesInput) SetNotebookInstanceLifecycleConfigNameContains(v string) *ListNotebookInstancesInput { s.NotebookInstanceLifecycleConfigNameContains = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListNotebookInstancesInput) SetSortBy(v string) *ListNotebookInstancesInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListNotebookInstancesInput) SetSortOrder(v string) *ListNotebookInstancesInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListNotebookInstancesInput) SetStatusEquals(v string) *ListNotebookInstancesInput { s.StatusEquals = &v return s } type ListNotebookInstancesOutput struct { _ struct{} `type:"structure"` // If the response to the previous ListNotebookInstances request was truncated, // Amazon SageMaker returns this token. To retrieve the next set of notebook // instances, use the token in the next request. NextToken *string `type:"string"` // An array of NotebookInstanceSummary objects, one for each notebook instance. NotebookInstances []*NotebookInstanceSummary `type:"list"` } // String returns the string representation func (s ListNotebookInstancesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNotebookInstancesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListNotebookInstancesOutput) SetNextToken(v string) *ListNotebookInstancesOutput { s.NextToken = &v return s } // SetNotebookInstances sets the NotebookInstances field's value. func (s *ListNotebookInstancesOutput) SetNotebookInstances(v []*NotebookInstanceSummary) *ListNotebookInstancesOutput { s.NotebookInstances = v return s } type ListProcessingJobsInput struct { _ struct{} `type:"structure"` // A filter that returns only processing jobs created after the specified time. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only processing jobs created after the specified time. CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only processing jobs modified after the specified time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only processing jobs modified before the specified // time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of processing jobs to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the processing job name. This filter returns only processing // jobs whose name contains the specified string. NameContains *string `type:"string"` // If the result of the previous ListProcessingJobs request was truncated, the // response includes a NextToken. To retrieve the next set of processing jobs, // use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is CreationTime. SortBy *string `type:"string" enum:"SortBy"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that retrieves only processing jobs with a specific status. StatusEquals *string `type:"string" enum:"ProcessingJobStatus"` } // String returns the string representation func (s ListProcessingJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListProcessingJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListProcessingJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListProcessingJobsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListProcessingJobsInput) SetCreationTimeAfter(v time.Time) *ListProcessingJobsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListProcessingJobsInput) SetCreationTimeBefore(v time.Time) *ListProcessingJobsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListProcessingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListProcessingJobsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListProcessingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListProcessingJobsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListProcessingJobsInput) SetMaxResults(v int64) *ListProcessingJobsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListProcessingJobsInput) SetNameContains(v string) *ListProcessingJobsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListProcessingJobsInput) SetNextToken(v string) *ListProcessingJobsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListProcessingJobsInput) SetSortBy(v string) *ListProcessingJobsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListProcessingJobsInput) SetSortOrder(v string) *ListProcessingJobsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListProcessingJobsInput) SetStatusEquals(v string) *ListProcessingJobsInput { s.StatusEquals = &v return s } type ListProcessingJobsOutput struct { _ struct{} `type:"structure"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of processing jobs, use it in the subsequent request. NextToken *string `type:"string"` // An array of ProcessingJobSummary objects, each listing a processing job. // // ProcessingJobSummaries is a required field ProcessingJobSummaries []*ProcessingJobSummary `type:"list" required:"true"` } // String returns the string representation func (s ListProcessingJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListProcessingJobsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListProcessingJobsOutput) SetNextToken(v string) *ListProcessingJobsOutput { s.NextToken = &v return s } // SetProcessingJobSummaries sets the ProcessingJobSummaries field's value. func (s *ListProcessingJobsOutput) SetProcessingJobSummaries(v []*ProcessingJobSummary) *ListProcessingJobsOutput { s.ProcessingJobSummaries = v return s } type ListSubscribedWorkteamsInput struct { _ struct{} `type:"structure"` // The maximum number of work teams to return in each page of the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the work team name. This filter returns only work teams whose // name contains the specified string. NameContains *string `min:"1" type:"string"` // If the result of the previous ListSubscribedWorkteams request was truncated, // the response includes a NextToken. To retrieve the next set of labeling jobs, // use the token in the next request. NextToken *string `type:"string"` } // String returns the string representation func (s ListSubscribedWorkteamsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListSubscribedWorkteamsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListSubscribedWorkteamsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListSubscribedWorkteamsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NameContains != nil && len(*s.NameContains) < 1 { invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListSubscribedWorkteamsInput) SetMaxResults(v int64) *ListSubscribedWorkteamsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListSubscribedWorkteamsInput) SetNameContains(v string) *ListSubscribedWorkteamsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListSubscribedWorkteamsInput) SetNextToken(v string) *ListSubscribedWorkteamsInput { s.NextToken = &v return s } type ListSubscribedWorkteamsOutput struct { _ struct{} `type:"structure"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of work teams, use it in the subsequent request. NextToken *string `type:"string"` // An array of Workteam objects, each describing a work team. // // SubscribedWorkteams is a required field SubscribedWorkteams []*SubscribedWorkteam `type:"list" required:"true"` } // String returns the string representation func (s ListSubscribedWorkteamsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListSubscribedWorkteamsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListSubscribedWorkteamsOutput) SetNextToken(v string) *ListSubscribedWorkteamsOutput { s.NextToken = &v return s } // SetSubscribedWorkteams sets the SubscribedWorkteams field's value. func (s *ListSubscribedWorkteamsOutput) SetSubscribedWorkteams(v []*SubscribedWorkteam) *ListSubscribedWorkteamsOutput { s.SubscribedWorkteams = v return s } type ListTagsInput struct { _ struct{} `type:"structure"` // Maximum number of tags to return. MaxResults *int64 `min:"50" type:"integer"` // If the response to the previous ListTags request is truncated, Amazon SageMaker // returns this token. To retrieve the next set of tags, use it in the subsequent // request. NextToken *string `type:"string"` // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. // // ResourceArn is a required field ResourceArn *string `type:"string" required:"true"` } // String returns the string representation func (s ListTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} if s.MaxResults != nil && *s.MaxResults < 50 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) } if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { s.NextToken = &v return s } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsInput) SetResourceArn(v string) *ListTagsInput { s.ResourceArn = &v return s } type ListTagsOutput struct { _ struct{} `type:"structure"` // If response is truncated, Amazon SageMaker includes a token in the response. // You can use this token in your subsequent request to fetch next set of tokens. NextToken *string `type:"string"` // An array of Tag objects, each with a tag key and a value. Tags []*Tag `type:"list"` } // String returns the string representation func (s ListTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { s.NextToken = &v return s } // SetTags sets the Tags field's value. func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { s.Tags = v return s } type ListTrainingJobsForHyperParameterTuningJobInput struct { _ struct{} `type:"structure"` // The name of the tuning job whose training jobs you want to list. // // HyperParameterTuningJobName is a required field HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` // The maximum number of training jobs to return. The default value is 10. MaxResults *int64 `min:"1" type:"integer"` // If the result of the previous ListTrainingJobsForHyperParameterTuningJob // request was truncated, the response includes a NextToken. To retrieve the // next set of training jobs, use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is Name. // // If the value of this field is FinalObjectiveMetricValue, any training jobs // that did not return an objective metric are not listed. SortBy *string `type:"string" enum:"TrainingJobSortByOptions"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that returns only training jobs with the specified status. StatusEquals *string `type:"string" enum:"TrainingJobStatus"` } // String returns the string representation func (s ListTrainingJobsForHyperParameterTuningJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrainingJobsForHyperParameterTuningJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTrainingJobsForHyperParameterTuningJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsForHyperParameterTuningJobInput"} if s.HyperParameterTuningJobName == nil { invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) } if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *ListTrainingJobsForHyperParameterTuningJobInput { s.HyperParameterTuningJobName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetMaxResults(v int64) *ListTrainingJobsForHyperParameterTuningJobInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortBy(v string) *ListTrainingJobsForHyperParameterTuningJobInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortOrder(v string) *ListTrainingJobsForHyperParameterTuningJobInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetStatusEquals(v string) *ListTrainingJobsForHyperParameterTuningJobInput { s.StatusEquals = &v return s } type ListTrainingJobsForHyperParameterTuningJobOutput struct { _ struct{} `type:"structure"` // If the result of this ListTrainingJobsForHyperParameterTuningJob request // was truncated, the response includes a NextToken. To retrieve the next set // of training jobs, use the token in the next request. NextToken *string `type:"string"` // A list of TrainingJobSummary objects that describe the training jobs that // the ListTrainingJobsForHyperParameterTuningJob request returned. // // TrainingJobSummaries is a required field TrainingJobSummaries []*HyperParameterTrainingJobSummary `type:"list" required:"true"` } // String returns the string representation func (s ListTrainingJobsForHyperParameterTuningJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrainingJobsForHyperParameterTuningJobOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobOutput { s.NextToken = &v return s } // SetTrainingJobSummaries sets the TrainingJobSummaries field's value. func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetTrainingJobSummaries(v []*HyperParameterTrainingJobSummary) *ListTrainingJobsForHyperParameterTuningJobOutput { s.TrainingJobSummaries = v return s } type ListTrainingJobsInput struct { _ struct{} `type:"structure"` // A filter that returns only training jobs created after the specified time // (timestamp). CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only training jobs created before the specified time // (timestamp). CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only training jobs modified after the specified time // (timestamp). LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only training jobs modified before the specified time // (timestamp). LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of training jobs to return in the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the training job name. This filter returns only training jobs // whose name contains the specified string. NameContains *string `type:"string"` // If the result of the previous ListTrainingJobs request was truncated, the // response includes a NextToken. To retrieve the next set of training jobs, // use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is CreationTime. SortBy *string `type:"string" enum:"SortBy"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that retrieves only training jobs with a specific status. StatusEquals *string `type:"string" enum:"TrainingJobStatus"` } // String returns the string representation func (s ListTrainingJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrainingJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTrainingJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListTrainingJobsInput) SetCreationTimeAfter(v time.Time) *ListTrainingJobsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListTrainingJobsInput) SetCreationTimeBefore(v time.Time) *ListTrainingJobsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListTrainingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTrainingJobsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListTrainingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTrainingJobsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTrainingJobsInput) SetMaxResults(v int64) *ListTrainingJobsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListTrainingJobsInput) SetNameContains(v string) *ListTrainingJobsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTrainingJobsInput) SetNextToken(v string) *ListTrainingJobsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListTrainingJobsInput) SetSortBy(v string) *ListTrainingJobsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListTrainingJobsInput) SetSortOrder(v string) *ListTrainingJobsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListTrainingJobsInput) SetStatusEquals(v string) *ListTrainingJobsInput { s.StatusEquals = &v return s } type ListTrainingJobsOutput struct { _ struct{} `type:"structure"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of training jobs, use it in the subsequent request. NextToken *string `type:"string"` // An array of TrainingJobSummary objects, each listing a training job. // // TrainingJobSummaries is a required field TrainingJobSummaries []*TrainingJobSummary `type:"list" required:"true"` } // String returns the string representation func (s ListTrainingJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrainingJobsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTrainingJobsOutput) SetNextToken(v string) *ListTrainingJobsOutput { s.NextToken = &v return s } // SetTrainingJobSummaries sets the TrainingJobSummaries field's value. func (s *ListTrainingJobsOutput) SetTrainingJobSummaries(v []*TrainingJobSummary) *ListTrainingJobsOutput { s.TrainingJobSummaries = v return s } type ListTransformJobsInput struct { _ struct{} `type:"structure"` // A filter that returns only transform jobs created after the specified time. CreationTimeAfter *time.Time `type:"timestamp"` // A filter that returns only transform jobs created before the specified time. CreationTimeBefore *time.Time `type:"timestamp"` // A filter that returns only transform jobs modified after the specified time. LastModifiedTimeAfter *time.Time `type:"timestamp"` // A filter that returns only transform jobs modified before the specified time. LastModifiedTimeBefore *time.Time `type:"timestamp"` // The maximum number of transform jobs to return in the response. The default // value is 10. MaxResults *int64 `min:"1" type:"integer"` // A string in the transform job name. This filter returns only transform jobs // whose name contains the specified string. NameContains *string `type:"string"` // If the result of the previous ListTransformJobs request was truncated, the // response includes a NextToken. To retrieve the next set of transform jobs, // use the token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is CreationTime. SortBy *string `type:"string" enum:"SortBy"` // The sort order for results. The default is Descending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that retrieves only transform jobs with a specific status. StatusEquals *string `type:"string" enum:"TransformJobStatus"` } // String returns the string representation func (s ListTransformJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTransformJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTransformJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTransformJobsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListTransformJobsInput) SetCreationTimeAfter(v time.Time) *ListTransformJobsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListTransformJobsInput) SetCreationTimeBefore(v time.Time) *ListTransformJobsInput { s.CreationTimeBefore = &v return s } // SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. func (s *ListTransformJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTransformJobsInput { s.LastModifiedTimeAfter = &v return s } // SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. func (s *ListTransformJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTransformJobsInput { s.LastModifiedTimeBefore = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTransformJobsInput) SetMaxResults(v int64) *ListTransformJobsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListTransformJobsInput) SetNameContains(v string) *ListTransformJobsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTransformJobsInput) SetNextToken(v string) *ListTransformJobsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListTransformJobsInput) SetSortBy(v string) *ListTransformJobsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListTransformJobsInput) SetSortOrder(v string) *ListTransformJobsInput { s.SortOrder = &v return s } // SetStatusEquals sets the StatusEquals field's value. func (s *ListTransformJobsInput) SetStatusEquals(v string) *ListTransformJobsInput { s.StatusEquals = &v return s } type ListTransformJobsOutput struct { _ struct{} `type:"structure"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of transform jobs, use it in the next request. NextToken *string `type:"string"` // An array of TransformJobSummary objects. // // TransformJobSummaries is a required field TransformJobSummaries []*TransformJobSummary `type:"list" required:"true"` } // String returns the string representation func (s ListTransformJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTransformJobsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTransformJobsOutput) SetNextToken(v string) *ListTransformJobsOutput { s.NextToken = &v return s } // SetTransformJobSummaries sets the TransformJobSummaries field's value. func (s *ListTransformJobsOutput) SetTransformJobSummaries(v []*TransformJobSummary) *ListTransformJobsOutput { s.TransformJobSummaries = v return s } type ListTrialComponentsInput struct { _ struct{} `type:"structure"` // A filter that returns only components created after the specified time. CreatedAfter *time.Time `type:"timestamp"` // A filter that returns only components created before the specified time. CreatedBefore *time.Time `type:"timestamp"` // A filter that returns only components that are part of the specified experiment. // If you specify ExperimentName, you can't filter by SourceArn or TrialName. ExperimentName *string `min:"1" type:"string"` // The maximum number of components to return in the response. The default value // is 10. MaxResults *int64 `min:"1" type:"integer"` // If the previous call to ListTrialComponents didn't return the full set of // components, the call returns a token for getting the next set of components. NextToken *string `type:"string"` // The property used to sort results. The default value is CreationTime. SortBy *string `type:"string" enum:"SortTrialComponentsBy"` // The sort order. The default value is Descending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that returns only components that have the specified source Amazon // Resource Name (ARN). If you specify SourceArn, you can't filter by ExperimentName // or TrialName. SourceArn *string `type:"string"` // A filter that returns only components that are part of the specified trial. // If you specify TrialName, you can't filter by ExperimentName or SourceArn. TrialName *string `min:"1" type:"string"` } // String returns the string representation func (s ListTrialComponentsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrialComponentsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTrialComponentsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTrialComponentsInput"} if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreatedAfter sets the CreatedAfter field's value. func (s *ListTrialComponentsInput) SetCreatedAfter(v time.Time) *ListTrialComponentsInput { s.CreatedAfter = &v return s } // SetCreatedBefore sets the CreatedBefore field's value. func (s *ListTrialComponentsInput) SetCreatedBefore(v time.Time) *ListTrialComponentsInput { s.CreatedBefore = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *ListTrialComponentsInput) SetExperimentName(v string) *ListTrialComponentsInput { s.ExperimentName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTrialComponentsInput) SetMaxResults(v int64) *ListTrialComponentsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTrialComponentsInput) SetNextToken(v string) *ListTrialComponentsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListTrialComponentsInput) SetSortBy(v string) *ListTrialComponentsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListTrialComponentsInput) SetSortOrder(v string) *ListTrialComponentsInput { s.SortOrder = &v return s } // SetSourceArn sets the SourceArn field's value. func (s *ListTrialComponentsInput) SetSourceArn(v string) *ListTrialComponentsInput { s.SourceArn = &v return s } // SetTrialName sets the TrialName field's value. func (s *ListTrialComponentsInput) SetTrialName(v string) *ListTrialComponentsInput { s.TrialName = &v return s } type ListTrialComponentsOutput struct { _ struct{} `type:"structure"` // A token for getting the next set of components, if there are any. NextToken *string `type:"string"` // A list of the summaries of your trial components. TrialComponentSummaries []*TrialComponentSummary `type:"list"` } // String returns the string representation func (s ListTrialComponentsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrialComponentsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTrialComponentsOutput) SetNextToken(v string) *ListTrialComponentsOutput { s.NextToken = &v return s } // SetTrialComponentSummaries sets the TrialComponentSummaries field's value. func (s *ListTrialComponentsOutput) SetTrialComponentSummaries(v []*TrialComponentSummary) *ListTrialComponentsOutput { s.TrialComponentSummaries = v return s } type ListTrialsInput struct { _ struct{} `type:"structure"` // A filter that returns only trials created after the specified time. CreatedAfter *time.Time `type:"timestamp"` // A filter that returns only trials created before the specified time. CreatedBefore *time.Time `type:"timestamp"` // A filter that returns only trials that are part of the specified experiment. ExperimentName *string `min:"1" type:"string"` // The maximum number of trials to return in the response. The default value // is 10. MaxResults *int64 `min:"1" type:"integer"` // If the previous call to ListTrials didn't return the full set of trials, // the call returns a token for getting the next set of trials. NextToken *string `type:"string"` // The property used to sort results. The default value is CreationTime. SortBy *string `type:"string" enum:"SortTrialsBy"` // The sort order. The default value is Descending. SortOrder *string `type:"string" enum:"SortOrder"` // A filter that returns only trials that are associated with the specified // trial component. TrialComponentName *string `min:"1" type:"string"` } // String returns the string representation func (s ListTrialsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrialsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTrialsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTrialsInput"} if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.TrialComponentName != nil && len(*s.TrialComponentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreatedAfter sets the CreatedAfter field's value. func (s *ListTrialsInput) SetCreatedAfter(v time.Time) *ListTrialsInput { s.CreatedAfter = &v return s } // SetCreatedBefore sets the CreatedBefore field's value. func (s *ListTrialsInput) SetCreatedBefore(v time.Time) *ListTrialsInput { s.CreatedBefore = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *ListTrialsInput) SetExperimentName(v string) *ListTrialsInput { s.ExperimentName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTrialsInput) SetMaxResults(v int64) *ListTrialsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTrialsInput) SetNextToken(v string) *ListTrialsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListTrialsInput) SetSortBy(v string) *ListTrialsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListTrialsInput) SetSortOrder(v string) *ListTrialsInput { s.SortOrder = &v return s } // SetTrialComponentName sets the TrialComponentName field's value. func (s *ListTrialsInput) SetTrialComponentName(v string) *ListTrialsInput { s.TrialComponentName = &v return s } type ListTrialsOutput struct { _ struct{} `type:"structure"` // A token for getting the next set of trials, if there are any. NextToken *string `type:"string"` // A list of the summaries of your trials. TrialSummaries []*TrialSummary `type:"list"` } // String returns the string representation func (s ListTrialsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTrialsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTrialsOutput) SetNextToken(v string) *ListTrialsOutput { s.NextToken = &v return s } // SetTrialSummaries sets the TrialSummaries field's value. func (s *ListTrialsOutput) SetTrialSummaries(v []*TrialSummary) *ListTrialsOutput { s.TrialSummaries = v return s } type ListUserProfilesInput struct { _ struct{} `type:"structure"` // A parameter by which to filter the results. DomainIdEquals *string `type:"string"` // Returns a list up to a specified limit. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was truncated, you will receive this token. Use // it in your next request to receive the next set of results. NextToken *string `type:"string"` // The parameter by which to sort the results. The default is CreationTime. SortBy *string `type:"string" enum:"UserProfileSortKey"` // The sort order for the results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` // A parameter by which to filter the results. UserProfileNameContains *string `type:"string"` } // String returns the string representation func (s ListUserProfilesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListUserProfilesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListUserProfilesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListUserProfilesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainIdEquals sets the DomainIdEquals field's value. func (s *ListUserProfilesInput) SetDomainIdEquals(v string) *ListUserProfilesInput { s.DomainIdEquals = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListUserProfilesInput) SetMaxResults(v int64) *ListUserProfilesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListUserProfilesInput) SetNextToken(v string) *ListUserProfilesInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListUserProfilesInput) SetSortBy(v string) *ListUserProfilesInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListUserProfilesInput) SetSortOrder(v string) *ListUserProfilesInput { s.SortOrder = &v return s } // SetUserProfileNameContains sets the UserProfileNameContains field's value. func (s *ListUserProfilesInput) SetUserProfileNameContains(v string) *ListUserProfilesInput { s.UserProfileNameContains = &v return s } type ListUserProfilesOutput struct { _ struct{} `type:"structure"` // If the previous response was truncated, you will receive this token. Use // it in your next request to receive the next set of results. NextToken *string `type:"string"` // The list of user profiles. UserProfiles []*UserProfileDetails `type:"list"` } // String returns the string representation func (s ListUserProfilesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListUserProfilesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListUserProfilesOutput) SetNextToken(v string) *ListUserProfilesOutput { s.NextToken = &v return s } // SetUserProfiles sets the UserProfiles field's value. func (s *ListUserProfilesOutput) SetUserProfiles(v []*UserProfileDetails) *ListUserProfilesOutput { s.UserProfiles = v return s } type ListWorkforcesInput struct { _ struct{} `type:"structure"` // The maximum number of workforces returned in the response. MaxResults *int64 `min:"1" type:"integer"` // A filter you can use to search for workforces using part of the workforce // name. NameContains *string `min:"1" type:"string"` // A token to resume pagination. NextToken *string `type:"string"` // Sort workforces using the workforce name or creation date. SortBy *string `type:"string" enum:"ListWorkforcesSortByOptions"` // Sort workforces in ascending or descending order. SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListWorkforcesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListWorkforcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListWorkforcesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListWorkforcesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NameContains != nil && len(*s.NameContains) < 1 { invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListWorkforcesInput) SetMaxResults(v int64) *ListWorkforcesInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListWorkforcesInput) SetNameContains(v string) *ListWorkforcesInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListWorkforcesInput) SetNextToken(v string) *ListWorkforcesInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListWorkforcesInput) SetSortBy(v string) *ListWorkforcesInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListWorkforcesInput) SetSortOrder(v string) *ListWorkforcesInput { s.SortOrder = &v return s } type ListWorkforcesOutput struct { _ struct{} `type:"structure"` // A token to resume pagination. NextToken *string `type:"string"` // A list containing information about your workforce. // // Workforces is a required field Workforces []*Workforce `type:"list" required:"true"` } // String returns the string representation func (s ListWorkforcesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListWorkforcesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListWorkforcesOutput) SetNextToken(v string) *ListWorkforcesOutput { s.NextToken = &v return s } // SetWorkforces sets the Workforces field's value. func (s *ListWorkforcesOutput) SetWorkforces(v []*Workforce) *ListWorkforcesOutput { s.Workforces = v return s } type ListWorkteamsInput struct { _ struct{} `type:"structure"` // The maximum number of work teams to return in each page of the response. MaxResults *int64 `min:"1" type:"integer"` // A string in the work team's name. This filter returns only work teams whose // name contains the specified string. NameContains *string `min:"1" type:"string"` // If the result of the previous ListWorkteams request was truncated, the response // includes a NextToken. To retrieve the next set of labeling jobs, use the // token in the next request. NextToken *string `type:"string"` // The field to sort results by. The default is CreationTime. SortBy *string `type:"string" enum:"ListWorkteamsSortByOptions"` // The sort order for results. The default is Ascending. SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListWorkteamsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListWorkteamsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListWorkteamsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListWorkteamsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NameContains != nil && len(*s.NameContains) < 1 { invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListWorkteamsInput) SetMaxResults(v int64) *ListWorkteamsInput { s.MaxResults = &v return s } // SetNameContains sets the NameContains field's value. func (s *ListWorkteamsInput) SetNameContains(v string) *ListWorkteamsInput { s.NameContains = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListWorkteamsInput) SetNextToken(v string) *ListWorkteamsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. func (s *ListWorkteamsInput) SetSortBy(v string) *ListWorkteamsInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListWorkteamsInput) SetSortOrder(v string) *ListWorkteamsInput { s.SortOrder = &v return s } type ListWorkteamsOutput struct { _ struct{} `type:"structure"` // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of work teams, use it in the subsequent request. NextToken *string `type:"string"` // An array of Workteam objects, each describing a work team. // // Workteams is a required field Workteams []*Workteam `type:"list" required:"true"` } // String returns the string representation func (s ListWorkteamsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListWorkteamsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListWorkteamsOutput) SetNextToken(v string) *ListWorkteamsOutput { s.NextToken = &v return s } // SetWorkteams sets the Workteams field's value. func (s *ListWorkteamsOutput) SetWorkteams(v []*Workteam) *ListWorkteamsOutput { s.Workteams = v return s } // Defines an Amazon Cognito or your own OIDC IdP user group that is part of // a work team. type MemberDefinition struct { _ struct{} `type:"structure"` // The Amazon Cognito user group that is part of the work team. CognitoMemberDefinition *CognitoMemberDefinition `type:"structure"` // A list user groups that exist in your OIDC Identity Provider (IdP). One to // ten groups can be used to create a single private work team. When you add // a user group to the list of Groups, you can add that user group to one or // more private work teams. If you add a user group to a private work team, // all workers in that user group are added to the work team. OidcMemberDefinition *OidcMemberDefinition `type:"structure"` } // String returns the string representation func (s MemberDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MemberDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MemberDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MemberDefinition"} if s.CognitoMemberDefinition != nil { if err := s.CognitoMemberDefinition.Validate(); err != nil { invalidParams.AddNested("CognitoMemberDefinition", err.(request.ErrInvalidParams)) } } if s.OidcMemberDefinition != nil { if err := s.OidcMemberDefinition.Validate(); err != nil { invalidParams.AddNested("OidcMemberDefinition", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCognitoMemberDefinition sets the CognitoMemberDefinition field's value. func (s *MemberDefinition) SetCognitoMemberDefinition(v *CognitoMemberDefinition) *MemberDefinition { s.CognitoMemberDefinition = v return s } // SetOidcMemberDefinition sets the OidcMemberDefinition field's value. func (s *MemberDefinition) SetOidcMemberDefinition(v *OidcMemberDefinition) *MemberDefinition { s.OidcMemberDefinition = v return s } // The name, value, and date and time of a metric that was emitted to Amazon // CloudWatch. type MetricData struct { _ struct{} `type:"structure"` // The name of the metric. MetricName *string `min:"1" type:"string"` // The date and time that the algorithm emitted the metric. Timestamp *time.Time `type:"timestamp"` // The value of the metric. Value *float64 `type:"float"` } // String returns the string representation func (s MetricData) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MetricData) GoString() string { return s.String() } // SetMetricName sets the MetricName field's value. func (s *MetricData) SetMetricName(v string) *MetricData { s.MetricName = &v return s } // SetTimestamp sets the Timestamp field's value. func (s *MetricData) SetTimestamp(v time.Time) *MetricData { s.Timestamp = &v return s } // SetValue sets the Value field's value. func (s *MetricData) SetValue(v float64) *MetricData { s.Value = &v return s } // Specifies a metric that the training algorithm writes to stderr or stdout // . Amazon SageMakerhyperparameter tuning captures all defined metrics. You // specify one metric that a hyperparameter tuning job uses as its objective // metric to choose the best training job. type MetricDefinition struct { _ struct{} `type:"structure"` // The name of the metric. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // A regular expression that searches the output of a training job and gets // the value of the metric. For more information about using regular expressions // to define metrics, see Defining Objective Metrics (https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html). // // Regex is a required field Regex *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s MetricDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MetricDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MetricDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MetricDefinition"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Regex == nil { invalidParams.Add(request.NewErrParamRequired("Regex")) } if s.Regex != nil && len(*s.Regex) < 1 { invalidParams.Add(request.NewErrParamMinLen("Regex", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *MetricDefinition) SetName(v string) *MetricDefinition { s.Name = &v return s } // SetRegex sets the Regex field's value. func (s *MetricDefinition) SetRegex(v string) *MetricDefinition { s.Regex = &v return s } // Provides information about the location that is configured for storing model // artifacts. // // Model artifacts are the output that results from training a model, and typically // consist of trained parameters, a model defintion that desribes how to compute // inferences, and other metadata. type ModelArtifacts struct { _ struct{} `type:"structure"` // The path of the S3 object that contains the model artifacts. For example, // s3://bucket-name/keynameprefix/model.tar.gz. // // S3ModelArtifacts is a required field S3ModelArtifacts *string `type:"string" required:"true"` } // String returns the string representation func (s ModelArtifacts) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelArtifacts) GoString() string { return s.String() } // SetS3ModelArtifacts sets the S3ModelArtifacts field's value. func (s *ModelArtifacts) SetS3ModelArtifacts(v string) *ModelArtifacts { s.S3ModelArtifacts = &v return s } // Configures the timeout and maximum number of retries for processing a transform // job invocation. type ModelClientConfig struct { _ struct{} `type:"structure"` // The maximum number of retries when invocation requests are failing. InvocationsMaxRetries *int64 `type:"integer"` // The timeout value in seconds for an invocation request. InvocationsTimeoutInSeconds *int64 `min:"1" type:"integer"` } // String returns the string representation func (s ModelClientConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelClientConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ModelClientConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ModelClientConfig"} if s.InvocationsTimeoutInSeconds != nil && *s.InvocationsTimeoutInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("InvocationsTimeoutInSeconds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInvocationsMaxRetries sets the InvocationsMaxRetries field's value. func (s *ModelClientConfig) SetInvocationsMaxRetries(v int64) *ModelClientConfig { s.InvocationsMaxRetries = &v return s } // SetInvocationsTimeoutInSeconds sets the InvocationsTimeoutInSeconds field's value. func (s *ModelClientConfig) SetInvocationsTimeoutInSeconds(v int64) *ModelClientConfig { s.InvocationsTimeoutInSeconds = &v return s } // Describes the Docker container for the model package. type ModelPackageContainerDefinition struct { _ struct{} `type:"structure"` // The DNS host name for the Docker container. ContainerHostname *string `type:"string"` // The Amazon EC2 Container Registry (Amazon ECR) path where inference code // is stored. // // If you are using your own custom algorithm instead of an algorithm provided // by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements. // Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] // image path formats. For more information, see Using Your Own Algorithms with // Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). // // Image is a required field Image *string `type:"string" required:"true"` // An MD5 hash of the training algorithm that identifies the Docker image used // for training. ImageDigest *string `type:"string"` // The Amazon S3 path where the model artifacts, which result from model training, // are stored. This path must point to a single gzip compressed tar archive // (.tar.gz suffix). ModelDataUrl *string `type:"string"` // The AWS Marketplace product ID of the model package. ProductId *string `type:"string"` } // String returns the string representation func (s ModelPackageContainerDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelPackageContainerDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ModelPackageContainerDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ModelPackageContainerDefinition"} if s.Image == nil { invalidParams.Add(request.NewErrParamRequired("Image")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerHostname sets the ContainerHostname field's value. func (s *ModelPackageContainerDefinition) SetContainerHostname(v string) *ModelPackageContainerDefinition { s.ContainerHostname = &v return s } // SetImage sets the Image field's value. func (s *ModelPackageContainerDefinition) SetImage(v string) *ModelPackageContainerDefinition { s.Image = &v return s } // SetImageDigest sets the ImageDigest field's value. func (s *ModelPackageContainerDefinition) SetImageDigest(v string) *ModelPackageContainerDefinition { s.ImageDigest = &v return s } // SetModelDataUrl sets the ModelDataUrl field's value. func (s *ModelPackageContainerDefinition) SetModelDataUrl(v string) *ModelPackageContainerDefinition { s.ModelDataUrl = &v return s } // SetProductId sets the ProductId field's value. func (s *ModelPackageContainerDefinition) SetProductId(v string) *ModelPackageContainerDefinition { s.ProductId = &v return s } // Specifies the validation and image scan statuses of the model package. type ModelPackageStatusDetails struct { _ struct{} `type:"structure"` // The status of the scan of the Docker image container for the model package. ImageScanStatuses []*ModelPackageStatusItem `type:"list"` // The validation status of the model package. // // ValidationStatuses is a required field ValidationStatuses []*ModelPackageStatusItem `type:"list" required:"true"` } // String returns the string representation func (s ModelPackageStatusDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelPackageStatusDetails) GoString() string { return s.String() } // SetImageScanStatuses sets the ImageScanStatuses field's value. func (s *ModelPackageStatusDetails) SetImageScanStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails { s.ImageScanStatuses = v return s } // SetValidationStatuses sets the ValidationStatuses field's value. func (s *ModelPackageStatusDetails) SetValidationStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails { s.ValidationStatuses = v return s } // Represents the overall status of a model package. type ModelPackageStatusItem struct { _ struct{} `type:"structure"` // if the overall status is Failed, the reason for the failure. FailureReason *string `type:"string"` // The name of the model package for which the overall status is being reported. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The current status. // // Status is a required field Status *string `type:"string" required:"true" enum:"DetailedModelPackageStatus"` } // String returns the string representation func (s ModelPackageStatusItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelPackageStatusItem) GoString() string { return s.String() } // SetFailureReason sets the FailureReason field's value. func (s *ModelPackageStatusItem) SetFailureReason(v string) *ModelPackageStatusItem { s.FailureReason = &v return s } // SetName sets the Name field's value. func (s *ModelPackageStatusItem) SetName(v string) *ModelPackageStatusItem { s.Name = &v return s } // SetStatus sets the Status field's value. func (s *ModelPackageStatusItem) SetStatus(v string) *ModelPackageStatusItem { s.Status = &v return s } // Provides summary information about a model package. type ModelPackageSummary struct { _ struct{} `type:"structure"` // A timestamp that shows when the model package was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the model package. // // ModelPackageArn is a required field ModelPackageArn *string `min:"1" type:"string" required:"true"` // A brief description of the model package. ModelPackageDescription *string `type:"string"` // The name of the model package. // // ModelPackageName is a required field ModelPackageName *string `min:"1" type:"string" required:"true"` // The overall status of the model package. // // ModelPackageStatus is a required field ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"` } // String returns the string representation func (s ModelPackageSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelPackageSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *ModelPackageSummary) SetCreationTime(v time.Time) *ModelPackageSummary { s.CreationTime = &v return s } // SetModelPackageArn sets the ModelPackageArn field's value. func (s *ModelPackageSummary) SetModelPackageArn(v string) *ModelPackageSummary { s.ModelPackageArn = &v return s } // SetModelPackageDescription sets the ModelPackageDescription field's value. func (s *ModelPackageSummary) SetModelPackageDescription(v string) *ModelPackageSummary { s.ModelPackageDescription = &v return s } // SetModelPackageName sets the ModelPackageName field's value. func (s *ModelPackageSummary) SetModelPackageName(v string) *ModelPackageSummary { s.ModelPackageName = &v return s } // SetModelPackageStatus sets the ModelPackageStatus field's value. func (s *ModelPackageSummary) SetModelPackageStatus(v string) *ModelPackageSummary { s.ModelPackageStatus = &v return s } // Contains data, such as the inputs and targeted instance types that are used // in the process of validating the model package. // // The data provided in the validation profile is made available to your buyers // on AWS Marketplace. type ModelPackageValidationProfile struct { _ struct{} `type:"structure"` // The name of the profile for the model package. // // ProfileName is a required field ProfileName *string `min:"1" type:"string" required:"true"` // The TransformJobDefinition object that describes the transform job used for // the validation of the model package. // // TransformJobDefinition is a required field TransformJobDefinition *TransformJobDefinition `type:"structure" required:"true"` } // String returns the string representation func (s ModelPackageValidationProfile) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelPackageValidationProfile) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ModelPackageValidationProfile) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationProfile"} if s.ProfileName == nil { invalidParams.Add(request.NewErrParamRequired("ProfileName")) } if s.ProfileName != nil && len(*s.ProfileName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1)) } if s.TransformJobDefinition == nil { invalidParams.Add(request.NewErrParamRequired("TransformJobDefinition")) } if s.TransformJobDefinition != nil { if err := s.TransformJobDefinition.Validate(); err != nil { invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetProfileName sets the ProfileName field's value. func (s *ModelPackageValidationProfile) SetProfileName(v string) *ModelPackageValidationProfile { s.ProfileName = &v return s } // SetTransformJobDefinition sets the TransformJobDefinition field's value. func (s *ModelPackageValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *ModelPackageValidationProfile { s.TransformJobDefinition = v return s } // Specifies batch transform jobs that Amazon SageMaker runs to validate your // model package. type ModelPackageValidationSpecification struct { _ struct{} `type:"structure"` // An array of ModelPackageValidationProfile objects, each of which specifies // a batch transform job that Amazon SageMaker runs to validate your model package. // // ValidationProfiles is a required field ValidationProfiles []*ModelPackageValidationProfile `min:"1" type:"list" required:"true"` // The IAM roles to be used for the validation of the model package. // // ValidationRole is a required field ValidationRole *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s ModelPackageValidationSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelPackageValidationSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ModelPackageValidationSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationSpecification"} if s.ValidationProfiles == nil { invalidParams.Add(request.NewErrParamRequired("ValidationProfiles")) } if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 { invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1)) } if s.ValidationRole == nil { invalidParams.Add(request.NewErrParamRequired("ValidationRole")) } if s.ValidationRole != nil && len(*s.ValidationRole) < 20 { invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20)) } if s.ValidationProfiles != nil { for i, v := range s.ValidationProfiles { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetValidationProfiles sets the ValidationProfiles field's value. func (s *ModelPackageValidationSpecification) SetValidationProfiles(v []*ModelPackageValidationProfile) *ModelPackageValidationSpecification { s.ValidationProfiles = v return s } // SetValidationRole sets the ValidationRole field's value. func (s *ModelPackageValidationSpecification) SetValidationRole(v string) *ModelPackageValidationSpecification { s.ValidationRole = &v return s } // Provides summary information about a model. type ModelSummary struct { _ struct{} `type:"structure"` // A timestamp that indicates when the model was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the model. // // ModelArn is a required field ModelArn *string `min:"20" type:"string" required:"true"` // The name of the model that you want a summary for. // // ModelName is a required field ModelName *string `type:"string" required:"true"` } // String returns the string representation func (s ModelSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ModelSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *ModelSummary) SetCreationTime(v time.Time) *ModelSummary { s.CreationTime = &v return s } // SetModelArn sets the ModelArn field's value. func (s *ModelSummary) SetModelArn(v string) *ModelSummary { s.ModelArn = &v return s } // SetModelName sets the ModelName field's value. func (s *ModelSummary) SetModelName(v string) *ModelSummary { s.ModelName = &v return s } // Container image configuration object for the monitoring job. type MonitoringAppSpecification struct { _ struct{} `type:"structure"` // An array of arguments for the container used to run the monitoring job. ContainerArguments []*string `min:"1" type:"list"` // Specifies the entrypoint for a container used to run the monitoring job. ContainerEntrypoint []*string `min:"1" type:"list"` // The container image to be run by the monitoring job. // // ImageUri is a required field ImageUri *string `type:"string" required:"true"` // An Amazon S3 URI to a script that is called after analysis has been performed. // Applicable only for the built-in (first party) containers. PostAnalyticsProcessorSourceUri *string `type:"string"` // An Amazon S3 URI to a script that is called per row prior to running analysis. // It can base64 decode the payload and convert it into a flatted json so that // the built-in container can use the converted data. Applicable only for the // built-in (first party) containers. RecordPreprocessorSourceUri *string `type:"string"` } // String returns the string representation func (s MonitoringAppSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringAppSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringAppSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringAppSpecification"} if s.ContainerArguments != nil && len(s.ContainerArguments) < 1 { invalidParams.Add(request.NewErrParamMinLen("ContainerArguments", 1)) } if s.ContainerEntrypoint != nil && len(s.ContainerEntrypoint) < 1 { invalidParams.Add(request.NewErrParamMinLen("ContainerEntrypoint", 1)) } if s.ImageUri == nil { invalidParams.Add(request.NewErrParamRequired("ImageUri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerArguments sets the ContainerArguments field's value. func (s *MonitoringAppSpecification) SetContainerArguments(v []*string) *MonitoringAppSpecification { s.ContainerArguments = v return s } // SetContainerEntrypoint sets the ContainerEntrypoint field's value. func (s *MonitoringAppSpecification) SetContainerEntrypoint(v []*string) *MonitoringAppSpecification { s.ContainerEntrypoint = v return s } // SetImageUri sets the ImageUri field's value. func (s *MonitoringAppSpecification) SetImageUri(v string) *MonitoringAppSpecification { s.ImageUri = &v return s } // SetPostAnalyticsProcessorSourceUri sets the PostAnalyticsProcessorSourceUri field's value. func (s *MonitoringAppSpecification) SetPostAnalyticsProcessorSourceUri(v string) *MonitoringAppSpecification { s.PostAnalyticsProcessorSourceUri = &v return s } // SetRecordPreprocessorSourceUri sets the RecordPreprocessorSourceUri field's value. func (s *MonitoringAppSpecification) SetRecordPreprocessorSourceUri(v string) *MonitoringAppSpecification { s.RecordPreprocessorSourceUri = &v return s } // Configuration for monitoring constraints and monitoring statistics. These // baseline resources are compared against the results of the current job from // the series of jobs scheduled to collect data periodically. type MonitoringBaselineConfig struct { _ struct{} `type:"structure"` // The baseline constraint file in Amazon S3 that the current monitoring job // should validated against. ConstraintsResource *MonitoringConstraintsResource `type:"structure"` // The baseline statistics file in Amazon S3 that the current monitoring job // should be validated against. StatisticsResource *MonitoringStatisticsResource `type:"structure"` } // String returns the string representation func (s MonitoringBaselineConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringBaselineConfig) GoString() string { return s.String() } // SetConstraintsResource sets the ConstraintsResource field's value. func (s *MonitoringBaselineConfig) SetConstraintsResource(v *MonitoringConstraintsResource) *MonitoringBaselineConfig { s.ConstraintsResource = v return s } // SetStatisticsResource sets the StatisticsResource field's value. func (s *MonitoringBaselineConfig) SetStatisticsResource(v *MonitoringStatisticsResource) *MonitoringBaselineConfig { s.StatisticsResource = v return s } // Configuration for the cluster used to run model monitoring jobs. type MonitoringClusterConfig struct { _ struct{} `type:"structure"` // The number of ML compute instances to use in the model monitoring job. For // distributed processing jobs, specify a value greater than 1. The default // value is 1. // // InstanceCount is a required field InstanceCount *int64 `min:"1" type:"integer" required:"true"` // The ML compute instance type for the processing job. // // InstanceType is a required field InstanceType *string `type:"string" required:"true" enum:"ProcessingInstanceType"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt data on the storage volume attached to the ML compute instance(s) // that run the model monitoring job. VolumeKmsKeyId *string `type:"string"` // The size of the ML storage volume, in gigabytes, that you want to provision. // You must specify sufficient ML storage for your scenario. // // VolumeSizeInGB is a required field VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation func (s MonitoringClusterConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringClusterConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringClusterConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringClusterConfig"} if s.InstanceCount == nil { invalidParams.Add(request.NewErrParamRequired("InstanceCount")) } if s.InstanceCount != nil && *s.InstanceCount < 1 { invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if s.VolumeSizeInGB == nil { invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB")) } if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 { invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInstanceCount sets the InstanceCount field's value. func (s *MonitoringClusterConfig) SetInstanceCount(v int64) *MonitoringClusterConfig { s.InstanceCount = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *MonitoringClusterConfig) SetInstanceType(v string) *MonitoringClusterConfig { s.InstanceType = &v return s } // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. func (s *MonitoringClusterConfig) SetVolumeKmsKeyId(v string) *MonitoringClusterConfig { s.VolumeKmsKeyId = &v return s } // SetVolumeSizeInGB sets the VolumeSizeInGB field's value. func (s *MonitoringClusterConfig) SetVolumeSizeInGB(v int64) *MonitoringClusterConfig { s.VolumeSizeInGB = &v return s } // The constraints resource for a monitoring job. type MonitoringConstraintsResource struct { _ struct{} `type:"structure"` // The Amazon S3 URI for the constraints resource. S3Uri *string `type:"string"` } // String returns the string representation func (s MonitoringConstraintsResource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringConstraintsResource) GoString() string { return s.String() } // SetS3Uri sets the S3Uri field's value. func (s *MonitoringConstraintsResource) SetS3Uri(v string) *MonitoringConstraintsResource { s.S3Uri = &v return s } // Summary of information about the last monitoring job to run. type MonitoringExecutionSummary struct { _ struct{} `type:"structure"` // The time at which the monitoring job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The name of teh endpoint used to run the monitoring job. EndpointName *string `type:"string"` // Contains the reason a monitoring job failed, if it failed. FailureReason *string `type:"string"` // A timestamp that indicates the last time the monitoring job was modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // The status of the monitoring job. // // MonitoringExecutionStatus is a required field MonitoringExecutionStatus *string `type:"string" required:"true" enum:"ExecutionStatus"` // The name of the monitoring schedule. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the monitoring job. ProcessingJobArn *string `type:"string"` // The time the monitoring job was scheduled. // // ScheduledTime is a required field ScheduledTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s MonitoringExecutionSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringExecutionSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *MonitoringExecutionSummary) SetCreationTime(v time.Time) *MonitoringExecutionSummary { s.CreationTime = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *MonitoringExecutionSummary) SetEndpointName(v string) *MonitoringExecutionSummary { s.EndpointName = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *MonitoringExecutionSummary) SetFailureReason(v string) *MonitoringExecutionSummary { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *MonitoringExecutionSummary) SetLastModifiedTime(v time.Time) *MonitoringExecutionSummary { s.LastModifiedTime = &v return s } // SetMonitoringExecutionStatus sets the MonitoringExecutionStatus field's value. func (s *MonitoringExecutionSummary) SetMonitoringExecutionStatus(v string) *MonitoringExecutionSummary { s.MonitoringExecutionStatus = &v return s } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *MonitoringExecutionSummary) SetMonitoringScheduleName(v string) *MonitoringExecutionSummary { s.MonitoringScheduleName = &v return s } // SetProcessingJobArn sets the ProcessingJobArn field's value. func (s *MonitoringExecutionSummary) SetProcessingJobArn(v string) *MonitoringExecutionSummary { s.ProcessingJobArn = &v return s } // SetScheduledTime sets the ScheduledTime field's value. func (s *MonitoringExecutionSummary) SetScheduledTime(v time.Time) *MonitoringExecutionSummary { s.ScheduledTime = &v return s } // The inputs for a monitoring job. type MonitoringInput struct { _ struct{} `type:"structure"` // The endpoint for a monitoring job. // // EndpointInput is a required field EndpointInput *EndpointInput `type:"structure" required:"true"` } // String returns the string representation func (s MonitoringInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringInput"} if s.EndpointInput == nil { invalidParams.Add(request.NewErrParamRequired("EndpointInput")) } if s.EndpointInput != nil { if err := s.EndpointInput.Validate(); err != nil { invalidParams.AddNested("EndpointInput", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointInput sets the EndpointInput field's value. func (s *MonitoringInput) SetEndpointInput(v *EndpointInput) *MonitoringInput { s.EndpointInput = v return s } // Defines the monitoring job. type MonitoringJobDefinition struct { _ struct{} `type:"structure"` // Baseline configuration used to validate that the data conforms to the specified // constraints and statistics BaselineConfig *MonitoringBaselineConfig `type:"structure"` // Sets the environment variables in the Docker container. Environment map[string]*string `type:"map"` // Configures the monitoring job to run a specified Docker container image. // // MonitoringAppSpecification is a required field MonitoringAppSpecification *MonitoringAppSpecification `type:"structure" required:"true"` // The array of inputs for the monitoring job. Currently we support monitoring // an Amazon SageMaker Endpoint. // // MonitoringInputs is a required field MonitoringInputs []*MonitoringInput `min:"1" type:"list" required:"true"` // The array of outputs from the monitoring job to be uploaded to Amazon Simple // Storage Service (Amazon S3). // // MonitoringOutputConfig is a required field MonitoringOutputConfig *MonitoringOutputConfig `type:"structure" required:"true"` // Identifies the resources, ML compute instances, and ML storage volumes to // deploy for a monitoring job. In distributed processing, you specify more // than one instance. // // MonitoringResources is a required field MonitoringResources *MonitoringResources `type:"structure" required:"true"` // Specifies networking options for an monitoring job. NetworkConfig *NetworkConfig `type:"structure"` // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume // to perform tasks on your behalf. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // Specifies a time limit for how long the monitoring job is allowed to run. StoppingCondition *MonitoringStoppingCondition `type:"structure"` } // String returns the string representation func (s MonitoringJobDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringJobDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringJobDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringJobDefinition"} if s.MonitoringAppSpecification == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringAppSpecification")) } if s.MonitoringInputs == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringInputs")) } if s.MonitoringInputs != nil && len(s.MonitoringInputs) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringInputs", 1)) } if s.MonitoringOutputConfig == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringOutputConfig")) } if s.MonitoringResources == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringResources")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.MonitoringAppSpecification != nil { if err := s.MonitoringAppSpecification.Validate(); err != nil { invalidParams.AddNested("MonitoringAppSpecification", err.(request.ErrInvalidParams)) } } if s.MonitoringInputs != nil { for i, v := range s.MonitoringInputs { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MonitoringInputs", i), err.(request.ErrInvalidParams)) } } } if s.MonitoringOutputConfig != nil { if err := s.MonitoringOutputConfig.Validate(); err != nil { invalidParams.AddNested("MonitoringOutputConfig", err.(request.ErrInvalidParams)) } } if s.MonitoringResources != nil { if err := s.MonitoringResources.Validate(); err != nil { invalidParams.AddNested("MonitoringResources", err.(request.ErrInvalidParams)) } } if s.NetworkConfig != nil { if err := s.NetworkConfig.Validate(); err != nil { invalidParams.AddNested("NetworkConfig", err.(request.ErrInvalidParams)) } } if s.StoppingCondition != nil { if err := s.StoppingCondition.Validate(); err != nil { invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBaselineConfig sets the BaselineConfig field's value. func (s *MonitoringJobDefinition) SetBaselineConfig(v *MonitoringBaselineConfig) *MonitoringJobDefinition { s.BaselineConfig = v return s } // SetEnvironment sets the Environment field's value. func (s *MonitoringJobDefinition) SetEnvironment(v map[string]*string) *MonitoringJobDefinition { s.Environment = v return s } // SetMonitoringAppSpecification sets the MonitoringAppSpecification field's value. func (s *MonitoringJobDefinition) SetMonitoringAppSpecification(v *MonitoringAppSpecification) *MonitoringJobDefinition { s.MonitoringAppSpecification = v return s } // SetMonitoringInputs sets the MonitoringInputs field's value. func (s *MonitoringJobDefinition) SetMonitoringInputs(v []*MonitoringInput) *MonitoringJobDefinition { s.MonitoringInputs = v return s } // SetMonitoringOutputConfig sets the MonitoringOutputConfig field's value. func (s *MonitoringJobDefinition) SetMonitoringOutputConfig(v *MonitoringOutputConfig) *MonitoringJobDefinition { s.MonitoringOutputConfig = v return s } // SetMonitoringResources sets the MonitoringResources field's value. func (s *MonitoringJobDefinition) SetMonitoringResources(v *MonitoringResources) *MonitoringJobDefinition { s.MonitoringResources = v return s } // SetNetworkConfig sets the NetworkConfig field's value. func (s *MonitoringJobDefinition) SetNetworkConfig(v *NetworkConfig) *MonitoringJobDefinition { s.NetworkConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *MonitoringJobDefinition) SetRoleArn(v string) *MonitoringJobDefinition { s.RoleArn = &v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *MonitoringJobDefinition) SetStoppingCondition(v *MonitoringStoppingCondition) *MonitoringJobDefinition { s.StoppingCondition = v return s } // The output object for a monitoring job. type MonitoringOutput struct { _ struct{} `type:"structure"` // The Amazon S3 storage location where the results of a monitoring job are // saved. // // S3Output is a required field S3Output *MonitoringS3Output `type:"structure" required:"true"` } // String returns the string representation func (s MonitoringOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringOutput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringOutput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringOutput"} if s.S3Output == nil { invalidParams.Add(request.NewErrParamRequired("S3Output")) } if s.S3Output != nil { if err := s.S3Output.Validate(); err != nil { invalidParams.AddNested("S3Output", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3Output sets the S3Output field's value. func (s *MonitoringOutput) SetS3Output(v *MonitoringS3Output) *MonitoringOutput { s.S3Output = v return s } // The output configuration for monitoring jobs. type MonitoringOutputConfig struct { _ struct{} `type:"structure"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt the model artifacts at rest using Amazon S3 server-side encryption. KmsKeyId *string `type:"string"` // Monitoring outputs for monitoring jobs. This is where the output of the periodic // monitoring jobs is uploaded. // // MonitoringOutputs is a required field MonitoringOutputs []*MonitoringOutput `min:"1" type:"list" required:"true"` } // String returns the string representation func (s MonitoringOutputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringOutputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringOutputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringOutputConfig"} if s.MonitoringOutputs == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringOutputs")) } if s.MonitoringOutputs != nil && len(s.MonitoringOutputs) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringOutputs", 1)) } if s.MonitoringOutputs != nil { for i, v := range s.MonitoringOutputs { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MonitoringOutputs", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKmsKeyId sets the KmsKeyId field's value. func (s *MonitoringOutputConfig) SetKmsKeyId(v string) *MonitoringOutputConfig { s.KmsKeyId = &v return s } // SetMonitoringOutputs sets the MonitoringOutputs field's value. func (s *MonitoringOutputConfig) SetMonitoringOutputs(v []*MonitoringOutput) *MonitoringOutputConfig { s.MonitoringOutputs = v return s } // Identifies the resources to deploy for a monitoring job. type MonitoringResources struct { _ struct{} `type:"structure"` // The configuration for the cluster resources used to run the processing job. // // ClusterConfig is a required field ClusterConfig *MonitoringClusterConfig `type:"structure" required:"true"` } // String returns the string representation func (s MonitoringResources) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringResources) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringResources) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringResources"} if s.ClusterConfig == nil { invalidParams.Add(request.NewErrParamRequired("ClusterConfig")) } if s.ClusterConfig != nil { if err := s.ClusterConfig.Validate(); err != nil { invalidParams.AddNested("ClusterConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClusterConfig sets the ClusterConfig field's value. func (s *MonitoringResources) SetClusterConfig(v *MonitoringClusterConfig) *MonitoringResources { s.ClusterConfig = v return s } // Information about where and how you want to store the results of a monitoring // job. type MonitoringS3Output struct { _ struct{} `type:"structure"` // The local path to the Amazon S3 storage location where Amazon SageMaker saves // the results of a monitoring job. LocalPath is an absolute path for the output // data. // // LocalPath is a required field LocalPath *string `type:"string" required:"true"` // Whether to upload the results of the monitoring job continuously or after // the job completes. S3UploadMode *string `type:"string" enum:"ProcessingS3UploadMode"` // A URI that identifies the Amazon S3 storage location where Amazon SageMaker // saves the results of a monitoring job. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s MonitoringS3Output) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringS3Output) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringS3Output) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringS3Output"} if s.LocalPath == nil { invalidParams.Add(request.NewErrParamRequired("LocalPath")) } if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLocalPath sets the LocalPath field's value. func (s *MonitoringS3Output) SetLocalPath(v string) *MonitoringS3Output { s.LocalPath = &v return s } // SetS3UploadMode sets the S3UploadMode field's value. func (s *MonitoringS3Output) SetS3UploadMode(v string) *MonitoringS3Output { s.S3UploadMode = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *MonitoringS3Output) SetS3Uri(v string) *MonitoringS3Output { s.S3Uri = &v return s } // Configures the monitoring schedule and defines the monitoring job. type MonitoringScheduleConfig struct { _ struct{} `type:"structure"` // Defines the monitoring job. // // MonitoringJobDefinition is a required field MonitoringJobDefinition *MonitoringJobDefinition `type:"structure" required:"true"` // Configures the monitoring schedule. ScheduleConfig *ScheduleConfig `type:"structure"` } // String returns the string representation func (s MonitoringScheduleConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringScheduleConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringScheduleConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringScheduleConfig"} if s.MonitoringJobDefinition == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringJobDefinition")) } if s.MonitoringJobDefinition != nil { if err := s.MonitoringJobDefinition.Validate(); err != nil { invalidParams.AddNested("MonitoringJobDefinition", err.(request.ErrInvalidParams)) } } if s.ScheduleConfig != nil { if err := s.ScheduleConfig.Validate(); err != nil { invalidParams.AddNested("ScheduleConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMonitoringJobDefinition sets the MonitoringJobDefinition field's value. func (s *MonitoringScheduleConfig) SetMonitoringJobDefinition(v *MonitoringJobDefinition) *MonitoringScheduleConfig { s.MonitoringJobDefinition = v return s } // SetScheduleConfig sets the ScheduleConfig field's value. func (s *MonitoringScheduleConfig) SetScheduleConfig(v *ScheduleConfig) *MonitoringScheduleConfig { s.ScheduleConfig = v return s } // Summarizes the monitoring schedule. type MonitoringScheduleSummary struct { _ struct{} `type:"structure"` // The creation time of the monitoring schedule. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // The name of the endpoint using the monitoring schedule. EndpointName *string `type:"string"` // The last time the monitoring schedule was modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the monitoring schedule. // // MonitoringScheduleArn is a required field MonitoringScheduleArn *string `type:"string" required:"true"` // The name of the monitoring schedule. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` // The status of the monitoring schedule. // // MonitoringScheduleStatus is a required field MonitoringScheduleStatus *string `type:"string" required:"true" enum:"ScheduleStatus"` } // String returns the string representation func (s MonitoringScheduleSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringScheduleSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *MonitoringScheduleSummary) SetCreationTime(v time.Time) *MonitoringScheduleSummary { s.CreationTime = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *MonitoringScheduleSummary) SetEndpointName(v string) *MonitoringScheduleSummary { s.EndpointName = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *MonitoringScheduleSummary) SetLastModifiedTime(v time.Time) *MonitoringScheduleSummary { s.LastModifiedTime = &v return s } // SetMonitoringScheduleArn sets the MonitoringScheduleArn field's value. func (s *MonitoringScheduleSummary) SetMonitoringScheduleArn(v string) *MonitoringScheduleSummary { s.MonitoringScheduleArn = &v return s } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *MonitoringScheduleSummary) SetMonitoringScheduleName(v string) *MonitoringScheduleSummary { s.MonitoringScheduleName = &v return s } // SetMonitoringScheduleStatus sets the MonitoringScheduleStatus field's value. func (s *MonitoringScheduleSummary) SetMonitoringScheduleStatus(v string) *MonitoringScheduleSummary { s.MonitoringScheduleStatus = &v return s } // The statistics resource for a monitoring job. type MonitoringStatisticsResource struct { _ struct{} `type:"structure"` // The Amazon S3 URI for the statistics resource. S3Uri *string `type:"string"` } // String returns the string representation func (s MonitoringStatisticsResource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringStatisticsResource) GoString() string { return s.String() } // SetS3Uri sets the S3Uri field's value. func (s *MonitoringStatisticsResource) SetS3Uri(v string) *MonitoringStatisticsResource { s.S3Uri = &v return s } // A time limit for how long the monitoring job is allowed to run before stopping. type MonitoringStoppingCondition struct { _ struct{} `type:"structure"` // The maximum runtime allowed in seconds. // // MaxRuntimeInSeconds is a required field MaxRuntimeInSeconds *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation func (s MonitoringStoppingCondition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MonitoringStoppingCondition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MonitoringStoppingCondition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MonitoringStoppingCondition"} if s.MaxRuntimeInSeconds == nil { invalidParams.Add(request.NewErrParamRequired("MaxRuntimeInSeconds")) } if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value. func (s *MonitoringStoppingCondition) SetMaxRuntimeInSeconds(v int64) *MonitoringStoppingCondition { s.MaxRuntimeInSeconds = &v return s } // A list of nested Filter objects. A resource must satisfy the conditions of // all filters to be included in the results returned from the Search API. // // For example, to filter on a training job's InputDataConfig property with // a specific channel name and S3Uri prefix, define the following filters: // // * '{Name:"InputDataConfig.ChannelName", "Operator":"Equals", "Value":"train"}', // // * '{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"Contains", // "Value":"mybucket/catdata"}' type NestedFilters struct { _ struct{} `type:"structure"` // A list of filters. Each filter acts on a property. Filters must contain at // least one Filters value. For example, a NestedFilters call might include // a filter on the PropertyName parameter of the InputDataConfig property: InputDataConfig.DataSource.S3DataSource.S3Uri. // // Filters is a required field Filters []*Filter `min:"1" type:"list" required:"true"` // The name of the property to use in the nested filters. The value must match // a listed property name, such as InputDataConfig. // // NestedPropertyName is a required field NestedPropertyName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s NestedFilters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NestedFilters) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NestedFilters) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NestedFilters"} if s.Filters == nil { invalidParams.Add(request.NewErrParamRequired("Filters")) } if s.Filters != nil && len(s.Filters) < 1 { invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) } if s.NestedPropertyName == nil { invalidParams.Add(request.NewErrParamRequired("NestedPropertyName")) } if s.NestedPropertyName != nil && len(*s.NestedPropertyName) < 1 { invalidParams.Add(request.NewErrParamMinLen("NestedPropertyName", 1)) } if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFilters sets the Filters field's value. func (s *NestedFilters) SetFilters(v []*Filter) *NestedFilters { s.Filters = v return s } // SetNestedPropertyName sets the NestedPropertyName field's value. func (s *NestedFilters) SetNestedPropertyName(v string) *NestedFilters { s.NestedPropertyName = &v return s } // Networking options for a job, such as network traffic encryption between // containers, whether to allow inbound and outbound network calls to and from // containers, and the VPC subnets and security groups to use for VPC-enabled // jobs. type NetworkConfig struct { _ struct{} `type:"structure"` // Whether to encrypt all communications between distributed processing jobs. // Choose True to encrypt communications. Encryption provides greater security // for distributed processing jobs, but the processing might take longer. EnableInterContainerTrafficEncryption *bool `type:"boolean"` // Whether to allow inbound and outbound network calls to and from the containers // used for the processing job. EnableNetworkIsolation *bool `type:"boolean"` // Specifies a VPC that your training jobs and hosted models have access to. // Control access to and from your training and model containers by configuring // the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s NetworkConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NetworkConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NetworkConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NetworkConfig"} if s.VpcConfig != nil { if err := s.VpcConfig.Validate(); err != nil { invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value. func (s *NetworkConfig) SetEnableInterContainerTrafficEncryption(v bool) *NetworkConfig { s.EnableInterContainerTrafficEncryption = &v return s } // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. func (s *NetworkConfig) SetEnableNetworkIsolation(v bool) *NetworkConfig { s.EnableNetworkIsolation = &v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *NetworkConfig) SetVpcConfig(v *VpcConfig) *NetworkConfig { s.VpcConfig = v return s } // Provides a summary of a notebook instance lifecycle configuration. type NotebookInstanceLifecycleConfigSummary struct { _ struct{} `type:"structure"` // A timestamp that tells when the lifecycle configuration was created. CreationTime *time.Time `type:"timestamp"` // A timestamp that tells when the lifecycle configuration was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the lifecycle configuration. // // NotebookInstanceLifecycleConfigArn is a required field NotebookInstanceLifecycleConfigArn *string `type:"string" required:"true"` // The name of the lifecycle configuration. // // NotebookInstanceLifecycleConfigName is a required field NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` } // String returns the string representation func (s NotebookInstanceLifecycleConfigSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NotebookInstanceLifecycleConfigSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *NotebookInstanceLifecycleConfigSummary) SetCreationTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { s.CreationTime = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *NotebookInstanceLifecycleConfigSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { s.LastModifiedTime = &v return s } // SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigArn(v string) *NotebookInstanceLifecycleConfigSummary { s.NotebookInstanceLifecycleConfigArn = &v return s } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceLifecycleConfigSummary { s.NotebookInstanceLifecycleConfigName = &v return s } // Contains the notebook instance lifecycle configuration script. // // Each lifecycle configuration script has a limit of 16384 characters. // // The value of the $PATH environment variable that is available to both scripts // is /sbin:bin:/usr/sbin:/usr/bin. // // View CloudWatch Logs for notebook instance lifecycle configurations in log // group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook]. // // Lifecycle configuration scripts cannot run for longer than 5 minutes. If // a script runs for longer than 5 minutes, it fails and the notebook instance // is not created or started. // // For information about notebook instance lifestyle configurations, see Step // 2.1: (Optional) Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). type NotebookInstanceLifecycleHook struct { _ struct{} `type:"structure"` // A base64-encoded string that contains a shell script for a notebook instance // lifecycle configuration. Content *string `min:"1" type:"string"` } // String returns the string representation func (s NotebookInstanceLifecycleHook) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NotebookInstanceLifecycleHook) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NotebookInstanceLifecycleHook) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NotebookInstanceLifecycleHook"} if s.Content != nil && len(*s.Content) < 1 { invalidParams.Add(request.NewErrParamMinLen("Content", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContent sets the Content field's value. func (s *NotebookInstanceLifecycleHook) SetContent(v string) *NotebookInstanceLifecycleHook { s.Content = &v return s } // Provides summary information for an Amazon SageMaker notebook instance. type NotebookInstanceSummary struct { _ struct{} `type:"structure"` // An array of up to three Git repositories associated with the notebook instance. // These can be either the names of Git repositories stored as resources in // your account, or the URL of Git repositories in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. These repositories are cloned at the same // level as the default repository of your notebook instance. For more information, // see Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). AdditionalCodeRepositories []*string `type:"list"` // A timestamp that shows when the notebook instance was created. CreationTime *time.Time `type:"timestamp"` // The Git repository associated with the notebook instance as its default code // repository. This can be either the name of a Git repository stored as a resource // in your account, or the URL of a Git repository in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. When you open a notebook instance, it opens // in the directory that contains this repository. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). DefaultCodeRepository *string `min:"1" type:"string"` // The type of ML compute instance that the notebook instance is running on. InstanceType *string `type:"string" enum:"InstanceType"` // A timestamp that shows when the notebook instance was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the notebook instance. // // NotebookInstanceArn is a required field NotebookInstanceArn *string `type:"string" required:"true"` // The name of a notebook instance lifecycle configuration associated with this // notebook instance. // // For information about notebook instance lifestyle configurations, see Step // 2.1: (Optional) Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). NotebookInstanceLifecycleConfigName *string `type:"string"` // The name of the notebook instance that you want a summary for. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` // The status of the notebook instance. NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` // The URL that you use to connect to the Jupyter instance running in your notebook // instance. Url *string `type:"string"` } // String returns the string representation func (s NotebookInstanceSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NotebookInstanceSummary) GoString() string { return s.String() } // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. func (s *NotebookInstanceSummary) SetAdditionalCodeRepositories(v []*string) *NotebookInstanceSummary { s.AdditionalCodeRepositories = v return s } // SetCreationTime sets the CreationTime field's value. func (s *NotebookInstanceSummary) SetCreationTime(v time.Time) *NotebookInstanceSummary { s.CreationTime = &v return s } // SetDefaultCodeRepository sets the DefaultCodeRepository field's value. func (s *NotebookInstanceSummary) SetDefaultCodeRepository(v string) *NotebookInstanceSummary { s.DefaultCodeRepository = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *NotebookInstanceSummary) SetInstanceType(v string) *NotebookInstanceSummary { s.InstanceType = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *NotebookInstanceSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceSummary { s.LastModifiedTime = &v return s } // SetNotebookInstanceArn sets the NotebookInstanceArn field's value. func (s *NotebookInstanceSummary) SetNotebookInstanceArn(v string) *NotebookInstanceSummary { s.NotebookInstanceArn = &v return s } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *NotebookInstanceSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceSummary { s.NotebookInstanceLifecycleConfigName = &v return s } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *NotebookInstanceSummary) SetNotebookInstanceName(v string) *NotebookInstanceSummary { s.NotebookInstanceName = &v return s } // SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. func (s *NotebookInstanceSummary) SetNotebookInstanceStatus(v string) *NotebookInstanceSummary { s.NotebookInstanceStatus = &v return s } // SetUrl sets the Url field's value. func (s *NotebookInstanceSummary) SetUrl(v string) *NotebookInstanceSummary { s.Url = &v return s } // Configures SNS notifications of available or expiring work items for work // teams. type NotificationConfiguration struct { _ struct{} `type:"structure"` // The ARN for the SNS topic to which notifications should be published. NotificationTopicArn *string `type:"string"` } // String returns the string representation func (s NotificationConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NotificationConfiguration) GoString() string { return s.String() } // SetNotificationTopicArn sets the NotificationTopicArn field's value. func (s *NotificationConfiguration) SetNotificationTopicArn(v string) *NotificationConfiguration { s.NotificationTopicArn = &v return s } // Specifies the number of training jobs that this hyperparameter tuning job // launched, categorized by the status of their objective metric. The objective // metric status shows whether the final objective metric for the training job // has been evaluated by the tuning job and used in the hyperparameter tuning // process. type ObjectiveStatusCounters struct { _ struct{} `type:"structure"` // The number of training jobs whose final objective metric was not evaluated // and used in the hyperparameter tuning process. This typically occurs when // the training job failed or did not emit an objective metric. Failed *int64 `type:"integer"` // The number of training jobs that are in progress and pending evaluation of // their final objective metric. Pending *int64 `type:"integer"` // The number of training jobs whose final objective metric was evaluated by // the hyperparameter tuning job and used in the hyperparameter tuning process. Succeeded *int64 `type:"integer"` } // String returns the string representation func (s ObjectiveStatusCounters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ObjectiveStatusCounters) GoString() string { return s.String() } // SetFailed sets the Failed field's value. func (s *ObjectiveStatusCounters) SetFailed(v int64) *ObjectiveStatusCounters { s.Failed = &v return s } // SetPending sets the Pending field's value. func (s *ObjectiveStatusCounters) SetPending(v int64) *ObjectiveStatusCounters { s.Pending = &v return s } // SetSucceeded sets the Succeeded field's value. func (s *ObjectiveStatusCounters) SetSucceeded(v int64) *ObjectiveStatusCounters { s.Succeeded = &v return s } // Use this parameter to configure your OIDC Identity Provider (IdP). type OidcConfig struct { _ struct{} `type:"structure"` // The OIDC IdP authorization endpoint used to configure your private workforce. // // AuthorizationEndpoint is a required field AuthorizationEndpoint *string `type:"string" required:"true"` // The OIDC IdP client ID used to configure your private workforce. // // ClientId is a required field ClientId *string `min:"1" type:"string" required:"true"` // The OIDC IdP client secret used to configure your private workforce. // // ClientSecret is a required field ClientSecret *string `min:"1" type:"string" required:"true" sensitive:"true"` // The OIDC IdP issuer used to configure your private workforce. // // Issuer is a required field Issuer *string `type:"string" required:"true"` // The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce. // // JwksUri is a required field JwksUri *string `type:"string" required:"true"` // The OIDC IdP logout endpoint used to configure your private workforce. // // LogoutEndpoint is a required field LogoutEndpoint *string `type:"string" required:"true"` // The OIDC IdP token endpoint used to configure your private workforce. // // TokenEndpoint is a required field TokenEndpoint *string `type:"string" required:"true"` // The OIDC IdP user information endpoint used to configure your private workforce. // // UserInfoEndpoint is a required field UserInfoEndpoint *string `type:"string" required:"true"` } // String returns the string representation func (s OidcConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OidcConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *OidcConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OidcConfig"} if s.AuthorizationEndpoint == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizationEndpoint")) } if s.ClientId == nil { invalidParams.Add(request.NewErrParamRequired("ClientId")) } if s.ClientId != nil && len(*s.ClientId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) } if s.ClientSecret == nil { invalidParams.Add(request.NewErrParamRequired("ClientSecret")) } if s.ClientSecret != nil && len(*s.ClientSecret) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientSecret", 1)) } if s.Issuer == nil { invalidParams.Add(request.NewErrParamRequired("Issuer")) } if s.JwksUri == nil { invalidParams.Add(request.NewErrParamRequired("JwksUri")) } if s.LogoutEndpoint == nil { invalidParams.Add(request.NewErrParamRequired("LogoutEndpoint")) } if s.TokenEndpoint == nil { invalidParams.Add(request.NewErrParamRequired("TokenEndpoint")) } if s.UserInfoEndpoint == nil { invalidParams.Add(request.NewErrParamRequired("UserInfoEndpoint")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value. func (s *OidcConfig) SetAuthorizationEndpoint(v string) *OidcConfig { s.AuthorizationEndpoint = &v return s } // SetClientId sets the ClientId field's value. func (s *OidcConfig) SetClientId(v string) *OidcConfig { s.ClientId = &v return s } // SetClientSecret sets the ClientSecret field's value. func (s *OidcConfig) SetClientSecret(v string) *OidcConfig { s.ClientSecret = &v return s } // SetIssuer sets the Issuer field's value. func (s *OidcConfig) SetIssuer(v string) *OidcConfig { s.Issuer = &v return s } // SetJwksUri sets the JwksUri field's value. func (s *OidcConfig) SetJwksUri(v string) *OidcConfig { s.JwksUri = &v return s } // SetLogoutEndpoint sets the LogoutEndpoint field's value. func (s *OidcConfig) SetLogoutEndpoint(v string) *OidcConfig { s.LogoutEndpoint = &v return s } // SetTokenEndpoint sets the TokenEndpoint field's value. func (s *OidcConfig) SetTokenEndpoint(v string) *OidcConfig { s.TokenEndpoint = &v return s } // SetUserInfoEndpoint sets the UserInfoEndpoint field's value. func (s *OidcConfig) SetUserInfoEndpoint(v string) *OidcConfig { s.UserInfoEndpoint = &v return s } // Your OIDC IdP workforce configuration. type OidcConfigForResponse struct { _ struct{} `type:"structure"` // The OIDC IdP authorization endpoint used to configure your private workforce. AuthorizationEndpoint *string `type:"string"` // The OIDC IdP client ID used to configure your private workforce. ClientId *string `min:"1" type:"string"` // The OIDC IdP issuer used to configure your private workforce. Issuer *string `type:"string"` // The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce. JwksUri *string `type:"string"` // The OIDC IdP logout endpoint used to configure your private workforce. LogoutEndpoint *string `type:"string"` // The OIDC IdP token endpoint used to configure your private workforce. TokenEndpoint *string `type:"string"` // The OIDC IdP user information endpoint used to configure your private workforce. UserInfoEndpoint *string `type:"string"` } // String returns the string representation func (s OidcConfigForResponse) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OidcConfigForResponse) GoString() string { return s.String() } // SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value. func (s *OidcConfigForResponse) SetAuthorizationEndpoint(v string) *OidcConfigForResponse { s.AuthorizationEndpoint = &v return s } // SetClientId sets the ClientId field's value. func (s *OidcConfigForResponse) SetClientId(v string) *OidcConfigForResponse { s.ClientId = &v return s } // SetIssuer sets the Issuer field's value. func (s *OidcConfigForResponse) SetIssuer(v string) *OidcConfigForResponse { s.Issuer = &v return s } // SetJwksUri sets the JwksUri field's value. func (s *OidcConfigForResponse) SetJwksUri(v string) *OidcConfigForResponse { s.JwksUri = &v return s } // SetLogoutEndpoint sets the LogoutEndpoint field's value. func (s *OidcConfigForResponse) SetLogoutEndpoint(v string) *OidcConfigForResponse { s.LogoutEndpoint = &v return s } // SetTokenEndpoint sets the TokenEndpoint field's value. func (s *OidcConfigForResponse) SetTokenEndpoint(v string) *OidcConfigForResponse { s.TokenEndpoint = &v return s } // SetUserInfoEndpoint sets the UserInfoEndpoint field's value. func (s *OidcConfigForResponse) SetUserInfoEndpoint(v string) *OidcConfigForResponse { s.UserInfoEndpoint = &v return s } // A list of user groups that exist in your OIDC Identity Provider (IdP). One // to ten groups can be used to create a single private work team. When you // add a user group to the list of Groups, you can add that user group to one // or more private work teams. If you add a user group to a private work team, // all workers in that user group are added to the work team. type OidcMemberDefinition struct { _ struct{} `type:"structure"` // A list of comma seperated strings that identifies user groups in your OIDC // IdP. Each user group is made up of a group of private workers. // // Groups is a required field Groups []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s OidcMemberDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OidcMemberDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *OidcMemberDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OidcMemberDefinition"} if s.Groups == nil { invalidParams.Add(request.NewErrParamRequired("Groups")) } if s.Groups != nil && len(s.Groups) < 1 { invalidParams.Add(request.NewErrParamMinLen("Groups", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetGroups sets the Groups field's value. func (s *OidcMemberDefinition) SetGroups(v []*string) *OidcMemberDefinition { s.Groups = v return s } // Contains information about the output location for the compiled model and // the target device that the model runs on. TargetDevice and TargetPlatform // are mutually exclusive, so you need to choose one between the two to specify // your target device or platform. If you cannot find your device you want to // use from the TargetDevice list, use TargetPlatform to describe the platform // of your edge device and CompilerOptions if there are specific settings that // are required or recommended to use for particular TargetPlatform. type OutputConfig struct { _ struct{} `type:"structure"` // Specifies additional parameters for compiler options in JSON format. The // compiler options are TargetPlatform specific. It is required for NVIDIA accelerators // and highly recommended for CPU compliations. For any other cases, it is optional // to specify CompilerOptions. // // * CPU: Compilation for CPU supports the following compiler options. mcpu: // CPU micro-architecture. For example, {'mcpu': 'skylake-avx512'} mattr: // CPU flags. For example, {'mattr': ['+neon', '+vfpv4']} // // * ARM: Details of ARM CPU compilations. NEON: NEON is an implementation // of the Advanced SIMD extension used in ARMv7 processors. For example, // add {'mattr': ['+neon']} to the compiler options if compiling for ARM // 32-bit platform with the NEON support. // // * NVIDIA: Compilation for NVIDIA GPU supports the following compiler options. // gpu_code: Specifies the targeted architecture. trt-ver: Specifies the // TensorRT versions in x.y.z. format. cuda-ver: Specifies the CUDA version // in x.y format. For example, {'gpu-code': 'sm_72', 'trt-ver': '6.0.1', // 'cuda-ver': '10.1'} // // * ANDROID: Compilation for the Android OS supports the following compiler // options: ANDROID_PLATFORM: Specifies the Android API levels. Available // levels range from 21 to 29. For example, {'ANDROID_PLATFORM': 28}. mattr: // Add {'mattr': ['+neon']} to compiler options if compiling for ARM 32-bit // platform with NEON support. CompilerOptions *string `min:"7" type:"string"` // Identifies the S3 bucket where you want Amazon SageMaker to store the model // artifacts. For example, s3://bucket-name/key-name-prefix. // // S3OutputLocation is a required field S3OutputLocation *string `type:"string" required:"true"` // Identifies the target device or the machine learning instance that you want // to run your model on after the compilation has completed. Alternatively, // you can specify OS, architecture, and accelerator using TargetPlatform fields. // It can be used instead of TargetPlatform. TargetDevice *string `type:"string" enum:"TargetDevice"` // Contains information about a target platform that you want your model to // run on, such as OS, architecture, and accelerators. It is an alternative // of TargetDevice. // // The following examples show how to configure the TargetPlatform and CompilerOptions // JSON strings for popular target platforms: // // * Raspberry Pi 3 Model B+ "TargetPlatform": {"Os": "LINUX", "Arch": "ARM_EABIHF"}, // "CompilerOptions": {'mattr': ['+neon']} // // * Jetson TX2 "TargetPlatform": {"Os": "LINUX", "Arch": "ARM64", "Accelerator": // "NVIDIA"}, "CompilerOptions": {'gpu-code': 'sm_62', 'trt-ver': '6.0.1', // 'cuda-ver': '10.0'} // // * EC2 m5.2xlarge instance OS "TargetPlatform": {"Os": "LINUX", "Arch": // "X86_64", "Accelerator": "NVIDIA"}, "CompilerOptions": {'mcpu': 'skylake-avx512'} // // * RK3399 "TargetPlatform": {"Os": "LINUX", "Arch": "ARM64", "Accelerator": // "MALI"} // // * ARMv7 phone (CPU) "TargetPlatform": {"Os": "ANDROID", "Arch": "ARM_EABI"}, // "CompilerOptions": {'ANDROID_PLATFORM': 25, 'mattr': ['+neon']} // // * ARMv8 phone (CPU) "TargetPlatform": {"Os": "ANDROID", "Arch": "ARM64"}, // "CompilerOptions": {'ANDROID_PLATFORM': 29} TargetPlatform *TargetPlatform `type:"structure"` } // String returns the string representation func (s OutputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OutputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *OutputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OutputConfig"} if s.CompilerOptions != nil && len(*s.CompilerOptions) < 7 { invalidParams.Add(request.NewErrParamMinLen("CompilerOptions", 7)) } if s.S3OutputLocation == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputLocation")) } if s.TargetPlatform != nil { if err := s.TargetPlatform.Validate(); err != nil { invalidParams.AddNested("TargetPlatform", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCompilerOptions sets the CompilerOptions field's value. func (s *OutputConfig) SetCompilerOptions(v string) *OutputConfig { s.CompilerOptions = &v return s } // SetS3OutputLocation sets the S3OutputLocation field's value. func (s *OutputConfig) SetS3OutputLocation(v string) *OutputConfig { s.S3OutputLocation = &v return s } // SetTargetDevice sets the TargetDevice field's value. func (s *OutputConfig) SetTargetDevice(v string) *OutputConfig { s.TargetDevice = &v return s } // SetTargetPlatform sets the TargetPlatform field's value. func (s *OutputConfig) SetTargetPlatform(v *TargetPlatform) *OutputConfig { s.TargetPlatform = v return s } // Provides information about how to store model training results (model artifacts). type OutputDataConfig struct { _ struct{} `type:"structure"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt the model artifacts at rest using Amazon S3 server-side encryption. // The KmsKeyId can be any of the following formats: // // * // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab" // // * // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" // // * // KMS Key Alias "alias/ExampleAlias" // // * // Amazon Resource Name (ARN) of a KMS Key Alias "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias" // // If you use a KMS key ID or an alias of your master key, the Amazon SageMaker // execution role must include permissions to call kms:Encrypt. If you don't // provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon // S3 for your role's account. Amazon SageMaker uses server-side encryption // with KMS-managed keys for OutputDataConfig. If you use a bucket policy with // an s3:PutObject permission that only allows objects with server-side encryption, // set the condition key of s3:x-amz-server-side-encryption to "aws:kms". For // more information, see KMS-Managed Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) // in the Amazon Simple Storage Service Developer Guide. // // The KMS key policy must grant permission to the IAM role that you specify // in your CreateTrainingJob, CreateTransformJob, or CreateHyperParameterTuningJob // requests. For more information, see Using Key Policies in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) // in the AWS Key Management Service Developer Guide. KmsKeyId *string `type:"string"` // Identifies the S3 path where you want Amazon SageMaker to store the model // artifacts. For example, s3://bucket-name/key-name-prefix. // // S3OutputPath is a required field S3OutputPath *string `type:"string" required:"true"` } // String returns the string representation func (s OutputDataConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OutputDataConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *OutputDataConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} if s.S3OutputPath == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKmsKeyId sets the KmsKeyId field's value. func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig { s.KmsKeyId = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *OutputDataConfig) SetS3OutputPath(v string) *OutputDataConfig { s.S3OutputPath = &v return s } // Defines the possible values for categorical, continuous, and integer hyperparameters // to be used by an algorithm. type ParameterRange struct { _ struct{} `type:"structure"` // A CategoricalParameterRangeSpecification object that defines the possible // values for a categorical hyperparameter. CategoricalParameterRangeSpecification *CategoricalParameterRangeSpecification `type:"structure"` // A ContinuousParameterRangeSpecification object that defines the possible // values for a continuous hyperparameter. ContinuousParameterRangeSpecification *ContinuousParameterRangeSpecification `type:"structure"` // A IntegerParameterRangeSpecification object that defines the possible values // for an integer hyperparameter. IntegerParameterRangeSpecification *IntegerParameterRangeSpecification `type:"structure"` } // String returns the string representation func (s ParameterRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ParameterRange) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ParameterRange) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ParameterRange"} if s.CategoricalParameterRangeSpecification != nil { if err := s.CategoricalParameterRangeSpecification.Validate(); err != nil { invalidParams.AddNested("CategoricalParameterRangeSpecification", err.(request.ErrInvalidParams)) } } if s.ContinuousParameterRangeSpecification != nil { if err := s.ContinuousParameterRangeSpecification.Validate(); err != nil { invalidParams.AddNested("ContinuousParameterRangeSpecification", err.(request.ErrInvalidParams)) } } if s.IntegerParameterRangeSpecification != nil { if err := s.IntegerParameterRangeSpecification.Validate(); err != nil { invalidParams.AddNested("IntegerParameterRangeSpecification", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCategoricalParameterRangeSpecification sets the CategoricalParameterRangeSpecification field's value. func (s *ParameterRange) SetCategoricalParameterRangeSpecification(v *CategoricalParameterRangeSpecification) *ParameterRange { s.CategoricalParameterRangeSpecification = v return s } // SetContinuousParameterRangeSpecification sets the ContinuousParameterRangeSpecification field's value. func (s *ParameterRange) SetContinuousParameterRangeSpecification(v *ContinuousParameterRangeSpecification) *ParameterRange { s.ContinuousParameterRangeSpecification = v return s } // SetIntegerParameterRangeSpecification sets the IntegerParameterRangeSpecification field's value. func (s *ParameterRange) SetIntegerParameterRangeSpecification(v *IntegerParameterRangeSpecification) *ParameterRange { s.IntegerParameterRangeSpecification = v return s } // Specifies ranges of integer, continuous, and categorical hyperparameters // that a hyperparameter tuning job searches. The hyperparameter tuning job // launches training jobs with hyperparameter values within these ranges to // find the combination of values that result in the training job with the best // performance as measured by the objective metric of the hyperparameter tuning // job. // // You can specify a maximum of 20 hyperparameters that a hyperparameter tuning // job can search over. Every possible value of a categorical parameter range // counts against this limit. type ParameterRanges struct { _ struct{} `type:"structure"` // The array of CategoricalParameterRange objects that specify ranges of categorical // hyperparameters that a hyperparameter tuning job searches. CategoricalParameterRanges []*CategoricalParameterRange `type:"list"` // The array of ContinuousParameterRange objects that specify ranges of continuous // hyperparameters that a hyperparameter tuning job searches. ContinuousParameterRanges []*ContinuousParameterRange `type:"list"` // The array of IntegerParameterRange objects that specify ranges of integer // hyperparameters that a hyperparameter tuning job searches. IntegerParameterRanges []*IntegerParameterRange `type:"list"` } // String returns the string representation func (s ParameterRanges) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ParameterRanges) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ParameterRanges) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ParameterRanges"} if s.CategoricalParameterRanges != nil { for i, v := range s.CategoricalParameterRanges { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CategoricalParameterRanges", i), err.(request.ErrInvalidParams)) } } } if s.ContinuousParameterRanges != nil { for i, v := range s.ContinuousParameterRanges { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContinuousParameterRanges", i), err.(request.ErrInvalidParams)) } } } if s.IntegerParameterRanges != nil { for i, v := range s.IntegerParameterRanges { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IntegerParameterRanges", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCategoricalParameterRanges sets the CategoricalParameterRanges field's value. func (s *ParameterRanges) SetCategoricalParameterRanges(v []*CategoricalParameterRange) *ParameterRanges { s.CategoricalParameterRanges = v return s } // SetContinuousParameterRanges sets the ContinuousParameterRanges field's value. func (s *ParameterRanges) SetContinuousParameterRanges(v []*ContinuousParameterRange) *ParameterRanges { s.ContinuousParameterRanges = v return s } // SetIntegerParameterRanges sets the IntegerParameterRanges field's value. func (s *ParameterRanges) SetIntegerParameterRanges(v []*IntegerParameterRange) *ParameterRanges { s.IntegerParameterRanges = v return s } // The trial that a trial component is associated with and the experiment the // trial is part of. A component might not be associated with a trial. A component // can be associated with multiple trials. type Parent struct { _ struct{} `type:"structure"` // The name of the experiment. ExperimentName *string `min:"1" type:"string"` // The name of the trial. TrialName *string `min:"1" type:"string"` } // String returns the string representation func (s Parent) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Parent) GoString() string { return s.String() } // SetExperimentName sets the ExperimentName field's value. func (s *Parent) SetExperimentName(v string) *Parent { s.ExperimentName = &v return s } // SetTrialName sets the TrialName field's value. func (s *Parent) SetTrialName(v string) *Parent { s.TrialName = &v return s } // A previously completed or stopped hyperparameter tuning job to be used as // a starting point for a new hyperparameter tuning job. type ParentHyperParameterTuningJob struct { _ struct{} `type:"structure"` // The name of the hyperparameter tuning job to be used as a starting point // for a new hyperparameter tuning job. HyperParameterTuningJobName *string `min:"1" type:"string"` } // String returns the string representation func (s ParentHyperParameterTuningJob) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ParentHyperParameterTuningJob) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ParentHyperParameterTuningJob) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ParentHyperParameterTuningJob"} if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. func (s *ParentHyperParameterTuningJob) SetHyperParameterTuningJobName(v string) *ParentHyperParameterTuningJob { s.HyperParameterTuningJobName = &v return s } // Configuration for the cluster used to run a processing job. type ProcessingClusterConfig struct { _ struct{} `type:"structure"` // The number of ML compute instances to use in the processing job. For distributed // processing jobs, specify a value greater than 1. The default value is 1. // // InstanceCount is a required field InstanceCount *int64 `min:"1" type:"integer" required:"true"` // The ML compute instance type for the processing job. // // InstanceType is a required field InstanceType *string `type:"string" required:"true" enum:"ProcessingInstanceType"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt data on the storage volume attached to the ML compute instance(s) // that run the processing job. VolumeKmsKeyId *string `type:"string"` // The size of the ML storage volume in gigabytes that you want to provision. // You must specify sufficient ML storage for your scenario. // // VolumeSizeInGB is a required field VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation func (s ProcessingClusterConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingClusterConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingClusterConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingClusterConfig"} if s.InstanceCount == nil { invalidParams.Add(request.NewErrParamRequired("InstanceCount")) } if s.InstanceCount != nil && *s.InstanceCount < 1 { invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if s.VolumeSizeInGB == nil { invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB")) } if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 { invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInstanceCount sets the InstanceCount field's value. func (s *ProcessingClusterConfig) SetInstanceCount(v int64) *ProcessingClusterConfig { s.InstanceCount = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *ProcessingClusterConfig) SetInstanceType(v string) *ProcessingClusterConfig { s.InstanceType = &v return s } // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. func (s *ProcessingClusterConfig) SetVolumeKmsKeyId(v string) *ProcessingClusterConfig { s.VolumeKmsKeyId = &v return s } // SetVolumeSizeInGB sets the VolumeSizeInGB field's value. func (s *ProcessingClusterConfig) SetVolumeSizeInGB(v int64) *ProcessingClusterConfig { s.VolumeSizeInGB = &v return s } // The inputs for a processing job. type ProcessingInput struct { _ struct{} `type:"structure"` // The name of the inputs for the processing job. // // InputName is a required field InputName *string `type:"string" required:"true"` // The S3 inputs for the processing job. // // S3Input is a required field S3Input *ProcessingS3Input `type:"structure" required:"true"` } // String returns the string representation func (s ProcessingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingInput"} if s.InputName == nil { invalidParams.Add(request.NewErrParamRequired("InputName")) } if s.S3Input == nil { invalidParams.Add(request.NewErrParamRequired("S3Input")) } if s.S3Input != nil { if err := s.S3Input.Validate(); err != nil { invalidParams.AddNested("S3Input", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInputName sets the InputName field's value. func (s *ProcessingInput) SetInputName(v string) *ProcessingInput { s.InputName = &v return s } // SetS3Input sets the S3Input field's value. func (s *ProcessingInput) SetS3Input(v *ProcessingS3Input) *ProcessingInput { s.S3Input = v return s } // An Amazon SageMaker processing job that is used to analyze data and evaluate // models. For more information, see Process Data and Evaluate Models (https://docs.aws.amazon.com/sagemaker/latest/dg/processing-job.html). type ProcessingJob struct { _ struct{} `type:"structure"` // Configuration to run a processing job in a specified container image. AppSpecification *AppSpecification `type:"structure"` // The Amazon Resource Name (ARN) of the AutoML job associated with this processing // job. AutoMLJobArn *string `min:"1" type:"string"` // The time the processing job was created. CreationTime *time.Time `type:"timestamp"` // Sets the environment variables in the Docker container. Environment map[string]*string `type:"map"` // A string, up to one KB in size, that contains metadata from the processing // container when the processing job exits. ExitMessage *string `type:"string"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // A string, up to one KB in size, that contains the reason a processing job // failed, if it failed. FailureReason *string `type:"string"` // The time the processing job was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The ARN of a monitoring schedule for an endpoint associated with this processing // job. MonitoringScheduleArn *string `type:"string"` // Networking options for a job, such as network traffic encryption between // containers, whether to allow inbound and outbound network calls to and from // containers, and the VPC subnets and security groups to use for VPC-enabled // jobs. NetworkConfig *NetworkConfig `type:"structure"` // The time that the processing job ended. ProcessingEndTime *time.Time `type:"timestamp"` // For each input, data is downloaded from S3 into the processing container // before the processing job begins running if "S3InputMode" is set to File. ProcessingInputs []*ProcessingInput `type:"list"` // The ARN of the processing job. ProcessingJobArn *string `type:"string"` // The name of the processing job. ProcessingJobName *string `min:"1" type:"string"` // The status of the processing job. ProcessingJobStatus *string `type:"string" enum:"ProcessingJobStatus"` // The output configuration for the processing job. ProcessingOutputConfig *ProcessingOutputConfig `type:"structure"` // Identifies the resources, ML compute instances, and ML storage volumes to // deploy for a processing job. In distributed training, you specify more than // one instance. ProcessingResources *ProcessingResources `type:"structure"` // The time that the processing job started. ProcessingStartTime *time.Time `type:"timestamp"` // The ARN of the role used to create the processing job. RoleArn *string `min:"20" type:"string"` // Specifies a time limit for how long the processing job is allowed to run. StoppingCondition *ProcessingStoppingCondition `type:"structure"` // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` // The ARN of the training job associated with this processing job. TrainingJobArn *string `type:"string"` } // String returns the string representation func (s ProcessingJob) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingJob) GoString() string { return s.String() } // SetAppSpecification sets the AppSpecification field's value. func (s *ProcessingJob) SetAppSpecification(v *AppSpecification) *ProcessingJob { s.AppSpecification = v return s } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *ProcessingJob) SetAutoMLJobArn(v string) *ProcessingJob { s.AutoMLJobArn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *ProcessingJob) SetCreationTime(v time.Time) *ProcessingJob { s.CreationTime = &v return s } // SetEnvironment sets the Environment field's value. func (s *ProcessingJob) SetEnvironment(v map[string]*string) *ProcessingJob { s.Environment = v return s } // SetExitMessage sets the ExitMessage field's value. func (s *ProcessingJob) SetExitMessage(v string) *ProcessingJob { s.ExitMessage = &v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *ProcessingJob) SetExperimentConfig(v *ExperimentConfig) *ProcessingJob { s.ExperimentConfig = v return s } // SetFailureReason sets the FailureReason field's value. func (s *ProcessingJob) SetFailureReason(v string) *ProcessingJob { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *ProcessingJob) SetLastModifiedTime(v time.Time) *ProcessingJob { s.LastModifiedTime = &v return s } // SetMonitoringScheduleArn sets the MonitoringScheduleArn field's value. func (s *ProcessingJob) SetMonitoringScheduleArn(v string) *ProcessingJob { s.MonitoringScheduleArn = &v return s } // SetNetworkConfig sets the NetworkConfig field's value. func (s *ProcessingJob) SetNetworkConfig(v *NetworkConfig) *ProcessingJob { s.NetworkConfig = v return s } // SetProcessingEndTime sets the ProcessingEndTime field's value. func (s *ProcessingJob) SetProcessingEndTime(v time.Time) *ProcessingJob { s.ProcessingEndTime = &v return s } // SetProcessingInputs sets the ProcessingInputs field's value. func (s *ProcessingJob) SetProcessingInputs(v []*ProcessingInput) *ProcessingJob { s.ProcessingInputs = v return s } // SetProcessingJobArn sets the ProcessingJobArn field's value. func (s *ProcessingJob) SetProcessingJobArn(v string) *ProcessingJob { s.ProcessingJobArn = &v return s } // SetProcessingJobName sets the ProcessingJobName field's value. func (s *ProcessingJob) SetProcessingJobName(v string) *ProcessingJob { s.ProcessingJobName = &v return s } // SetProcessingJobStatus sets the ProcessingJobStatus field's value. func (s *ProcessingJob) SetProcessingJobStatus(v string) *ProcessingJob { s.ProcessingJobStatus = &v return s } // SetProcessingOutputConfig sets the ProcessingOutputConfig field's value. func (s *ProcessingJob) SetProcessingOutputConfig(v *ProcessingOutputConfig) *ProcessingJob { s.ProcessingOutputConfig = v return s } // SetProcessingResources sets the ProcessingResources field's value. func (s *ProcessingJob) SetProcessingResources(v *ProcessingResources) *ProcessingJob { s.ProcessingResources = v return s } // SetProcessingStartTime sets the ProcessingStartTime field's value. func (s *ProcessingJob) SetProcessingStartTime(v time.Time) *ProcessingJob { s.ProcessingStartTime = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *ProcessingJob) SetRoleArn(v string) *ProcessingJob { s.RoleArn = &v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *ProcessingJob) SetStoppingCondition(v *ProcessingStoppingCondition) *ProcessingJob { s.StoppingCondition = v return s } // SetTags sets the Tags field's value. func (s *ProcessingJob) SetTags(v []*Tag) *ProcessingJob { s.Tags = v return s } // SetTrainingJobArn sets the TrainingJobArn field's value. func (s *ProcessingJob) SetTrainingJobArn(v string) *ProcessingJob { s.TrainingJobArn = &v return s } // Summary of information about a processing job. type ProcessingJobSummary struct { _ struct{} `type:"structure"` // The time at which the processing job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // An optional string, up to one KB in size, that contains metadata from the // processing container when the processing job exits. ExitMessage *string `type:"string"` // A string, up to one KB in size, that contains the reason a processing job // failed, if it failed. FailureReason *string `type:"string"` // A timestamp that indicates the last time the processing job was modified. LastModifiedTime *time.Time `type:"timestamp"` // The time at which the processing job completed. ProcessingEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the processing job.. // // ProcessingJobArn is a required field ProcessingJobArn *string `type:"string" required:"true"` // The name of the processing job. // // ProcessingJobName is a required field ProcessingJobName *string `min:"1" type:"string" required:"true"` // The status of the processing job. // // ProcessingJobStatus is a required field ProcessingJobStatus *string `type:"string" required:"true" enum:"ProcessingJobStatus"` } // String returns the string representation func (s ProcessingJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingJobSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *ProcessingJobSummary) SetCreationTime(v time.Time) *ProcessingJobSummary { s.CreationTime = &v return s } // SetExitMessage sets the ExitMessage field's value. func (s *ProcessingJobSummary) SetExitMessage(v string) *ProcessingJobSummary { s.ExitMessage = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *ProcessingJobSummary) SetFailureReason(v string) *ProcessingJobSummary { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *ProcessingJobSummary) SetLastModifiedTime(v time.Time) *ProcessingJobSummary { s.LastModifiedTime = &v return s } // SetProcessingEndTime sets the ProcessingEndTime field's value. func (s *ProcessingJobSummary) SetProcessingEndTime(v time.Time) *ProcessingJobSummary { s.ProcessingEndTime = &v return s } // SetProcessingJobArn sets the ProcessingJobArn field's value. func (s *ProcessingJobSummary) SetProcessingJobArn(v string) *ProcessingJobSummary { s.ProcessingJobArn = &v return s } // SetProcessingJobName sets the ProcessingJobName field's value. func (s *ProcessingJobSummary) SetProcessingJobName(v string) *ProcessingJobSummary { s.ProcessingJobName = &v return s } // SetProcessingJobStatus sets the ProcessingJobStatus field's value. func (s *ProcessingJobSummary) SetProcessingJobStatus(v string) *ProcessingJobSummary { s.ProcessingJobStatus = &v return s } // Describes the results of a processing job. type ProcessingOutput struct { _ struct{} `type:"structure"` // The name for the processing job output. // // OutputName is a required field OutputName *string `type:"string" required:"true"` // Configuration for processing job outputs in Amazon S3. // // S3Output is a required field S3Output *ProcessingS3Output `type:"structure" required:"true"` } // String returns the string representation func (s ProcessingOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingOutput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingOutput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingOutput"} if s.OutputName == nil { invalidParams.Add(request.NewErrParamRequired("OutputName")) } if s.S3Output == nil { invalidParams.Add(request.NewErrParamRequired("S3Output")) } if s.S3Output != nil { if err := s.S3Output.Validate(); err != nil { invalidParams.AddNested("S3Output", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetOutputName sets the OutputName field's value. func (s *ProcessingOutput) SetOutputName(v string) *ProcessingOutput { s.OutputName = &v return s } // SetS3Output sets the S3Output field's value. func (s *ProcessingOutput) SetS3Output(v *ProcessingS3Output) *ProcessingOutput { s.S3Output = v return s } // The output configuration for the processing job. type ProcessingOutputConfig struct { _ struct{} `type:"structure"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt the processing job output. KmsKeyId can be an ID of a KMS key, ARN // of a KMS key, alias of a KMS key, or alias of a KMS key. The KmsKeyId is // applied to all outputs. KmsKeyId *string `type:"string"` // Output configuration information for a processing job. // // Outputs is a required field Outputs []*ProcessingOutput `type:"list" required:"true"` } // String returns the string representation func (s ProcessingOutputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingOutputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingOutputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingOutputConfig"} if s.Outputs == nil { invalidParams.Add(request.NewErrParamRequired("Outputs")) } if s.Outputs != nil { for i, v := range s.Outputs { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKmsKeyId sets the KmsKeyId field's value. func (s *ProcessingOutputConfig) SetKmsKeyId(v string) *ProcessingOutputConfig { s.KmsKeyId = &v return s } // SetOutputs sets the Outputs field's value. func (s *ProcessingOutputConfig) SetOutputs(v []*ProcessingOutput) *ProcessingOutputConfig { s.Outputs = v return s } // Identifies the resources, ML compute instances, and ML storage volumes to // deploy for a processing job. In distributed training, you specify more than // one instance. type ProcessingResources struct { _ struct{} `type:"structure"` // The configuration for the resources in a cluster used to run the processing // job. // // ClusterConfig is a required field ClusterConfig *ProcessingClusterConfig `type:"structure" required:"true"` } // String returns the string representation func (s ProcessingResources) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingResources) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingResources) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingResources"} if s.ClusterConfig == nil { invalidParams.Add(request.NewErrParamRequired("ClusterConfig")) } if s.ClusterConfig != nil { if err := s.ClusterConfig.Validate(); err != nil { invalidParams.AddNested("ClusterConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClusterConfig sets the ClusterConfig field's value. func (s *ProcessingResources) SetClusterConfig(v *ProcessingClusterConfig) *ProcessingResources { s.ClusterConfig = v return s } // Information about where and how you want to obtain the inputs for an processing // job. type ProcessingS3Input struct { _ struct{} `type:"structure"` // The local path to the Amazon S3 bucket where you want Amazon SageMaker to // download the inputs to run a processing job. LocalPath is an absolute path // to the input data. // // LocalPath is a required field LocalPath *string `type:"string" required:"true"` // Whether to use Gzip compression for Amazon S3 storage. S3CompressionType *string `type:"string" enum:"ProcessingS3CompressionType"` // Whether the data stored in Amazon S3 is FullyReplicated or ShardedByS3Key. S3DataDistributionType *string `type:"string" enum:"ProcessingS3DataDistributionType"` // Whether you use an S3Prefix or a ManifestFile for the data type. If you choose // S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker uses all objects // with the specified key name prefix for the processing job. If you choose // ManifestFile, S3Uri identifies an object that is a manifest file containing // a list of object keys that you want Amazon SageMaker to use for the processing // job. // // S3DataType is a required field S3DataType *string `type:"string" required:"true" enum:"ProcessingS3DataType"` // Whether to use File or Pipe input mode. In File mode, Amazon SageMaker copies // the data from the input source onto the local Amazon Elastic Block Store // (Amazon EBS) volumes before starting your training algorithm. This is the // most commonly used input mode. In Pipe mode, Amazon SageMaker streams input // data from the source directly to your algorithm without using the EBS volume. // // S3InputMode is a required field S3InputMode *string `type:"string" required:"true" enum:"ProcessingS3InputMode"` // The URI for the Amazon S3 storage where you want Amazon SageMaker to download // the artifacts needed to run a processing job. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s ProcessingS3Input) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingS3Input) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingS3Input) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingS3Input"} if s.LocalPath == nil { invalidParams.Add(request.NewErrParamRequired("LocalPath")) } if s.S3DataType == nil { invalidParams.Add(request.NewErrParamRequired("S3DataType")) } if s.S3InputMode == nil { invalidParams.Add(request.NewErrParamRequired("S3InputMode")) } if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLocalPath sets the LocalPath field's value. func (s *ProcessingS3Input) SetLocalPath(v string) *ProcessingS3Input { s.LocalPath = &v return s } // SetS3CompressionType sets the S3CompressionType field's value. func (s *ProcessingS3Input) SetS3CompressionType(v string) *ProcessingS3Input { s.S3CompressionType = &v return s } // SetS3DataDistributionType sets the S3DataDistributionType field's value. func (s *ProcessingS3Input) SetS3DataDistributionType(v string) *ProcessingS3Input { s.S3DataDistributionType = &v return s } // SetS3DataType sets the S3DataType field's value. func (s *ProcessingS3Input) SetS3DataType(v string) *ProcessingS3Input { s.S3DataType = &v return s } // SetS3InputMode sets the S3InputMode field's value. func (s *ProcessingS3Input) SetS3InputMode(v string) *ProcessingS3Input { s.S3InputMode = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *ProcessingS3Input) SetS3Uri(v string) *ProcessingS3Input { s.S3Uri = &v return s } // Information about where and how you want to store the results of an processing // job. type ProcessingS3Output struct { _ struct{} `type:"structure"` // The local path to the Amazon S3 bucket where you want Amazon SageMaker to // save the results of an processing job. LocalPath is an absolute path to the // input data. // // LocalPath is a required field LocalPath *string `type:"string" required:"true"` // Whether to upload the results of the processing job continuously or after // the job completes. // // S3UploadMode is a required field S3UploadMode *string `type:"string" required:"true" enum:"ProcessingS3UploadMode"` // A URI that identifies the Amazon S3 bucket where you want Amazon SageMaker // to save the results of a processing job. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s ProcessingS3Output) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingS3Output) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingS3Output) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingS3Output"} if s.LocalPath == nil { invalidParams.Add(request.NewErrParamRequired("LocalPath")) } if s.S3UploadMode == nil { invalidParams.Add(request.NewErrParamRequired("S3UploadMode")) } if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLocalPath sets the LocalPath field's value. func (s *ProcessingS3Output) SetLocalPath(v string) *ProcessingS3Output { s.LocalPath = &v return s } // SetS3UploadMode sets the S3UploadMode field's value. func (s *ProcessingS3Output) SetS3UploadMode(v string) *ProcessingS3Output { s.S3UploadMode = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *ProcessingS3Output) SetS3Uri(v string) *ProcessingS3Output { s.S3Uri = &v return s } // Specifies a time limit for how long the processing job is allowed to run. type ProcessingStoppingCondition struct { _ struct{} `type:"structure"` // Specifies the maximum runtime in seconds. // // MaxRuntimeInSeconds is a required field MaxRuntimeInSeconds *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation func (s ProcessingStoppingCondition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProcessingStoppingCondition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProcessingStoppingCondition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProcessingStoppingCondition"} if s.MaxRuntimeInSeconds == nil { invalidParams.Add(request.NewErrParamRequired("MaxRuntimeInSeconds")) } if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value. func (s *ProcessingStoppingCondition) SetMaxRuntimeInSeconds(v int64) *ProcessingStoppingCondition { s.MaxRuntimeInSeconds = &v return s } // Identifies a model that you want to host and the resources to deploy for // hosting it. If you are deploying multiple models, tell Amazon SageMaker how // to distribute traffic among the models by specifying variant weights. type ProductionVariant struct { _ struct{} `type:"structure"` // The size of the Elastic Inference (EI) instance to use for the production // variant. EI instances provide on-demand GPU computing for inference. For // more information, see Using Elastic Inference in Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). AcceleratorType *string `type:"string" enum:"ProductionVariantAcceleratorType"` // Number of instances to launch initially. // // InitialInstanceCount is a required field InitialInstanceCount *int64 `min:"1" type:"integer" required:"true"` // Determines initial traffic distribution among all of the models that you // specify in the endpoint configuration. The traffic to a production variant // is determined by the ratio of the VariantWeight to the sum of all VariantWeight // values across all ProductionVariants. If unspecified, it defaults to 1.0. InitialVariantWeight *float64 `type:"float"` // The ML compute instance type. // // InstanceType is a required field InstanceType *string `type:"string" required:"true" enum:"ProductionVariantInstanceType"` // The name of the model that you want to host. This is the name that you specified // when creating the model. // // ModelName is a required field ModelName *string `type:"string" required:"true"` // The name of the production variant. // // VariantName is a required field VariantName *string `type:"string" required:"true"` } // String returns the string representation func (s ProductionVariant) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProductionVariant) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ProductionVariant) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProductionVariant"} if s.InitialInstanceCount == nil { invalidParams.Add(request.NewErrParamRequired("InitialInstanceCount")) } if s.InitialInstanceCount != nil && *s.InitialInstanceCount < 1 { invalidParams.Add(request.NewErrParamMinValue("InitialInstanceCount", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } if s.VariantName == nil { invalidParams.Add(request.NewErrParamRequired("VariantName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAcceleratorType sets the AcceleratorType field's value. func (s *ProductionVariant) SetAcceleratorType(v string) *ProductionVariant { s.AcceleratorType = &v return s } // SetInitialInstanceCount sets the InitialInstanceCount field's value. func (s *ProductionVariant) SetInitialInstanceCount(v int64) *ProductionVariant { s.InitialInstanceCount = &v return s } // SetInitialVariantWeight sets the InitialVariantWeight field's value. func (s *ProductionVariant) SetInitialVariantWeight(v float64) *ProductionVariant { s.InitialVariantWeight = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *ProductionVariant) SetInstanceType(v string) *ProductionVariant { s.InstanceType = &v return s } // SetModelName sets the ModelName field's value. func (s *ProductionVariant) SetModelName(v string) *ProductionVariant { s.ModelName = &v return s } // SetVariantName sets the VariantName field's value. func (s *ProductionVariant) SetVariantName(v string) *ProductionVariant { s.VariantName = &v return s } // Describes weight and capacities for a production variant associated with // an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities // API and the endpoint status is Updating, you get different desired and current // values. type ProductionVariantSummary struct { _ struct{} `type:"structure"` // The number of instances associated with the variant. CurrentInstanceCount *int64 `min:"1" type:"integer"` // The weight associated with the variant. CurrentWeight *float64 `type:"float"` // An array of DeployedImage objects that specify the Amazon EC2 Container Registry // paths of the inference images deployed on instances of this ProductionVariant. DeployedImages []*DeployedImage `type:"list"` // The number of instances requested in the UpdateEndpointWeightsAndCapacities // request. DesiredInstanceCount *int64 `min:"1" type:"integer"` // The requested weight, as specified in the UpdateEndpointWeightsAndCapacities // request. DesiredWeight *float64 `type:"float"` // The name of the variant. // // VariantName is a required field VariantName *string `type:"string" required:"true"` } // String returns the string representation func (s ProductionVariantSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ProductionVariantSummary) GoString() string { return s.String() } // SetCurrentInstanceCount sets the CurrentInstanceCount field's value. func (s *ProductionVariantSummary) SetCurrentInstanceCount(v int64) *ProductionVariantSummary { s.CurrentInstanceCount = &v return s } // SetCurrentWeight sets the CurrentWeight field's value. func (s *ProductionVariantSummary) SetCurrentWeight(v float64) *ProductionVariantSummary { s.CurrentWeight = &v return s } // SetDeployedImages sets the DeployedImages field's value. func (s *ProductionVariantSummary) SetDeployedImages(v []*DeployedImage) *ProductionVariantSummary { s.DeployedImages = v return s } // SetDesiredInstanceCount sets the DesiredInstanceCount field's value. func (s *ProductionVariantSummary) SetDesiredInstanceCount(v int64) *ProductionVariantSummary { s.DesiredInstanceCount = &v return s } // SetDesiredWeight sets the DesiredWeight field's value. func (s *ProductionVariantSummary) SetDesiredWeight(v float64) *ProductionVariantSummary { s.DesiredWeight = &v return s } // SetVariantName sets the VariantName field's value. func (s *ProductionVariantSummary) SetVariantName(v string) *ProductionVariantSummary { s.VariantName = &v return s } // Part of the SuggestionQuery type. Specifies a hint for retrieving property // names that begin with the specified text. type PropertyNameQuery struct { _ struct{} `type:"structure"` // Text that begins a property's name. // // PropertyNameHint is a required field PropertyNameHint *string `type:"string" required:"true"` } // String returns the string representation func (s PropertyNameQuery) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PropertyNameQuery) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PropertyNameQuery) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PropertyNameQuery"} if s.PropertyNameHint == nil { invalidParams.Add(request.NewErrParamRequired("PropertyNameHint")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPropertyNameHint sets the PropertyNameHint field's value. func (s *PropertyNameQuery) SetPropertyNameHint(v string) *PropertyNameQuery { s.PropertyNameHint = &v return s } // A property name returned from a GetSearchSuggestions call that specifies // a value in the PropertyNameQuery field. type PropertyNameSuggestion struct { _ struct{} `type:"structure"` // A suggested property name based on what you entered in the search textbox // in the Amazon SageMaker console. PropertyName *string `min:"1" type:"string"` } // String returns the string representation func (s PropertyNameSuggestion) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PropertyNameSuggestion) GoString() string { return s.String() } // SetPropertyName sets the PropertyName field's value. func (s *PropertyNameSuggestion) SetPropertyName(v string) *PropertyNameSuggestion { s.PropertyName = &v return s } // Defines the amount of money paid to an Amazon Mechanical Turk worker for // each task performed. // // Use one of the following prices for bounding box tasks. Prices are in US // dollars and should be based on the complexity of the task; the longer it // takes in your initial testing, the more you should offer. // // * 0.036 // // * 0.048 // // * 0.060 // // * 0.072 // // * 0.120 // // * 0.240 // // * 0.360 // // * 0.480 // // * 0.600 // // * 0.720 // // * 0.840 // // * 0.960 // // * 1.080 // // * 1.200 // // Use one of the following prices for image classification, text classification, // and custom tasks. Prices are in US dollars. // // * 0.012 // // * 0.024 // // * 0.036 // // * 0.048 // // * 0.060 // // * 0.072 // // * 0.120 // // * 0.240 // // * 0.360 // // * 0.480 // // * 0.600 // // * 0.720 // // * 0.840 // // * 0.960 // // * 1.080 // // * 1.200 // // Use one of the following prices for semantic segmentation tasks. Prices are // in US dollars. // // * 0.840 // // * 0.960 // // * 1.080 // // * 1.200 // // Use one of the following prices for Textract AnalyzeDocument Important Form // Key Amazon Augmented AI review tasks. Prices are in US dollars. // // * 2.400 // // * 2.280 // // * 2.160 // // * 2.040 // // * 1.920 // // * 1.800 // // * 1.680 // // * 1.560 // // * 1.440 // // * 1.320 // // * 1.200 // // * 1.080 // // * 0.960 // // * 0.840 // // * 0.720 // // * 0.600 // // * 0.480 // // * 0.360 // // * 0.240 // // * 0.120 // // * 0.072 // // * 0.060 // // * 0.048 // // * 0.036 // // * 0.024 // // * 0.012 // // Use one of the following prices for Rekognition DetectModerationLabels Amazon // Augmented AI review tasks. Prices are in US dollars. // // * 1.200 // // * 1.080 // // * 0.960 // // * 0.840 // // * 0.720 // // * 0.600 // // * 0.480 // // * 0.360 // // * 0.240 // // * 0.120 // // * 0.072 // // * 0.060 // // * 0.048 // // * 0.036 // // * 0.024 // // * 0.012 // // Use one of the following prices for Amazon Augmented AI custom human review // tasks. Prices are in US dollars. // // * 1.200 // // * 1.080 // // * 0.960 // // * 0.840 // // * 0.720 // // * 0.600 // // * 0.480 // // * 0.360 // // * 0.240 // // * 0.120 // // * 0.072 // // * 0.060 // // * 0.048 // // * 0.036 // // * 0.024 // // * 0.012 type PublicWorkforceTaskPrice struct { _ struct{} `type:"structure"` // Defines the amount of money paid to an Amazon Mechanical Turk worker in United // States dollars. AmountInUsd *USD `type:"structure"` } // String returns the string representation func (s PublicWorkforceTaskPrice) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PublicWorkforceTaskPrice) GoString() string { return s.String() } // SetAmountInUsd sets the AmountInUsd field's value. func (s *PublicWorkforceTaskPrice) SetAmountInUsd(v *USD) *PublicWorkforceTaskPrice { s.AmountInUsd = v return s } type RenderUiTemplateInput struct { _ struct{} `type:"structure"` // The HumanTaskUiArn of the worker UI that you want to render. Do not provide // a HumanTaskUiArn if you use the UiTemplate parameter. // // See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig. HumanTaskUiArn *string `type:"string"` // The Amazon Resource Name (ARN) that has access to the S3 objects that are // used by the template. // // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` // A RenderableTask object containing a representative task to render. // // Task is a required field Task *RenderableTask `type:"structure" required:"true"` // A Template object containing the worker UI template to render. UiTemplate *UiTemplate `type:"structure"` } // String returns the string representation func (s RenderUiTemplateInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RenderUiTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RenderUiTemplateInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RenderUiTemplateInput"} if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.Task == nil { invalidParams.Add(request.NewErrParamRequired("Task")) } if s.Task != nil { if err := s.Task.Validate(); err != nil { invalidParams.AddNested("Task", err.(request.ErrInvalidParams)) } } if s.UiTemplate != nil { if err := s.UiTemplate.Validate(); err != nil { invalidParams.AddNested("UiTemplate", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanTaskUiArn sets the HumanTaskUiArn field's value. func (s *RenderUiTemplateInput) SetHumanTaskUiArn(v string) *RenderUiTemplateInput { s.HumanTaskUiArn = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *RenderUiTemplateInput) SetRoleArn(v string) *RenderUiTemplateInput { s.RoleArn = &v return s } // SetTask sets the Task field's value. func (s *RenderUiTemplateInput) SetTask(v *RenderableTask) *RenderUiTemplateInput { s.Task = v return s } // SetUiTemplate sets the UiTemplate field's value. func (s *RenderUiTemplateInput) SetUiTemplate(v *UiTemplate) *RenderUiTemplateInput { s.UiTemplate = v return s } type RenderUiTemplateOutput struct { _ struct{} `type:"structure"` // A list of one or more RenderingError objects if any were encountered while // rendering the template. If there were no errors, the list is empty. // // Errors is a required field Errors []*RenderingError `type:"list" required:"true"` // A Liquid template that renders the HTML for the worker UI. // // RenderedContent is a required field RenderedContent *string `type:"string" required:"true"` } // String returns the string representation func (s RenderUiTemplateOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RenderUiTemplateOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *RenderUiTemplateOutput) SetErrors(v []*RenderingError) *RenderUiTemplateOutput { s.Errors = v return s } // SetRenderedContent sets the RenderedContent field's value. func (s *RenderUiTemplateOutput) SetRenderedContent(v string) *RenderUiTemplateOutput { s.RenderedContent = &v return s } // Contains input values for a task. type RenderableTask struct { _ struct{} `type:"structure"` // A JSON object that contains values for the variables defined in the template. // It is made available to the template under the substitution variable task.input. // For example, if you define a variable task.input.text in your template, you // can supply the variable in the JSON object as "text": "sample text". // // Input is a required field Input *string `min:"2" type:"string" required:"true"` } // String returns the string representation func (s RenderableTask) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RenderableTask) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RenderableTask) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RenderableTask"} if s.Input == nil { invalidParams.Add(request.NewErrParamRequired("Input")) } if s.Input != nil && len(*s.Input) < 2 { invalidParams.Add(request.NewErrParamMinLen("Input", 2)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInput sets the Input field's value. func (s *RenderableTask) SetInput(v string) *RenderableTask { s.Input = &v return s } // A description of an error that occurred while rendering the template. type RenderingError struct { _ struct{} `type:"structure"` // A unique identifier for a specific class of errors. // // Code is a required field Code *string `type:"string" required:"true"` // A human-readable message describing the error. // // Message is a required field Message *string `type:"string" required:"true"` } // String returns the string representation func (s RenderingError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RenderingError) GoString() string { return s.String() } // SetCode sets the Code field's value. func (s *RenderingError) SetCode(v string) *RenderingError { s.Code = &v return s } // SetMessage sets the Message field's value. func (s *RenderingError) SetMessage(v string) *RenderingError { s.Message = &v return s } // The resolved attributes. type ResolvedAttributes struct { _ struct{} `type:"structure"` // Specifies a metric to minimize or maximize as the objective of a job. AutoMLJobObjective *AutoMLJobObjective `type:"structure"` // How long a job is allowed to run, or how many candidates a job is allowed // to generate. CompletionCriteria *AutoMLJobCompletionCriteria `type:"structure"` // The problem type. ProblemType *string `type:"string" enum:"ProblemType"` } // String returns the string representation func (s ResolvedAttributes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResolvedAttributes) GoString() string { return s.String() } // SetAutoMLJobObjective sets the AutoMLJobObjective field's value. func (s *ResolvedAttributes) SetAutoMLJobObjective(v *AutoMLJobObjective) *ResolvedAttributes { s.AutoMLJobObjective = v return s } // SetCompletionCriteria sets the CompletionCriteria field's value. func (s *ResolvedAttributes) SetCompletionCriteria(v *AutoMLJobCompletionCriteria) *ResolvedAttributes { s.CompletionCriteria = v return s } // SetProblemType sets the ProblemType field's value. func (s *ResolvedAttributes) SetProblemType(v string) *ResolvedAttributes { s.ProblemType = &v return s } // Describes the resources, including ML compute instances and ML storage volumes, // to use for model training. type ResourceConfig struct { _ struct{} `type:"structure"` // The number of ML compute instances to use. For distributed training, provide // a value greater than 1. // // InstanceCount is a required field InstanceCount *int64 `min:"1" type:"integer" required:"true"` // The ML compute instance type. // // InstanceType is a required field InstanceType *string `type:"string" required:"true" enum:"TrainingInstanceType"` // The AWS KMS key that Amazon SageMaker uses to encrypt data on the storage // volume attached to the ML compute instance(s) that run the training job. // // Certain Nitro-based instances include local storage, dependent on the instance // type. Local storage volumes are encrypted using a hardware module on the // instance. You can't request a VolumeKmsKeyId when using an instance type // with local storage. // // For a list of instance types that support local instance storage, see Instance // Store Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes). // // For more information about local instance storage encryption, see SSD Instance // Store Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html). // // The VolumeKmsKeyId can be in any of the following formats: // // * // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab" // // * // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` // The size of the ML storage volume that you want to provision. // // ML storage volumes store model artifacts and incremental states. Training // algorithms might also use the ML storage volume for scratch space. If you // want to store the training data in the ML storage volume, choose File as // the TrainingInputMode in the algorithm specification. // // You must specify sufficient ML storage for your scenario. // // Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume // type. // // Certain Nitro-based instances include local storage with a fixed total size, // dependent on the instance type. When using these instances for training, // Amazon SageMaker mounts the local instance storage instead of Amazon EBS // gp2 storage. You can't request a VolumeSizeInGB greater than the total size // of the local instance storage. // // For a list of instance types that support local instance storage, including // the total size per instance type, see Instance Store Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes). // // VolumeSizeInGB is a required field VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation func (s ResourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ResourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ResourceConfig"} if s.InstanceCount == nil { invalidParams.Add(request.NewErrParamRequired("InstanceCount")) } if s.InstanceCount != nil && *s.InstanceCount < 1 { invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if s.VolumeSizeInGB == nil { invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB")) } if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 { invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInstanceCount sets the InstanceCount field's value. func (s *ResourceConfig) SetInstanceCount(v int64) *ResourceConfig { s.InstanceCount = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *ResourceConfig) SetInstanceType(v string) *ResourceConfig { s.InstanceType = &v return s } // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. func (s *ResourceConfig) SetVolumeKmsKeyId(v string) *ResourceConfig { s.VolumeKmsKeyId = &v return s } // SetVolumeSizeInGB sets the VolumeSizeInGB field's value. func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig { s.VolumeSizeInGB = &v return s } // Resource being accessed is in use. type ResourceInUse struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceInUse) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceInUse) GoString() string { return s.String() } func newErrorResourceInUse(v protocol.ResponseMetadata) error { return &ResourceInUse{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceInUse) Code() string { return "ResourceInUse" } // Message returns the exception's message. func (s *ResourceInUse) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceInUse) OrigErr() error { return nil } func (s *ResourceInUse) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceInUse) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceInUse) RequestID() string { return s.RespMetadata.RequestID } // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. type ResourceLimitExceeded struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceLimitExceeded) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceLimitExceeded) GoString() string { return s.String() } func newErrorResourceLimitExceeded(v protocol.ResponseMetadata) error { return &ResourceLimitExceeded{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceLimitExceeded) Code() string { return "ResourceLimitExceeded" } // Message returns the exception's message. func (s *ResourceLimitExceeded) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceLimitExceeded) OrigErr() error { return nil } func (s *ResourceLimitExceeded) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceLimitExceeded) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceLimitExceeded) RequestID() string { return s.RespMetadata.RequestID } // Specifies the maximum number of training jobs and parallel training jobs // that a hyperparameter tuning job can launch. type ResourceLimits struct { _ struct{} `type:"structure"` // The maximum number of training jobs that a hyperparameter tuning job can // launch. // // MaxNumberOfTrainingJobs is a required field MaxNumberOfTrainingJobs *int64 `min:"1" type:"integer" required:"true"` // The maximum number of concurrent training jobs that a hyperparameter tuning // job can launch. // // MaxParallelTrainingJobs is a required field MaxParallelTrainingJobs *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation func (s ResourceLimits) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceLimits) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ResourceLimits) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ResourceLimits"} if s.MaxNumberOfTrainingJobs == nil { invalidParams.Add(request.NewErrParamRequired("MaxNumberOfTrainingJobs")) } if s.MaxNumberOfTrainingJobs != nil && *s.MaxNumberOfTrainingJobs < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxNumberOfTrainingJobs", 1)) } if s.MaxParallelTrainingJobs == nil { invalidParams.Add(request.NewErrParamRequired("MaxParallelTrainingJobs")) } if s.MaxParallelTrainingJobs != nil && *s.MaxParallelTrainingJobs < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxParallelTrainingJobs", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxNumberOfTrainingJobs sets the MaxNumberOfTrainingJobs field's value. func (s *ResourceLimits) SetMaxNumberOfTrainingJobs(v int64) *ResourceLimits { s.MaxNumberOfTrainingJobs = &v return s } // SetMaxParallelTrainingJobs sets the MaxParallelTrainingJobs field's value. func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits { s.MaxParallelTrainingJobs = &v return s } // Resource being access is not found. type ResourceNotFound struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceNotFound) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFound) GoString() string { return s.String() } func newErrorResourceNotFound(v protocol.ResponseMetadata) error { return &ResourceNotFound{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFound) Code() string { return "ResourceNotFound" } // Message returns the exception's message. func (s *ResourceNotFound) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFound) OrigErr() error { return nil } func (s *ResourceNotFound) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFound) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFound) RequestID() string { return s.RespMetadata.RequestID } // The instance type and the Amazon Resource Name (ARN) of the SageMaker image // created on the instance. The ARN is stored as metadata in SageMaker Studio // notebooks. type ResourceSpec struct { _ struct{} `type:"structure"` // The instance type. InstanceType *string `type:"string" enum:"AppInstanceType"` // The Amazon Resource Name (ARN) of the SageMaker image created on the instance. SageMakerImageArn *string `type:"string"` } // String returns the string representation func (s ResourceSpec) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceSpec) GoString() string { return s.String() } // SetInstanceType sets the InstanceType field's value. func (s *ResourceSpec) SetInstanceType(v string) *ResourceSpec { s.InstanceType = &v return s } // SetSageMakerImageArn sets the SageMakerImageArn field's value. func (s *ResourceSpec) SetSageMakerImageArn(v string) *ResourceSpec { s.SageMakerImageArn = &v return s } // The retention policy for data stored on an Amazon Elastic File System (EFS) // volume. type RetentionPolicy struct { _ struct{} `type:"structure"` // The default is Retain, which specifies to keep the data stored on the EFS // volume. // // Specify Delete to delete the data stored on the EFS volume. HomeEfsFileSystem *string `type:"string" enum:"RetentionType"` } // String returns the string representation func (s RetentionPolicy) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RetentionPolicy) GoString() string { return s.String() } // SetHomeEfsFileSystem sets the HomeEfsFileSystem field's value. func (s *RetentionPolicy) SetHomeEfsFileSystem(v string) *RetentionPolicy { s.HomeEfsFileSystem = &v return s } // Describes the S3 data source. type S3DataSource struct { _ struct{} `type:"structure"` // A list of one or more attribute names to use that are found in a specified // augmented manifest file. AttributeNames []*string `type:"list"` // If you want Amazon SageMaker to replicate the entire dataset on each ML compute // instance that is launched for model training, specify FullyReplicated. // // If you want Amazon SageMaker to replicate a subset of data on each ML compute // instance that is launched for model training, specify ShardedByS3Key. If // there are n ML compute instances launched for a training job, each instance // gets approximately 1/n of the number of S3 objects. In this case, model training // on each machine uses only the subset of training data. // // Don't choose more ML compute instances for training than available S3 objects. // If you do, some nodes won't get any data and you will pay for nodes that // aren't getting any training data. This applies in both File and Pipe modes. // Keep this in mind when developing algorithms. // // In distributed training, where you use multiple ML compute EC2 instances, // you might choose ShardedByS3Key. If the algorithm requires copying training // data to the ML storage volume (when TrainingInputMode is set to File), this // copies 1/n of the number of objects. S3DataDistributionType *string `type:"string" enum:"S3DataDistribution"` // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker // uses all objects that match the specified key name prefix for model training. // // If you choose ManifestFile, S3Uri identifies an object that is a manifest // file containing a list of object keys that you want Amazon SageMaker to use // for model training. // // If you choose AugmentedManifestFile, S3Uri identifies an object that is an // augmented manifest file in JSON lines format. This file contains the data // you want to use for model training. AugmentedManifestFile can only be used // if the Channel's input mode is Pipe. // // S3DataType is a required field S3DataType *string `type:"string" required:"true" enum:"S3DataType"` // Depending on the value specified for the S3DataType, identifies either a // key name prefix or a manifest. For example: // // * A key name prefix might look like this: s3://bucketname/exampleprefix // // * A manifest might look like this: s3://bucketname/example.manifest A // manifest is an S3 object which is a JSON file consisting of an array of // elements. The first element is a prefix which is followed by one or more // suffixes. SageMaker appends the suffix elements to the prefix to get a // full set of S3Uri. Note that the prefix must be a valid non-empty S3Uri // that precludes users from specifying a manifest whose individual S3Uri // is sourced from different S3 buckets. The following code example shows // a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, // "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" // ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 // s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N // The complete set of S3Uri in this manifest is the input data for the channel // for this data source. The object that each S3Uri points to must be readable // by the IAM role that Amazon SageMaker uses to perform tasks on your behalf. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s S3DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s S3DataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *S3DataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "S3DataSource"} if s.S3DataType == nil { invalidParams.Add(request.NewErrParamRequired("S3DataType")) } if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributeNames sets the AttributeNames field's value. func (s *S3DataSource) SetAttributeNames(v []*string) *S3DataSource { s.AttributeNames = v return s } // SetS3DataDistributionType sets the S3DataDistributionType field's value. func (s *S3DataSource) SetS3DataDistributionType(v string) *S3DataSource { s.S3DataDistributionType = &v return s } // SetS3DataType sets the S3DataType field's value. func (s *S3DataSource) SetS3DataType(v string) *S3DataSource { s.S3DataType = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *S3DataSource) SetS3Uri(v string) *S3DataSource { s.S3Uri = &v return s } // Configuration details about the monitoring schedule. type ScheduleConfig struct { _ struct{} `type:"structure"` // A cron expression that describes details about the monitoring schedule. // // Currently the only supported cron expressions are: // // * If you want to set the job to start every hour, please use the following: // Hourly: cron(0 * ? * * *) // // * If you want to start the job daily: cron(0 [00-23] ? * * *) // // For example, the following are valid cron expressions: // // * Daily at noon UTC: cron(0 12 ? * * *) // // * Daily at midnight UTC: cron(0 0 ? * * *) // // To support running every 6, 12 hours, the following are also supported: // // cron(0 [00-23]/[01-24] ? * * *) // // For example, the following are valid cron expressions: // // * Every 12 hours, starting at 5pm UTC: cron(0 17/12 ? * * *) // // * Every two hours starting at midnight: cron(0 0/2 ? * * *) // // * Even though the cron expression is set to start at 5PM UTC, note that // there could be a delay of 0-20 minutes from the actual requested time // to run the execution. // // * We recommend that if you would like a daily schedule, you do not provide // this parameter. Amazon SageMaker will pick a time for running every day. // // ScheduleExpression is a required field ScheduleExpression *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s ScheduleConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ScheduleConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ScheduleConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ScheduleConfig"} if s.ScheduleExpression == nil { invalidParams.Add(request.NewErrParamRequired("ScheduleExpression")) } if s.ScheduleExpression != nil && len(*s.ScheduleExpression) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScheduleExpression", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetScheduleExpression sets the ScheduleExpression field's value. func (s *ScheduleConfig) SetScheduleExpression(v string) *ScheduleConfig { s.ScheduleExpression = &v return s } // A multi-expression that searches for the specified resource or resources // in a search. All resource objects that satisfy the expression's condition // are included in the search results. You must specify at least one subexpression, // filter, or nested filter. A SearchExpression can contain up to twenty elements. // // A SearchExpression contains the following components: // // * A list of Filter objects. Each filter defines a simple Boolean expression // comprised of a resource property name, Boolean operator, and value. // // * A list of NestedFilter objects. Each nested filter defines a list of // Boolean expressions using a list of resource properties. A nested filter // is satisfied if a single object in the list satisfies all Boolean expressions. // // * A list of SearchExpression objects. A search expression object can be // nested in a list of search expression objects. // // * A Boolean operator: And or Or. type SearchExpression struct { _ struct{} `type:"structure"` // A list of filter objects. Filters []*Filter `min:"1" type:"list"` // A list of nested filter objects. NestedFilters []*NestedFilters `min:"1" type:"list"` // A Boolean operator used to evaluate the search expression. If you want every // conditional statement in all lists to be satisfied for the entire search // expression to be true, specify And. If only a single conditional statement // needs to be true for the entire search expression to be true, specify Or. // The default value is And. Operator *string `type:"string" enum:"BooleanOperator"` // A list of search expression objects. SubExpressions []*SearchExpression `min:"1" type:"list"` } // String returns the string representation func (s SearchExpression) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchExpression) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SearchExpression) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SearchExpression"} if s.Filters != nil && len(s.Filters) < 1 { invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) } if s.NestedFilters != nil && len(s.NestedFilters) < 1 { invalidParams.Add(request.NewErrParamMinLen("NestedFilters", 1)) } if s.SubExpressions != nil && len(s.SubExpressions) < 1 { invalidParams.Add(request.NewErrParamMinLen("SubExpressions", 1)) } if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if s.NestedFilters != nil { for i, v := range s.NestedFilters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NestedFilters", i), err.(request.ErrInvalidParams)) } } } if s.SubExpressions != nil { for i, v := range s.SubExpressions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubExpressions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFilters sets the Filters field's value. func (s *SearchExpression) SetFilters(v []*Filter) *SearchExpression { s.Filters = v return s } // SetNestedFilters sets the NestedFilters field's value. func (s *SearchExpression) SetNestedFilters(v []*NestedFilters) *SearchExpression { s.NestedFilters = v return s } // SetOperator sets the Operator field's value. func (s *SearchExpression) SetOperator(v string) *SearchExpression { s.Operator = &v return s } // SetSubExpressions sets the SubExpressions field's value. func (s *SearchExpression) SetSubExpressions(v []*SearchExpression) *SearchExpression { s.SubExpressions = v return s } type SearchInput struct { _ struct{} `type:"structure"` // The maximum number of results to return. MaxResults *int64 `min:"1" type:"integer"` // If more than MaxResults resources match the specified SearchExpression, the // response includes a NextToken. The NextToken can be passed to the next SearchRequest // to continue retrieving results. NextToken *string `type:"string"` // The name of the Amazon SageMaker resource to search for. // // Resource is a required field Resource *string `type:"string" required:"true" enum:"ResourceType"` // A Boolean conditional statement. Resources must satisfy this condition to // be included in search results. You must provide at least one subexpression, // filter, or nested filter. The maximum number of recursive SubExpressions, // NestedFilters, and Filters that can be included in a SearchExpression object // is 50. SearchExpression *SearchExpression `type:"structure"` // The name of the resource property used to sort the SearchResults. The default // is LastModifiedTime. SortBy *string `min:"1" type:"string"` // How SearchResults are ordered. Valid values are Ascending or Descending. // The default is Descending. SortOrder *string `type:"string" enum:"SearchSortOrder"` } // String returns the string representation func (s SearchInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SearchInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SearchInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } if s.SortBy != nil && len(*s.SortBy) < 1 { invalidParams.Add(request.NewErrParamMinLen("SortBy", 1)) } if s.SearchExpression != nil { if err := s.SearchExpression.Validate(); err != nil { invalidParams.AddNested("SearchExpression", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *SearchInput) SetMaxResults(v int64) *SearchInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *SearchInput) SetNextToken(v string) *SearchInput { s.NextToken = &v return s } // SetResource sets the Resource field's value. func (s *SearchInput) SetResource(v string) *SearchInput { s.Resource = &v return s } // SetSearchExpression sets the SearchExpression field's value. func (s *SearchInput) SetSearchExpression(v *SearchExpression) *SearchInput { s.SearchExpression = v return s } // SetSortBy sets the SortBy field's value. func (s *SearchInput) SetSortBy(v string) *SearchInput { s.SortBy = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *SearchInput) SetSortOrder(v string) *SearchInput { s.SortOrder = &v return s } type SearchOutput struct { _ struct{} `type:"structure"` // If the result of the previous Search request was truncated, the response // includes a NextToken. To retrieve the next set of results, use the token // in the next request. NextToken *string `type:"string"` // A list of SearchRecord objects. Results []*SearchRecord `type:"list"` } // String returns the string representation func (s SearchOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *SearchOutput) SetNextToken(v string) *SearchOutput { s.NextToken = &v return s } // SetResults sets the Results field's value. func (s *SearchOutput) SetResults(v []*SearchRecord) *SearchOutput { s.Results = v return s } // A single resource returned as part of the Search API response. type SearchRecord struct { _ struct{} `type:"structure"` // The properties of an experiment. Experiment *Experiment `type:"structure"` // The properties of a training job. TrainingJob *TrainingJob `type:"structure"` // The properties of a trial. Trial *Trial `type:"structure"` // The properties of a trial component. TrialComponent *TrialComponent `type:"structure"` } // String returns the string representation func (s SearchRecord) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchRecord) GoString() string { return s.String() } // SetExperiment sets the Experiment field's value. func (s *SearchRecord) SetExperiment(v *Experiment) *SearchRecord { s.Experiment = v return s } // SetTrainingJob sets the TrainingJob field's value. func (s *SearchRecord) SetTrainingJob(v *TrainingJob) *SearchRecord { s.TrainingJob = v return s } // SetTrial sets the Trial field's value. func (s *SearchRecord) SetTrial(v *Trial) *SearchRecord { s.Trial = v return s } // SetTrialComponent sets the TrialComponent field's value. func (s *SearchRecord) SetTrialComponent(v *TrialComponent) *SearchRecord { s.TrialComponent = v return s } // An array element of DescribeTrainingJobResponse$SecondaryStatusTransitions. // It provides additional details about a status that the training job has transitioned // through. A training job can be in one of several states, for example, starting, // downloading, training, or uploading. Within each state, there are a number // of intermediate states. For example, within the starting state, Amazon SageMaker // could be starting the training job or launching the ML instances. These transitional // states are referred to as the job's secondary status. type SecondaryStatusTransition struct { _ struct{} `type:"structure"` // A timestamp that shows when the training job transitioned out of this secondary // status state into another secondary status state or when the training job // has ended. EndTime *time.Time `type:"timestamp"` // A timestamp that shows when the training job transitioned to the current // secondary status state. // // StartTime is a required field StartTime *time.Time `type:"timestamp" required:"true"` // Contains a secondary status information from a training job. // // Status might be one of the following secondary statuses: // // InProgress // // * Starting - Starting the training job. // // * Downloading - An optional stage for algorithms that support File training // input mode. It indicates that data is being downloaded to the ML storage // volumes. // // * Training - Training is in progress. // // * Uploading - Training is complete and the model artifacts are being uploaded // to the S3 location. // // Completed // // * Completed - The training job has completed. // // Failed // // * Failed - The training job has failed. The reason for the failure is // returned in the FailureReason field of DescribeTrainingJobResponse. // // Stopped // // * MaxRuntimeExceeded - The job stopped because it exceeded the maximum // allowed runtime. // // * Stopped - The training job has stopped. // // Stopping // // * Stopping - Stopping the training job. // // We no longer support the following secondary statuses: // // * LaunchingMLInstances // // * PreparingTrainingStack // // * DownloadingTrainingImage // // Status is a required field Status *string `type:"string" required:"true" enum:"SecondaryStatus"` // A detailed description of the progress within a secondary status. // // Amazon SageMaker provides secondary statuses and status messages that apply // to each of them: // // Starting // // * Starting the training job. // // * Launching requested ML instances. // // * Insufficient capacity error from EC2 while launching instances, retrying! // // * Launched instance was unhealthy, replacing it! // // * Preparing the instances for training. // // Training // // * Downloading the training image. // // * Training image download completed. Training in progress. // // Status messages are subject to change. Therefore, we recommend not including // them in code that programmatically initiates actions. For examples, don't // use status messages in if statements. // // To have an overview of your training job's progress, view TrainingJobStatus // and SecondaryStatus in DescribeTrainingJob, and StatusMessage together. For // example, at the start of a training job, you might see the following: // // * TrainingJobStatus - InProgress // // * SecondaryStatus - Training // // * StatusMessage - Downloading the training image StatusMessage *string `type:"string"` } // String returns the string representation func (s SecondaryStatusTransition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SecondaryStatusTransition) GoString() string { return s.String() } // SetEndTime sets the EndTime field's value. func (s *SecondaryStatusTransition) SetEndTime(v time.Time) *SecondaryStatusTransition { s.EndTime = &v return s } // SetStartTime sets the StartTime field's value. func (s *SecondaryStatusTransition) SetStartTime(v time.Time) *SecondaryStatusTransition { s.StartTime = &v return s } // SetStatus sets the Status field's value. func (s *SecondaryStatusTransition) SetStatus(v string) *SecondaryStatusTransition { s.Status = &v return s } // SetStatusMessage sets the StatusMessage field's value. func (s *SecondaryStatusTransition) SetStatusMessage(v string) *SecondaryStatusTransition { s.StatusMessage = &v return s } // Specifies options when sharing an Amazon SageMaker Studio notebook. These // settings are specified as part of DefaultUserSettings when the CreateDomain // API is called, and as part of UserSettings when the CreateUserProfile API // is called. type SharingSettings struct { _ struct{} `type:"structure"` // Whether to include the notebook cell output when sharing the notebook. The // default is Disabled. NotebookOutputOption *string `type:"string" enum:"NotebookOutputOption"` // When NotebookOutputOption is Allowed, the AWS Key Management Service (KMS) // encryption key ID used to encrypt the notebook cell output in the Amazon // S3 bucket. S3KmsKeyId *string `type:"string"` // When NotebookOutputOption is Allowed, the Amazon S3 bucket used to save the // notebook cell output. If S3OutputPath isn't specified, a default bucket is // used. S3OutputPath *string `type:"string"` } // String returns the string representation func (s SharingSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SharingSettings) GoString() string { return s.String() } // SetNotebookOutputOption sets the NotebookOutputOption field's value. func (s *SharingSettings) SetNotebookOutputOption(v string) *SharingSettings { s.NotebookOutputOption = &v return s } // SetS3KmsKeyId sets the S3KmsKeyId field's value. func (s *SharingSettings) SetS3KmsKeyId(v string) *SharingSettings { s.S3KmsKeyId = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *SharingSettings) SetS3OutputPath(v string) *SharingSettings { s.S3OutputPath = &v return s } // A configuration for a shuffle option for input data in a channel. If you // use S3Prefix for S3DataType, the results of the S3 key prefix matches are // shuffled. If you use ManifestFile, the order of the S3 object references // in the ManifestFile is shuffled. If you use AugmentedManifestFile, the order // of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling // order is determined using the Seed value. // // For Pipe input mode, when ShuffleConfig is specified shuffling is done at // the start of every epoch. With large datasets, this ensures that the order // of the training data is different for each epoch, and it helps reduce bias // and possible overfitting. In a multi-node training job when ShuffleConfig // is combined with S3DataDistributionType of ShardedByS3Key, the data is shuffled // across nodes so that the content sent to a particular node on the first epoch // might be sent to a different node on the second epoch. type ShuffleConfig struct { _ struct{} `type:"structure"` // Determines the shuffling order in ShuffleConfig value. // // Seed is a required field Seed *int64 `type:"long" required:"true"` } // String returns the string representation func (s ShuffleConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ShuffleConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ShuffleConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ShuffleConfig"} if s.Seed == nil { invalidParams.Add(request.NewErrParamRequired("Seed")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSeed sets the Seed field's value. func (s *ShuffleConfig) SetSeed(v int64) *ShuffleConfig { s.Seed = &v return s } // Specifies an algorithm that was used to create the model package. The algorithm // must be either an algorithm resource in your Amazon SageMaker account or // an algorithm in AWS Marketplace that you are subscribed to. type SourceAlgorithm struct { _ struct{} `type:"structure"` // The name of an algorithm that was used to create the model package. The algorithm // must be either an algorithm resource in your Amazon SageMaker account or // an algorithm in AWS Marketplace that you are subscribed to. // // AlgorithmName is a required field AlgorithmName *string `min:"1" type:"string" required:"true"` // The Amazon S3 path where the model artifacts, which result from model training, // are stored. This path must point to a single gzip compressed tar archive // (.tar.gz suffix). ModelDataUrl *string `type:"string"` } // String returns the string representation func (s SourceAlgorithm) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SourceAlgorithm) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SourceAlgorithm) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithm"} if s.AlgorithmName == nil { invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) } if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAlgorithmName sets the AlgorithmName field's value. func (s *SourceAlgorithm) SetAlgorithmName(v string) *SourceAlgorithm { s.AlgorithmName = &v return s } // SetModelDataUrl sets the ModelDataUrl field's value. func (s *SourceAlgorithm) SetModelDataUrl(v string) *SourceAlgorithm { s.ModelDataUrl = &v return s } // A list of algorithms that were used to create a model package. type SourceAlgorithmSpecification struct { _ struct{} `type:"structure"` // A list of the algorithms that were used to create a model package. // // SourceAlgorithms is a required field SourceAlgorithms []*SourceAlgorithm `min:"1" type:"list" required:"true"` } // String returns the string representation func (s SourceAlgorithmSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SourceAlgorithmSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SourceAlgorithmSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithmSpecification"} if s.SourceAlgorithms == nil { invalidParams.Add(request.NewErrParamRequired("SourceAlgorithms")) } if s.SourceAlgorithms != nil && len(s.SourceAlgorithms) < 1 { invalidParams.Add(request.NewErrParamMinLen("SourceAlgorithms", 1)) } if s.SourceAlgorithms != nil { for i, v := range s.SourceAlgorithms { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SourceAlgorithms", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSourceAlgorithms sets the SourceAlgorithms field's value. func (s *SourceAlgorithmSpecification) SetSourceAlgorithms(v []*SourceAlgorithm) *SourceAlgorithmSpecification { s.SourceAlgorithms = v return s } // A list of IP address ranges (CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html)). // Used to create an allow list of IP addresses for a private workforce. Workers // will only be able to login to their worker portal from an IP address within // this range. By default, a workforce isn't restricted to specific IP addresses. type SourceIpConfig struct { _ struct{} `type:"structure"` // A list of one to ten Classless Inter-Domain Routing (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) // (CIDR) values. // // Maximum: Ten CIDR values // // The following Length Constraints apply to individual CIDR values in the CIDR // value list. // // Cidrs is a required field Cidrs []*string `type:"list" required:"true"` } // String returns the string representation func (s SourceIpConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SourceIpConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SourceIpConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SourceIpConfig"} if s.Cidrs == nil { invalidParams.Add(request.NewErrParamRequired("Cidrs")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCidrs sets the Cidrs field's value. func (s *SourceIpConfig) SetCidrs(v []*string) *SourceIpConfig { s.Cidrs = v return s } type StartMonitoringScheduleInput struct { _ struct{} `type:"structure"` // The name of the schedule to start. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StartMonitoringScheduleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartMonitoringScheduleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartMonitoringScheduleInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartMonitoringScheduleInput"} if s.MonitoringScheduleName == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleName")) } if s.MonitoringScheduleName != nil && len(*s.MonitoringScheduleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringScheduleName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *StartMonitoringScheduleInput) SetMonitoringScheduleName(v string) *StartMonitoringScheduleInput { s.MonitoringScheduleName = &v return s } type StartMonitoringScheduleOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StartMonitoringScheduleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartMonitoringScheduleOutput) GoString() string { return s.String() } type StartNotebookInstanceInput struct { _ struct{} `type:"structure"` // The name of the notebook instance to start. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` } // String returns the string representation func (s StartNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartNotebookInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartNotebookInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartNotebookInstanceInput"} if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *StartNotebookInstanceInput) SetNotebookInstanceName(v string) *StartNotebookInstanceInput { s.NotebookInstanceName = &v return s } type StartNotebookInstanceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StartNotebookInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartNotebookInstanceOutput) GoString() string { return s.String() } type StopAutoMLJobInput struct { _ struct{} `type:"structure"` // The name of the object you are requesting. // // AutoMLJobName is a required field AutoMLJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopAutoMLJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopAutoMLJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopAutoMLJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopAutoMLJobInput"} if s.AutoMLJobName == nil { invalidParams.Add(request.NewErrParamRequired("AutoMLJobName")) } if s.AutoMLJobName != nil && len(*s.AutoMLJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoMLJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoMLJobName sets the AutoMLJobName field's value. func (s *StopAutoMLJobInput) SetAutoMLJobName(v string) *StopAutoMLJobInput { s.AutoMLJobName = &v return s } type StopAutoMLJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopAutoMLJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopAutoMLJobOutput) GoString() string { return s.String() } type StopCompilationJobInput struct { _ struct{} `type:"structure"` // The name of the model compilation job to stop. // // CompilationJobName is a required field CompilationJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopCompilationJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopCompilationJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopCompilationJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopCompilationJobInput"} if s.CompilationJobName == nil { invalidParams.Add(request.NewErrParamRequired("CompilationJobName")) } if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCompilationJobName sets the CompilationJobName field's value. func (s *StopCompilationJobInput) SetCompilationJobName(v string) *StopCompilationJobInput { s.CompilationJobName = &v return s } type StopCompilationJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopCompilationJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopCompilationJobOutput) GoString() string { return s.String() } type StopHyperParameterTuningJobInput struct { _ struct{} `type:"structure"` // The name of the tuning job to stop. // // HyperParameterTuningJobName is a required field HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopHyperParameterTuningJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopHyperParameterTuningJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopHyperParameterTuningJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopHyperParameterTuningJobInput"} if s.HyperParameterTuningJobName == nil { invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) } if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. func (s *StopHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *StopHyperParameterTuningJobInput { s.HyperParameterTuningJobName = &v return s } type StopHyperParameterTuningJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopHyperParameterTuningJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopHyperParameterTuningJobOutput) GoString() string { return s.String() } type StopLabelingJobInput struct { _ struct{} `type:"structure"` // The name of the labeling job to stop. // // LabelingJobName is a required field LabelingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopLabelingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopLabelingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopLabelingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopLabelingJobInput"} if s.LabelingJobName == nil { invalidParams.Add(request.NewErrParamRequired("LabelingJobName")) } if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLabelingJobName sets the LabelingJobName field's value. func (s *StopLabelingJobInput) SetLabelingJobName(v string) *StopLabelingJobInput { s.LabelingJobName = &v return s } type StopLabelingJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopLabelingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopLabelingJobOutput) GoString() string { return s.String() } type StopMonitoringScheduleInput struct { _ struct{} `type:"structure"` // The name of the schedule to stop. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopMonitoringScheduleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopMonitoringScheduleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopMonitoringScheduleInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopMonitoringScheduleInput"} if s.MonitoringScheduleName == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleName")) } if s.MonitoringScheduleName != nil && len(*s.MonitoringScheduleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringScheduleName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *StopMonitoringScheduleInput) SetMonitoringScheduleName(v string) *StopMonitoringScheduleInput { s.MonitoringScheduleName = &v return s } type StopMonitoringScheduleOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopMonitoringScheduleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopMonitoringScheduleOutput) GoString() string { return s.String() } type StopNotebookInstanceInput struct { _ struct{} `type:"structure"` // The name of the notebook instance to terminate. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` } // String returns the string representation func (s StopNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopNotebookInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopNotebookInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopNotebookInstanceInput"} if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *StopNotebookInstanceInput) SetNotebookInstanceName(v string) *StopNotebookInstanceInput { s.NotebookInstanceName = &v return s } type StopNotebookInstanceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopNotebookInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopNotebookInstanceOutput) GoString() string { return s.String() } type StopProcessingJobInput struct { _ struct{} `type:"structure"` // The name of the processing job to stop. // // ProcessingJobName is a required field ProcessingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopProcessingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopProcessingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopProcessingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopProcessingJobInput"} if s.ProcessingJobName == nil { invalidParams.Add(request.NewErrParamRequired("ProcessingJobName")) } if s.ProcessingJobName != nil && len(*s.ProcessingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProcessingJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetProcessingJobName sets the ProcessingJobName field's value. func (s *StopProcessingJobInput) SetProcessingJobName(v string) *StopProcessingJobInput { s.ProcessingJobName = &v return s } type StopProcessingJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopProcessingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopProcessingJobOutput) GoString() string { return s.String() } type StopTrainingJobInput struct { _ struct{} `type:"structure"` // The name of the training job to stop. // // TrainingJobName is a required field TrainingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopTrainingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopTrainingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopTrainingJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopTrainingJobInput"} if s.TrainingJobName == nil { invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) } if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTrainingJobName sets the TrainingJobName field's value. func (s *StopTrainingJobInput) SetTrainingJobName(v string) *StopTrainingJobInput { s.TrainingJobName = &v return s } type StopTrainingJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopTrainingJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopTrainingJobOutput) GoString() string { return s.String() } type StopTransformJobInput struct { _ struct{} `type:"structure"` // The name of the transform job to stop. // // TransformJobName is a required field TransformJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopTransformJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopTransformJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopTransformJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopTransformJobInput"} if s.TransformJobName == nil { invalidParams.Add(request.NewErrParamRequired("TransformJobName")) } if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTransformJobName sets the TransformJobName field's value. func (s *StopTransformJobInput) SetTransformJobName(v string) *StopTransformJobInput { s.TransformJobName = &v return s } type StopTransformJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopTransformJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopTransformJobOutput) GoString() string { return s.String() } // Specifies a limit to how long a model training or compilation job can run. // It also specifies how long you are willing to wait for a managed spot training // job to complete. When the job reaches the time limit, Amazon SageMaker ends // the training or compilation job. Use this API to cap model training costs. // // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which // delays job termination for 120 seconds. Algorithms can use this 120-second // window to save the model artifacts, so the results of training are not lost. // // The training algorithms provided by Amazon SageMaker automatically save the // intermediate results of a model training job when possible. This attempt // to save artifacts is only a best effort case as model might not be in a state // from which it can be saved. For example, if training has just started, the // model might not be ready to save. When saved, this intermediate data is a // valid model artifact. You can use it to create a model with CreateModel. // // The Neural Topic Model (NTM) currently does not support saving intermediate // model artifacts. When training NTMs, make sure that the maximum runtime is // sufficient for the training job to complete. type StoppingCondition struct { _ struct{} `type:"structure"` // The maximum length of time, in seconds, that the training or compilation // job can run. If job does not complete during this time, Amazon SageMaker // ends the job. If value is not specified, default value is 1 day. The maximum // value is 28 days. MaxRuntimeInSeconds *int64 `min:"1" type:"integer"` // The maximum length of time, in seconds, how long you are willing to wait // for a managed spot training job to complete. It is the amount of time spent // waiting for Spot capacity plus the amount of time the training job runs. // It must be equal to or greater than MaxRuntimeInSeconds. MaxWaitTimeInSeconds *int64 `min:"1" type:"integer"` } // String returns the string representation func (s StoppingCondition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StoppingCondition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StoppingCondition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StoppingCondition"} if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1)) } if s.MaxWaitTimeInSeconds != nil && *s.MaxWaitTimeInSeconds < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxWaitTimeInSeconds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value. func (s *StoppingCondition) SetMaxRuntimeInSeconds(v int64) *StoppingCondition { s.MaxRuntimeInSeconds = &v return s } // SetMaxWaitTimeInSeconds sets the MaxWaitTimeInSeconds field's value. func (s *StoppingCondition) SetMaxWaitTimeInSeconds(v int64) *StoppingCondition { s.MaxWaitTimeInSeconds = &v return s } // Describes a work team of a vendor that does the a labelling job. type SubscribedWorkteam struct { _ struct{} `type:"structure"` // Marketplace product listing ID. ListingId *string `type:"string"` // The description of the vendor from the Amazon Marketplace. MarketplaceDescription *string `min:"1" type:"string"` // The title of the service provided by the vendor in the Amazon Marketplace. MarketplaceTitle *string `min:"1" type:"string"` // The name of the vendor in the Amazon Marketplace. SellerName *string `type:"string"` // The Amazon Resource Name (ARN) of the vendor that you have subscribed. // // WorkteamArn is a required field WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation func (s SubscribedWorkteam) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SubscribedWorkteam) GoString() string { return s.String() } // SetListingId sets the ListingId field's value. func (s *SubscribedWorkteam) SetListingId(v string) *SubscribedWorkteam { s.ListingId = &v return s } // SetMarketplaceDescription sets the MarketplaceDescription field's value. func (s *SubscribedWorkteam) SetMarketplaceDescription(v string) *SubscribedWorkteam { s.MarketplaceDescription = &v return s } // SetMarketplaceTitle sets the MarketplaceTitle field's value. func (s *SubscribedWorkteam) SetMarketplaceTitle(v string) *SubscribedWorkteam { s.MarketplaceTitle = &v return s } // SetSellerName sets the SellerName field's value. func (s *SubscribedWorkteam) SetSellerName(v string) *SubscribedWorkteam { s.SellerName = &v return s } // SetWorkteamArn sets the WorkteamArn field's value. func (s *SubscribedWorkteam) SetWorkteamArn(v string) *SubscribedWorkteam { s.WorkteamArn = &v return s } // Specified in the GetSearchSuggestions request. Limits the property names // that are included in the response. type SuggestionQuery struct { _ struct{} `type:"structure"` // Defines a property name hint. Only property names that begin with the specified // hint are included in the response. PropertyNameQuery *PropertyNameQuery `type:"structure"` } // String returns the string representation func (s SuggestionQuery) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SuggestionQuery) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SuggestionQuery) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SuggestionQuery"} if s.PropertyNameQuery != nil { if err := s.PropertyNameQuery.Validate(); err != nil { invalidParams.AddNested("PropertyNameQuery", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPropertyNameQuery sets the PropertyNameQuery field's value. func (s *SuggestionQuery) SetPropertyNameQuery(v *PropertyNameQuery) *SuggestionQuery { s.PropertyNameQuery = v return s } // Describes a tag. type Tag struct { _ struct{} `type:"structure"` // The tag key. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // The tag value. // // Value is a required field Value *string `type:"string" required:"true"` } // String returns the string representation func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Tag) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Tag"} if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKey sets the Key field's value. func (s *Tag) SetKey(v string) *Tag { s.Key = &v return s } // SetValue sets the Value field's value. func (s *Tag) SetValue(v string) *Tag { s.Value = &v return s } // Contains information about a target platform that you want your model to // run on, such as OS, architecture, and accelerators. It is an alternative // of TargetDevice. type TargetPlatform struct { _ struct{} `type:"structure"` // Specifies a target platform accelerator (optional). // // * NVIDIA: Nvidia graphics processing unit. It also requires gpu-code, // trt-ver, cuda-ver compiler options // // * MALI: ARM Mali graphics processor // // * INTEL_GRAPHICS: Integrated Intel graphics Accelerator *string `type:"string" enum:"TargetPlatformAccelerator"` // Specifies a target platform architecture. // // * X86_64: 64-bit version of the x86 instruction set. // // * X86: 32-bit version of the x86 instruction set. // // * ARM64: ARMv8 64-bit CPU. // // * ARM_EABIHF: ARMv7 32-bit, Hard Float. // // * ARM_EABI: ARMv7 32-bit, Soft Float. Used by Android 32-bit ARM platform. // // Arch is a required field Arch *string `type:"string" required:"true" enum:"TargetPlatformArch"` // Specifies a target platform OS. // // * LINUX: Linux-based operating systems. // // * ANDROID: Android operating systems. Android API level can be specified // using the ANDROID_PLATFORM compiler option. For example, "CompilerOptions": // {'ANDROID_PLATFORM': 28} // // Os is a required field Os *string `type:"string" required:"true" enum:"TargetPlatformOs"` } // String returns the string representation func (s TargetPlatform) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TargetPlatform) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TargetPlatform) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TargetPlatform"} if s.Arch == nil { invalidParams.Add(request.NewErrParamRequired("Arch")) } if s.Os == nil { invalidParams.Add(request.NewErrParamRequired("Os")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccelerator sets the Accelerator field's value. func (s *TargetPlatform) SetAccelerator(v string) *TargetPlatform { s.Accelerator = &v return s } // SetArch sets the Arch field's value. func (s *TargetPlatform) SetArch(v string) *TargetPlatform { s.Arch = &v return s } // SetOs sets the Os field's value. func (s *TargetPlatform) SetOs(v string) *TargetPlatform { s.Os = &v return s } // The TensorBoard app settings. type TensorBoardAppSettings struct { _ struct{} `type:"structure"` // The default instance type and the Amazon Resource Name (ARN) of the SageMaker // image created on the instance. DefaultResourceSpec *ResourceSpec `type:"structure"` } // String returns the string representation func (s TensorBoardAppSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TensorBoardAppSettings) GoString() string { return s.String() } // SetDefaultResourceSpec sets the DefaultResourceSpec field's value. func (s *TensorBoardAppSettings) SetDefaultResourceSpec(v *ResourceSpec) *TensorBoardAppSettings { s.DefaultResourceSpec = v return s } // Configuration of storage locations for TensorBoard output. type TensorBoardOutputConfig struct { _ struct{} `type:"structure"` // Path to local storage location for tensorBoard output. Defaults to /opt/ml/output/tensorboard. LocalPath *string `type:"string"` // Path to Amazon S3 storage location for TensorBoard output. // // S3OutputPath is a required field S3OutputPath *string `type:"string" required:"true"` } // String returns the string representation func (s TensorBoardOutputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TensorBoardOutputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TensorBoardOutputConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TensorBoardOutputConfig"} if s.S3OutputPath == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLocalPath sets the LocalPath field's value. func (s *TensorBoardOutputConfig) SetLocalPath(v string) *TensorBoardOutputConfig { s.LocalPath = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *TensorBoardOutputConfig) SetS3OutputPath(v string) *TensorBoardOutputConfig { s.S3OutputPath = &v return s } // Contains information about a training job. type TrainingJob struct { _ struct{} `type:"structure"` // Information about the algorithm used for training, and algorithm metadata. AlgorithmSpecification *AlgorithmSpecification `type:"structure"` // The Amazon Resource Name (ARN) of the job. AutoMLJobArn *string `min:"1" type:"string"` // The billable time in seconds. BillableTimeInSeconds *int64 `min:"1" type:"integer"` // Contains information about the output location for managed spot training // checkpoint data. CheckpointConfig *CheckpointConfig `type:"structure"` // A timestamp that indicates when the training job was created. CreationTime *time.Time `type:"timestamp"` // Configuration information for the debug hook parameters, collection configuration, // and storage paths. DebugHookConfig *DebugHookConfig `type:"structure"` // Information about the debug rule configuration. DebugRuleConfigurations []*DebugRuleConfiguration `type:"list"` // Information about the evaluation status of the rules for the training job. DebugRuleEvaluationStatuses []*DebugRuleEvaluationStatus `type:"list"` // To encrypt all communications between ML compute instances in distributed // training, choose True. Encryption provides greater security for distributed // training, but training might take longer. How long it takes depends on the // amount of communication between compute instances, especially if you use // a deep learning algorithm in distributed training. EnableInterContainerTrafficEncryption *bool `type:"boolean"` // When true, enables managed spot training using Amazon EC2 Spot instances // to run training jobs instead of on-demand instances. For more information, // see Managed Spot Training (https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html). EnableManagedSpotTraining *bool `type:"boolean"` // If the TrainingJob was created with network isolation, the value is set to // true. If network isolation is enabled, nodes can't communicate beyond the // VPC they run in. EnableNetworkIsolation *bool `type:"boolean"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // If the training job failed, the reason it failed. FailureReason *string `type:"string"` // A list of final metric values that are set when the training job completes. // Used only if the training job was configured to use metrics. FinalMetricDataList []*MetricData `type:"list"` // Algorithm-specific parameters. HyperParameters map[string]*string `type:"map"` // An array of Channel objects that describes each data input channel. InputDataConfig []*Channel `min:"1" type:"list"` // The Amazon Resource Name (ARN) of the labeling job. LabelingJobArn *string `type:"string"` // A timestamp that indicates when the status of the training job was last modified. LastModifiedTime *time.Time `type:"timestamp"` // Information about the Amazon S3 location that is configured for storing model // artifacts. ModelArtifacts *ModelArtifacts `type:"structure"` // The S3 path where model artifacts that you configured when creating the job // are stored. Amazon SageMaker creates subfolders for model artifacts. OutputDataConfig *OutputDataConfig `type:"structure"` // Resources, including ML compute instances and ML storage volumes, that are // configured for model training. ResourceConfig *ResourceConfig `type:"structure"` // The AWS Identity and Access Management (IAM) role configured for the training // job. RoleArn *string `min:"20" type:"string"` // Provides detailed information about the state of the training job. For detailed // information about the secondary status of the training job, see StatusMessage // under SecondaryStatusTransition. // // Amazon SageMaker provides primary statuses and secondary statuses that apply // to each of them: // // InProgress // // * Starting - Starting the training job. // // * Downloading - An optional stage for algorithms that support File training // input mode. It indicates that data is being downloaded to the ML storage // volumes. // // * Training - Training is in progress. // // * Uploading - Training is complete and the model artifacts are being uploaded // to the S3 location. // // Completed // // * Completed - The training job has completed. // // Failed // // * Failed - The training job has failed. The reason for the failure is // returned in the FailureReason field of DescribeTrainingJobResponse. // // Stopped // // * MaxRuntimeExceeded - The job stopped because it exceeded the maximum // allowed runtime. // // * Stopped - The training job has stopped. // // Stopping // // * Stopping - Stopping the training job. // // Valid values for SecondaryStatus are subject to change. // // We no longer support the following secondary statuses: // // * LaunchingMLInstances // // * PreparingTrainingStack // // * DownloadingTrainingImage SecondaryStatus *string `type:"string" enum:"SecondaryStatus"` // A history of all of the secondary statuses that the training job has transitioned // through. SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"` // Specifies a limit to how long a model training job can run. When the job // reaches the time limit, Amazon SageMaker ends the training job. Use this // API to cap model training costs. // // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which // delays job termination for 120 seconds. Algorithms can use this 120-second // window to save the model artifacts, so the results of training are not lost. StoppingCondition *StoppingCondition `type:"structure"` // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. Tags []*Tag `type:"list"` // Configuration of storage locations for TensorBoard output. TensorBoardOutputConfig *TensorBoardOutputConfig `type:"structure"` // Indicates the time when the training job ends on training instances. You // are billed for the time interval between the value of TrainingStartTime and // this time. For successful jobs and stopped jobs, this is the time after model // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker // detects a job failure. TrainingEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the training job. TrainingJobArn *string `type:"string"` // The name of the training job. TrainingJobName *string `min:"1" type:"string"` // The status of the training job. // // Training job statuses are: // // * InProgress - The training is in progress. // // * Completed - The training job has completed. // // * Failed - The training job has failed. To see the reason for the failure, // see the FailureReason field in the response to a DescribeTrainingJobResponse // call. // // * Stopping - The training job is stopping. // // * Stopped - The training job has stopped. // // For more detailed information, see SecondaryStatus. TrainingJobStatus *string `type:"string" enum:"TrainingJobStatus"` // Indicates the time when the training job starts on training instances. You // are billed for the time interval between this time and the value of TrainingEndTime. // The start time in CloudWatch Logs might be later than this time. The difference // is due to the time it takes to download the training data and to the size // of the training container. TrainingStartTime *time.Time `type:"timestamp"` // The training time in seconds. TrainingTimeInSeconds *int64 `min:"1" type:"integer"` // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job // if the training job was launched by a hyperparameter tuning job. TuningJobArn *string `type:"string"` // A VpcConfig object that specifies the VPC that this training job has access // to. For more information, see Protect Training Jobs by Using an Amazon Virtual // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s TrainingJob) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrainingJob) GoString() string { return s.String() } // SetAlgorithmSpecification sets the AlgorithmSpecification field's value. func (s *TrainingJob) SetAlgorithmSpecification(v *AlgorithmSpecification) *TrainingJob { s.AlgorithmSpecification = v return s } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *TrainingJob) SetAutoMLJobArn(v string) *TrainingJob { s.AutoMLJobArn = &v return s } // SetBillableTimeInSeconds sets the BillableTimeInSeconds field's value. func (s *TrainingJob) SetBillableTimeInSeconds(v int64) *TrainingJob { s.BillableTimeInSeconds = &v return s } // SetCheckpointConfig sets the CheckpointConfig field's value. func (s *TrainingJob) SetCheckpointConfig(v *CheckpointConfig) *TrainingJob { s.CheckpointConfig = v return s } // SetCreationTime sets the CreationTime field's value. func (s *TrainingJob) SetCreationTime(v time.Time) *TrainingJob { s.CreationTime = &v return s } // SetDebugHookConfig sets the DebugHookConfig field's value. func (s *TrainingJob) SetDebugHookConfig(v *DebugHookConfig) *TrainingJob { s.DebugHookConfig = v return s } // SetDebugRuleConfigurations sets the DebugRuleConfigurations field's value. func (s *TrainingJob) SetDebugRuleConfigurations(v []*DebugRuleConfiguration) *TrainingJob { s.DebugRuleConfigurations = v return s } // SetDebugRuleEvaluationStatuses sets the DebugRuleEvaluationStatuses field's value. func (s *TrainingJob) SetDebugRuleEvaluationStatuses(v []*DebugRuleEvaluationStatus) *TrainingJob { s.DebugRuleEvaluationStatuses = v return s } // SetEnableInterContainerTrafficEncryption sets the EnableInterContainerTrafficEncryption field's value. func (s *TrainingJob) SetEnableInterContainerTrafficEncryption(v bool) *TrainingJob { s.EnableInterContainerTrafficEncryption = &v return s } // SetEnableManagedSpotTraining sets the EnableManagedSpotTraining field's value. func (s *TrainingJob) SetEnableManagedSpotTraining(v bool) *TrainingJob { s.EnableManagedSpotTraining = &v return s } // SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. func (s *TrainingJob) SetEnableNetworkIsolation(v bool) *TrainingJob { s.EnableNetworkIsolation = &v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *TrainingJob) SetExperimentConfig(v *ExperimentConfig) *TrainingJob { s.ExperimentConfig = v return s } // SetFailureReason sets the FailureReason field's value. func (s *TrainingJob) SetFailureReason(v string) *TrainingJob { s.FailureReason = &v return s } // SetFinalMetricDataList sets the FinalMetricDataList field's value. func (s *TrainingJob) SetFinalMetricDataList(v []*MetricData) *TrainingJob { s.FinalMetricDataList = v return s } // SetHyperParameters sets the HyperParameters field's value. func (s *TrainingJob) SetHyperParameters(v map[string]*string) *TrainingJob { s.HyperParameters = v return s } // SetInputDataConfig sets the InputDataConfig field's value. func (s *TrainingJob) SetInputDataConfig(v []*Channel) *TrainingJob { s.InputDataConfig = v return s } // SetLabelingJobArn sets the LabelingJobArn field's value. func (s *TrainingJob) SetLabelingJobArn(v string) *TrainingJob { s.LabelingJobArn = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *TrainingJob) SetLastModifiedTime(v time.Time) *TrainingJob { s.LastModifiedTime = &v return s } // SetModelArtifacts sets the ModelArtifacts field's value. func (s *TrainingJob) SetModelArtifacts(v *ModelArtifacts) *TrainingJob { s.ModelArtifacts = v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. func (s *TrainingJob) SetOutputDataConfig(v *OutputDataConfig) *TrainingJob { s.OutputDataConfig = v return s } // SetResourceConfig sets the ResourceConfig field's value. func (s *TrainingJob) SetResourceConfig(v *ResourceConfig) *TrainingJob { s.ResourceConfig = v return s } // SetRoleArn sets the RoleArn field's value. func (s *TrainingJob) SetRoleArn(v string) *TrainingJob { s.RoleArn = &v return s } // SetSecondaryStatus sets the SecondaryStatus field's value. func (s *TrainingJob) SetSecondaryStatus(v string) *TrainingJob { s.SecondaryStatus = &v return s } // SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value. func (s *TrainingJob) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *TrainingJob { s.SecondaryStatusTransitions = v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *TrainingJob) SetStoppingCondition(v *StoppingCondition) *TrainingJob { s.StoppingCondition = v return s } // SetTags sets the Tags field's value. func (s *TrainingJob) SetTags(v []*Tag) *TrainingJob { s.Tags = v return s } // SetTensorBoardOutputConfig sets the TensorBoardOutputConfig field's value. func (s *TrainingJob) SetTensorBoardOutputConfig(v *TensorBoardOutputConfig) *TrainingJob { s.TensorBoardOutputConfig = v return s } // SetTrainingEndTime sets the TrainingEndTime field's value. func (s *TrainingJob) SetTrainingEndTime(v time.Time) *TrainingJob { s.TrainingEndTime = &v return s } // SetTrainingJobArn sets the TrainingJobArn field's value. func (s *TrainingJob) SetTrainingJobArn(v string) *TrainingJob { s.TrainingJobArn = &v return s } // SetTrainingJobName sets the TrainingJobName field's value. func (s *TrainingJob) SetTrainingJobName(v string) *TrainingJob { s.TrainingJobName = &v return s } // SetTrainingJobStatus sets the TrainingJobStatus field's value. func (s *TrainingJob) SetTrainingJobStatus(v string) *TrainingJob { s.TrainingJobStatus = &v return s } // SetTrainingStartTime sets the TrainingStartTime field's value. func (s *TrainingJob) SetTrainingStartTime(v time.Time) *TrainingJob { s.TrainingStartTime = &v return s } // SetTrainingTimeInSeconds sets the TrainingTimeInSeconds field's value. func (s *TrainingJob) SetTrainingTimeInSeconds(v int64) *TrainingJob { s.TrainingTimeInSeconds = &v return s } // SetTuningJobArn sets the TuningJobArn field's value. func (s *TrainingJob) SetTuningJobArn(v string) *TrainingJob { s.TuningJobArn = &v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *TrainingJob) SetVpcConfig(v *VpcConfig) *TrainingJob { s.VpcConfig = v return s } // Defines the input needed to run a training job using the algorithm. type TrainingJobDefinition struct { _ struct{} `type:"structure"` // The hyperparameters used for the training job. HyperParameters map[string]*string `type:"map"` // An array of Channel objects, each of which specifies an input source. // // InputDataConfig is a required field InputDataConfig []*Channel `min:"1" type:"list" required:"true"` // the path to the S3 bucket where you want to store model artifacts. Amazon // SageMaker creates subfolders for the artifacts. // // OutputDataConfig is a required field OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` // The resources, including the ML compute instances and ML storage volumes, // to use for model training. // // ResourceConfig is a required field ResourceConfig *ResourceConfig `type:"structure" required:"true"` // Specifies a limit to how long a model training job can run. When the job // reaches the time limit, Amazon SageMaker ends the training job. Use this // API to cap model training costs. // // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which // delays job termination for 120 seconds. Algorithms can use this 120-second // window to save the model artifacts. // // StoppingCondition is a required field StoppingCondition *StoppingCondition `type:"structure" required:"true"` // The input mode used by the algorithm for the training job. For the input // modes that Amazon SageMaker algorithms support, see Algorithms (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). // // If an algorithm supports the File input mode, Amazon SageMaker downloads // the training data from S3 to the provisioned ML storage Volume, and mounts // the directory to docker volume for training container. If an algorithm supports // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the // container. // // TrainingInputMode is a required field TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` } // String returns the string representation func (s TrainingJobDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrainingJobDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TrainingJobDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TrainingJobDefinition"} if s.InputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) } if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) } if s.OutputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) } if s.ResourceConfig == nil { invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) } if s.StoppingCondition == nil { invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) } if s.TrainingInputMode == nil { invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) } if s.InputDataConfig != nil { for i, v := range s.InputDataConfig { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) } } } if s.OutputDataConfig != nil { if err := s.OutputDataConfig.Validate(); err != nil { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } if s.ResourceConfig != nil { if err := s.ResourceConfig.Validate(); err != nil { invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) } } if s.StoppingCondition != nil { if err := s.StoppingCondition.Validate(); err != nil { invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHyperParameters sets the HyperParameters field's value. func (s *TrainingJobDefinition) SetHyperParameters(v map[string]*string) *TrainingJobDefinition { s.HyperParameters = v return s } // SetInputDataConfig sets the InputDataConfig field's value. func (s *TrainingJobDefinition) SetInputDataConfig(v []*Channel) *TrainingJobDefinition { s.InputDataConfig = v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. func (s *TrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *TrainingJobDefinition { s.OutputDataConfig = v return s } // SetResourceConfig sets the ResourceConfig field's value. func (s *TrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *TrainingJobDefinition { s.ResourceConfig = v return s } // SetStoppingCondition sets the StoppingCondition field's value. func (s *TrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *TrainingJobDefinition { s.StoppingCondition = v return s } // SetTrainingInputMode sets the TrainingInputMode field's value. func (s *TrainingJobDefinition) SetTrainingInputMode(v string) *TrainingJobDefinition { s.TrainingInputMode = &v return s } // The numbers of training jobs launched by a hyperparameter tuning job, categorized // by status. type TrainingJobStatusCounters struct { _ struct{} `type:"structure"` // The number of completed training jobs launched by the hyperparameter tuning // job. Completed *int64 `type:"integer"` // The number of in-progress training jobs launched by a hyperparameter tuning // job. InProgress *int64 `type:"integer"` // The number of training jobs that failed and can't be retried. A failed training // job can't be retried if it failed because a client error occurred. NonRetryableError *int64 `type:"integer"` // The number of training jobs that failed, but can be retried. A failed training // job can be retried only if it failed because an internal service error occurred. RetryableError *int64 `type:"integer"` // The number of training jobs launched by a hyperparameter tuning job that // were manually stopped. Stopped *int64 `type:"integer"` } // String returns the string representation func (s TrainingJobStatusCounters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrainingJobStatusCounters) GoString() string { return s.String() } // SetCompleted sets the Completed field's value. func (s *TrainingJobStatusCounters) SetCompleted(v int64) *TrainingJobStatusCounters { s.Completed = &v return s } // SetInProgress sets the InProgress field's value. func (s *TrainingJobStatusCounters) SetInProgress(v int64) *TrainingJobStatusCounters { s.InProgress = &v return s } // SetNonRetryableError sets the NonRetryableError field's value. func (s *TrainingJobStatusCounters) SetNonRetryableError(v int64) *TrainingJobStatusCounters { s.NonRetryableError = &v return s } // SetRetryableError sets the RetryableError field's value. func (s *TrainingJobStatusCounters) SetRetryableError(v int64) *TrainingJobStatusCounters { s.RetryableError = &v return s } // SetStopped sets the Stopped field's value. func (s *TrainingJobStatusCounters) SetStopped(v int64) *TrainingJobStatusCounters { s.Stopped = &v return s } // Provides summary information about a training job. type TrainingJobSummary struct { _ struct{} `type:"structure"` // A timestamp that shows when the training job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // Timestamp when the training job was last modified. LastModifiedTime *time.Time `type:"timestamp"` // A timestamp that shows when the training job ended. This field is set only // if the training job has one of the terminal statuses (Completed, Failed, // or Stopped). TrainingEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the training job. // // TrainingJobArn is a required field TrainingJobArn *string `type:"string" required:"true"` // The name of the training job that you want a summary for. // // TrainingJobName is a required field TrainingJobName *string `min:"1" type:"string" required:"true"` // The status of the training job. // // TrainingJobStatus is a required field TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` } // String returns the string representation func (s TrainingJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrainingJobSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *TrainingJobSummary) SetCreationTime(v time.Time) *TrainingJobSummary { s.CreationTime = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *TrainingJobSummary) SetLastModifiedTime(v time.Time) *TrainingJobSummary { s.LastModifiedTime = &v return s } // SetTrainingEndTime sets the TrainingEndTime field's value. func (s *TrainingJobSummary) SetTrainingEndTime(v time.Time) *TrainingJobSummary { s.TrainingEndTime = &v return s } // SetTrainingJobArn sets the TrainingJobArn field's value. func (s *TrainingJobSummary) SetTrainingJobArn(v string) *TrainingJobSummary { s.TrainingJobArn = &v return s } // SetTrainingJobName sets the TrainingJobName field's value. func (s *TrainingJobSummary) SetTrainingJobName(v string) *TrainingJobSummary { s.TrainingJobName = &v return s } // SetTrainingJobStatus sets the TrainingJobStatus field's value. func (s *TrainingJobSummary) SetTrainingJobStatus(v string) *TrainingJobSummary { s.TrainingJobStatus = &v return s } // Defines how the algorithm is used for a training job. type TrainingSpecification struct { _ struct{} `type:"structure"` // A list of MetricDefinition objects, which are used for parsing metrics generated // by the algorithm. MetricDefinitions []*MetricDefinition `type:"list"` // A list of the HyperParameterSpecification objects, that define the supported // hyperparameters. This is required if the algorithm supports automatic model // tuning.> SupportedHyperParameters []*HyperParameterSpecification `type:"list"` // A list of the instance types that this algorithm can use for training. // // SupportedTrainingInstanceTypes is a required field SupportedTrainingInstanceTypes []*string `type:"list" required:"true"` // A list of the metrics that the algorithm emits that can be used as the objective // metric in a hyperparameter tuning job. SupportedTuningJobObjectiveMetrics []*HyperParameterTuningJobObjective `type:"list"` // Indicates whether the algorithm supports distributed training. If set to // false, buyers can't request more than one instance during training. SupportsDistributedTraining *bool `type:"boolean"` // A list of ChannelSpecification objects, which specify the input sources to // be used by the algorithm. // // TrainingChannels is a required field TrainingChannels []*ChannelSpecification `min:"1" type:"list" required:"true"` // The Amazon ECR registry path of the Docker image that contains the training // algorithm. // // TrainingImage is a required field TrainingImage *string `type:"string" required:"true"` // An MD5 hash of the training algorithm that identifies the Docker image used // for training. TrainingImageDigest *string `type:"string"` } // String returns the string representation func (s TrainingSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrainingSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TrainingSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TrainingSpecification"} if s.SupportedTrainingInstanceTypes == nil { invalidParams.Add(request.NewErrParamRequired("SupportedTrainingInstanceTypes")) } if s.TrainingChannels == nil { invalidParams.Add(request.NewErrParamRequired("TrainingChannels")) } if s.TrainingChannels != nil && len(s.TrainingChannels) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrainingChannels", 1)) } if s.TrainingImage == nil { invalidParams.Add(request.NewErrParamRequired("TrainingImage")) } if s.MetricDefinitions != nil { for i, v := range s.MetricDefinitions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) } } } if s.SupportedHyperParameters != nil { for i, v := range s.SupportedHyperParameters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedHyperParameters", i), err.(request.ErrInvalidParams)) } } } if s.SupportedTuningJobObjectiveMetrics != nil { for i, v := range s.SupportedTuningJobObjectiveMetrics { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedTuningJobObjectiveMetrics", i), err.(request.ErrInvalidParams)) } } } if s.TrainingChannels != nil { for i, v := range s.TrainingChannels { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TrainingChannels", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMetricDefinitions sets the MetricDefinitions field's value. func (s *TrainingSpecification) SetMetricDefinitions(v []*MetricDefinition) *TrainingSpecification { s.MetricDefinitions = v return s } // SetSupportedHyperParameters sets the SupportedHyperParameters field's value. func (s *TrainingSpecification) SetSupportedHyperParameters(v []*HyperParameterSpecification) *TrainingSpecification { s.SupportedHyperParameters = v return s } // SetSupportedTrainingInstanceTypes sets the SupportedTrainingInstanceTypes field's value. func (s *TrainingSpecification) SetSupportedTrainingInstanceTypes(v []*string) *TrainingSpecification { s.SupportedTrainingInstanceTypes = v return s } // SetSupportedTuningJobObjectiveMetrics sets the SupportedTuningJobObjectiveMetrics field's value. func (s *TrainingSpecification) SetSupportedTuningJobObjectiveMetrics(v []*HyperParameterTuningJobObjective) *TrainingSpecification { s.SupportedTuningJobObjectiveMetrics = v return s } // SetSupportsDistributedTraining sets the SupportsDistributedTraining field's value. func (s *TrainingSpecification) SetSupportsDistributedTraining(v bool) *TrainingSpecification { s.SupportsDistributedTraining = &v return s } // SetTrainingChannels sets the TrainingChannels field's value. func (s *TrainingSpecification) SetTrainingChannels(v []*ChannelSpecification) *TrainingSpecification { s.TrainingChannels = v return s } // SetTrainingImage sets the TrainingImage field's value. func (s *TrainingSpecification) SetTrainingImage(v string) *TrainingSpecification { s.TrainingImage = &v return s } // SetTrainingImageDigest sets the TrainingImageDigest field's value. func (s *TrainingSpecification) SetTrainingImageDigest(v string) *TrainingSpecification { s.TrainingImageDigest = &v return s } // Describes the location of the channel data. type TransformDataSource struct { _ struct{} `type:"structure"` // The S3 location of the data source that is associated with a channel. // // S3DataSource is a required field S3DataSource *TransformS3DataSource `type:"structure" required:"true"` } // String returns the string representation func (s TransformDataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformDataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TransformDataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TransformDataSource"} if s.S3DataSource == nil { invalidParams.Add(request.NewErrParamRequired("S3DataSource")) } if s.S3DataSource != nil { if err := s.S3DataSource.Validate(); err != nil { invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3DataSource sets the S3DataSource field's value. func (s *TransformDataSource) SetS3DataSource(v *TransformS3DataSource) *TransformDataSource { s.S3DataSource = v return s } // Describes the input source of a transform job and the way the transform job // consumes it. type TransformInput struct { _ struct{} `type:"structure"` // If your transform data is compressed, specify the compression type. Amazon // SageMaker automatically decompresses the data for the transform job accordingly. // The default value is None. CompressionType *string `type:"string" enum:"CompressionType"` // The multipurpose internet mail extension (MIME) type of the data. Amazon // SageMaker uses the MIME type with each http call to transfer data to the // transform job. ContentType *string `type:"string"` // Describes the location of the channel data, which is, the S3 location of // the input data that the model can consume. // // DataSource is a required field DataSource *TransformDataSource `type:"structure" required:"true"` // The method to use to split the transform job's data files into smaller batches. // Splitting is necessary when the total size of each object is too large to // fit in a single request. You can also use data splitting to improve performance // by processing multiple concurrent mini-batches. The default value for SplitType // is None, which indicates that input data files are not split, and request // payloads contain the entire contents of an input object. Set the value of // this parameter to Line to split records on a newline character boundary. // SplitType also supports a number of record-oriented binary data formats. // Currently, the supported record formats are: // // * RecordIO // // * TFRecord // // When splitting is enabled, the size of a mini-batch depends on the values // of the BatchStrategy and MaxPayloadInMB parameters. When the value of BatchStrategy // is MultiRecord, Amazon SageMaker sends the maximum number of records in each // request, up to the MaxPayloadInMB limit. If the value of BatchStrategy is // SingleRecord, Amazon SageMaker sends individual records in each request. // // Some data formats represent a record as a binary payload wrapped with extra // padding bytes. When splitting is applied to a binary data format, padding // is removed if the value of BatchStrategy is set to SingleRecord. Padding // is not removed if the value of BatchStrategy is set to MultiRecord. // // For more information about RecordIO, see Create a Dataset Using RecordIO // (https://mxnet.apache.org/api/faq/recordio) in the MXNet documentation. For // more information about TFRecord, see Consuming TFRecord data (https://www.tensorflow.org/guide/datasets#consuming_tfrecord_data) // in the TensorFlow documentation. SplitType *string `type:"string" enum:"SplitType"` } // String returns the string representation func (s TransformInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TransformInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TransformInput"} if s.DataSource == nil { invalidParams.Add(request.NewErrParamRequired("DataSource")) } if s.DataSource != nil { if err := s.DataSource.Validate(); err != nil { invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCompressionType sets the CompressionType field's value. func (s *TransformInput) SetCompressionType(v string) *TransformInput { s.CompressionType = &v return s } // SetContentType sets the ContentType field's value. func (s *TransformInput) SetContentType(v string) *TransformInput { s.ContentType = &v return s } // SetDataSource sets the DataSource field's value. func (s *TransformInput) SetDataSource(v *TransformDataSource) *TransformInput { s.DataSource = v return s } // SetSplitType sets the SplitType field's value. func (s *TransformInput) SetSplitType(v string) *TransformInput { s.SplitType = &v return s } // A batch transform job. For information about SageMaker batch transform, see // Use Batch Transform (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html). type TransformJob struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the AutoML job that created the transform // job. AutoMLJobArn *string `min:"1" type:"string"` // Specifies the number of records to include in a mini-batch for an HTTP inference // request. A record is a single unit of input data that inference can be made // on. For example, a single line in a CSV file is a record. BatchStrategy *string `type:"string" enum:"BatchStrategy"` // A timestamp that shows when the transform Job was created. CreationTime *time.Time `type:"timestamp"` // The data structure used to specify the data to be used for inference in a // batch transform job and to associate the data that is relevant to the prediction // results in the output. The input filter provided allows you to exclude input // data that is not needed for inference in a batch transform job. The output // filter provided allows you to include input data relevant to interpreting // the predictions in the output from the job. For more information, see Associate // Prediction Results with their Corresponding Input Records (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform-data-processing.html). DataProcessing *DataProcessing `type:"structure"` // The environment variables to set in the Docker container. We support up to // 16 key and values entries in the map. Environment map[string]*string `type:"map"` // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: // // * CreateProcessingJob // // * CreateTrainingJob // // * CreateTransformJob ExperimentConfig *ExperimentConfig `type:"structure"` // If the transform job failed, the reason it failed. FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the labeling job that created the transform // job. LabelingJobArn *string `type:"string"` // The maximum number of parallel requests that can be sent to each instance // in a transform job. If MaxConcurrentTransforms is set to 0 or left unset, // SageMaker checks the optional execution-parameters to determine the settings // for your chosen algorithm. If the execution-parameters endpoint is not enabled, // the default value is 1. For built-in algorithms, you don't need to set a // value for MaxConcurrentTransforms. MaxConcurrentTransforms *int64 `type:"integer"` // The maximum allowed size of the payload, in MB. A payload is the data portion // of a record (without metadata). The value in MaxPayloadInMB must be greater // than, or equal to, the size of a single record. To estimate the size of a // record in MB, divide the size of your dataset by the number of records. To // ensure that the records fit within the maximum payload size, we recommend // using a slightly larger value. The default value is 6 MB. For cases where // the payload might be arbitrarily large and is transmitted using HTTP chunked // encoding, set the value to 0. This feature works only in supported algorithms. // Currently, SageMaker built-in algorithms do not support HTTP chunked encoding. MaxPayloadInMB *int64 `type:"integer"` // Configures the timeout and maximum number of retries for processing a transform // job invocation. ModelClientConfig *ModelClientConfig `type:"structure"` // The name of the model associated with the transform job. ModelName *string `type:"string"` // A list of tags associated with the transform job. Tags []*Tag `type:"list"` // Indicates when the transform job has been completed, or has stopped or failed. // You are billed for the time interval between this time and the value of TransformStartTime. TransformEndTime *time.Time `type:"timestamp"` // Describes the input source of a transform job and the way the transform job // consumes it. TransformInput *TransformInput `type:"structure"` // The Amazon Resource Name (ARN) of the transform job. TransformJobArn *string `type:"string"` // The name of the transform job. TransformJobName *string `min:"1" type:"string"` // The status of the transform job. // // Transform job statuses are: // // * InProgress - The job is in progress. // // * Completed - The job has completed. // // * Failed - The transform job has failed. To see the reason for the failure, // see the FailureReason field in the response to a DescribeTransformJob // call. // // * Stopping - The transform job is stopping. // // * Stopped - The transform job has stopped. TransformJobStatus *string `type:"string" enum:"TransformJobStatus"` // Describes the results of a transform job. TransformOutput *TransformOutput `type:"structure"` // Describes the resources, including ML instance types and ML instance count, // to use for transform job. TransformResources *TransformResources `type:"structure"` // Indicates when the transform job starts on ML instances. You are billed for // the time interval between this time and the value of TransformEndTime. TransformStartTime *time.Time `type:"timestamp"` } // String returns the string representation func (s TransformJob) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformJob) GoString() string { return s.String() } // SetAutoMLJobArn sets the AutoMLJobArn field's value. func (s *TransformJob) SetAutoMLJobArn(v string) *TransformJob { s.AutoMLJobArn = &v return s } // SetBatchStrategy sets the BatchStrategy field's value. func (s *TransformJob) SetBatchStrategy(v string) *TransformJob { s.BatchStrategy = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *TransformJob) SetCreationTime(v time.Time) *TransformJob { s.CreationTime = &v return s } // SetDataProcessing sets the DataProcessing field's value. func (s *TransformJob) SetDataProcessing(v *DataProcessing) *TransformJob { s.DataProcessing = v return s } // SetEnvironment sets the Environment field's value. func (s *TransformJob) SetEnvironment(v map[string]*string) *TransformJob { s.Environment = v return s } // SetExperimentConfig sets the ExperimentConfig field's value. func (s *TransformJob) SetExperimentConfig(v *ExperimentConfig) *TransformJob { s.ExperimentConfig = v return s } // SetFailureReason sets the FailureReason field's value. func (s *TransformJob) SetFailureReason(v string) *TransformJob { s.FailureReason = &v return s } // SetLabelingJobArn sets the LabelingJobArn field's value. func (s *TransformJob) SetLabelingJobArn(v string) *TransformJob { s.LabelingJobArn = &v return s } // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. func (s *TransformJob) SetMaxConcurrentTransforms(v int64) *TransformJob { s.MaxConcurrentTransforms = &v return s } // SetMaxPayloadInMB sets the MaxPayloadInMB field's value. func (s *TransformJob) SetMaxPayloadInMB(v int64) *TransformJob { s.MaxPayloadInMB = &v return s } // SetModelClientConfig sets the ModelClientConfig field's value. func (s *TransformJob) SetModelClientConfig(v *ModelClientConfig) *TransformJob { s.ModelClientConfig = v return s } // SetModelName sets the ModelName field's value. func (s *TransformJob) SetModelName(v string) *TransformJob { s.ModelName = &v return s } // SetTags sets the Tags field's value. func (s *TransformJob) SetTags(v []*Tag) *TransformJob { s.Tags = v return s } // SetTransformEndTime sets the TransformEndTime field's value. func (s *TransformJob) SetTransformEndTime(v time.Time) *TransformJob { s.TransformEndTime = &v return s } // SetTransformInput sets the TransformInput field's value. func (s *TransformJob) SetTransformInput(v *TransformInput) *TransformJob { s.TransformInput = v return s } // SetTransformJobArn sets the TransformJobArn field's value. func (s *TransformJob) SetTransformJobArn(v string) *TransformJob { s.TransformJobArn = &v return s } // SetTransformJobName sets the TransformJobName field's value. func (s *TransformJob) SetTransformJobName(v string) *TransformJob { s.TransformJobName = &v return s } // SetTransformJobStatus sets the TransformJobStatus field's value. func (s *TransformJob) SetTransformJobStatus(v string) *TransformJob { s.TransformJobStatus = &v return s } // SetTransformOutput sets the TransformOutput field's value. func (s *TransformJob) SetTransformOutput(v *TransformOutput) *TransformJob { s.TransformOutput = v return s } // SetTransformResources sets the TransformResources field's value. func (s *TransformJob) SetTransformResources(v *TransformResources) *TransformJob { s.TransformResources = v return s } // SetTransformStartTime sets the TransformStartTime field's value. func (s *TransformJob) SetTransformStartTime(v time.Time) *TransformJob { s.TransformStartTime = &v return s } // Defines the input needed to run a transform job using the inference specification // specified in the algorithm. type TransformJobDefinition struct { _ struct{} `type:"structure"` // A string that determines the number of records included in a single mini-batch. // // SingleRecord means only one record is used per mini-batch. MultiRecord means // a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB // limit. BatchStrategy *string `type:"string" enum:"BatchStrategy"` // The environment variables to set in the Docker container. We support up to // 16 key and values entries in the map. Environment map[string]*string `type:"map"` // The maximum number of parallel requests that can be sent to each instance // in a transform job. The default value is 1. MaxConcurrentTransforms *int64 `type:"integer"` // The maximum payload size allowed, in MB. A payload is the data portion of // a record (without metadata). MaxPayloadInMB *int64 `type:"integer"` // A description of the input source and the way the transform job consumes // it. // // TransformInput is a required field TransformInput *TransformInput `type:"structure" required:"true"` // Identifies the Amazon S3 location where you want Amazon SageMaker to save // the results from the transform job. // // TransformOutput is a required field TransformOutput *TransformOutput `type:"structure" required:"true"` // Identifies the ML compute instances for the transform job. // // TransformResources is a required field TransformResources *TransformResources `type:"structure" required:"true"` } // String returns the string representation func (s TransformJobDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformJobDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TransformJobDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TransformJobDefinition"} if s.TransformInput == nil { invalidParams.Add(request.NewErrParamRequired("TransformInput")) } if s.TransformOutput == nil { invalidParams.Add(request.NewErrParamRequired("TransformOutput")) } if s.TransformResources == nil { invalidParams.Add(request.NewErrParamRequired("TransformResources")) } if s.TransformInput != nil { if err := s.TransformInput.Validate(); err != nil { invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams)) } } if s.TransformOutput != nil { if err := s.TransformOutput.Validate(); err != nil { invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams)) } } if s.TransformResources != nil { if err := s.TransformResources.Validate(); err != nil { invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBatchStrategy sets the BatchStrategy field's value. func (s *TransformJobDefinition) SetBatchStrategy(v string) *TransformJobDefinition { s.BatchStrategy = &v return s } // SetEnvironment sets the Environment field's value. func (s *TransformJobDefinition) SetEnvironment(v map[string]*string) *TransformJobDefinition { s.Environment = v return s } // SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. func (s *TransformJobDefinition) SetMaxConcurrentTransforms(v int64) *TransformJobDefinition { s.MaxConcurrentTransforms = &v return s } // SetMaxPayloadInMB sets the MaxPayloadInMB field's value. func (s *TransformJobDefinition) SetMaxPayloadInMB(v int64) *TransformJobDefinition { s.MaxPayloadInMB = &v return s } // SetTransformInput sets the TransformInput field's value. func (s *TransformJobDefinition) SetTransformInput(v *TransformInput) *TransformJobDefinition { s.TransformInput = v return s } // SetTransformOutput sets the TransformOutput field's value. func (s *TransformJobDefinition) SetTransformOutput(v *TransformOutput) *TransformJobDefinition { s.TransformOutput = v return s } // SetTransformResources sets the TransformResources field's value. func (s *TransformJobDefinition) SetTransformResources(v *TransformResources) *TransformJobDefinition { s.TransformResources = v return s } // Provides a summary of a transform job. Multiple TransformJobSummary objects // are returned as a list after in response to a ListTransformJobs call. type TransformJobSummary struct { _ struct{} `type:"structure"` // A timestamp that shows when the transform Job was created. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // If the transform job failed, the reason it failed. FailureReason *string `type:"string"` // Indicates when the transform job was last modified. LastModifiedTime *time.Time `type:"timestamp"` // Indicates when the transform job ends on compute instances. For successful // jobs and stopped jobs, this is the exact time recorded after the results // are uploaded. For failed jobs, this is when Amazon SageMaker detected that // the job failed. TransformEndTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the transform job. // // TransformJobArn is a required field TransformJobArn *string `type:"string" required:"true"` // The name of the transform job. // // TransformJobName is a required field TransformJobName *string `min:"1" type:"string" required:"true"` // The status of the transform job. // // TransformJobStatus is a required field TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"` } // String returns the string representation func (s TransformJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformJobSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *TransformJobSummary) SetCreationTime(v time.Time) *TransformJobSummary { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *TransformJobSummary) SetFailureReason(v string) *TransformJobSummary { s.FailureReason = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *TransformJobSummary) SetLastModifiedTime(v time.Time) *TransformJobSummary { s.LastModifiedTime = &v return s } // SetTransformEndTime sets the TransformEndTime field's value. func (s *TransformJobSummary) SetTransformEndTime(v time.Time) *TransformJobSummary { s.TransformEndTime = &v return s } // SetTransformJobArn sets the TransformJobArn field's value. func (s *TransformJobSummary) SetTransformJobArn(v string) *TransformJobSummary { s.TransformJobArn = &v return s } // SetTransformJobName sets the TransformJobName field's value. func (s *TransformJobSummary) SetTransformJobName(v string) *TransformJobSummary { s.TransformJobName = &v return s } // SetTransformJobStatus sets the TransformJobStatus field's value. func (s *TransformJobSummary) SetTransformJobStatus(v string) *TransformJobSummary { s.TransformJobStatus = &v return s } // Describes the results of a transform job. type TransformOutput struct { _ struct{} `type:"structure"` // The MIME type used to specify the output data. Amazon SageMaker uses the // MIME type with each http call to transfer data from the transform job. Accept *string `type:"string"` // Defines how to assemble the results of the transform job as a single S3 object. // Choose a format that is most convenient to you. To concatenate the results // in binary format, specify None. To add a newline character at the end of // every transformed record, specify Line. AssembleWith *string `type:"string" enum:"AssemblyType"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt the model artifacts at rest using Amazon S3 server-side encryption. // The KmsKeyId can be any of the following formats: // // * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // * Alias name: alias/ExampleAlias // // * Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias // // If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS // key for Amazon S3 for your role's account. For more information, see KMS-Managed // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) // in the Amazon Simple Storage Service Developer Guide. // // The KMS key policy must grant permission to the IAM role that you specify // in your CreateModel request. For more information, see Using Key Policies // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) // in the AWS Key Management Service Developer Guide. KmsKeyId *string `type:"string"` // The Amazon S3 path where you want Amazon SageMaker to store the results of // the transform job. For example, s3://bucket-name/key-name-prefix. // // For every S3 object used as input for the transform job, batch transform // stores the transformed data with an .out suffix in a corresponding subfolder // in the location in the output prefix. For example, for the input data stored // at s3://bucket-name/input-name-prefix/dataset01/data.csv, batch transform // stores the transformed data at s3://bucket-name/output-name-prefix/input-name-prefix/data.csv.out. // Batch transform doesn't upload partially processed objects. For an input // S3 object that contains multiple records, it creates an .out file only if // the transform job succeeds on the entire file. When the input contains multiple // S3 objects, the batch transform job processes the listed S3 objects and uploads // only the output for successfully processed objects. If any object fails in // the transform job batch transform marks the job as failed to prompt investigation. // // S3OutputPath is a required field S3OutputPath *string `type:"string" required:"true"` } // String returns the string representation func (s TransformOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformOutput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TransformOutput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TransformOutput"} if s.S3OutputPath == nil { invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccept sets the Accept field's value. func (s *TransformOutput) SetAccept(v string) *TransformOutput { s.Accept = &v return s } // SetAssembleWith sets the AssembleWith field's value. func (s *TransformOutput) SetAssembleWith(v string) *TransformOutput { s.AssembleWith = &v return s } // SetKmsKeyId sets the KmsKeyId field's value. func (s *TransformOutput) SetKmsKeyId(v string) *TransformOutput { s.KmsKeyId = &v return s } // SetS3OutputPath sets the S3OutputPath field's value. func (s *TransformOutput) SetS3OutputPath(v string) *TransformOutput { s.S3OutputPath = &v return s } // Describes the resources, including ML instance types and ML instance count, // to use for transform job. type TransformResources struct { _ struct{} `type:"structure"` // The number of ML compute instances to use in the transform job. For distributed // transform jobs, specify a value greater than 1. The default value is 1. // // InstanceCount is a required field InstanceCount *int64 `min:"1" type:"integer" required:"true"` // The ML compute instance type for the transform job. If you are using built-in // algorithms to transform moderately sized datasets, we recommend using ml.m4.xlarge // or ml.m5.large instance types. // // InstanceType is a required field InstanceType *string `type:"string" required:"true" enum:"TransformInstanceType"` // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt model data on the storage volume attached to the ML compute instance(s) // that run the batch transform job. The VolumeKmsKeyId can be any of the following // formats: // // * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // // * Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab // // * Alias name: alias/ExampleAlias // // * Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias VolumeKmsKeyId *string `type:"string"` } // String returns the string representation func (s TransformResources) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformResources) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TransformResources) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TransformResources"} if s.InstanceCount == nil { invalidParams.Add(request.NewErrParamRequired("InstanceCount")) } if s.InstanceCount != nil && *s.InstanceCount < 1 { invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInstanceCount sets the InstanceCount field's value. func (s *TransformResources) SetInstanceCount(v int64) *TransformResources { s.InstanceCount = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *TransformResources) SetInstanceType(v string) *TransformResources { s.InstanceType = &v return s } // SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. func (s *TransformResources) SetVolumeKmsKeyId(v string) *TransformResources { s.VolumeKmsKeyId = &v return s } // Describes the S3 data source. type TransformS3DataSource struct { _ struct{} `type:"structure"` // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker // uses all objects with the specified key name prefix for batch transform. // // If you choose ManifestFile, S3Uri identifies an object that is a manifest // file containing a list of object keys that you want Amazon SageMaker to use // for batch transform. // // The following values are compatible: ManifestFile, S3Prefix // // The following value is not compatible: AugmentedManifestFile // // S3DataType is a required field S3DataType *string `type:"string" required:"true" enum:"S3DataType"` // Depending on the value specified for the S3DataType, identifies either a // key name prefix or a manifest. For example: // // * A key name prefix might look like this: s3://bucketname/exampleprefix. // // * A manifest might look like this: s3://bucketname/example.manifest The // manifest is an S3 object which is a JSON file with the following format: // [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", // "relative/path/custdata-2", ... "relative/path/custdata-N" ] The preceding // JSON matches the following S3Uris: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 // s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N // The complete set of S3Uris in this manifest constitutes the input data // for the channel for this datasource. The object that each S3Uris points // to must be readable by the IAM role that Amazon SageMaker uses to perform // tasks on your behalf. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s TransformS3DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TransformS3DataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TransformS3DataSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TransformS3DataSource"} if s.S3DataType == nil { invalidParams.Add(request.NewErrParamRequired("S3DataType")) } if s.S3Uri == nil { invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3DataType sets the S3DataType field's value. func (s *TransformS3DataSource) SetS3DataType(v string) *TransformS3DataSource { s.S3DataType = &v return s } // SetS3Uri sets the S3Uri field's value. func (s *TransformS3DataSource) SetS3Uri(v string) *TransformS3DataSource { s.S3Uri = &v return s } // The properties of a trial as returned by the Search API. type Trial struct { _ struct{} `type:"structure"` // Information about the user who created or modified an experiment, trial, // or trial component. CreatedBy *UserContext `type:"structure"` // When the trial was created. CreationTime *time.Time `type:"timestamp"` // The name of the trial as displayed. If DisplayName isn't specified, TrialName // is displayed. DisplayName *string `min:"1" type:"string"` // The name of the experiment the trial is part of. ExperimentName *string `min:"1" type:"string"` // Information about the user who created or modified an experiment, trial, // or trial component. LastModifiedBy *UserContext `type:"structure"` // Who last modified the trial. LastModifiedTime *time.Time `type:"timestamp"` // The source of the trial. Source *TrialSource `type:"structure"` // The list of tags that are associated with the trial. You can use Search API // to search on the tags. Tags []*Tag `type:"list"` // The Amazon Resource Name (ARN) of the trial. TrialArn *string `type:"string"` // A list of the components associated with the trial. For each component, a // summary of the component's properties is included. TrialComponentSummaries []*TrialComponentSimpleSummary `type:"list"` // The name of the trial. TrialName *string `min:"1" type:"string"` } // String returns the string representation func (s Trial) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Trial) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *Trial) SetCreatedBy(v *UserContext) *Trial { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *Trial) SetCreationTime(v time.Time) *Trial { s.CreationTime = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *Trial) SetDisplayName(v string) *Trial { s.DisplayName = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *Trial) SetExperimentName(v string) *Trial { s.ExperimentName = &v return s } // SetLastModifiedBy sets the LastModifiedBy field's value. func (s *Trial) SetLastModifiedBy(v *UserContext) *Trial { s.LastModifiedBy = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *Trial) SetLastModifiedTime(v time.Time) *Trial { s.LastModifiedTime = &v return s } // SetSource sets the Source field's value. func (s *Trial) SetSource(v *TrialSource) *Trial { s.Source = v return s } // SetTags sets the Tags field's value. func (s *Trial) SetTags(v []*Tag) *Trial { s.Tags = v return s } // SetTrialArn sets the TrialArn field's value. func (s *Trial) SetTrialArn(v string) *Trial { s.TrialArn = &v return s } // SetTrialComponentSummaries sets the TrialComponentSummaries field's value. func (s *Trial) SetTrialComponentSummaries(v []*TrialComponentSimpleSummary) *Trial { s.TrialComponentSummaries = v return s } // SetTrialName sets the TrialName field's value. func (s *Trial) SetTrialName(v string) *Trial { s.TrialName = &v return s } // The properties of a trial component as returned by the Search API. type TrialComponent struct { _ struct{} `type:"structure"` // Information about the user who created or modified an experiment, trial, // or trial component. CreatedBy *UserContext `type:"structure"` // When the component was created. CreationTime *time.Time `type:"timestamp"` // The name of the component as displayed. If DisplayName isn't specified, TrialComponentName // is displayed. DisplayName *string `min:"1" type:"string"` // When the component ended. EndTime *time.Time `type:"timestamp"` // The input artifacts of the component. InputArtifacts map[string]*TrialComponentArtifact `type:"map"` // Information about the user who created or modified an experiment, trial, // or trial component. LastModifiedBy *UserContext `type:"structure"` // When the component was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The metrics for the component. Metrics []*TrialComponentMetricSummary `type:"list"` // The output artifacts of the component. OutputArtifacts map[string]*TrialComponentArtifact `type:"map"` // The hyperparameters of the component. Parameters map[string]*TrialComponentParameterValue `type:"map"` // An array of the parents of the component. A parent is a trial the component // is associated with and the experiment the trial is part of. A component might // not have any parents. Parents []*Parent `type:"list"` // The Amazon Resource Name (ARN) and job type of the source of the component. Source *TrialComponentSource `type:"structure"` // Details of the source of the component. SourceDetail *TrialComponentSourceDetail `type:"structure"` // When the component started. StartTime *time.Time `type:"timestamp"` // The status of the trial component. Status *TrialComponentStatus `type:"structure"` // The list of tags that are associated with the component. You can use Search // API to search on the tags. Tags []*Tag `type:"list"` // The Amazon Resource Name (ARN) of the trial component. TrialComponentArn *string `type:"string"` // The name of the trial component. TrialComponentName *string `min:"1" type:"string"` } // String returns the string representation func (s TrialComponent) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponent) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *TrialComponent) SetCreatedBy(v *UserContext) *TrialComponent { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *TrialComponent) SetCreationTime(v time.Time) *TrialComponent { s.CreationTime = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *TrialComponent) SetDisplayName(v string) *TrialComponent { s.DisplayName = &v return s } // SetEndTime sets the EndTime field's value. func (s *TrialComponent) SetEndTime(v time.Time) *TrialComponent { s.EndTime = &v return s } // SetInputArtifacts sets the InputArtifacts field's value. func (s *TrialComponent) SetInputArtifacts(v map[string]*TrialComponentArtifact) *TrialComponent { s.InputArtifacts = v return s } // SetLastModifiedBy sets the LastModifiedBy field's value. func (s *TrialComponent) SetLastModifiedBy(v *UserContext) *TrialComponent { s.LastModifiedBy = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *TrialComponent) SetLastModifiedTime(v time.Time) *TrialComponent { s.LastModifiedTime = &v return s } // SetMetrics sets the Metrics field's value. func (s *TrialComponent) SetMetrics(v []*TrialComponentMetricSummary) *TrialComponent { s.Metrics = v return s } // SetOutputArtifacts sets the OutputArtifacts field's value. func (s *TrialComponent) SetOutputArtifacts(v map[string]*TrialComponentArtifact) *TrialComponent { s.OutputArtifacts = v return s } // SetParameters sets the Parameters field's value. func (s *TrialComponent) SetParameters(v map[string]*TrialComponentParameterValue) *TrialComponent { s.Parameters = v return s } // SetParents sets the Parents field's value. func (s *TrialComponent) SetParents(v []*Parent) *TrialComponent { s.Parents = v return s } // SetSource sets the Source field's value. func (s *TrialComponent) SetSource(v *TrialComponentSource) *TrialComponent { s.Source = v return s } // SetSourceDetail sets the SourceDetail field's value. func (s *TrialComponent) SetSourceDetail(v *TrialComponentSourceDetail) *TrialComponent { s.SourceDetail = v return s } // SetStartTime sets the StartTime field's value. func (s *TrialComponent) SetStartTime(v time.Time) *TrialComponent { s.StartTime = &v return s } // SetStatus sets the Status field's value. func (s *TrialComponent) SetStatus(v *TrialComponentStatus) *TrialComponent { s.Status = v return s } // SetTags sets the Tags field's value. func (s *TrialComponent) SetTags(v []*Tag) *TrialComponent { s.Tags = v return s } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *TrialComponent) SetTrialComponentArn(v string) *TrialComponent { s.TrialComponentArn = &v return s } // SetTrialComponentName sets the TrialComponentName field's value. func (s *TrialComponent) SetTrialComponentName(v string) *TrialComponent { s.TrialComponentName = &v return s } // Represents an input or output artifact of a trial component. You specify // TrialComponentArtifact as part of the InputArtifacts and OutputArtifacts // parameters in the CreateTrialComponent request. // // Examples of input artifacts are datasets, algorithms, hyperparameters, source // code, and instance types. Examples of output artifacts are metrics, snapshots, // logs, and images. type TrialComponentArtifact struct { _ struct{} `type:"structure"` // The media type of the artifact, which indicates the type of data in the artifact // file. The media type consists of a type and a subtype concatenated with a // slash (/) character, for example, text/csv, image/jpeg, and s3/uri. The type // specifies the category of the media. The subtype specifies the kind of data. MediaType *string `type:"string"` // The location of the artifact. // // Value is a required field Value *string `type:"string" required:"true"` } // String returns the string representation func (s TrialComponentArtifact) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentArtifact) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TrialComponentArtifact) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TrialComponentArtifact"} if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMediaType sets the MediaType field's value. func (s *TrialComponentArtifact) SetMediaType(v string) *TrialComponentArtifact { s.MediaType = &v return s } // SetValue sets the Value field's value. func (s *TrialComponentArtifact) SetValue(v string) *TrialComponentArtifact { s.Value = &v return s } // A summary of the metrics of a trial component. type TrialComponentMetricSummary struct { _ struct{} `type:"structure"` // The average value of the metric. Avg *float64 `type:"double"` // The number of samples used to generate the metric. Count *int64 `type:"integer"` // The most recent value of the metric. Last *float64 `type:"double"` // The maximum value of the metric. Max *float64 `type:"double"` // The name of the metric. MetricName *string `min:"1" type:"string"` // The minimum value of the metric. Min *float64 `type:"double"` // The Amazon Resource Name (ARN) of the source. SourceArn *string `type:"string"` // The standard deviation of the metric. StdDev *float64 `type:"double"` // When the metric was last updated. TimeStamp *time.Time `type:"timestamp"` } // String returns the string representation func (s TrialComponentMetricSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentMetricSummary) GoString() string { return s.String() } // SetAvg sets the Avg field's value. func (s *TrialComponentMetricSummary) SetAvg(v float64) *TrialComponentMetricSummary { s.Avg = &v return s } // SetCount sets the Count field's value. func (s *TrialComponentMetricSummary) SetCount(v int64) *TrialComponentMetricSummary { s.Count = &v return s } // SetLast sets the Last field's value. func (s *TrialComponentMetricSummary) SetLast(v float64) *TrialComponentMetricSummary { s.Last = &v return s } // SetMax sets the Max field's value. func (s *TrialComponentMetricSummary) SetMax(v float64) *TrialComponentMetricSummary { s.Max = &v return s } // SetMetricName sets the MetricName field's value. func (s *TrialComponentMetricSummary) SetMetricName(v string) *TrialComponentMetricSummary { s.MetricName = &v return s } // SetMin sets the Min field's value. func (s *TrialComponentMetricSummary) SetMin(v float64) *TrialComponentMetricSummary { s.Min = &v return s } // SetSourceArn sets the SourceArn field's value. func (s *TrialComponentMetricSummary) SetSourceArn(v string) *TrialComponentMetricSummary { s.SourceArn = &v return s } // SetStdDev sets the StdDev field's value. func (s *TrialComponentMetricSummary) SetStdDev(v float64) *TrialComponentMetricSummary { s.StdDev = &v return s } // SetTimeStamp sets the TimeStamp field's value. func (s *TrialComponentMetricSummary) SetTimeStamp(v time.Time) *TrialComponentMetricSummary { s.TimeStamp = &v return s } // The value of a hyperparameter. Only one of NumberValue or StringValue can // be specified. // // This object is specified in the CreateTrialComponent request. type TrialComponentParameterValue struct { _ struct{} `type:"structure"` // The numeric value of a numeric hyperparameter. If you specify a value for // this parameter, you can't specify the StringValue parameter. NumberValue *float64 `type:"double"` // The string value of a categorical hyperparameter. If you specify a value // for this parameter, you can't specify the NumberValue parameter. StringValue *string `type:"string"` } // String returns the string representation func (s TrialComponentParameterValue) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentParameterValue) GoString() string { return s.String() } // SetNumberValue sets the NumberValue field's value. func (s *TrialComponentParameterValue) SetNumberValue(v float64) *TrialComponentParameterValue { s.NumberValue = &v return s } // SetStringValue sets the StringValue field's value. func (s *TrialComponentParameterValue) SetStringValue(v string) *TrialComponentParameterValue { s.StringValue = &v return s } // A short summary of a trial component. type TrialComponentSimpleSummary struct { _ struct{} `type:"structure"` // Information about the user who created or modified an experiment, trial, // or trial component. CreatedBy *UserContext `type:"structure"` // When the component was created. CreationTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the trial component. TrialComponentArn *string `type:"string"` // The name of the trial component. TrialComponentName *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) and job type of the source of a trial component. TrialComponentSource *TrialComponentSource `type:"structure"` } // String returns the string representation func (s TrialComponentSimpleSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentSimpleSummary) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *TrialComponentSimpleSummary) SetCreatedBy(v *UserContext) *TrialComponentSimpleSummary { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *TrialComponentSimpleSummary) SetCreationTime(v time.Time) *TrialComponentSimpleSummary { s.CreationTime = &v return s } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *TrialComponentSimpleSummary) SetTrialComponentArn(v string) *TrialComponentSimpleSummary { s.TrialComponentArn = &v return s } // SetTrialComponentName sets the TrialComponentName field's value. func (s *TrialComponentSimpleSummary) SetTrialComponentName(v string) *TrialComponentSimpleSummary { s.TrialComponentName = &v return s } // SetTrialComponentSource sets the TrialComponentSource field's value. func (s *TrialComponentSimpleSummary) SetTrialComponentSource(v *TrialComponentSource) *TrialComponentSimpleSummary { s.TrialComponentSource = v return s } // The Amazon Resource Name (ARN) and job type of the source of a trial component. type TrialComponentSource struct { _ struct{} `type:"structure"` // The source ARN. // // SourceArn is a required field SourceArn *string `type:"string" required:"true"` // The source job type. SourceType *string `type:"string"` } // String returns the string representation func (s TrialComponentSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentSource) GoString() string { return s.String() } // SetSourceArn sets the SourceArn field's value. func (s *TrialComponentSource) SetSourceArn(v string) *TrialComponentSource { s.SourceArn = &v return s } // SetSourceType sets the SourceType field's value. func (s *TrialComponentSource) SetSourceType(v string) *TrialComponentSource { s.SourceType = &v return s } // Detailed information about the source of a trial component. Either ProcessingJob // or TrainingJob is returned. type TrialComponentSourceDetail struct { _ struct{} `type:"structure"` // Information about a processing job that's the source of a trial component. ProcessingJob *ProcessingJob `type:"structure"` // The Amazon Resource Name (ARN) of the source. SourceArn *string `type:"string"` // Information about a training job that's the source of a trial component. TrainingJob *TrainingJob `type:"structure"` // Information about a transform job that's the source of the trial component. TransformJob *TransformJob `type:"structure"` } // String returns the string representation func (s TrialComponentSourceDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentSourceDetail) GoString() string { return s.String() } // SetProcessingJob sets the ProcessingJob field's value. func (s *TrialComponentSourceDetail) SetProcessingJob(v *ProcessingJob) *TrialComponentSourceDetail { s.ProcessingJob = v return s } // SetSourceArn sets the SourceArn field's value. func (s *TrialComponentSourceDetail) SetSourceArn(v string) *TrialComponentSourceDetail { s.SourceArn = &v return s } // SetTrainingJob sets the TrainingJob field's value. func (s *TrialComponentSourceDetail) SetTrainingJob(v *TrainingJob) *TrialComponentSourceDetail { s.TrainingJob = v return s } // SetTransformJob sets the TransformJob field's value. func (s *TrialComponentSourceDetail) SetTransformJob(v *TransformJob) *TrialComponentSourceDetail { s.TransformJob = v return s } // The status of the trial component. type TrialComponentStatus struct { _ struct{} `type:"structure"` // If the component failed, a message describing why. Message *string `type:"string"` // The status of the trial component. PrimaryStatus *string `type:"string" enum:"TrialComponentPrimaryStatus"` } // String returns the string representation func (s TrialComponentStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentStatus) GoString() string { return s.String() } // SetMessage sets the Message field's value. func (s *TrialComponentStatus) SetMessage(v string) *TrialComponentStatus { s.Message = &v return s } // SetPrimaryStatus sets the PrimaryStatus field's value. func (s *TrialComponentStatus) SetPrimaryStatus(v string) *TrialComponentStatus { s.PrimaryStatus = &v return s } // A summary of the properties of a trial component. To get all the properties, // call the DescribeTrialComponent API and provide the TrialComponentName. type TrialComponentSummary struct { _ struct{} `type:"structure"` // Who created the component. CreatedBy *UserContext `type:"structure"` // When the component was created. CreationTime *time.Time `type:"timestamp"` // The name of the component as displayed. If DisplayName isn't specified, TrialComponentName // is displayed. DisplayName *string `min:"1" type:"string"` // When the component ended. EndTime *time.Time `type:"timestamp"` // Who last modified the component. LastModifiedBy *UserContext `type:"structure"` // When the component was last modified. LastModifiedTime *time.Time `type:"timestamp"` // When the component started. StartTime *time.Time `type:"timestamp"` // The status of the component. States include: // // * InProgress // // * Completed // // * Failed Status *TrialComponentStatus `type:"structure"` // The ARN of the trial component. TrialComponentArn *string `type:"string"` // The name of the trial component. TrialComponentName *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) and job type of the source of a trial component. TrialComponentSource *TrialComponentSource `type:"structure"` } // String returns the string representation func (s TrialComponentSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialComponentSummary) GoString() string { return s.String() } // SetCreatedBy sets the CreatedBy field's value. func (s *TrialComponentSummary) SetCreatedBy(v *UserContext) *TrialComponentSummary { s.CreatedBy = v return s } // SetCreationTime sets the CreationTime field's value. func (s *TrialComponentSummary) SetCreationTime(v time.Time) *TrialComponentSummary { s.CreationTime = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *TrialComponentSummary) SetDisplayName(v string) *TrialComponentSummary { s.DisplayName = &v return s } // SetEndTime sets the EndTime field's value. func (s *TrialComponentSummary) SetEndTime(v time.Time) *TrialComponentSummary { s.EndTime = &v return s } // SetLastModifiedBy sets the LastModifiedBy field's value. func (s *TrialComponentSummary) SetLastModifiedBy(v *UserContext) *TrialComponentSummary { s.LastModifiedBy = v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *TrialComponentSummary) SetLastModifiedTime(v time.Time) *TrialComponentSummary { s.LastModifiedTime = &v return s } // SetStartTime sets the StartTime field's value. func (s *TrialComponentSummary) SetStartTime(v time.Time) *TrialComponentSummary { s.StartTime = &v return s } // SetStatus sets the Status field's value. func (s *TrialComponentSummary) SetStatus(v *TrialComponentStatus) *TrialComponentSummary { s.Status = v return s } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *TrialComponentSummary) SetTrialComponentArn(v string) *TrialComponentSummary { s.TrialComponentArn = &v return s } // SetTrialComponentName sets the TrialComponentName field's value. func (s *TrialComponentSummary) SetTrialComponentName(v string) *TrialComponentSummary { s.TrialComponentName = &v return s } // SetTrialComponentSource sets the TrialComponentSource field's value. func (s *TrialComponentSummary) SetTrialComponentSource(v *TrialComponentSource) *TrialComponentSummary { s.TrialComponentSource = v return s } // The source of the trial. type TrialSource struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the source. // // SourceArn is a required field SourceArn *string `type:"string" required:"true"` // The source job type. SourceType *string `type:"string"` } // String returns the string representation func (s TrialSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialSource) GoString() string { return s.String() } // SetSourceArn sets the SourceArn field's value. func (s *TrialSource) SetSourceArn(v string) *TrialSource { s.SourceArn = &v return s } // SetSourceType sets the SourceType field's value. func (s *TrialSource) SetSourceType(v string) *TrialSource { s.SourceType = &v return s } // A summary of the properties of a trial. To get the complete set of properties, // call the DescribeTrial API and provide the TrialName. type TrialSummary struct { _ struct{} `type:"structure"` // When the trial was created. CreationTime *time.Time `type:"timestamp"` // The name of the trial as displayed. If DisplayName isn't specified, TrialName // is displayed. DisplayName *string `min:"1" type:"string"` // When the trial was last modified. LastModifiedTime *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of the trial. TrialArn *string `type:"string"` // The name of the trial. TrialName *string `min:"1" type:"string"` // The source of the trial. TrialSource *TrialSource `type:"structure"` } // String returns the string representation func (s TrialSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TrialSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *TrialSummary) SetCreationTime(v time.Time) *TrialSummary { s.CreationTime = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *TrialSummary) SetDisplayName(v string) *TrialSummary { s.DisplayName = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *TrialSummary) SetLastModifiedTime(v time.Time) *TrialSummary { s.LastModifiedTime = &v return s } // SetTrialArn sets the TrialArn field's value. func (s *TrialSummary) SetTrialArn(v string) *TrialSummary { s.TrialArn = &v return s } // SetTrialName sets the TrialName field's value. func (s *TrialSummary) SetTrialName(v string) *TrialSummary { s.TrialName = &v return s } // SetTrialSource sets the TrialSource field's value. func (s *TrialSummary) SetTrialSource(v *TrialSource) *TrialSummary { s.TrialSource = v return s } // The job completion criteria. type TuningJobCompletionCriteria struct { _ struct{} `type:"structure"` // The value of the objective metric. // // TargetObjectiveMetricValue is a required field TargetObjectiveMetricValue *float64 `type:"float" required:"true"` } // String returns the string representation func (s TuningJobCompletionCriteria) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TuningJobCompletionCriteria) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TuningJobCompletionCriteria) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TuningJobCompletionCriteria"} if s.TargetObjectiveMetricValue == nil { invalidParams.Add(request.NewErrParamRequired("TargetObjectiveMetricValue")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTargetObjectiveMetricValue sets the TargetObjectiveMetricValue field's value. func (s *TuningJobCompletionCriteria) SetTargetObjectiveMetricValue(v float64) *TuningJobCompletionCriteria { s.TargetObjectiveMetricValue = &v return s } // Represents an amount of money in United States dollars/ type USD struct { _ struct{} `type:"structure"` // The fractional portion, in cents, of the amount. Cents *int64 `type:"integer"` // The whole number of dollars in the amount. Dollars *int64 `type:"integer"` // Fractions of a cent, in tenths. TenthFractionsOfACent *int64 `type:"integer"` } // String returns the string representation func (s USD) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s USD) GoString() string { return s.String() } // SetCents sets the Cents field's value. func (s *USD) SetCents(v int64) *USD { s.Cents = &v return s } // SetDollars sets the Dollars field's value. func (s *USD) SetDollars(v int64) *USD { s.Dollars = &v return s } // SetTenthFractionsOfACent sets the TenthFractionsOfACent field's value. func (s *USD) SetTenthFractionsOfACent(v int64) *USD { s.TenthFractionsOfACent = &v return s } // Provided configuration information for the worker UI for a labeling job. type UiConfig struct { _ struct{} `type:"structure"` // The ARN of the worker task template used to render the worker UI and tools // for labeling job tasks. // // Use this parameter when you are creating a labeling job for 3D point cloud // and video fram labeling jobs. Use your labeling job task type to select one // of the following ARN's and use it with this parameter when you create a labeling // job. Replace aws-region with the AWS region you are creating your labeling // job in. // // 3D Point Cloud HumanTaskUiArns // // Use this HumanTaskUiArn for 3D point cloud object detection and 3D point // cloud object detection adjustment labeling jobs. // // * arn:aws:sagemaker:aws-region:394669845002:human-task-ui/PointCloudObjectDetection // // Use this HumanTaskUiArn for 3D point cloud object tracking and 3D point cloud // object tracking adjustment labeling jobs. // // * arn:aws:sagemaker:aws-region:394669845002:human-task-ui/PointCloudObjectTracking // // Use this HumanTaskUiArn for 3D point cloud semantic segmentation and 3D point // cloud semantic segmentation adjustment labeling jobs. // // * arn:aws:sagemaker:aws-region:394669845002:human-task-ui/PointCloudSemanticSegmentation // // Video Frame HumanTaskUiArns // // Use this HumanTaskUiArn for video frame object detection and video frame // object detection adjustment labeling jobs. // // * arn:aws:sagemaker:region:394669845002:human-task-ui/VideoObjectDetection // // Use this HumanTaskUiArn for video frame object tracking and video frame object // tracking adjustment labeling jobs. // // * arn:aws:sagemaker:aws-region:394669845002:human-task-ui/VideoObjectTracking HumanTaskUiArn *string `type:"string"` // The Amazon S3 bucket location of the UI template, or worker task template. // This is the template used to render the worker UI and tools for labeling // job tasks. For more information about the contents of a UI template, see // Creating Your Custom Labeling Task Template (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-custom-templates-step2.html). UiTemplateS3Uri *string `type:"string"` } // String returns the string representation func (s UiConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UiConfig) GoString() string { return s.String() } // SetHumanTaskUiArn sets the HumanTaskUiArn field's value. func (s *UiConfig) SetHumanTaskUiArn(v string) *UiConfig { s.HumanTaskUiArn = &v return s } // SetUiTemplateS3Uri sets the UiTemplateS3Uri field's value. func (s *UiConfig) SetUiTemplateS3Uri(v string) *UiConfig { s.UiTemplateS3Uri = &v return s } // The Liquid template for the worker user interface. type UiTemplate struct { _ struct{} `type:"structure"` // The content of the Liquid template for the worker user interface. // // Content is a required field Content *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UiTemplate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UiTemplate) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UiTemplate) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UiTemplate"} if s.Content == nil { invalidParams.Add(request.NewErrParamRequired("Content")) } if s.Content != nil && len(*s.Content) < 1 { invalidParams.Add(request.NewErrParamMinLen("Content", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContent sets the Content field's value. func (s *UiTemplate) SetContent(v string) *UiTemplate { s.Content = &v return s } // Container for user interface template information. type UiTemplateInfo struct { _ struct{} `type:"structure"` // The SHA-256 digest of the contents of the template. ContentSha256 *string `min:"1" type:"string"` // The URL for the user interface template. Url *string `min:"1" type:"string"` } // String returns the string representation func (s UiTemplateInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UiTemplateInfo) GoString() string { return s.String() } // SetContentSha256 sets the ContentSha256 field's value. func (s *UiTemplateInfo) SetContentSha256(v string) *UiTemplateInfo { s.ContentSha256 = &v return s } // SetUrl sets the Url field's value. func (s *UiTemplateInfo) SetUrl(v string) *UiTemplateInfo { s.Url = &v return s } type UpdateCodeRepositoryInput struct { _ struct{} `type:"structure"` // The name of the Git repository to update. // // CodeRepositoryName is a required field CodeRepositoryName *string `min:"1" type:"string" required:"true"` // The configuration of the git repository, including the URL and the Amazon // Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials // used to access the repository. The secret must have a staging label of AWSCURRENT // and must be in the following format: // // {"username": UserName, "password": Password} GitConfig *GitConfigForUpdate `type:"structure"` } // String returns the string representation func (s UpdateCodeRepositoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateCodeRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateCodeRepositoryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateCodeRepositoryInput"} if s.CodeRepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) } if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) } if s.GitConfig != nil { if err := s.GitConfig.Validate(); err != nil { invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCodeRepositoryName sets the CodeRepositoryName field's value. func (s *UpdateCodeRepositoryInput) SetCodeRepositoryName(v string) *UpdateCodeRepositoryInput { s.CodeRepositoryName = &v return s } // SetGitConfig sets the GitConfig field's value. func (s *UpdateCodeRepositoryInput) SetGitConfig(v *GitConfigForUpdate) *UpdateCodeRepositoryInput { s.GitConfig = v return s } type UpdateCodeRepositoryOutput struct { _ struct{} `type:"structure"` // The ARN of the Git repository. // // CodeRepositoryArn is a required field CodeRepositoryArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateCodeRepositoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateCodeRepositoryOutput) GoString() string { return s.String() } // SetCodeRepositoryArn sets the CodeRepositoryArn field's value. func (s *UpdateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *UpdateCodeRepositoryOutput { s.CodeRepositoryArn = &v return s } type UpdateDomainInput struct { _ struct{} `type:"structure"` // A collection of settings. DefaultUserSettings *UserSettings `type:"structure"` // The ID of the domain to be updated. // // DomainId is a required field DomainId *string `type:"string" required:"true"` } // String returns the string representation func (s UpdateDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDomainInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDomainInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.DefaultUserSettings != nil { if err := s.DefaultUserSettings.Validate(); err != nil { invalidParams.AddNested("DefaultUserSettings", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDefaultUserSettings sets the DefaultUserSettings field's value. func (s *UpdateDomainInput) SetDefaultUserSettings(v *UserSettings) *UpdateDomainInput { s.DefaultUserSettings = v return s } // SetDomainId sets the DomainId field's value. func (s *UpdateDomainInput) SetDomainId(v string) *UpdateDomainInput { s.DomainId = &v return s } type UpdateDomainOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the domain. DomainArn *string `type:"string"` } // String returns the string representation func (s UpdateDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDomainOutput) GoString() string { return s.String() } // SetDomainArn sets the DomainArn field's value. func (s *UpdateDomainOutput) SetDomainArn(v string) *UpdateDomainOutput { s.DomainArn = &v return s } type UpdateEndpointInput struct { _ struct{} `type:"structure"` // The name of the new endpoint configuration. // // EndpointConfigName is a required field EndpointConfigName *string `type:"string" required:"true"` // The name of the endpoint whose configuration you want to update. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` // When you are updating endpoint resources with UpdateEndpointInput$RetainAllVariantProperties, // whose value is set to true, ExcludeRetainedVariantProperties specifies the // list of type VariantProperty to override with the values provided by EndpointConfig. // If you don't specify a value for ExcludeAllVariantProperties, no variant // properties are overridden. ExcludeRetainedVariantProperties []*VariantProperty `type:"list"` // When updating endpoint resources, enables or disables the retention of variant // properties, such as the instance count or the variant weight. To retain the // variant properties of an endpoint when updating it, set RetainAllVariantProperties // to true. To use the variant properties specified in a new EndpointConfig // call when updating an endpoint, set RetainAllVariantProperties to false. RetainAllVariantProperties *bool `type:"boolean"` } // String returns the string representation func (s UpdateEndpointInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateEndpointInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateEndpointInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointInput"} if s.EndpointConfigName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) } if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } if s.ExcludeRetainedVariantProperties != nil { for i, v := range s.ExcludeRetainedVariantProperties { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExcludeRetainedVariantProperties", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointConfigName sets the EndpointConfigName field's value. func (s *UpdateEndpointInput) SetEndpointConfigName(v string) *UpdateEndpointInput { s.EndpointConfigName = &v return s } // SetEndpointName sets the EndpointName field's value. func (s *UpdateEndpointInput) SetEndpointName(v string) *UpdateEndpointInput { s.EndpointName = &v return s } // SetExcludeRetainedVariantProperties sets the ExcludeRetainedVariantProperties field's value. func (s *UpdateEndpointInput) SetExcludeRetainedVariantProperties(v []*VariantProperty) *UpdateEndpointInput { s.ExcludeRetainedVariantProperties = v return s } // SetRetainAllVariantProperties sets the RetainAllVariantProperties field's value. func (s *UpdateEndpointInput) SetRetainAllVariantProperties(v bool) *UpdateEndpointInput { s.RetainAllVariantProperties = &v return s } type UpdateEndpointOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the endpoint. // // EndpointArn is a required field EndpointArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s UpdateEndpointOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateEndpointOutput) GoString() string { return s.String() } // SetEndpointArn sets the EndpointArn field's value. func (s *UpdateEndpointOutput) SetEndpointArn(v string) *UpdateEndpointOutput { s.EndpointArn = &v return s } type UpdateEndpointWeightsAndCapacitiesInput struct { _ struct{} `type:"structure"` // An object that provides new capacity and weight values for a variant. // // DesiredWeightsAndCapacities is a required field DesiredWeightsAndCapacities []*DesiredWeightAndCapacity `min:"1" type:"list" required:"true"` // The name of an existing Amazon SageMaker endpoint. // // EndpointName is a required field EndpointName *string `type:"string" required:"true"` } // String returns the string representation func (s UpdateEndpointWeightsAndCapacitiesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateEndpointWeightsAndCapacitiesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateEndpointWeightsAndCapacitiesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointWeightsAndCapacitiesInput"} if s.DesiredWeightsAndCapacities == nil { invalidParams.Add(request.NewErrParamRequired("DesiredWeightsAndCapacities")) } if s.DesiredWeightsAndCapacities != nil && len(s.DesiredWeightsAndCapacities) < 1 { invalidParams.Add(request.NewErrParamMinLen("DesiredWeightsAndCapacities", 1)) } if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } if s.DesiredWeightsAndCapacities != nil { for i, v := range s.DesiredWeightsAndCapacities { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DesiredWeightsAndCapacities", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDesiredWeightsAndCapacities sets the DesiredWeightsAndCapacities field's value. func (s *UpdateEndpointWeightsAndCapacitiesInput) SetDesiredWeightsAndCapacities(v []*DesiredWeightAndCapacity) *UpdateEndpointWeightsAndCapacitiesInput { s.DesiredWeightsAndCapacities = v return s } // SetEndpointName sets the EndpointName field's value. func (s *UpdateEndpointWeightsAndCapacitiesInput) SetEndpointName(v string) *UpdateEndpointWeightsAndCapacitiesInput { s.EndpointName = &v return s } type UpdateEndpointWeightsAndCapacitiesOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the updated endpoint. // // EndpointArn is a required field EndpointArn *string `min:"20" type:"string" required:"true"` } // String returns the string representation func (s UpdateEndpointWeightsAndCapacitiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateEndpointWeightsAndCapacitiesOutput) GoString() string { return s.String() } // SetEndpointArn sets the EndpointArn field's value. func (s *UpdateEndpointWeightsAndCapacitiesOutput) SetEndpointArn(v string) *UpdateEndpointWeightsAndCapacitiesOutput { s.EndpointArn = &v return s } type UpdateExperimentInput struct { _ struct{} `type:"structure"` // The description of the experiment. Description *string `type:"string"` // The name of the experiment as displayed. The name doesn't need to be unique. // If DisplayName isn't specified, ExperimentName is displayed. DisplayName *string `min:"1" type:"string"` // The name of the experiment to update. // // ExperimentName is a required field ExperimentName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateExperimentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateExperimentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateExperimentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateExperimentInput"} if s.DisplayName != nil && len(*s.DisplayName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) } if s.ExperimentName == nil { invalidParams.Add(request.NewErrParamRequired("ExperimentName")) } if s.ExperimentName != nil && len(*s.ExperimentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExperimentName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *UpdateExperimentInput) SetDescription(v string) *UpdateExperimentInput { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *UpdateExperimentInput) SetDisplayName(v string) *UpdateExperimentInput { s.DisplayName = &v return s } // SetExperimentName sets the ExperimentName field's value. func (s *UpdateExperimentInput) SetExperimentName(v string) *UpdateExperimentInput { s.ExperimentName = &v return s } type UpdateExperimentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the experiment. ExperimentArn *string `type:"string"` } // String returns the string representation func (s UpdateExperimentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateExperimentOutput) GoString() string { return s.String() } // SetExperimentArn sets the ExperimentArn field's value. func (s *UpdateExperimentOutput) SetExperimentArn(v string) *UpdateExperimentOutput { s.ExperimentArn = &v return s } type UpdateMonitoringScheduleInput struct { _ struct{} `type:"structure"` // The configuration object that specifies the monitoring schedule and defines // the monitoring job. // // MonitoringScheduleConfig is a required field MonitoringScheduleConfig *MonitoringScheduleConfig `type:"structure" required:"true"` // The name of the monitoring schedule. The name must be unique within an AWS // Region within an AWS account. // // MonitoringScheduleName is a required field MonitoringScheduleName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateMonitoringScheduleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateMonitoringScheduleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateMonitoringScheduleInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateMonitoringScheduleInput"} if s.MonitoringScheduleConfig == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleConfig")) } if s.MonitoringScheduleName == nil { invalidParams.Add(request.NewErrParamRequired("MonitoringScheduleName")) } if s.MonitoringScheduleName != nil && len(*s.MonitoringScheduleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MonitoringScheduleName", 1)) } if s.MonitoringScheduleConfig != nil { if err := s.MonitoringScheduleConfig.Validate(); err != nil { invalidParams.AddNested("MonitoringScheduleConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMonitoringScheduleConfig sets the MonitoringScheduleConfig field's value. func (s *UpdateMonitoringScheduleInput) SetMonitoringScheduleConfig(v *MonitoringScheduleConfig) *UpdateMonitoringScheduleInput { s.MonitoringScheduleConfig = v return s } // SetMonitoringScheduleName sets the MonitoringScheduleName field's value. func (s *UpdateMonitoringScheduleInput) SetMonitoringScheduleName(v string) *UpdateMonitoringScheduleInput { s.MonitoringScheduleName = &v return s } type UpdateMonitoringScheduleOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the monitoring schedule. // // MonitoringScheduleArn is a required field MonitoringScheduleArn *string `type:"string" required:"true"` } // String returns the string representation func (s UpdateMonitoringScheduleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateMonitoringScheduleOutput) GoString() string { return s.String() } // SetMonitoringScheduleArn sets the MonitoringScheduleArn field's value. func (s *UpdateMonitoringScheduleOutput) SetMonitoringScheduleArn(v string) *UpdateMonitoringScheduleOutput { s.MonitoringScheduleArn = &v return s } type UpdateNotebookInstanceInput struct { _ struct{} `type:"structure"` // A list of the Elastic Inference (EI) instance types to associate with this // notebook instance. Currently only one EI instance type can be associated // with a notebook instance. For more information, see Using Elastic Inference // in Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). AcceleratorTypes []*string `type:"list"` // An array of up to three Git repositories to associate with the notebook instance. // These can be either the names of Git repositories stored as resources in // your account, or the URL of Git repositories in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. These repositories are cloned at the same // level as the default repository of your notebook instance. For more information, // see Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). AdditionalCodeRepositories []*string `type:"list"` // The Git repository to associate with the notebook instance as its default // code repository. This can be either the name of a Git repository stored as // a resource in your account, or the URL of a Git repository in AWS CodeCommit // (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or // in any other Git repository. When you open a notebook instance, it opens // in the directory that contains this repository. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). DefaultCodeRepository *string `min:"1" type:"string"` // A list of the Elastic Inference (EI) instance types to remove from this notebook // instance. This operation is idempotent. If you specify an accelerator type // that is not associated with the notebook instance when you call this method, // it does not throw an error. DisassociateAcceleratorTypes *bool `type:"boolean"` // A list of names or URLs of the default Git repositories to remove from this // notebook instance. This operation is idempotent. If you specify a Git repository // that is not associated with the notebook instance when you call this method, // it does not throw an error. DisassociateAdditionalCodeRepositories *bool `type:"boolean"` // The name or URL of the default Git repository to remove from this notebook // instance. This operation is idempotent. If you specify a Git repository that // is not associated with the notebook instance when you call this method, it // does not throw an error. DisassociateDefaultCodeRepository *bool `type:"boolean"` // Set to true to remove the notebook instance lifecycle configuration currently // associated with the notebook instance. This operation is idempotent. If you // specify a lifecycle configuration that is not associated with the notebook // instance when you call this method, it does not throw an error. DisassociateLifecycleConfig *bool `type:"boolean"` // The Amazon ML compute instance type. InstanceType *string `type:"string" enum:"InstanceType"` // The name of a lifecycle configuration to associate with the notebook instance. // For information about lifestyle configurations, see Step 2.1: (Optional) // Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). LifecycleConfigName *string `type:"string"` // The name of the notebook instance to update. // // NotebookInstanceName is a required field NotebookInstanceName *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can // assume to access the notebook instance. For more information, see Amazon // SageMaker Roles (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). // // To be able to pass this role to Amazon SageMaker, the caller of this API // must have the iam:PassRole permission. RoleArn *string `min:"20" type:"string"` // Whether root access is enabled or disabled for users of the notebook instance. // The default value is Enabled. // // If you set this to Disabled, users don't have root access on the notebook // instance, but lifecycle configuration scripts still run with root permissions. RootAccess *string `type:"string" enum:"RootAccess"` // The size, in GB, of the ML storage volume to attach to the notebook instance. // The default value is 5 GB. ML storage volumes are encrypted, so Amazon SageMaker // can't determine the amount of available free space on the volume. Because // of this, you can increase the volume size when you update a notebook instance, // but you can't decrease the volume size. If you want to decrease the size // of the ML storage volume in use, create a new notebook instance with the // desired size. VolumeSizeInGB *int64 `min:"5" type:"integer"` } // String returns the string representation func (s UpdateNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateNotebookInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateNotebookInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceInput"} if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 { invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1)) } if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 { invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAcceleratorTypes sets the AcceleratorTypes field's value. func (s *UpdateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *UpdateNotebookInstanceInput { s.AcceleratorTypes = v return s } // SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. func (s *UpdateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *UpdateNotebookInstanceInput { s.AdditionalCodeRepositories = v return s } // SetDefaultCodeRepository sets the DefaultCodeRepository field's value. func (s *UpdateNotebookInstanceInput) SetDefaultCodeRepository(v string) *UpdateNotebookInstanceInput { s.DefaultCodeRepository = &v return s } // SetDisassociateAcceleratorTypes sets the DisassociateAcceleratorTypes field's value. func (s *UpdateNotebookInstanceInput) SetDisassociateAcceleratorTypes(v bool) *UpdateNotebookInstanceInput { s.DisassociateAcceleratorTypes = &v return s } // SetDisassociateAdditionalCodeRepositories sets the DisassociateAdditionalCodeRepositories field's value. func (s *UpdateNotebookInstanceInput) SetDisassociateAdditionalCodeRepositories(v bool) *UpdateNotebookInstanceInput { s.DisassociateAdditionalCodeRepositories = &v return s } // SetDisassociateDefaultCodeRepository sets the DisassociateDefaultCodeRepository field's value. func (s *UpdateNotebookInstanceInput) SetDisassociateDefaultCodeRepository(v bool) *UpdateNotebookInstanceInput { s.DisassociateDefaultCodeRepository = &v return s } // SetDisassociateLifecycleConfig sets the DisassociateLifecycleConfig field's value. func (s *UpdateNotebookInstanceInput) SetDisassociateLifecycleConfig(v bool) *UpdateNotebookInstanceInput { s.DisassociateLifecycleConfig = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *UpdateNotebookInstanceInput) SetInstanceType(v string) *UpdateNotebookInstanceInput { s.InstanceType = &v return s } // SetLifecycleConfigName sets the LifecycleConfigName field's value. func (s *UpdateNotebookInstanceInput) SetLifecycleConfigName(v string) *UpdateNotebookInstanceInput { s.LifecycleConfigName = &v return s } // SetNotebookInstanceName sets the NotebookInstanceName field's value. func (s *UpdateNotebookInstanceInput) SetNotebookInstanceName(v string) *UpdateNotebookInstanceInput { s.NotebookInstanceName = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *UpdateNotebookInstanceInput) SetRoleArn(v string) *UpdateNotebookInstanceInput { s.RoleArn = &v return s } // SetRootAccess sets the RootAccess field's value. func (s *UpdateNotebookInstanceInput) SetRootAccess(v string) *UpdateNotebookInstanceInput { s.RootAccess = &v return s } // SetVolumeSizeInGB sets the VolumeSizeInGB field's value. func (s *UpdateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *UpdateNotebookInstanceInput { s.VolumeSizeInGB = &v return s } type UpdateNotebookInstanceLifecycleConfigInput struct { _ struct{} `type:"structure"` // The name of the lifecycle configuration. // // NotebookInstanceLifecycleConfigName is a required field NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` // The shell script that runs only once, when you create a notebook instance. // The shell script must be a base64-encoded string. OnCreate []*NotebookInstanceLifecycleHook `type:"list"` // The shell script that runs every time you start a notebook instance, including // when you create the notebook instance. The shell script must be a base64-encoded // string. OnStart []*NotebookInstanceLifecycleHook `type:"list"` } // String returns the string representation func (s UpdateNotebookInstanceLifecycleConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateNotebookInstanceLifecycleConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceLifecycleConfigInput"} if s.NotebookInstanceLifecycleConfigName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) } if s.OnCreate != nil { for i, v := range s.OnCreate { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) } } } if s.OnStart != nil { for i, v := range s.OnStart { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. func (s *UpdateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *UpdateNotebookInstanceLifecycleConfigInput { s.NotebookInstanceLifecycleConfigName = &v return s } // SetOnCreate sets the OnCreate field's value. func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { s.OnCreate = v return s } // SetOnStart sets the OnStart field's value. func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { s.OnStart = v return s } type UpdateNotebookInstanceLifecycleConfigOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateNotebookInstanceLifecycleConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateNotebookInstanceLifecycleConfigOutput) GoString() string { return s.String() } type UpdateNotebookInstanceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateNotebookInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateNotebookInstanceOutput) GoString() string { return s.String() } type UpdateTrialComponentInput struct { _ struct{} `type:"structure"` // The name of the component as displayed. The name doesn't need to be unique. // If DisplayName isn't specified, TrialComponentName is displayed. DisplayName *string `min:"1" type:"string"` // When the component ended. EndTime *time.Time `type:"timestamp"` // Replaces all of the component's input artifacts with the specified artifacts. InputArtifacts map[string]*TrialComponentArtifact `type:"map"` // The input artifacts to remove from the component. InputArtifactsToRemove []*string `type:"list"` // Replaces all of the component's output artifacts with the specified artifacts. OutputArtifacts map[string]*TrialComponentArtifact `type:"map"` // The output artifacts to remove from the component. OutputArtifactsToRemove []*string `type:"list"` // Replaces all of the component's hyperparameters with the specified hyperparameters. Parameters map[string]*TrialComponentParameterValue `type:"map"` // The hyperparameters to remove from the component. ParametersToRemove []*string `type:"list"` // When the component started. StartTime *time.Time `type:"timestamp"` // The new status of the component. Status *TrialComponentStatus `type:"structure"` // The name of the component to update. // // TrialComponentName is a required field TrialComponentName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateTrialComponentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateTrialComponentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateTrialComponentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateTrialComponentInput"} if s.DisplayName != nil && len(*s.DisplayName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) } if s.TrialComponentName == nil { invalidParams.Add(request.NewErrParamRequired("TrialComponentName")) } if s.TrialComponentName != nil && len(*s.TrialComponentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialComponentName", 1)) } if s.InputArtifacts != nil { for i, v := range s.InputArtifacts { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputArtifacts", i), err.(request.ErrInvalidParams)) } } } if s.OutputArtifacts != nil { for i, v := range s.OutputArtifacts { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputArtifacts", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDisplayName sets the DisplayName field's value. func (s *UpdateTrialComponentInput) SetDisplayName(v string) *UpdateTrialComponentInput { s.DisplayName = &v return s } // SetEndTime sets the EndTime field's value. func (s *UpdateTrialComponentInput) SetEndTime(v time.Time) *UpdateTrialComponentInput { s.EndTime = &v return s } // SetInputArtifacts sets the InputArtifacts field's value. func (s *UpdateTrialComponentInput) SetInputArtifacts(v map[string]*TrialComponentArtifact) *UpdateTrialComponentInput { s.InputArtifacts = v return s } // SetInputArtifactsToRemove sets the InputArtifactsToRemove field's value. func (s *UpdateTrialComponentInput) SetInputArtifactsToRemove(v []*string) *UpdateTrialComponentInput { s.InputArtifactsToRemove = v return s } // SetOutputArtifacts sets the OutputArtifacts field's value. func (s *UpdateTrialComponentInput) SetOutputArtifacts(v map[string]*TrialComponentArtifact) *UpdateTrialComponentInput { s.OutputArtifacts = v return s } // SetOutputArtifactsToRemove sets the OutputArtifactsToRemove field's value. func (s *UpdateTrialComponentInput) SetOutputArtifactsToRemove(v []*string) *UpdateTrialComponentInput { s.OutputArtifactsToRemove = v return s } // SetParameters sets the Parameters field's value. func (s *UpdateTrialComponentInput) SetParameters(v map[string]*TrialComponentParameterValue) *UpdateTrialComponentInput { s.Parameters = v return s } // SetParametersToRemove sets the ParametersToRemove field's value. func (s *UpdateTrialComponentInput) SetParametersToRemove(v []*string) *UpdateTrialComponentInput { s.ParametersToRemove = v return s } // SetStartTime sets the StartTime field's value. func (s *UpdateTrialComponentInput) SetStartTime(v time.Time) *UpdateTrialComponentInput { s.StartTime = &v return s } // SetStatus sets the Status field's value. func (s *UpdateTrialComponentInput) SetStatus(v *TrialComponentStatus) *UpdateTrialComponentInput { s.Status = v return s } // SetTrialComponentName sets the TrialComponentName field's value. func (s *UpdateTrialComponentInput) SetTrialComponentName(v string) *UpdateTrialComponentInput { s.TrialComponentName = &v return s } type UpdateTrialComponentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the trial component. TrialComponentArn *string `type:"string"` } // String returns the string representation func (s UpdateTrialComponentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateTrialComponentOutput) GoString() string { return s.String() } // SetTrialComponentArn sets the TrialComponentArn field's value. func (s *UpdateTrialComponentOutput) SetTrialComponentArn(v string) *UpdateTrialComponentOutput { s.TrialComponentArn = &v return s } type UpdateTrialInput struct { _ struct{} `type:"structure"` // The name of the trial as displayed. The name doesn't need to be unique. If // DisplayName isn't specified, TrialName is displayed. DisplayName *string `min:"1" type:"string"` // The name of the trial to update. // // TrialName is a required field TrialName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateTrialInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateTrialInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateTrialInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateTrialInput"} if s.DisplayName != nil && len(*s.DisplayName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) } if s.TrialName == nil { invalidParams.Add(request.NewErrParamRequired("TrialName")) } if s.TrialName != nil && len(*s.TrialName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TrialName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDisplayName sets the DisplayName field's value. func (s *UpdateTrialInput) SetDisplayName(v string) *UpdateTrialInput { s.DisplayName = &v return s } // SetTrialName sets the TrialName field's value. func (s *UpdateTrialInput) SetTrialName(v string) *UpdateTrialInput { s.TrialName = &v return s } type UpdateTrialOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the trial. TrialArn *string `type:"string"` } // String returns the string representation func (s UpdateTrialOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateTrialOutput) GoString() string { return s.String() } // SetTrialArn sets the TrialArn field's value. func (s *UpdateTrialOutput) SetTrialArn(v string) *UpdateTrialOutput { s.TrialArn = &v return s } type UpdateUserProfileInput struct { _ struct{} `type:"structure"` // The domain ID. // // DomainId is a required field DomainId *string `type:"string" required:"true"` // The user profile name. // // UserProfileName is a required field UserProfileName *string `type:"string" required:"true"` // A collection of settings. UserSettings *UserSettings `type:"structure"` } // String returns the string representation func (s UpdateUserProfileInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateUserProfileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateUserProfileInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateUserProfileInput"} if s.DomainId == nil { invalidParams.Add(request.NewErrParamRequired("DomainId")) } if s.UserProfileName == nil { invalidParams.Add(request.NewErrParamRequired("UserProfileName")) } if s.UserSettings != nil { if err := s.UserSettings.Validate(); err != nil { invalidParams.AddNested("UserSettings", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainId sets the DomainId field's value. func (s *UpdateUserProfileInput) SetDomainId(v string) *UpdateUserProfileInput { s.DomainId = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *UpdateUserProfileInput) SetUserProfileName(v string) *UpdateUserProfileInput { s.UserProfileName = &v return s } // SetUserSettings sets the UserSettings field's value. func (s *UpdateUserProfileInput) SetUserSettings(v *UserSettings) *UpdateUserProfileInput { s.UserSettings = v return s } type UpdateUserProfileOutput struct { _ struct{} `type:"structure"` // The user profile Amazon Resource Name (ARN). UserProfileArn *string `type:"string"` } // String returns the string representation func (s UpdateUserProfileOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateUserProfileOutput) GoString() string { return s.String() } // SetUserProfileArn sets the UserProfileArn field's value. func (s *UpdateUserProfileOutput) SetUserProfileArn(v string) *UpdateUserProfileOutput { s.UserProfileArn = &v return s } type UpdateWorkforceInput struct { _ struct{} `type:"structure"` // Use this parameter to update your OIDC Identity Provider (IdP) configuration // for a workforce made using your own IdP. OidcConfig *OidcConfig `type:"structure"` // A list of one to ten worker IP address ranges (CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html)) // that can be used to access tasks assigned to this workforce. // // Maximum: Ten CIDR values SourceIpConfig *SourceIpConfig `type:"structure"` // The name of the private workforce that you want to update. You can find your // workforce name by using the operation. // // WorkforceName is a required field WorkforceName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateWorkforceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateWorkforceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateWorkforceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateWorkforceInput"} if s.WorkforceName == nil { invalidParams.Add(request.NewErrParamRequired("WorkforceName")) } if s.WorkforceName != nil && len(*s.WorkforceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkforceName", 1)) } if s.OidcConfig != nil { if err := s.OidcConfig.Validate(); err != nil { invalidParams.AddNested("OidcConfig", err.(request.ErrInvalidParams)) } } if s.SourceIpConfig != nil { if err := s.SourceIpConfig.Validate(); err != nil { invalidParams.AddNested("SourceIpConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetOidcConfig sets the OidcConfig field's value. func (s *UpdateWorkforceInput) SetOidcConfig(v *OidcConfig) *UpdateWorkforceInput { s.OidcConfig = v return s } // SetSourceIpConfig sets the SourceIpConfig field's value. func (s *UpdateWorkforceInput) SetSourceIpConfig(v *SourceIpConfig) *UpdateWorkforceInput { s.SourceIpConfig = v return s } // SetWorkforceName sets the WorkforceName field's value. func (s *UpdateWorkforceInput) SetWorkforceName(v string) *UpdateWorkforceInput { s.WorkforceName = &v return s } type UpdateWorkforceOutput struct { _ struct{} `type:"structure"` // A single private workforce. You can create one private work force in each // AWS Region. By default, any workforce-related API operation used in a specific // region will apply to the workforce created in that region. To learn how to // create a private workforce, see Create a Private Workforce (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-create-private.html). // // Workforce is a required field Workforce *Workforce `type:"structure" required:"true"` } // String returns the string representation func (s UpdateWorkforceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateWorkforceOutput) GoString() string { return s.String() } // SetWorkforce sets the Workforce field's value. func (s *UpdateWorkforceOutput) SetWorkforce(v *Workforce) *UpdateWorkforceOutput { s.Workforce = v return s } type UpdateWorkteamInput struct { _ struct{} `type:"structure"` // An updated description for the work team. Description *string `min:"1" type:"string"` // A list of MemberDefinition objects that contains objects that identify the // workers that make up the work team. // // Workforces can be created using Amazon Cognito or your own OIDC Identity // Provider (IdP). For private workforces created using Amazon Cognito use CognitoMemberDefinition. // For workforces created using your own OIDC identity provider (IdP) use OidcMemberDefinition. // You should not provide input for both of these parameters in a single request. // // For workforces created using Amazon Cognito, private work teams correspond // to Amazon Cognito user groups within the user pool used to create a workforce. // All of the CognitoMemberDefinition objects that make up the member definition // must have the same ClientId and UserPool values. To add a Amazon Cognito // user group to an existing worker pool, see Adding groups to a User Pool. // For more information about user pools, see Amazon Cognito User Pools (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html). // // For workforces created using your own OIDC IdP, specify the user groups that // you want to include in your private work team in OidcMemberDefinition by // listing those groups in Groups. Be aware that user groups that are already // in the work team must also be listed in Groups when you make this request // to remain on the work team. If you do not include these user groups, they // will no longer be associated with the work team you update. MemberDefinitions []*MemberDefinition `min:"1" type:"list"` // Configures SNS topic notifications for available or expiring work items NotificationConfiguration *NotificationConfiguration `type:"structure"` // The name of the work team to update. // // WorkteamName is a required field WorkteamName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateWorkteamInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateWorkteamInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateWorkteamInput"} if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 { invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1)) } if s.WorkteamName == nil { invalidParams.Add(request.NewErrParamRequired("WorkteamName")) } if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) } if s.MemberDefinitions != nil { for i, v := range s.MemberDefinitions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *UpdateWorkteamInput) SetDescription(v string) *UpdateWorkteamInput { s.Description = &v return s } // SetMemberDefinitions sets the MemberDefinitions field's value. func (s *UpdateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *UpdateWorkteamInput { s.MemberDefinitions = v return s } // SetNotificationConfiguration sets the NotificationConfiguration field's value. func (s *UpdateWorkteamInput) SetNotificationConfiguration(v *NotificationConfiguration) *UpdateWorkteamInput { s.NotificationConfiguration = v return s } // SetWorkteamName sets the WorkteamName field's value. func (s *UpdateWorkteamInput) SetWorkteamName(v string) *UpdateWorkteamInput { s.WorkteamName = &v return s } type UpdateWorkteamOutput struct { _ struct{} `type:"structure"` // A Workteam object that describes the updated work team. // // Workteam is a required field Workteam *Workteam `type:"structure" required:"true"` } // String returns the string representation func (s UpdateWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateWorkteamOutput) GoString() string { return s.String() } // SetWorkteam sets the Workteam field's value. func (s *UpdateWorkteamOutput) SetWorkteam(v *Workteam) *UpdateWorkteamOutput { s.Workteam = v return s } // Information about the user who created or modified an experiment, trial, // or trial component. type UserContext struct { _ struct{} `type:"structure"` // The domain associated with the user. DomainId *string `type:"string"` // The Amazon Resource Name (ARN) of the user's profile. UserProfileArn *string `type:"string"` // The name of the user's profile. UserProfileName *string `type:"string"` } // String returns the string representation func (s UserContext) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UserContext) GoString() string { return s.String() } // SetDomainId sets the DomainId field's value. func (s *UserContext) SetDomainId(v string) *UserContext { s.DomainId = &v return s } // SetUserProfileArn sets the UserProfileArn field's value. func (s *UserContext) SetUserProfileArn(v string) *UserContext { s.UserProfileArn = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *UserContext) SetUserProfileName(v string) *UserContext { s.UserProfileName = &v return s } // The user profile details. type UserProfileDetails struct { _ struct{} `type:"structure"` // The creation time. CreationTime *time.Time `type:"timestamp"` // The domain ID. DomainId *string `type:"string"` // The last modified time. LastModifiedTime *time.Time `type:"timestamp"` // The status. Status *string `type:"string" enum:"UserProfileStatus"` // The user profile name. UserProfileName *string `type:"string"` } // String returns the string representation func (s UserProfileDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UserProfileDetails) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *UserProfileDetails) SetCreationTime(v time.Time) *UserProfileDetails { s.CreationTime = &v return s } // SetDomainId sets the DomainId field's value. func (s *UserProfileDetails) SetDomainId(v string) *UserProfileDetails { s.DomainId = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *UserProfileDetails) SetLastModifiedTime(v time.Time) *UserProfileDetails { s.LastModifiedTime = &v return s } // SetStatus sets the Status field's value. func (s *UserProfileDetails) SetStatus(v string) *UserProfileDetails { s.Status = &v return s } // SetUserProfileName sets the UserProfileName field's value. func (s *UserProfileDetails) SetUserProfileName(v string) *UserProfileDetails { s.UserProfileName = &v return s } // A collection of settings. type UserSettings struct { _ struct{} `type:"structure"` // The execution role for the user. ExecutionRole *string `min:"20" type:"string"` // The Jupyter server's app settings. JupyterServerAppSettings *JupyterServerAppSettings `type:"structure"` // The kernel gateway app settings. KernelGatewayAppSettings *KernelGatewayAppSettings `type:"structure"` // The security groups. SecurityGroups []*string `type:"list"` // The sharing settings. SharingSettings *SharingSettings `type:"structure"` // The TensorBoard app settings. TensorBoardAppSettings *TensorBoardAppSettings `type:"structure"` } // String returns the string representation func (s UserSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UserSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UserSettings) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UserSettings"} if s.ExecutionRole != nil && len(*s.ExecutionRole) < 20 { invalidParams.Add(request.NewErrParamMinLen("ExecutionRole", 20)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExecutionRole sets the ExecutionRole field's value. func (s *UserSettings) SetExecutionRole(v string) *UserSettings { s.ExecutionRole = &v return s } // SetJupyterServerAppSettings sets the JupyterServerAppSettings field's value. func (s *UserSettings) SetJupyterServerAppSettings(v *JupyterServerAppSettings) *UserSettings { s.JupyterServerAppSettings = v return s } // SetKernelGatewayAppSettings sets the KernelGatewayAppSettings field's value. func (s *UserSettings) SetKernelGatewayAppSettings(v *KernelGatewayAppSettings) *UserSettings { s.KernelGatewayAppSettings = v return s } // SetSecurityGroups sets the SecurityGroups field's value. func (s *UserSettings) SetSecurityGroups(v []*string) *UserSettings { s.SecurityGroups = v return s } // SetSharingSettings sets the SharingSettings field's value. func (s *UserSettings) SetSharingSettings(v *SharingSettings) *UserSettings { s.SharingSettings = v return s } // SetTensorBoardAppSettings sets the TensorBoardAppSettings field's value. func (s *UserSettings) SetTensorBoardAppSettings(v *TensorBoardAppSettings) *UserSettings { s.TensorBoardAppSettings = v return s } // Specifies a production variant property type for an Endpoint. // // If you are updating an endpoint with the UpdateEndpointInput$RetainAllVariantProperties // option set to true, the VariantProperty objects listed in UpdateEndpointInput$ExcludeRetainedVariantProperties // override the existing variant properties of the endpoint. type VariantProperty struct { _ struct{} `type:"structure"` // The type of variant property. The supported values are: // // * DesiredInstanceCount: Overrides the existing variant instance counts // using the ProductionVariant$InitialInstanceCount values in the CreateEndpointConfigInput$ProductionVariants. // // * DesiredWeight: Overrides the existing variant weights using the ProductionVariant$InitialVariantWeight // values in the CreateEndpointConfigInput$ProductionVariants. // // * DataCaptureConfig: (Not currently supported.) // // VariantPropertyType is a required field VariantPropertyType *string `type:"string" required:"true" enum:"VariantPropertyType"` } // String returns the string representation func (s VariantProperty) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s VariantProperty) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *VariantProperty) Validate() error { invalidParams := request.ErrInvalidParams{Context: "VariantProperty"} if s.VariantPropertyType == nil { invalidParams.Add(request.NewErrParamRequired("VariantPropertyType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetVariantPropertyType sets the VariantPropertyType field's value. func (s *VariantProperty) SetVariantPropertyType(v string) *VariantProperty { s.VariantPropertyType = &v return s } // Specifies a VPC that your training jobs and hosted models have access to. // Control access to and from your training and model containers by configuring // the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). type VpcConfig struct { _ struct{} `type:"structure"` // The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security // groups for the VPC that is specified in the Subnets field. // // SecurityGroupIds is a required field SecurityGroupIds []*string `min:"1" type:"list" required:"true"` // The ID of the subnets in the VPC to which you want to connect your training // job or model. For information about the availability of specific instance // types, see Supported Instance Types and Availability Zones (https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html). // // Subnets is a required field Subnets []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s VpcConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s VpcConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *VpcConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "VpcConfig"} if s.SecurityGroupIds == nil { invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) } if s.SecurityGroupIds != nil && len(s.SecurityGroupIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("SecurityGroupIds", 1)) } if s.Subnets == nil { invalidParams.Add(request.NewErrParamRequired("Subnets")) } if s.Subnets != nil && len(s.Subnets) < 1 { invalidParams.Add(request.NewErrParamMinLen("Subnets", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSecurityGroupIds sets the SecurityGroupIds field's value. func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig { s.SecurityGroupIds = v return s } // SetSubnets sets the Subnets field's value. func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig { s.Subnets = v return s } // A single private workforce, which is automatically created when you create // your first private work team. You can create one private work force in each // AWS Region. By default, any workforce-related API operation used in a specific // region will apply to the workforce created in that region. To learn how to // create a private workforce, see Create a Private Workforce (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-create-private.html). type Workforce struct { _ struct{} `type:"structure"` // The configuration of an Amazon Cognito workforce. A single Cognito workforce // is created using and corresponds to a single Amazon Cognito user pool (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html). CognitoConfig *CognitoConfig `type:"structure"` // The date that the workforce is created. CreateDate *time.Time `type:"timestamp"` // The most recent date that was used to successfully add one or more IP address // ranges (CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html)) // to a private workforce's allow list. LastUpdatedDate *time.Time `type:"timestamp"` // The configuration of an OIDC Identity Provider (IdP) private workforce. OidcConfig *OidcConfigForResponse `type:"structure"` // A list of one to ten IP address ranges (CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html)) // to be added to the workforce allow list. By default, a workforce isn't restricted // to specific IP addresses. SourceIpConfig *SourceIpConfig `type:"structure"` // The subdomain for your OIDC Identity Provider. SubDomain *string `type:"string"` // The Amazon Resource Name (ARN) of the private workforce. // // WorkforceArn is a required field WorkforceArn *string `type:"string" required:"true"` // The name of the private workforce. // // WorkforceName is a required field WorkforceName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s Workforce) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Workforce) GoString() string { return s.String() } // SetCognitoConfig sets the CognitoConfig field's value. func (s *Workforce) SetCognitoConfig(v *CognitoConfig) *Workforce { s.CognitoConfig = v return s } // SetCreateDate sets the CreateDate field's value. func (s *Workforce) SetCreateDate(v time.Time) *Workforce { s.CreateDate = &v return s } // SetLastUpdatedDate sets the LastUpdatedDate field's value. func (s *Workforce) SetLastUpdatedDate(v time.Time) *Workforce { s.LastUpdatedDate = &v return s } // SetOidcConfig sets the OidcConfig field's value. func (s *Workforce) SetOidcConfig(v *OidcConfigForResponse) *Workforce { s.OidcConfig = v return s } // SetSourceIpConfig sets the SourceIpConfig field's value. func (s *Workforce) SetSourceIpConfig(v *SourceIpConfig) *Workforce { s.SourceIpConfig = v return s } // SetSubDomain sets the SubDomain field's value. func (s *Workforce) SetSubDomain(v string) *Workforce { s.SubDomain = &v return s } // SetWorkforceArn sets the WorkforceArn field's value. func (s *Workforce) SetWorkforceArn(v string) *Workforce { s.WorkforceArn = &v return s } // SetWorkforceName sets the WorkforceName field's value. func (s *Workforce) SetWorkforceName(v string) *Workforce { s.WorkforceName = &v return s } // Provides details about a labeling work team. type Workteam struct { _ struct{} `type:"structure"` // The date and time that the work team was created (timestamp). CreateDate *time.Time `type:"timestamp"` // A description of the work team. // // Description is a required field Description *string `min:"1" type:"string" required:"true"` // The date and time that the work team was last updated (timestamp). LastUpdatedDate *time.Time `type:"timestamp"` // A list of MemberDefinition objects that contains objects that identify the // workers that make up the work team. // // Workforces can be created using Amazon Cognito or your own OIDC Identity // Provider (IdP). For private workforces created using Amazon Cognito use CognitoMemberDefinition. // For workforces created using your own OIDC identity provider (IdP) use OidcMemberDefinition. // // MemberDefinitions is a required field MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"` // Configures SNS notifications of available or expiring work items for work // teams. NotificationConfiguration *NotificationConfiguration `type:"structure"` // The Amazon Marketplace identifier for a vendor's work team. ProductListingIds []*string `type:"list"` // The URI of the labeling job's user interface. Workers open this URI to start // labeling your data objects. SubDomain *string `type:"string"` // The Amazon Resource Name (ARN) of the workforce. WorkforceArn *string `type:"string"` // The Amazon Resource Name (ARN) that identifies the work team. // // WorkteamArn is a required field WorkteamArn *string `type:"string" required:"true"` // The name of the work team. // // WorkteamName is a required field WorkteamName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s Workteam) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Workteam) GoString() string { return s.String() } // SetCreateDate sets the CreateDate field's value. func (s *Workteam) SetCreateDate(v time.Time) *Workteam { s.CreateDate = &v return s } // SetDescription sets the Description field's value. func (s *Workteam) SetDescription(v string) *Workteam { s.Description = &v return s } // SetLastUpdatedDate sets the LastUpdatedDate field's value. func (s *Workteam) SetLastUpdatedDate(v time.Time) *Workteam { s.LastUpdatedDate = &v return s } // SetMemberDefinitions sets the MemberDefinitions field's value. func (s *Workteam) SetMemberDefinitions(v []*MemberDefinition) *Workteam { s.MemberDefinitions = v return s } // SetNotificationConfiguration sets the NotificationConfiguration field's value. func (s *Workteam) SetNotificationConfiguration(v *NotificationConfiguration) *Workteam { s.NotificationConfiguration = v return s } // SetProductListingIds sets the ProductListingIds field's value. func (s *Workteam) SetProductListingIds(v []*string) *Workteam { s.ProductListingIds = v return s } // SetSubDomain sets the SubDomain field's value. func (s *Workteam) SetSubDomain(v string) *Workteam { s.SubDomain = &v return s } // SetWorkforceArn sets the WorkforceArn field's value. func (s *Workteam) SetWorkforceArn(v string) *Workteam { s.WorkforceArn = &v return s } // SetWorkteamArn sets the WorkteamArn field's value. func (s *Workteam) SetWorkteamArn(v string) *Workteam { s.WorkteamArn = &v return s } // SetWorkteamName sets the WorkteamName field's value. func (s *Workteam) SetWorkteamName(v string) *Workteam { s.WorkteamName = &v return s } const ( // AlgorithmSortByName is a AlgorithmSortBy enum value AlgorithmSortByName = "Name" // AlgorithmSortByCreationTime is a AlgorithmSortBy enum value AlgorithmSortByCreationTime = "CreationTime" ) // AlgorithmSortBy_Values returns all elements of the AlgorithmSortBy enum func AlgorithmSortBy_Values() []string { return []string{ AlgorithmSortByName, AlgorithmSortByCreationTime, } } const ( // AlgorithmStatusPending is a AlgorithmStatus enum value AlgorithmStatusPending = "Pending" // AlgorithmStatusInProgress is a AlgorithmStatus enum value AlgorithmStatusInProgress = "InProgress" // AlgorithmStatusCompleted is a AlgorithmStatus enum value AlgorithmStatusCompleted = "Completed" // AlgorithmStatusFailed is a AlgorithmStatus enum value AlgorithmStatusFailed = "Failed" // AlgorithmStatusDeleting is a AlgorithmStatus enum value AlgorithmStatusDeleting = "Deleting" ) // AlgorithmStatus_Values returns all elements of the AlgorithmStatus enum func AlgorithmStatus_Values() []string { return []string{ AlgorithmStatusPending, AlgorithmStatusInProgress, AlgorithmStatusCompleted, AlgorithmStatusFailed, AlgorithmStatusDeleting, } } const ( // AppInstanceTypeSystem is a AppInstanceType enum value AppInstanceTypeSystem = "system" // AppInstanceTypeMlT3Micro is a AppInstanceType enum value AppInstanceTypeMlT3Micro = "ml.t3.micro" // AppInstanceTypeMlT3Small is a AppInstanceType enum value AppInstanceTypeMlT3Small = "ml.t3.small" // AppInstanceTypeMlT3Medium is a AppInstanceType enum value AppInstanceTypeMlT3Medium = "ml.t3.medium" // AppInstanceTypeMlT3Large is a AppInstanceType enum value AppInstanceTypeMlT3Large = "ml.t3.large" // AppInstanceTypeMlT3Xlarge is a AppInstanceType enum value AppInstanceTypeMlT3Xlarge = "ml.t3.xlarge" // AppInstanceTypeMlT32xlarge is a AppInstanceType enum value AppInstanceTypeMlT32xlarge = "ml.t3.2xlarge" // AppInstanceTypeMlM5Large is a AppInstanceType enum value AppInstanceTypeMlM5Large = "ml.m5.large" // AppInstanceTypeMlM5Xlarge is a AppInstanceType enum value AppInstanceTypeMlM5Xlarge = "ml.m5.xlarge" // AppInstanceTypeMlM52xlarge is a AppInstanceType enum value AppInstanceTypeMlM52xlarge = "ml.m5.2xlarge" // AppInstanceTypeMlM54xlarge is a AppInstanceType enum value AppInstanceTypeMlM54xlarge = "ml.m5.4xlarge" // AppInstanceTypeMlM58xlarge is a AppInstanceType enum value AppInstanceTypeMlM58xlarge = "ml.m5.8xlarge" // AppInstanceTypeMlM512xlarge is a AppInstanceType enum value AppInstanceTypeMlM512xlarge = "ml.m5.12xlarge" // AppInstanceTypeMlM516xlarge is a AppInstanceType enum value AppInstanceTypeMlM516xlarge = "ml.m5.16xlarge" // AppInstanceTypeMlM524xlarge is a AppInstanceType enum value AppInstanceTypeMlM524xlarge = "ml.m5.24xlarge" // AppInstanceTypeMlC5Large is a AppInstanceType enum value AppInstanceTypeMlC5Large = "ml.c5.large" // AppInstanceTypeMlC5Xlarge is a AppInstanceType enum value AppInstanceTypeMlC5Xlarge = "ml.c5.xlarge" // AppInstanceTypeMlC52xlarge is a AppInstanceType enum value AppInstanceTypeMlC52xlarge = "ml.c5.2xlarge" // AppInstanceTypeMlC54xlarge is a AppInstanceType enum value AppInstanceTypeMlC54xlarge = "ml.c5.4xlarge" // AppInstanceTypeMlC59xlarge is a AppInstanceType enum value AppInstanceTypeMlC59xlarge = "ml.c5.9xlarge" // AppInstanceTypeMlC512xlarge is a AppInstanceType enum value AppInstanceTypeMlC512xlarge = "ml.c5.12xlarge" // AppInstanceTypeMlC518xlarge is a AppInstanceType enum value AppInstanceTypeMlC518xlarge = "ml.c5.18xlarge" // AppInstanceTypeMlC524xlarge is a AppInstanceType enum value AppInstanceTypeMlC524xlarge = "ml.c5.24xlarge" // AppInstanceTypeMlP32xlarge is a AppInstanceType enum value AppInstanceTypeMlP32xlarge = "ml.p3.2xlarge" // AppInstanceTypeMlP38xlarge is a AppInstanceType enum value AppInstanceTypeMlP38xlarge = "ml.p3.8xlarge" // AppInstanceTypeMlP316xlarge is a AppInstanceType enum value AppInstanceTypeMlP316xlarge = "ml.p3.16xlarge" // AppInstanceTypeMlG4dnXlarge is a AppInstanceType enum value AppInstanceTypeMlG4dnXlarge = "ml.g4dn.xlarge" // AppInstanceTypeMlG4dn2xlarge is a AppInstanceType enum value AppInstanceTypeMlG4dn2xlarge = "ml.g4dn.2xlarge" // AppInstanceTypeMlG4dn4xlarge is a AppInstanceType enum value AppInstanceTypeMlG4dn4xlarge = "ml.g4dn.4xlarge" // AppInstanceTypeMlG4dn8xlarge is a AppInstanceType enum value AppInstanceTypeMlG4dn8xlarge = "ml.g4dn.8xlarge" // AppInstanceTypeMlG4dn12xlarge is a AppInstanceType enum value AppInstanceTypeMlG4dn12xlarge = "ml.g4dn.12xlarge" // AppInstanceTypeMlG4dn16xlarge is a AppInstanceType enum value AppInstanceTypeMlG4dn16xlarge = "ml.g4dn.16xlarge" ) // AppInstanceType_Values returns all elements of the AppInstanceType enum func AppInstanceType_Values() []string { return []string{ AppInstanceTypeSystem, AppInstanceTypeMlT3Micro, AppInstanceTypeMlT3Small, AppInstanceTypeMlT3Medium, AppInstanceTypeMlT3Large, AppInstanceTypeMlT3Xlarge, AppInstanceTypeMlT32xlarge, AppInstanceTypeMlM5Large, AppInstanceTypeMlM5Xlarge, AppInstanceTypeMlM52xlarge, AppInstanceTypeMlM54xlarge, AppInstanceTypeMlM58xlarge, AppInstanceTypeMlM512xlarge, AppInstanceTypeMlM516xlarge, AppInstanceTypeMlM524xlarge, AppInstanceTypeMlC5Large, AppInstanceTypeMlC5Xlarge, AppInstanceTypeMlC52xlarge, AppInstanceTypeMlC54xlarge, AppInstanceTypeMlC59xlarge, AppInstanceTypeMlC512xlarge, AppInstanceTypeMlC518xlarge, AppInstanceTypeMlC524xlarge, AppInstanceTypeMlP32xlarge, AppInstanceTypeMlP38xlarge, AppInstanceTypeMlP316xlarge, AppInstanceTypeMlG4dnXlarge, AppInstanceTypeMlG4dn2xlarge, AppInstanceTypeMlG4dn4xlarge, AppInstanceTypeMlG4dn8xlarge, AppInstanceTypeMlG4dn12xlarge, AppInstanceTypeMlG4dn16xlarge, } } const ( // AppSortKeyCreationTime is a AppSortKey enum value AppSortKeyCreationTime = "CreationTime" ) // AppSortKey_Values returns all elements of the AppSortKey enum func AppSortKey_Values() []string { return []string{ AppSortKeyCreationTime, } } const ( // AppStatusDeleted is a AppStatus enum value AppStatusDeleted = "Deleted" // AppStatusDeleting is a AppStatus enum value AppStatusDeleting = "Deleting" // AppStatusFailed is a AppStatus enum value AppStatusFailed = "Failed" // AppStatusInService is a AppStatus enum value AppStatusInService = "InService" // AppStatusPending is a AppStatus enum value AppStatusPending = "Pending" ) // AppStatus_Values returns all elements of the AppStatus enum func AppStatus_Values() []string { return []string{ AppStatusDeleted, AppStatusDeleting, AppStatusFailed, AppStatusInService, AppStatusPending, } } const ( // AppTypeJupyterServer is a AppType enum value AppTypeJupyterServer = "JupyterServer" // AppTypeKernelGateway is a AppType enum value AppTypeKernelGateway = "KernelGateway" // AppTypeTensorBoard is a AppType enum value AppTypeTensorBoard = "TensorBoard" ) // AppType_Values returns all elements of the AppType enum func AppType_Values() []string { return []string{ AppTypeJupyterServer, AppTypeKernelGateway, AppTypeTensorBoard, } } const ( // AssemblyTypeNone is a AssemblyType enum value AssemblyTypeNone = "None" // AssemblyTypeLine is a AssemblyType enum value AssemblyTypeLine = "Line" ) // AssemblyType_Values returns all elements of the AssemblyType enum func AssemblyType_Values() []string { return []string{ AssemblyTypeNone, AssemblyTypeLine, } } const ( // AuthModeSso is a AuthMode enum value AuthModeSso = "SSO" // AuthModeIam is a AuthMode enum value AuthModeIam = "IAM" ) // AuthMode_Values returns all elements of the AuthMode enum func AuthMode_Values() []string { return []string{ AuthModeSso, AuthModeIam, } } const ( // AutoMLJobObjectiveTypeMaximize is a AutoMLJobObjectiveType enum value AutoMLJobObjectiveTypeMaximize = "Maximize" // AutoMLJobObjectiveTypeMinimize is a AutoMLJobObjectiveType enum value AutoMLJobObjectiveTypeMinimize = "Minimize" ) // AutoMLJobObjectiveType_Values returns all elements of the AutoMLJobObjectiveType enum func AutoMLJobObjectiveType_Values() []string { return []string{ AutoMLJobObjectiveTypeMaximize, AutoMLJobObjectiveTypeMinimize, } } const ( // AutoMLJobSecondaryStatusStarting is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusStarting = "Starting" // AutoMLJobSecondaryStatusAnalyzingData is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusAnalyzingData = "AnalyzingData" // AutoMLJobSecondaryStatusFeatureEngineering is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusFeatureEngineering = "FeatureEngineering" // AutoMLJobSecondaryStatusModelTuning is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusModelTuning = "ModelTuning" // AutoMLJobSecondaryStatusMaxCandidatesReached is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusMaxCandidatesReached = "MaxCandidatesReached" // AutoMLJobSecondaryStatusFailed is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusFailed = "Failed" // AutoMLJobSecondaryStatusStopped is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusStopped = "Stopped" // AutoMLJobSecondaryStatusMaxAutoMljobRuntimeReached is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusMaxAutoMljobRuntimeReached = "MaxAutoMLJobRuntimeReached" // AutoMLJobSecondaryStatusStopping is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusStopping = "Stopping" // AutoMLJobSecondaryStatusCandidateDefinitionsGenerated is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusCandidateDefinitionsGenerated = "CandidateDefinitionsGenerated" ) // AutoMLJobSecondaryStatus_Values returns all elements of the AutoMLJobSecondaryStatus enum func AutoMLJobSecondaryStatus_Values() []string { return []string{ AutoMLJobSecondaryStatusStarting, AutoMLJobSecondaryStatusAnalyzingData, AutoMLJobSecondaryStatusFeatureEngineering, AutoMLJobSecondaryStatusModelTuning, AutoMLJobSecondaryStatusMaxCandidatesReached, AutoMLJobSecondaryStatusFailed, AutoMLJobSecondaryStatusStopped, AutoMLJobSecondaryStatusMaxAutoMljobRuntimeReached, AutoMLJobSecondaryStatusStopping, AutoMLJobSecondaryStatusCandidateDefinitionsGenerated, } } const ( // AutoMLJobStatusCompleted is a AutoMLJobStatus enum value AutoMLJobStatusCompleted = "Completed" // AutoMLJobStatusInProgress is a AutoMLJobStatus enum value AutoMLJobStatusInProgress = "InProgress" // AutoMLJobStatusFailed is a AutoMLJobStatus enum value AutoMLJobStatusFailed = "Failed" // AutoMLJobStatusStopped is a AutoMLJobStatus enum value AutoMLJobStatusStopped = "Stopped" // AutoMLJobStatusStopping is a AutoMLJobStatus enum value AutoMLJobStatusStopping = "Stopping" ) // AutoMLJobStatus_Values returns all elements of the AutoMLJobStatus enum func AutoMLJobStatus_Values() []string { return []string{ AutoMLJobStatusCompleted, AutoMLJobStatusInProgress, AutoMLJobStatusFailed, AutoMLJobStatusStopped, AutoMLJobStatusStopping, } } const ( // AutoMLMetricEnumAccuracy is a AutoMLMetricEnum enum value AutoMLMetricEnumAccuracy = "Accuracy" // AutoMLMetricEnumMse is a AutoMLMetricEnum enum value AutoMLMetricEnumMse = "MSE" // AutoMLMetricEnumF1 is a AutoMLMetricEnum enum value AutoMLMetricEnumF1 = "F1" // AutoMLMetricEnumF1macro is a AutoMLMetricEnum enum value AutoMLMetricEnumF1macro = "F1macro" // AutoMLMetricEnumAuc is a AutoMLMetricEnum enum value AutoMLMetricEnumAuc = "AUC" ) // AutoMLMetricEnum_Values returns all elements of the AutoMLMetricEnum enum func AutoMLMetricEnum_Values() []string { return []string{ AutoMLMetricEnumAccuracy, AutoMLMetricEnumMse, AutoMLMetricEnumF1, AutoMLMetricEnumF1macro, AutoMLMetricEnumAuc, } } const ( // AutoMLS3DataTypeManifestFile is a AutoMLS3DataType enum value AutoMLS3DataTypeManifestFile = "ManifestFile" // AutoMLS3DataTypeS3prefix is a AutoMLS3DataType enum value AutoMLS3DataTypeS3prefix = "S3Prefix" ) // AutoMLS3DataType_Values returns all elements of the AutoMLS3DataType enum func AutoMLS3DataType_Values() []string { return []string{ AutoMLS3DataTypeManifestFile, AutoMLS3DataTypeS3prefix, } } const ( // AutoMLSortByName is a AutoMLSortBy enum value AutoMLSortByName = "Name" // AutoMLSortByCreationTime is a AutoMLSortBy enum value AutoMLSortByCreationTime = "CreationTime" // AutoMLSortByStatus is a AutoMLSortBy enum value AutoMLSortByStatus = "Status" ) // AutoMLSortBy_Values returns all elements of the AutoMLSortBy enum func AutoMLSortBy_Values() []string { return []string{ AutoMLSortByName, AutoMLSortByCreationTime, AutoMLSortByStatus, } } const ( // AutoMLSortOrderAscending is a AutoMLSortOrder enum value AutoMLSortOrderAscending = "Ascending" // AutoMLSortOrderDescending is a AutoMLSortOrder enum value AutoMLSortOrderDescending = "Descending" ) // AutoMLSortOrder_Values returns all elements of the AutoMLSortOrder enum func AutoMLSortOrder_Values() []string { return []string{ AutoMLSortOrderAscending, AutoMLSortOrderDescending, } } const ( // AwsManagedHumanLoopRequestSourceAwsRekognitionDetectModerationLabelsImageV3 is a AwsManagedHumanLoopRequestSource enum value AwsManagedHumanLoopRequestSourceAwsRekognitionDetectModerationLabelsImageV3 = "AWS/Rekognition/DetectModerationLabels/Image/V3" // AwsManagedHumanLoopRequestSourceAwsTextractAnalyzeDocumentFormsV1 is a AwsManagedHumanLoopRequestSource enum value AwsManagedHumanLoopRequestSourceAwsTextractAnalyzeDocumentFormsV1 = "AWS/Textract/AnalyzeDocument/Forms/V1" ) // AwsManagedHumanLoopRequestSource_Values returns all elements of the AwsManagedHumanLoopRequestSource enum func AwsManagedHumanLoopRequestSource_Values() []string { return []string{ AwsManagedHumanLoopRequestSourceAwsRekognitionDetectModerationLabelsImageV3, AwsManagedHumanLoopRequestSourceAwsTextractAnalyzeDocumentFormsV1, } } const ( // BatchStrategyMultiRecord is a BatchStrategy enum value BatchStrategyMultiRecord = "MultiRecord" // BatchStrategySingleRecord is a BatchStrategy enum value BatchStrategySingleRecord = "SingleRecord" ) // BatchStrategy_Values returns all elements of the BatchStrategy enum func BatchStrategy_Values() []string { return []string{ BatchStrategyMultiRecord, BatchStrategySingleRecord, } } const ( // BooleanOperatorAnd is a BooleanOperator enum value BooleanOperatorAnd = "And" // BooleanOperatorOr is a BooleanOperator enum value BooleanOperatorOr = "Or" ) // BooleanOperator_Values returns all elements of the BooleanOperator enum func BooleanOperator_Values() []string { return []string{ BooleanOperatorAnd, BooleanOperatorOr, } } const ( // CandidateSortByCreationTime is a CandidateSortBy enum value CandidateSortByCreationTime = "CreationTime" // CandidateSortByStatus is a CandidateSortBy enum value CandidateSortByStatus = "Status" // CandidateSortByFinalObjectiveMetricValue is a CandidateSortBy enum value CandidateSortByFinalObjectiveMetricValue = "FinalObjectiveMetricValue" ) // CandidateSortBy_Values returns all elements of the CandidateSortBy enum func CandidateSortBy_Values() []string { return []string{ CandidateSortByCreationTime, CandidateSortByStatus, CandidateSortByFinalObjectiveMetricValue, } } const ( // CandidateStatusCompleted is a CandidateStatus enum value CandidateStatusCompleted = "Completed" // CandidateStatusInProgress is a CandidateStatus enum value CandidateStatusInProgress = "InProgress" // CandidateStatusFailed is a CandidateStatus enum value CandidateStatusFailed = "Failed" // CandidateStatusStopped is a CandidateStatus enum value CandidateStatusStopped = "Stopped" // CandidateStatusStopping is a CandidateStatus enum value CandidateStatusStopping = "Stopping" ) // CandidateStatus_Values returns all elements of the CandidateStatus enum func CandidateStatus_Values() []string { return []string{ CandidateStatusCompleted, CandidateStatusInProgress, CandidateStatusFailed, CandidateStatusStopped, CandidateStatusStopping, } } const ( // CandidateStepTypeAwsSageMakerTrainingJob is a CandidateStepType enum value CandidateStepTypeAwsSageMakerTrainingJob = "AWS::SageMaker::TrainingJob" // CandidateStepTypeAwsSageMakerTransformJob is a CandidateStepType enum value CandidateStepTypeAwsSageMakerTransformJob = "AWS::SageMaker::TransformJob" // CandidateStepTypeAwsSageMakerProcessingJob is a CandidateStepType enum value CandidateStepTypeAwsSageMakerProcessingJob = "AWS::SageMaker::ProcessingJob" ) // CandidateStepType_Values returns all elements of the CandidateStepType enum func CandidateStepType_Values() []string { return []string{ CandidateStepTypeAwsSageMakerTrainingJob, CandidateStepTypeAwsSageMakerTransformJob, CandidateStepTypeAwsSageMakerProcessingJob, } } const ( // CaptureModeInput is a CaptureMode enum value CaptureModeInput = "Input" // CaptureModeOutput is a CaptureMode enum value CaptureModeOutput = "Output" ) // CaptureMode_Values returns all elements of the CaptureMode enum func CaptureMode_Values() []string { return []string{ CaptureModeInput, CaptureModeOutput, } } const ( // CaptureStatusStarted is a CaptureStatus enum value CaptureStatusStarted = "Started" // CaptureStatusStopped is a CaptureStatus enum value CaptureStatusStopped = "Stopped" ) // CaptureStatus_Values returns all elements of the CaptureStatus enum func CaptureStatus_Values() []string { return []string{ CaptureStatusStarted, CaptureStatusStopped, } } const ( // CodeRepositorySortByName is a CodeRepositorySortBy enum value CodeRepositorySortByName = "Name" // CodeRepositorySortByCreationTime is a CodeRepositorySortBy enum value CodeRepositorySortByCreationTime = "CreationTime" // CodeRepositorySortByLastModifiedTime is a CodeRepositorySortBy enum value CodeRepositorySortByLastModifiedTime = "LastModifiedTime" ) // CodeRepositorySortBy_Values returns all elements of the CodeRepositorySortBy enum func CodeRepositorySortBy_Values() []string { return []string{ CodeRepositorySortByName, CodeRepositorySortByCreationTime, CodeRepositorySortByLastModifiedTime, } } const ( // CodeRepositorySortOrderAscending is a CodeRepositorySortOrder enum value CodeRepositorySortOrderAscending = "Ascending" // CodeRepositorySortOrderDescending is a CodeRepositorySortOrder enum value CodeRepositorySortOrderDescending = "Descending" ) // CodeRepositorySortOrder_Values returns all elements of the CodeRepositorySortOrder enum func CodeRepositorySortOrder_Values() []string { return []string{ CodeRepositorySortOrderAscending, CodeRepositorySortOrderDescending, } } const ( // CompilationJobStatusInprogress is a CompilationJobStatus enum value CompilationJobStatusInprogress = "INPROGRESS" // CompilationJobStatusCompleted is a CompilationJobStatus enum value CompilationJobStatusCompleted = "COMPLETED" // CompilationJobStatusFailed is a CompilationJobStatus enum value CompilationJobStatusFailed = "FAILED" // CompilationJobStatusStarting is a CompilationJobStatus enum value CompilationJobStatusStarting = "STARTING" // CompilationJobStatusStopping is a CompilationJobStatus enum value CompilationJobStatusStopping = "STOPPING" // CompilationJobStatusStopped is a CompilationJobStatus enum value CompilationJobStatusStopped = "STOPPED" ) // CompilationJobStatus_Values returns all elements of the CompilationJobStatus enum func CompilationJobStatus_Values() []string { return []string{ CompilationJobStatusInprogress, CompilationJobStatusCompleted, CompilationJobStatusFailed, CompilationJobStatusStarting, CompilationJobStatusStopping, CompilationJobStatusStopped, } } const ( // CompressionTypeNone is a CompressionType enum value CompressionTypeNone = "None" // CompressionTypeGzip is a CompressionType enum value CompressionTypeGzip = "Gzip" ) // CompressionType_Values returns all elements of the CompressionType enum func CompressionType_Values() []string { return []string{ CompressionTypeNone, CompressionTypeGzip, } } const ( // ContainerModeSingleModel is a ContainerMode enum value ContainerModeSingleModel = "SingleModel" // ContainerModeMultiModel is a ContainerMode enum value ContainerModeMultiModel = "MultiModel" ) // ContainerMode_Values returns all elements of the ContainerMode enum func ContainerMode_Values() []string { return []string{ ContainerModeSingleModel, ContainerModeMultiModel, } } const ( // ContentClassifierFreeOfPersonallyIdentifiableInformation is a ContentClassifier enum value ContentClassifierFreeOfPersonallyIdentifiableInformation = "FreeOfPersonallyIdentifiableInformation" // ContentClassifierFreeOfAdultContent is a ContentClassifier enum value ContentClassifierFreeOfAdultContent = "FreeOfAdultContent" ) // ContentClassifier_Values returns all elements of the ContentClassifier enum func ContentClassifier_Values() []string { return []string{ ContentClassifierFreeOfPersonallyIdentifiableInformation, ContentClassifierFreeOfAdultContent, } } const ( // DetailedAlgorithmStatusNotStarted is a DetailedAlgorithmStatus enum value DetailedAlgorithmStatusNotStarted = "NotStarted" // DetailedAlgorithmStatusInProgress is a DetailedAlgorithmStatus enum value DetailedAlgorithmStatusInProgress = "InProgress" // DetailedAlgorithmStatusCompleted is a DetailedAlgorithmStatus enum value DetailedAlgorithmStatusCompleted = "Completed" // DetailedAlgorithmStatusFailed is a DetailedAlgorithmStatus enum value DetailedAlgorithmStatusFailed = "Failed" ) // DetailedAlgorithmStatus_Values returns all elements of the DetailedAlgorithmStatus enum func DetailedAlgorithmStatus_Values() []string { return []string{ DetailedAlgorithmStatusNotStarted, DetailedAlgorithmStatusInProgress, DetailedAlgorithmStatusCompleted, DetailedAlgorithmStatusFailed, } } const ( // DetailedModelPackageStatusNotStarted is a DetailedModelPackageStatus enum value DetailedModelPackageStatusNotStarted = "NotStarted" // DetailedModelPackageStatusInProgress is a DetailedModelPackageStatus enum value DetailedModelPackageStatusInProgress = "InProgress" // DetailedModelPackageStatusCompleted is a DetailedModelPackageStatus enum value DetailedModelPackageStatusCompleted = "Completed" // DetailedModelPackageStatusFailed is a DetailedModelPackageStatus enum value DetailedModelPackageStatusFailed = "Failed" ) // DetailedModelPackageStatus_Values returns all elements of the DetailedModelPackageStatus enum func DetailedModelPackageStatus_Values() []string { return []string{ DetailedModelPackageStatusNotStarted, DetailedModelPackageStatusInProgress, DetailedModelPackageStatusCompleted, DetailedModelPackageStatusFailed, } } const ( // DirectInternetAccessEnabled is a DirectInternetAccess enum value DirectInternetAccessEnabled = "Enabled" // DirectInternetAccessDisabled is a DirectInternetAccess enum value DirectInternetAccessDisabled = "Disabled" ) // DirectInternetAccess_Values returns all elements of the DirectInternetAccess enum func DirectInternetAccess_Values() []string { return []string{ DirectInternetAccessEnabled, DirectInternetAccessDisabled, } } const ( // DomainStatusDeleting is a DomainStatus enum value DomainStatusDeleting = "Deleting" // DomainStatusFailed is a DomainStatus enum value DomainStatusFailed = "Failed" // DomainStatusInService is a DomainStatus enum value DomainStatusInService = "InService" // DomainStatusPending is a DomainStatus enum value DomainStatusPending = "Pending" ) // DomainStatus_Values returns all elements of the DomainStatus enum func DomainStatus_Values() []string { return []string{ DomainStatusDeleting, DomainStatusFailed, DomainStatusInService, DomainStatusPending, } } const ( // EndpointConfigSortKeyName is a EndpointConfigSortKey enum value EndpointConfigSortKeyName = "Name" // EndpointConfigSortKeyCreationTime is a EndpointConfigSortKey enum value EndpointConfigSortKeyCreationTime = "CreationTime" ) // EndpointConfigSortKey_Values returns all elements of the EndpointConfigSortKey enum func EndpointConfigSortKey_Values() []string { return []string{ EndpointConfigSortKeyName, EndpointConfigSortKeyCreationTime, } } const ( // EndpointSortKeyName is a EndpointSortKey enum value EndpointSortKeyName = "Name" // EndpointSortKeyCreationTime is a EndpointSortKey enum value EndpointSortKeyCreationTime = "CreationTime" // EndpointSortKeyStatus is a EndpointSortKey enum value EndpointSortKeyStatus = "Status" ) // EndpointSortKey_Values returns all elements of the EndpointSortKey enum func EndpointSortKey_Values() []string { return []string{ EndpointSortKeyName, EndpointSortKeyCreationTime, EndpointSortKeyStatus, } } const ( // EndpointStatusOutOfService is a EndpointStatus enum value EndpointStatusOutOfService = "OutOfService" // EndpointStatusCreating is a EndpointStatus enum value EndpointStatusCreating = "Creating" // EndpointStatusUpdating is a EndpointStatus enum value EndpointStatusUpdating = "Updating" // EndpointStatusSystemUpdating is a EndpointStatus enum value EndpointStatusSystemUpdating = "SystemUpdating" // EndpointStatusRollingBack is a EndpointStatus enum value EndpointStatusRollingBack = "RollingBack" // EndpointStatusInService is a EndpointStatus enum value EndpointStatusInService = "InService" // EndpointStatusDeleting is a EndpointStatus enum value EndpointStatusDeleting = "Deleting" // EndpointStatusFailed is a EndpointStatus enum value EndpointStatusFailed = "Failed" ) // EndpointStatus_Values returns all elements of the EndpointStatus enum func EndpointStatus_Values() []string { return []string{ EndpointStatusOutOfService, EndpointStatusCreating, EndpointStatusUpdating, EndpointStatusSystemUpdating, EndpointStatusRollingBack, EndpointStatusInService, EndpointStatusDeleting, EndpointStatusFailed, } } const ( // ExecutionStatusPending is a ExecutionStatus enum value ExecutionStatusPending = "Pending" // ExecutionStatusCompleted is a ExecutionStatus enum value ExecutionStatusCompleted = "Completed" // ExecutionStatusCompletedWithViolations is a ExecutionStatus enum value ExecutionStatusCompletedWithViolations = "CompletedWithViolations" // ExecutionStatusInProgress is a ExecutionStatus enum value ExecutionStatusInProgress = "InProgress" // ExecutionStatusFailed is a ExecutionStatus enum value ExecutionStatusFailed = "Failed" // ExecutionStatusStopping is a ExecutionStatus enum value ExecutionStatusStopping = "Stopping" // ExecutionStatusStopped is a ExecutionStatus enum value ExecutionStatusStopped = "Stopped" ) // ExecutionStatus_Values returns all elements of the ExecutionStatus enum func ExecutionStatus_Values() []string { return []string{ ExecutionStatusPending, ExecutionStatusCompleted, ExecutionStatusCompletedWithViolations, ExecutionStatusInProgress, ExecutionStatusFailed, ExecutionStatusStopping, ExecutionStatusStopped, } } const ( // FileSystemAccessModeRw is a FileSystemAccessMode enum value FileSystemAccessModeRw = "rw" // FileSystemAccessModeRo is a FileSystemAccessMode enum value FileSystemAccessModeRo = "ro" ) // FileSystemAccessMode_Values returns all elements of the FileSystemAccessMode enum func FileSystemAccessMode_Values() []string { return []string{ FileSystemAccessModeRw, FileSystemAccessModeRo, } } const ( // FileSystemTypeEfs is a FileSystemType enum value FileSystemTypeEfs = "EFS" // FileSystemTypeFsxLustre is a FileSystemType enum value FileSystemTypeFsxLustre = "FSxLustre" ) // FileSystemType_Values returns all elements of the FileSystemType enum func FileSystemType_Values() []string { return []string{ FileSystemTypeEfs, FileSystemTypeFsxLustre, } } const ( // FlowDefinitionStatusInitializing is a FlowDefinitionStatus enum value FlowDefinitionStatusInitializing = "Initializing" // FlowDefinitionStatusActive is a FlowDefinitionStatus enum value FlowDefinitionStatusActive = "Active" // FlowDefinitionStatusFailed is a FlowDefinitionStatus enum value FlowDefinitionStatusFailed = "Failed" // FlowDefinitionStatusDeleting is a FlowDefinitionStatus enum value FlowDefinitionStatusDeleting = "Deleting" ) // FlowDefinitionStatus_Values returns all elements of the FlowDefinitionStatus enum func FlowDefinitionStatus_Values() []string { return []string{ FlowDefinitionStatusInitializing, FlowDefinitionStatusActive, FlowDefinitionStatusFailed, FlowDefinitionStatusDeleting, } } const ( // FrameworkTensorflow is a Framework enum value FrameworkTensorflow = "TENSORFLOW" // FrameworkKeras is a Framework enum value FrameworkKeras = "KERAS" // FrameworkMxnet is a Framework enum value FrameworkMxnet = "MXNET" // FrameworkOnnx is a Framework enum value FrameworkOnnx = "ONNX" // FrameworkPytorch is a Framework enum value FrameworkPytorch = "PYTORCH" // FrameworkXgboost is a Framework enum value FrameworkXgboost = "XGBOOST" // FrameworkTflite is a Framework enum value FrameworkTflite = "TFLITE" ) // Framework_Values returns all elements of the Framework enum func Framework_Values() []string { return []string{ FrameworkTensorflow, FrameworkKeras, FrameworkMxnet, FrameworkOnnx, FrameworkPytorch, FrameworkXgboost, FrameworkTflite, } } const ( // HumanTaskUiStatusActive is a HumanTaskUiStatus enum value HumanTaskUiStatusActive = "Active" // HumanTaskUiStatusDeleting is a HumanTaskUiStatus enum value HumanTaskUiStatusDeleting = "Deleting" ) // HumanTaskUiStatus_Values returns all elements of the HumanTaskUiStatus enum func HumanTaskUiStatus_Values() []string { return []string{ HumanTaskUiStatusActive, HumanTaskUiStatusDeleting, } } const ( // HyperParameterScalingTypeAuto is a HyperParameterScalingType enum value HyperParameterScalingTypeAuto = "Auto" // HyperParameterScalingTypeLinear is a HyperParameterScalingType enum value HyperParameterScalingTypeLinear = "Linear" // HyperParameterScalingTypeLogarithmic is a HyperParameterScalingType enum value HyperParameterScalingTypeLogarithmic = "Logarithmic" // HyperParameterScalingTypeReverseLogarithmic is a HyperParameterScalingType enum value HyperParameterScalingTypeReverseLogarithmic = "ReverseLogarithmic" ) // HyperParameterScalingType_Values returns all elements of the HyperParameterScalingType enum func HyperParameterScalingType_Values() []string { return []string{ HyperParameterScalingTypeAuto, HyperParameterScalingTypeLinear, HyperParameterScalingTypeLogarithmic, HyperParameterScalingTypeReverseLogarithmic, } } const ( // HyperParameterTuningJobObjectiveTypeMaximize is a HyperParameterTuningJobObjectiveType enum value HyperParameterTuningJobObjectiveTypeMaximize = "Maximize" // HyperParameterTuningJobObjectiveTypeMinimize is a HyperParameterTuningJobObjectiveType enum value HyperParameterTuningJobObjectiveTypeMinimize = "Minimize" ) // HyperParameterTuningJobObjectiveType_Values returns all elements of the HyperParameterTuningJobObjectiveType enum func HyperParameterTuningJobObjectiveType_Values() []string { return []string{ HyperParameterTuningJobObjectiveTypeMaximize, HyperParameterTuningJobObjectiveTypeMinimize, } } const ( // HyperParameterTuningJobSortByOptionsName is a HyperParameterTuningJobSortByOptions enum value HyperParameterTuningJobSortByOptionsName = "Name" // HyperParameterTuningJobSortByOptionsStatus is a HyperParameterTuningJobSortByOptions enum value HyperParameterTuningJobSortByOptionsStatus = "Status" // HyperParameterTuningJobSortByOptionsCreationTime is a HyperParameterTuningJobSortByOptions enum value HyperParameterTuningJobSortByOptionsCreationTime = "CreationTime" ) // HyperParameterTuningJobSortByOptions_Values returns all elements of the HyperParameterTuningJobSortByOptions enum func HyperParameterTuningJobSortByOptions_Values() []string { return []string{ HyperParameterTuningJobSortByOptionsName, HyperParameterTuningJobSortByOptionsStatus, HyperParameterTuningJobSortByOptionsCreationTime, } } const ( // HyperParameterTuningJobStatusCompleted is a HyperParameterTuningJobStatus enum value HyperParameterTuningJobStatusCompleted = "Completed" // HyperParameterTuningJobStatusInProgress is a HyperParameterTuningJobStatus enum value HyperParameterTuningJobStatusInProgress = "InProgress" // HyperParameterTuningJobStatusFailed is a HyperParameterTuningJobStatus enum value HyperParameterTuningJobStatusFailed = "Failed" // HyperParameterTuningJobStatusStopped is a HyperParameterTuningJobStatus enum value HyperParameterTuningJobStatusStopped = "Stopped" // HyperParameterTuningJobStatusStopping is a HyperParameterTuningJobStatus enum value HyperParameterTuningJobStatusStopping = "Stopping" ) // HyperParameterTuningJobStatus_Values returns all elements of the HyperParameterTuningJobStatus enum func HyperParameterTuningJobStatus_Values() []string { return []string{ HyperParameterTuningJobStatusCompleted, HyperParameterTuningJobStatusInProgress, HyperParameterTuningJobStatusFailed, HyperParameterTuningJobStatusStopped, HyperParameterTuningJobStatusStopping, } } // The strategy hyperparameter tuning uses to find the best combination of hyperparameters // for your model. Currently, the only supported value is Bayesian. const ( // HyperParameterTuningJobStrategyTypeBayesian is a HyperParameterTuningJobStrategyType enum value HyperParameterTuningJobStrategyTypeBayesian = "Bayesian" // HyperParameterTuningJobStrategyTypeRandom is a HyperParameterTuningJobStrategyType enum value HyperParameterTuningJobStrategyTypeRandom = "Random" ) // HyperParameterTuningJobStrategyType_Values returns all elements of the HyperParameterTuningJobStrategyType enum func HyperParameterTuningJobStrategyType_Values() []string { return []string{ HyperParameterTuningJobStrategyTypeBayesian, HyperParameterTuningJobStrategyTypeRandom, } } const ( // HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm is a HyperParameterTuningJobWarmStartType enum value HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm = "IdenticalDataAndAlgorithm" // HyperParameterTuningJobWarmStartTypeTransferLearning is a HyperParameterTuningJobWarmStartType enum value HyperParameterTuningJobWarmStartTypeTransferLearning = "TransferLearning" ) // HyperParameterTuningJobWarmStartType_Values returns all elements of the HyperParameterTuningJobWarmStartType enum func HyperParameterTuningJobWarmStartType_Values() []string { return []string{ HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm, HyperParameterTuningJobWarmStartTypeTransferLearning, } } const ( // InstanceTypeMlT2Medium is a InstanceType enum value InstanceTypeMlT2Medium = "ml.t2.medium" // InstanceTypeMlT2Large is a InstanceType enum value InstanceTypeMlT2Large = "ml.t2.large" // InstanceTypeMlT2Xlarge is a InstanceType enum value InstanceTypeMlT2Xlarge = "ml.t2.xlarge" // InstanceTypeMlT22xlarge is a InstanceType enum value InstanceTypeMlT22xlarge = "ml.t2.2xlarge" // InstanceTypeMlT3Medium is a InstanceType enum value InstanceTypeMlT3Medium = "ml.t3.medium" // InstanceTypeMlT3Large is a InstanceType enum value InstanceTypeMlT3Large = "ml.t3.large" // InstanceTypeMlT3Xlarge is a InstanceType enum value InstanceTypeMlT3Xlarge = "ml.t3.xlarge" // InstanceTypeMlT32xlarge is a InstanceType enum value InstanceTypeMlT32xlarge = "ml.t3.2xlarge" // InstanceTypeMlM4Xlarge is a InstanceType enum value InstanceTypeMlM4Xlarge = "ml.m4.xlarge" // InstanceTypeMlM42xlarge is a InstanceType enum value InstanceTypeMlM42xlarge = "ml.m4.2xlarge" // InstanceTypeMlM44xlarge is a InstanceType enum value InstanceTypeMlM44xlarge = "ml.m4.4xlarge" // InstanceTypeMlM410xlarge is a InstanceType enum value InstanceTypeMlM410xlarge = "ml.m4.10xlarge" // InstanceTypeMlM416xlarge is a InstanceType enum value InstanceTypeMlM416xlarge = "ml.m4.16xlarge" // InstanceTypeMlM5Xlarge is a InstanceType enum value InstanceTypeMlM5Xlarge = "ml.m5.xlarge" // InstanceTypeMlM52xlarge is a InstanceType enum value InstanceTypeMlM52xlarge = "ml.m5.2xlarge" // InstanceTypeMlM54xlarge is a InstanceType enum value InstanceTypeMlM54xlarge = "ml.m5.4xlarge" // InstanceTypeMlM512xlarge is a InstanceType enum value InstanceTypeMlM512xlarge = "ml.m5.12xlarge" // InstanceTypeMlM524xlarge is a InstanceType enum value InstanceTypeMlM524xlarge = "ml.m5.24xlarge" // InstanceTypeMlC4Xlarge is a InstanceType enum value InstanceTypeMlC4Xlarge = "ml.c4.xlarge" // InstanceTypeMlC42xlarge is a InstanceType enum value InstanceTypeMlC42xlarge = "ml.c4.2xlarge" // InstanceTypeMlC44xlarge is a InstanceType enum value InstanceTypeMlC44xlarge = "ml.c4.4xlarge" // InstanceTypeMlC48xlarge is a InstanceType enum value InstanceTypeMlC48xlarge = "ml.c4.8xlarge" // InstanceTypeMlC5Xlarge is a InstanceType enum value InstanceTypeMlC5Xlarge = "ml.c5.xlarge" // InstanceTypeMlC52xlarge is a InstanceType enum value InstanceTypeMlC52xlarge = "ml.c5.2xlarge" // InstanceTypeMlC54xlarge is a InstanceType enum value InstanceTypeMlC54xlarge = "ml.c5.4xlarge" // InstanceTypeMlC59xlarge is a InstanceType enum value InstanceTypeMlC59xlarge = "ml.c5.9xlarge" // InstanceTypeMlC518xlarge is a InstanceType enum value InstanceTypeMlC518xlarge = "ml.c5.18xlarge" // InstanceTypeMlC5dXlarge is a InstanceType enum value InstanceTypeMlC5dXlarge = "ml.c5d.xlarge" // InstanceTypeMlC5d2xlarge is a InstanceType enum value InstanceTypeMlC5d2xlarge = "ml.c5d.2xlarge" // InstanceTypeMlC5d4xlarge is a InstanceType enum value InstanceTypeMlC5d4xlarge = "ml.c5d.4xlarge" // InstanceTypeMlC5d9xlarge is a InstanceType enum value InstanceTypeMlC5d9xlarge = "ml.c5d.9xlarge" // InstanceTypeMlC5d18xlarge is a InstanceType enum value InstanceTypeMlC5d18xlarge = "ml.c5d.18xlarge" // InstanceTypeMlP2Xlarge is a InstanceType enum value InstanceTypeMlP2Xlarge = "ml.p2.xlarge" // InstanceTypeMlP28xlarge is a InstanceType enum value InstanceTypeMlP28xlarge = "ml.p2.8xlarge" // InstanceTypeMlP216xlarge is a InstanceType enum value InstanceTypeMlP216xlarge = "ml.p2.16xlarge" // InstanceTypeMlP32xlarge is a InstanceType enum value InstanceTypeMlP32xlarge = "ml.p3.2xlarge" // InstanceTypeMlP38xlarge is a InstanceType enum value InstanceTypeMlP38xlarge = "ml.p3.8xlarge" // InstanceTypeMlP316xlarge is a InstanceType enum value InstanceTypeMlP316xlarge = "ml.p3.16xlarge" ) // InstanceType_Values returns all elements of the InstanceType enum func InstanceType_Values() []string { return []string{ InstanceTypeMlT2Medium, InstanceTypeMlT2Large, InstanceTypeMlT2Xlarge, InstanceTypeMlT22xlarge, InstanceTypeMlT3Medium, InstanceTypeMlT3Large, InstanceTypeMlT3Xlarge, InstanceTypeMlT32xlarge, InstanceTypeMlM4Xlarge, InstanceTypeMlM42xlarge, InstanceTypeMlM44xlarge, InstanceTypeMlM410xlarge, InstanceTypeMlM416xlarge, InstanceTypeMlM5Xlarge, InstanceTypeMlM52xlarge, InstanceTypeMlM54xlarge, InstanceTypeMlM512xlarge, InstanceTypeMlM524xlarge, InstanceTypeMlC4Xlarge, InstanceTypeMlC42xlarge, InstanceTypeMlC44xlarge, InstanceTypeMlC48xlarge, InstanceTypeMlC5Xlarge, InstanceTypeMlC52xlarge, InstanceTypeMlC54xlarge, InstanceTypeMlC59xlarge, InstanceTypeMlC518xlarge, InstanceTypeMlC5dXlarge, InstanceTypeMlC5d2xlarge, InstanceTypeMlC5d4xlarge, InstanceTypeMlC5d9xlarge, InstanceTypeMlC5d18xlarge, InstanceTypeMlP2Xlarge, InstanceTypeMlP28xlarge, InstanceTypeMlP216xlarge, InstanceTypeMlP32xlarge, InstanceTypeMlP38xlarge, InstanceTypeMlP316xlarge, } } const ( // JoinSourceInput is a JoinSource enum value JoinSourceInput = "Input" // JoinSourceNone is a JoinSource enum value JoinSourceNone = "None" ) // JoinSource_Values returns all elements of the JoinSource enum func JoinSource_Values() []string { return []string{ JoinSourceInput, JoinSourceNone, } } const ( // LabelingJobStatusInitializing is a LabelingJobStatus enum value LabelingJobStatusInitializing = "Initializing" // LabelingJobStatusInProgress is a LabelingJobStatus enum value LabelingJobStatusInProgress = "InProgress" // LabelingJobStatusCompleted is a LabelingJobStatus enum value LabelingJobStatusCompleted = "Completed" // LabelingJobStatusFailed is a LabelingJobStatus enum value LabelingJobStatusFailed = "Failed" // LabelingJobStatusStopping is a LabelingJobStatus enum value LabelingJobStatusStopping = "Stopping" // LabelingJobStatusStopped is a LabelingJobStatus enum value LabelingJobStatusStopped = "Stopped" ) // LabelingJobStatus_Values returns all elements of the LabelingJobStatus enum func LabelingJobStatus_Values() []string { return []string{ LabelingJobStatusInitializing, LabelingJobStatusInProgress, LabelingJobStatusCompleted, LabelingJobStatusFailed, LabelingJobStatusStopping, LabelingJobStatusStopped, } } const ( // ListCompilationJobsSortByName is a ListCompilationJobsSortBy enum value ListCompilationJobsSortByName = "Name" // ListCompilationJobsSortByCreationTime is a ListCompilationJobsSortBy enum value ListCompilationJobsSortByCreationTime = "CreationTime" // ListCompilationJobsSortByStatus is a ListCompilationJobsSortBy enum value ListCompilationJobsSortByStatus = "Status" ) // ListCompilationJobsSortBy_Values returns all elements of the ListCompilationJobsSortBy enum func ListCompilationJobsSortBy_Values() []string { return []string{ ListCompilationJobsSortByName, ListCompilationJobsSortByCreationTime, ListCompilationJobsSortByStatus, } } const ( // ListLabelingJobsForWorkteamSortByOptionsCreationTime is a ListLabelingJobsForWorkteamSortByOptions enum value ListLabelingJobsForWorkteamSortByOptionsCreationTime = "CreationTime" ) // ListLabelingJobsForWorkteamSortByOptions_Values returns all elements of the ListLabelingJobsForWorkteamSortByOptions enum func ListLabelingJobsForWorkteamSortByOptions_Values() []string { return []string{ ListLabelingJobsForWorkteamSortByOptionsCreationTime, } } const ( // ListWorkforcesSortByOptionsName is a ListWorkforcesSortByOptions enum value ListWorkforcesSortByOptionsName = "Name" // ListWorkforcesSortByOptionsCreateDate is a ListWorkforcesSortByOptions enum value ListWorkforcesSortByOptionsCreateDate = "CreateDate" ) // ListWorkforcesSortByOptions_Values returns all elements of the ListWorkforcesSortByOptions enum func ListWorkforcesSortByOptions_Values() []string { return []string{ ListWorkforcesSortByOptionsName, ListWorkforcesSortByOptionsCreateDate, } } const ( // ListWorkteamsSortByOptionsName is a ListWorkteamsSortByOptions enum value ListWorkteamsSortByOptionsName = "Name" // ListWorkteamsSortByOptionsCreateDate is a ListWorkteamsSortByOptions enum value ListWorkteamsSortByOptionsCreateDate = "CreateDate" ) // ListWorkteamsSortByOptions_Values returns all elements of the ListWorkteamsSortByOptions enum func ListWorkteamsSortByOptions_Values() []string { return []string{ ListWorkteamsSortByOptionsName, ListWorkteamsSortByOptionsCreateDate, } } const ( // ModelPackageSortByName is a ModelPackageSortBy enum value ModelPackageSortByName = "Name" // ModelPackageSortByCreationTime is a ModelPackageSortBy enum value ModelPackageSortByCreationTime = "CreationTime" ) // ModelPackageSortBy_Values returns all elements of the ModelPackageSortBy enum func ModelPackageSortBy_Values() []string { return []string{ ModelPackageSortByName, ModelPackageSortByCreationTime, } } const ( // ModelPackageStatusPending is a ModelPackageStatus enum value ModelPackageStatusPending = "Pending" // ModelPackageStatusInProgress is a ModelPackageStatus enum value ModelPackageStatusInProgress = "InProgress" // ModelPackageStatusCompleted is a ModelPackageStatus enum value ModelPackageStatusCompleted = "Completed" // ModelPackageStatusFailed is a ModelPackageStatus enum value ModelPackageStatusFailed = "Failed" // ModelPackageStatusDeleting is a ModelPackageStatus enum value ModelPackageStatusDeleting = "Deleting" ) // ModelPackageStatus_Values returns all elements of the ModelPackageStatus enum func ModelPackageStatus_Values() []string { return []string{ ModelPackageStatusPending, ModelPackageStatusInProgress, ModelPackageStatusCompleted, ModelPackageStatusFailed, ModelPackageStatusDeleting, } } const ( // ModelSortKeyName is a ModelSortKey enum value ModelSortKeyName = "Name" // ModelSortKeyCreationTime is a ModelSortKey enum value ModelSortKeyCreationTime = "CreationTime" ) // ModelSortKey_Values returns all elements of the ModelSortKey enum func ModelSortKey_Values() []string { return []string{ ModelSortKeyName, ModelSortKeyCreationTime, } } const ( // MonitoringExecutionSortKeyCreationTime is a MonitoringExecutionSortKey enum value MonitoringExecutionSortKeyCreationTime = "CreationTime" // MonitoringExecutionSortKeyScheduledTime is a MonitoringExecutionSortKey enum value MonitoringExecutionSortKeyScheduledTime = "ScheduledTime" // MonitoringExecutionSortKeyStatus is a MonitoringExecutionSortKey enum value MonitoringExecutionSortKeyStatus = "Status" ) // MonitoringExecutionSortKey_Values returns all elements of the MonitoringExecutionSortKey enum func MonitoringExecutionSortKey_Values() []string { return []string{ MonitoringExecutionSortKeyCreationTime, MonitoringExecutionSortKeyScheduledTime, MonitoringExecutionSortKeyStatus, } } const ( // MonitoringScheduleSortKeyName is a MonitoringScheduleSortKey enum value MonitoringScheduleSortKeyName = "Name" // MonitoringScheduleSortKeyCreationTime is a MonitoringScheduleSortKey enum value MonitoringScheduleSortKeyCreationTime = "CreationTime" // MonitoringScheduleSortKeyStatus is a MonitoringScheduleSortKey enum value MonitoringScheduleSortKeyStatus = "Status" ) // MonitoringScheduleSortKey_Values returns all elements of the MonitoringScheduleSortKey enum func MonitoringScheduleSortKey_Values() []string { return []string{ MonitoringScheduleSortKeyName, MonitoringScheduleSortKeyCreationTime, MonitoringScheduleSortKeyStatus, } } const ( // NotebookInstanceAcceleratorTypeMlEia1Medium is a NotebookInstanceAcceleratorType enum value NotebookInstanceAcceleratorTypeMlEia1Medium = "ml.eia1.medium" // NotebookInstanceAcceleratorTypeMlEia1Large is a NotebookInstanceAcceleratorType enum value NotebookInstanceAcceleratorTypeMlEia1Large = "ml.eia1.large" // NotebookInstanceAcceleratorTypeMlEia1Xlarge is a NotebookInstanceAcceleratorType enum value NotebookInstanceAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge" // NotebookInstanceAcceleratorTypeMlEia2Medium is a NotebookInstanceAcceleratorType enum value NotebookInstanceAcceleratorTypeMlEia2Medium = "ml.eia2.medium" // NotebookInstanceAcceleratorTypeMlEia2Large is a NotebookInstanceAcceleratorType enum value NotebookInstanceAcceleratorTypeMlEia2Large = "ml.eia2.large" // NotebookInstanceAcceleratorTypeMlEia2Xlarge is a NotebookInstanceAcceleratorType enum value NotebookInstanceAcceleratorTypeMlEia2Xlarge = "ml.eia2.xlarge" ) // NotebookInstanceAcceleratorType_Values returns all elements of the NotebookInstanceAcceleratorType enum func NotebookInstanceAcceleratorType_Values() []string { return []string{ NotebookInstanceAcceleratorTypeMlEia1Medium, NotebookInstanceAcceleratorTypeMlEia1Large, NotebookInstanceAcceleratorTypeMlEia1Xlarge, NotebookInstanceAcceleratorTypeMlEia2Medium, NotebookInstanceAcceleratorTypeMlEia2Large, NotebookInstanceAcceleratorTypeMlEia2Xlarge, } } const ( // NotebookInstanceLifecycleConfigSortKeyName is a NotebookInstanceLifecycleConfigSortKey enum value NotebookInstanceLifecycleConfigSortKeyName = "Name" // NotebookInstanceLifecycleConfigSortKeyCreationTime is a NotebookInstanceLifecycleConfigSortKey enum value NotebookInstanceLifecycleConfigSortKeyCreationTime = "CreationTime" // NotebookInstanceLifecycleConfigSortKeyLastModifiedTime is a NotebookInstanceLifecycleConfigSortKey enum value NotebookInstanceLifecycleConfigSortKeyLastModifiedTime = "LastModifiedTime" ) // NotebookInstanceLifecycleConfigSortKey_Values returns all elements of the NotebookInstanceLifecycleConfigSortKey enum func NotebookInstanceLifecycleConfigSortKey_Values() []string { return []string{ NotebookInstanceLifecycleConfigSortKeyName, NotebookInstanceLifecycleConfigSortKeyCreationTime, NotebookInstanceLifecycleConfigSortKeyLastModifiedTime, } } const ( // NotebookInstanceLifecycleConfigSortOrderAscending is a NotebookInstanceLifecycleConfigSortOrder enum value NotebookInstanceLifecycleConfigSortOrderAscending = "Ascending" // NotebookInstanceLifecycleConfigSortOrderDescending is a NotebookInstanceLifecycleConfigSortOrder enum value NotebookInstanceLifecycleConfigSortOrderDescending = "Descending" ) // NotebookInstanceLifecycleConfigSortOrder_Values returns all elements of the NotebookInstanceLifecycleConfigSortOrder enum func NotebookInstanceLifecycleConfigSortOrder_Values() []string { return []string{ NotebookInstanceLifecycleConfigSortOrderAscending, NotebookInstanceLifecycleConfigSortOrderDescending, } } const ( // NotebookInstanceSortKeyName is a NotebookInstanceSortKey enum value NotebookInstanceSortKeyName = "Name" // NotebookInstanceSortKeyCreationTime is a NotebookInstanceSortKey enum value NotebookInstanceSortKeyCreationTime = "CreationTime" // NotebookInstanceSortKeyStatus is a NotebookInstanceSortKey enum value NotebookInstanceSortKeyStatus = "Status" ) // NotebookInstanceSortKey_Values returns all elements of the NotebookInstanceSortKey enum func NotebookInstanceSortKey_Values() []string { return []string{ NotebookInstanceSortKeyName, NotebookInstanceSortKeyCreationTime, NotebookInstanceSortKeyStatus, } } const ( // NotebookInstanceSortOrderAscending is a NotebookInstanceSortOrder enum value NotebookInstanceSortOrderAscending = "Ascending" // NotebookInstanceSortOrderDescending is a NotebookInstanceSortOrder enum value NotebookInstanceSortOrderDescending = "Descending" ) // NotebookInstanceSortOrder_Values returns all elements of the NotebookInstanceSortOrder enum func NotebookInstanceSortOrder_Values() []string { return []string{ NotebookInstanceSortOrderAscending, NotebookInstanceSortOrderDescending, } } const ( // NotebookInstanceStatusPending is a NotebookInstanceStatus enum value NotebookInstanceStatusPending = "Pending" // NotebookInstanceStatusInService is a NotebookInstanceStatus enum value NotebookInstanceStatusInService = "InService" // NotebookInstanceStatusStopping is a NotebookInstanceStatus enum value NotebookInstanceStatusStopping = "Stopping" // NotebookInstanceStatusStopped is a NotebookInstanceStatus enum value NotebookInstanceStatusStopped = "Stopped" // NotebookInstanceStatusFailed is a NotebookInstanceStatus enum value NotebookInstanceStatusFailed = "Failed" // NotebookInstanceStatusDeleting is a NotebookInstanceStatus enum value NotebookInstanceStatusDeleting = "Deleting" // NotebookInstanceStatusUpdating is a NotebookInstanceStatus enum value NotebookInstanceStatusUpdating = "Updating" ) // NotebookInstanceStatus_Values returns all elements of the NotebookInstanceStatus enum func NotebookInstanceStatus_Values() []string { return []string{ NotebookInstanceStatusPending, NotebookInstanceStatusInService, NotebookInstanceStatusStopping, NotebookInstanceStatusStopped, NotebookInstanceStatusFailed, NotebookInstanceStatusDeleting, NotebookInstanceStatusUpdating, } } const ( // NotebookOutputOptionAllowed is a NotebookOutputOption enum value NotebookOutputOptionAllowed = "Allowed" // NotebookOutputOptionDisabled is a NotebookOutputOption enum value NotebookOutputOptionDisabled = "Disabled" ) // NotebookOutputOption_Values returns all elements of the NotebookOutputOption enum func NotebookOutputOption_Values() []string { return []string{ NotebookOutputOptionAllowed, NotebookOutputOptionDisabled, } } const ( // ObjectiveStatusSucceeded is a ObjectiveStatus enum value ObjectiveStatusSucceeded = "Succeeded" // ObjectiveStatusPending is a ObjectiveStatus enum value ObjectiveStatusPending = "Pending" // ObjectiveStatusFailed is a ObjectiveStatus enum value ObjectiveStatusFailed = "Failed" ) // ObjectiveStatus_Values returns all elements of the ObjectiveStatus enum func ObjectiveStatus_Values() []string { return []string{ ObjectiveStatusSucceeded, ObjectiveStatusPending, ObjectiveStatusFailed, } } const ( // OperatorEquals is a Operator enum value OperatorEquals = "Equals" // OperatorNotEquals is a Operator enum value OperatorNotEquals = "NotEquals" // OperatorGreaterThan is a Operator enum value OperatorGreaterThan = "GreaterThan" // OperatorGreaterThanOrEqualTo is a Operator enum value OperatorGreaterThanOrEqualTo = "GreaterThanOrEqualTo" // OperatorLessThan is a Operator enum value OperatorLessThan = "LessThan" // OperatorLessThanOrEqualTo is a Operator enum value OperatorLessThanOrEqualTo = "LessThanOrEqualTo" // OperatorContains is a Operator enum value OperatorContains = "Contains" // OperatorExists is a Operator enum value OperatorExists = "Exists" // OperatorNotExists is a Operator enum value OperatorNotExists = "NotExists" // OperatorIn is a Operator enum value OperatorIn = "In" ) // Operator_Values returns all elements of the Operator enum func Operator_Values() []string { return []string{ OperatorEquals, OperatorNotEquals, OperatorGreaterThan, OperatorGreaterThanOrEqualTo, OperatorLessThan, OperatorLessThanOrEqualTo, OperatorContains, OperatorExists, OperatorNotExists, OperatorIn, } } const ( // OrderKeyAscending is a OrderKey enum value OrderKeyAscending = "Ascending" // OrderKeyDescending is a OrderKey enum value OrderKeyDescending = "Descending" ) // OrderKey_Values returns all elements of the OrderKey enum func OrderKey_Values() []string { return []string{ OrderKeyAscending, OrderKeyDescending, } } const ( // ParameterTypeInteger is a ParameterType enum value ParameterTypeInteger = "Integer" // ParameterTypeContinuous is a ParameterType enum value ParameterTypeContinuous = "Continuous" // ParameterTypeCategorical is a ParameterType enum value ParameterTypeCategorical = "Categorical" // ParameterTypeFreeText is a ParameterType enum value ParameterTypeFreeText = "FreeText" ) // ParameterType_Values returns all elements of the ParameterType enum func ParameterType_Values() []string { return []string{ ParameterTypeInteger, ParameterTypeContinuous, ParameterTypeCategorical, ParameterTypeFreeText, } } const ( // ProblemTypeBinaryClassification is a ProblemType enum value ProblemTypeBinaryClassification = "BinaryClassification" // ProblemTypeMulticlassClassification is a ProblemType enum value ProblemTypeMulticlassClassification = "MulticlassClassification" // ProblemTypeRegression is a ProblemType enum value ProblemTypeRegression = "Regression" ) // ProblemType_Values returns all elements of the ProblemType enum func ProblemType_Values() []string { return []string{ ProblemTypeBinaryClassification, ProblemTypeMulticlassClassification, ProblemTypeRegression, } } const ( // ProcessingInstanceTypeMlT3Medium is a ProcessingInstanceType enum value ProcessingInstanceTypeMlT3Medium = "ml.t3.medium" // ProcessingInstanceTypeMlT3Large is a ProcessingInstanceType enum value ProcessingInstanceTypeMlT3Large = "ml.t3.large" // ProcessingInstanceTypeMlT3Xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlT3Xlarge = "ml.t3.xlarge" // ProcessingInstanceTypeMlT32xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlT32xlarge = "ml.t3.2xlarge" // ProcessingInstanceTypeMlM4Xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM4Xlarge = "ml.m4.xlarge" // ProcessingInstanceTypeMlM42xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM42xlarge = "ml.m4.2xlarge" // ProcessingInstanceTypeMlM44xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM44xlarge = "ml.m4.4xlarge" // ProcessingInstanceTypeMlM410xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM410xlarge = "ml.m4.10xlarge" // ProcessingInstanceTypeMlM416xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM416xlarge = "ml.m4.16xlarge" // ProcessingInstanceTypeMlC4Xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC4Xlarge = "ml.c4.xlarge" // ProcessingInstanceTypeMlC42xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC42xlarge = "ml.c4.2xlarge" // ProcessingInstanceTypeMlC44xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC44xlarge = "ml.c4.4xlarge" // ProcessingInstanceTypeMlC48xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC48xlarge = "ml.c4.8xlarge" // ProcessingInstanceTypeMlP2Xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlP2Xlarge = "ml.p2.xlarge" // ProcessingInstanceTypeMlP28xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlP28xlarge = "ml.p2.8xlarge" // ProcessingInstanceTypeMlP216xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlP216xlarge = "ml.p2.16xlarge" // ProcessingInstanceTypeMlP32xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlP32xlarge = "ml.p3.2xlarge" // ProcessingInstanceTypeMlP38xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlP38xlarge = "ml.p3.8xlarge" // ProcessingInstanceTypeMlP316xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlP316xlarge = "ml.p3.16xlarge" // ProcessingInstanceTypeMlC5Xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC5Xlarge = "ml.c5.xlarge" // ProcessingInstanceTypeMlC52xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC52xlarge = "ml.c5.2xlarge" // ProcessingInstanceTypeMlC54xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC54xlarge = "ml.c5.4xlarge" // ProcessingInstanceTypeMlC59xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC59xlarge = "ml.c5.9xlarge" // ProcessingInstanceTypeMlC518xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlC518xlarge = "ml.c5.18xlarge" // ProcessingInstanceTypeMlM5Large is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM5Large = "ml.m5.large" // ProcessingInstanceTypeMlM5Xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM5Xlarge = "ml.m5.xlarge" // ProcessingInstanceTypeMlM52xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM52xlarge = "ml.m5.2xlarge" // ProcessingInstanceTypeMlM54xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM54xlarge = "ml.m5.4xlarge" // ProcessingInstanceTypeMlM512xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM512xlarge = "ml.m5.12xlarge" // ProcessingInstanceTypeMlM524xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlM524xlarge = "ml.m5.24xlarge" // ProcessingInstanceTypeMlR5Large is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR5Large = "ml.r5.large" // ProcessingInstanceTypeMlR5Xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR5Xlarge = "ml.r5.xlarge" // ProcessingInstanceTypeMlR52xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR52xlarge = "ml.r5.2xlarge" // ProcessingInstanceTypeMlR54xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR54xlarge = "ml.r5.4xlarge" // ProcessingInstanceTypeMlR58xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR58xlarge = "ml.r5.8xlarge" // ProcessingInstanceTypeMlR512xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR512xlarge = "ml.r5.12xlarge" // ProcessingInstanceTypeMlR516xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR516xlarge = "ml.r5.16xlarge" // ProcessingInstanceTypeMlR524xlarge is a ProcessingInstanceType enum value ProcessingInstanceTypeMlR524xlarge = "ml.r5.24xlarge" ) // ProcessingInstanceType_Values returns all elements of the ProcessingInstanceType enum func ProcessingInstanceType_Values() []string { return []string{ ProcessingInstanceTypeMlT3Medium, ProcessingInstanceTypeMlT3Large, ProcessingInstanceTypeMlT3Xlarge, ProcessingInstanceTypeMlT32xlarge, ProcessingInstanceTypeMlM4Xlarge, ProcessingInstanceTypeMlM42xlarge, ProcessingInstanceTypeMlM44xlarge, ProcessingInstanceTypeMlM410xlarge, ProcessingInstanceTypeMlM416xlarge, ProcessingInstanceTypeMlC4Xlarge, ProcessingInstanceTypeMlC42xlarge, ProcessingInstanceTypeMlC44xlarge, ProcessingInstanceTypeMlC48xlarge, ProcessingInstanceTypeMlP2Xlarge, ProcessingInstanceTypeMlP28xlarge, ProcessingInstanceTypeMlP216xlarge, ProcessingInstanceTypeMlP32xlarge, ProcessingInstanceTypeMlP38xlarge, ProcessingInstanceTypeMlP316xlarge, ProcessingInstanceTypeMlC5Xlarge, ProcessingInstanceTypeMlC52xlarge, ProcessingInstanceTypeMlC54xlarge, ProcessingInstanceTypeMlC59xlarge, ProcessingInstanceTypeMlC518xlarge, ProcessingInstanceTypeMlM5Large, ProcessingInstanceTypeMlM5Xlarge, ProcessingInstanceTypeMlM52xlarge, ProcessingInstanceTypeMlM54xlarge, ProcessingInstanceTypeMlM512xlarge, ProcessingInstanceTypeMlM524xlarge, ProcessingInstanceTypeMlR5Large, ProcessingInstanceTypeMlR5Xlarge, ProcessingInstanceTypeMlR52xlarge, ProcessingInstanceTypeMlR54xlarge, ProcessingInstanceTypeMlR58xlarge, ProcessingInstanceTypeMlR512xlarge, ProcessingInstanceTypeMlR516xlarge, ProcessingInstanceTypeMlR524xlarge, } } const ( // ProcessingJobStatusInProgress is a ProcessingJobStatus enum value ProcessingJobStatusInProgress = "InProgress" // ProcessingJobStatusCompleted is a ProcessingJobStatus enum value ProcessingJobStatusCompleted = "Completed" // ProcessingJobStatusFailed is a ProcessingJobStatus enum value ProcessingJobStatusFailed = "Failed" // ProcessingJobStatusStopping is a ProcessingJobStatus enum value ProcessingJobStatusStopping = "Stopping" // ProcessingJobStatusStopped is a ProcessingJobStatus enum value ProcessingJobStatusStopped = "Stopped" ) // ProcessingJobStatus_Values returns all elements of the ProcessingJobStatus enum func ProcessingJobStatus_Values() []string { return []string{ ProcessingJobStatusInProgress, ProcessingJobStatusCompleted, ProcessingJobStatusFailed, ProcessingJobStatusStopping, ProcessingJobStatusStopped, } } const ( // ProcessingS3CompressionTypeNone is a ProcessingS3CompressionType enum value ProcessingS3CompressionTypeNone = "None" // ProcessingS3CompressionTypeGzip is a ProcessingS3CompressionType enum value ProcessingS3CompressionTypeGzip = "Gzip" ) // ProcessingS3CompressionType_Values returns all elements of the ProcessingS3CompressionType enum func ProcessingS3CompressionType_Values() []string { return []string{ ProcessingS3CompressionTypeNone, ProcessingS3CompressionTypeGzip, } } const ( // ProcessingS3DataDistributionTypeFullyReplicated is a ProcessingS3DataDistributionType enum value ProcessingS3DataDistributionTypeFullyReplicated = "FullyReplicated" // ProcessingS3DataDistributionTypeShardedByS3key is a ProcessingS3DataDistributionType enum value ProcessingS3DataDistributionTypeShardedByS3key = "ShardedByS3Key" ) // ProcessingS3DataDistributionType_Values returns all elements of the ProcessingS3DataDistributionType enum func ProcessingS3DataDistributionType_Values() []string { return []string{ ProcessingS3DataDistributionTypeFullyReplicated, ProcessingS3DataDistributionTypeShardedByS3key, } } const ( // ProcessingS3DataTypeManifestFile is a ProcessingS3DataType enum value ProcessingS3DataTypeManifestFile = "ManifestFile" // ProcessingS3DataTypeS3prefix is a ProcessingS3DataType enum value ProcessingS3DataTypeS3prefix = "S3Prefix" ) // ProcessingS3DataType_Values returns all elements of the ProcessingS3DataType enum func ProcessingS3DataType_Values() []string { return []string{ ProcessingS3DataTypeManifestFile, ProcessingS3DataTypeS3prefix, } } const ( // ProcessingS3InputModePipe is a ProcessingS3InputMode enum value ProcessingS3InputModePipe = "Pipe" // ProcessingS3InputModeFile is a ProcessingS3InputMode enum value ProcessingS3InputModeFile = "File" ) // ProcessingS3InputMode_Values returns all elements of the ProcessingS3InputMode enum func ProcessingS3InputMode_Values() []string { return []string{ ProcessingS3InputModePipe, ProcessingS3InputModeFile, } } const ( // ProcessingS3UploadModeContinuous is a ProcessingS3UploadMode enum value ProcessingS3UploadModeContinuous = "Continuous" // ProcessingS3UploadModeEndOfJob is a ProcessingS3UploadMode enum value ProcessingS3UploadModeEndOfJob = "EndOfJob" ) // ProcessingS3UploadMode_Values returns all elements of the ProcessingS3UploadMode enum func ProcessingS3UploadMode_Values() []string { return []string{ ProcessingS3UploadModeContinuous, ProcessingS3UploadModeEndOfJob, } } const ( // ProductionVariantAcceleratorTypeMlEia1Medium is a ProductionVariantAcceleratorType enum value ProductionVariantAcceleratorTypeMlEia1Medium = "ml.eia1.medium" // ProductionVariantAcceleratorTypeMlEia1Large is a ProductionVariantAcceleratorType enum value ProductionVariantAcceleratorTypeMlEia1Large = "ml.eia1.large" // ProductionVariantAcceleratorTypeMlEia1Xlarge is a ProductionVariantAcceleratorType enum value ProductionVariantAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge" // ProductionVariantAcceleratorTypeMlEia2Medium is a ProductionVariantAcceleratorType enum value ProductionVariantAcceleratorTypeMlEia2Medium = "ml.eia2.medium" // ProductionVariantAcceleratorTypeMlEia2Large is a ProductionVariantAcceleratorType enum value ProductionVariantAcceleratorTypeMlEia2Large = "ml.eia2.large" // ProductionVariantAcceleratorTypeMlEia2Xlarge is a ProductionVariantAcceleratorType enum value ProductionVariantAcceleratorTypeMlEia2Xlarge = "ml.eia2.xlarge" ) // ProductionVariantAcceleratorType_Values returns all elements of the ProductionVariantAcceleratorType enum func ProductionVariantAcceleratorType_Values() []string { return []string{ ProductionVariantAcceleratorTypeMlEia1Medium, ProductionVariantAcceleratorTypeMlEia1Large, ProductionVariantAcceleratorTypeMlEia1Xlarge, ProductionVariantAcceleratorTypeMlEia2Medium, ProductionVariantAcceleratorTypeMlEia2Large, ProductionVariantAcceleratorTypeMlEia2Xlarge, } } const ( // ProductionVariantInstanceTypeMlT2Medium is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlT2Medium = "ml.t2.medium" // ProductionVariantInstanceTypeMlT2Large is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlT2Large = "ml.t2.large" // ProductionVariantInstanceTypeMlT2Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlT2Xlarge = "ml.t2.xlarge" // ProductionVariantInstanceTypeMlT22xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlT22xlarge = "ml.t2.2xlarge" // ProductionVariantInstanceTypeMlM4Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM4Xlarge = "ml.m4.xlarge" // ProductionVariantInstanceTypeMlM42xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM42xlarge = "ml.m4.2xlarge" // ProductionVariantInstanceTypeMlM44xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM44xlarge = "ml.m4.4xlarge" // ProductionVariantInstanceTypeMlM410xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM410xlarge = "ml.m4.10xlarge" // ProductionVariantInstanceTypeMlM416xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM416xlarge = "ml.m4.16xlarge" // ProductionVariantInstanceTypeMlM5Large is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5Large = "ml.m5.large" // ProductionVariantInstanceTypeMlM5Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5Xlarge = "ml.m5.xlarge" // ProductionVariantInstanceTypeMlM52xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM52xlarge = "ml.m5.2xlarge" // ProductionVariantInstanceTypeMlM54xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM54xlarge = "ml.m5.4xlarge" // ProductionVariantInstanceTypeMlM512xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM512xlarge = "ml.m5.12xlarge" // ProductionVariantInstanceTypeMlM524xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM524xlarge = "ml.m5.24xlarge" // ProductionVariantInstanceTypeMlM5dLarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5dLarge = "ml.m5d.large" // ProductionVariantInstanceTypeMlM5dXlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5dXlarge = "ml.m5d.xlarge" // ProductionVariantInstanceTypeMlM5d2xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5d2xlarge = "ml.m5d.2xlarge" // ProductionVariantInstanceTypeMlM5d4xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5d4xlarge = "ml.m5d.4xlarge" // ProductionVariantInstanceTypeMlM5d12xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5d12xlarge = "ml.m5d.12xlarge" // ProductionVariantInstanceTypeMlM5d24xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM5d24xlarge = "ml.m5d.24xlarge" // ProductionVariantInstanceTypeMlC4Large is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC4Large = "ml.c4.large" // ProductionVariantInstanceTypeMlC4Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC4Xlarge = "ml.c4.xlarge" // ProductionVariantInstanceTypeMlC42xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC42xlarge = "ml.c4.2xlarge" // ProductionVariantInstanceTypeMlC44xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC44xlarge = "ml.c4.4xlarge" // ProductionVariantInstanceTypeMlC48xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC48xlarge = "ml.c4.8xlarge" // ProductionVariantInstanceTypeMlP2Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlP2Xlarge = "ml.p2.xlarge" // ProductionVariantInstanceTypeMlP28xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlP28xlarge = "ml.p2.8xlarge" // ProductionVariantInstanceTypeMlP216xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlP216xlarge = "ml.p2.16xlarge" // ProductionVariantInstanceTypeMlP32xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlP32xlarge = "ml.p3.2xlarge" // ProductionVariantInstanceTypeMlP38xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlP38xlarge = "ml.p3.8xlarge" // ProductionVariantInstanceTypeMlP316xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlP316xlarge = "ml.p3.16xlarge" // ProductionVariantInstanceTypeMlC5Large is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5Large = "ml.c5.large" // ProductionVariantInstanceTypeMlC5Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5Xlarge = "ml.c5.xlarge" // ProductionVariantInstanceTypeMlC52xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC52xlarge = "ml.c5.2xlarge" // ProductionVariantInstanceTypeMlC54xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC54xlarge = "ml.c5.4xlarge" // ProductionVariantInstanceTypeMlC59xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC59xlarge = "ml.c5.9xlarge" // ProductionVariantInstanceTypeMlC518xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC518xlarge = "ml.c5.18xlarge" // ProductionVariantInstanceTypeMlC5dLarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5dLarge = "ml.c5d.large" // ProductionVariantInstanceTypeMlC5dXlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5dXlarge = "ml.c5d.xlarge" // ProductionVariantInstanceTypeMlC5d2xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5d2xlarge = "ml.c5d.2xlarge" // ProductionVariantInstanceTypeMlC5d4xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5d4xlarge = "ml.c5d.4xlarge" // ProductionVariantInstanceTypeMlC5d9xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5d9xlarge = "ml.c5d.9xlarge" // ProductionVariantInstanceTypeMlC5d18xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC5d18xlarge = "ml.c5d.18xlarge" // ProductionVariantInstanceTypeMlG4dnXlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlG4dnXlarge = "ml.g4dn.xlarge" // ProductionVariantInstanceTypeMlG4dn2xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlG4dn2xlarge = "ml.g4dn.2xlarge" // ProductionVariantInstanceTypeMlG4dn4xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlG4dn4xlarge = "ml.g4dn.4xlarge" // ProductionVariantInstanceTypeMlG4dn8xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlG4dn8xlarge = "ml.g4dn.8xlarge" // ProductionVariantInstanceTypeMlG4dn12xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlG4dn12xlarge = "ml.g4dn.12xlarge" // ProductionVariantInstanceTypeMlG4dn16xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlG4dn16xlarge = "ml.g4dn.16xlarge" // ProductionVariantInstanceTypeMlR5Large is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5Large = "ml.r5.large" // ProductionVariantInstanceTypeMlR5Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5Xlarge = "ml.r5.xlarge" // ProductionVariantInstanceTypeMlR52xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR52xlarge = "ml.r5.2xlarge" // ProductionVariantInstanceTypeMlR54xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR54xlarge = "ml.r5.4xlarge" // ProductionVariantInstanceTypeMlR512xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR512xlarge = "ml.r5.12xlarge" // ProductionVariantInstanceTypeMlR524xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR524xlarge = "ml.r5.24xlarge" // ProductionVariantInstanceTypeMlR5dLarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5dLarge = "ml.r5d.large" // ProductionVariantInstanceTypeMlR5dXlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5dXlarge = "ml.r5d.xlarge" // ProductionVariantInstanceTypeMlR5d2xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5d2xlarge = "ml.r5d.2xlarge" // ProductionVariantInstanceTypeMlR5d4xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5d4xlarge = "ml.r5d.4xlarge" // ProductionVariantInstanceTypeMlR5d12xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5d12xlarge = "ml.r5d.12xlarge" // ProductionVariantInstanceTypeMlR5d24xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR5d24xlarge = "ml.r5d.24xlarge" // ProductionVariantInstanceTypeMlInf1Xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlInf1Xlarge = "ml.inf1.xlarge" // ProductionVariantInstanceTypeMlInf12xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlInf12xlarge = "ml.inf1.2xlarge" // ProductionVariantInstanceTypeMlInf16xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlInf16xlarge = "ml.inf1.6xlarge" // ProductionVariantInstanceTypeMlInf124xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlInf124xlarge = "ml.inf1.24xlarge" ) // ProductionVariantInstanceType_Values returns all elements of the ProductionVariantInstanceType enum func ProductionVariantInstanceType_Values() []string { return []string{ ProductionVariantInstanceTypeMlT2Medium, ProductionVariantInstanceTypeMlT2Large, ProductionVariantInstanceTypeMlT2Xlarge, ProductionVariantInstanceTypeMlT22xlarge, ProductionVariantInstanceTypeMlM4Xlarge, ProductionVariantInstanceTypeMlM42xlarge, ProductionVariantInstanceTypeMlM44xlarge, ProductionVariantInstanceTypeMlM410xlarge, ProductionVariantInstanceTypeMlM416xlarge, ProductionVariantInstanceTypeMlM5Large, ProductionVariantInstanceTypeMlM5Xlarge, ProductionVariantInstanceTypeMlM52xlarge, ProductionVariantInstanceTypeMlM54xlarge, ProductionVariantInstanceTypeMlM512xlarge, ProductionVariantInstanceTypeMlM524xlarge, ProductionVariantInstanceTypeMlM5dLarge, ProductionVariantInstanceTypeMlM5dXlarge, ProductionVariantInstanceTypeMlM5d2xlarge, ProductionVariantInstanceTypeMlM5d4xlarge, ProductionVariantInstanceTypeMlM5d12xlarge, ProductionVariantInstanceTypeMlM5d24xlarge, ProductionVariantInstanceTypeMlC4Large, ProductionVariantInstanceTypeMlC4Xlarge, ProductionVariantInstanceTypeMlC42xlarge, ProductionVariantInstanceTypeMlC44xlarge, ProductionVariantInstanceTypeMlC48xlarge, ProductionVariantInstanceTypeMlP2Xlarge, ProductionVariantInstanceTypeMlP28xlarge, ProductionVariantInstanceTypeMlP216xlarge, ProductionVariantInstanceTypeMlP32xlarge, ProductionVariantInstanceTypeMlP38xlarge, ProductionVariantInstanceTypeMlP316xlarge, ProductionVariantInstanceTypeMlC5Large, ProductionVariantInstanceTypeMlC5Xlarge, ProductionVariantInstanceTypeMlC52xlarge, ProductionVariantInstanceTypeMlC54xlarge, ProductionVariantInstanceTypeMlC59xlarge, ProductionVariantInstanceTypeMlC518xlarge, ProductionVariantInstanceTypeMlC5dLarge, ProductionVariantInstanceTypeMlC5dXlarge, ProductionVariantInstanceTypeMlC5d2xlarge, ProductionVariantInstanceTypeMlC5d4xlarge, ProductionVariantInstanceTypeMlC5d9xlarge, ProductionVariantInstanceTypeMlC5d18xlarge, ProductionVariantInstanceTypeMlG4dnXlarge, ProductionVariantInstanceTypeMlG4dn2xlarge, ProductionVariantInstanceTypeMlG4dn4xlarge, ProductionVariantInstanceTypeMlG4dn8xlarge, ProductionVariantInstanceTypeMlG4dn12xlarge, ProductionVariantInstanceTypeMlG4dn16xlarge, ProductionVariantInstanceTypeMlR5Large, ProductionVariantInstanceTypeMlR5Xlarge, ProductionVariantInstanceTypeMlR52xlarge, ProductionVariantInstanceTypeMlR54xlarge, ProductionVariantInstanceTypeMlR512xlarge, ProductionVariantInstanceTypeMlR524xlarge, ProductionVariantInstanceTypeMlR5dLarge, ProductionVariantInstanceTypeMlR5dXlarge, ProductionVariantInstanceTypeMlR5d2xlarge, ProductionVariantInstanceTypeMlR5d4xlarge, ProductionVariantInstanceTypeMlR5d12xlarge, ProductionVariantInstanceTypeMlR5d24xlarge, ProductionVariantInstanceTypeMlInf1Xlarge, ProductionVariantInstanceTypeMlInf12xlarge, ProductionVariantInstanceTypeMlInf16xlarge, ProductionVariantInstanceTypeMlInf124xlarge, } } const ( // RecordWrapperNone is a RecordWrapper enum value RecordWrapperNone = "None" // RecordWrapperRecordIo is a RecordWrapper enum value RecordWrapperRecordIo = "RecordIO" ) // RecordWrapper_Values returns all elements of the RecordWrapper enum func RecordWrapper_Values() []string { return []string{ RecordWrapperNone, RecordWrapperRecordIo, } } const ( // RepositoryAccessModePlatform is a RepositoryAccessMode enum value RepositoryAccessModePlatform = "Platform" // RepositoryAccessModeVpc is a RepositoryAccessMode enum value RepositoryAccessModeVpc = "Vpc" ) // RepositoryAccessMode_Values returns all elements of the RepositoryAccessMode enum func RepositoryAccessMode_Values() []string { return []string{ RepositoryAccessModePlatform, RepositoryAccessModeVpc, } } const ( // ResourceTypeTrainingJob is a ResourceType enum value ResourceTypeTrainingJob = "TrainingJob" // ResourceTypeExperiment is a ResourceType enum value ResourceTypeExperiment = "Experiment" // ResourceTypeExperimentTrial is a ResourceType enum value ResourceTypeExperimentTrial = "ExperimentTrial" // ResourceTypeExperimentTrialComponent is a ResourceType enum value ResourceTypeExperimentTrialComponent = "ExperimentTrialComponent" ) // ResourceType_Values returns all elements of the ResourceType enum func ResourceType_Values() []string { return []string{ ResourceTypeTrainingJob, ResourceTypeExperiment, ResourceTypeExperimentTrial, ResourceTypeExperimentTrialComponent, } } const ( // RetentionTypeRetain is a RetentionType enum value RetentionTypeRetain = "Retain" // RetentionTypeDelete is a RetentionType enum value RetentionTypeDelete = "Delete" ) // RetentionType_Values returns all elements of the RetentionType enum func RetentionType_Values() []string { return []string{ RetentionTypeRetain, RetentionTypeDelete, } } const ( // RootAccessEnabled is a RootAccess enum value RootAccessEnabled = "Enabled" // RootAccessDisabled is a RootAccess enum value RootAccessDisabled = "Disabled" ) // RootAccess_Values returns all elements of the RootAccess enum func RootAccess_Values() []string { return []string{ RootAccessEnabled, RootAccessDisabled, } } const ( // RuleEvaluationStatusInProgress is a RuleEvaluationStatus enum value RuleEvaluationStatusInProgress = "InProgress" // RuleEvaluationStatusNoIssuesFound is a RuleEvaluationStatus enum value RuleEvaluationStatusNoIssuesFound = "NoIssuesFound" // RuleEvaluationStatusIssuesFound is a RuleEvaluationStatus enum value RuleEvaluationStatusIssuesFound = "IssuesFound" // RuleEvaluationStatusError is a RuleEvaluationStatus enum value RuleEvaluationStatusError = "Error" // RuleEvaluationStatusStopping is a RuleEvaluationStatus enum value RuleEvaluationStatusStopping = "Stopping" // RuleEvaluationStatusStopped is a RuleEvaluationStatus enum value RuleEvaluationStatusStopped = "Stopped" ) // RuleEvaluationStatus_Values returns all elements of the RuleEvaluationStatus enum func RuleEvaluationStatus_Values() []string { return []string{ RuleEvaluationStatusInProgress, RuleEvaluationStatusNoIssuesFound, RuleEvaluationStatusIssuesFound, RuleEvaluationStatusError, RuleEvaluationStatusStopping, RuleEvaluationStatusStopped, } } const ( // S3DataDistributionFullyReplicated is a S3DataDistribution enum value S3DataDistributionFullyReplicated = "FullyReplicated" // S3DataDistributionShardedByS3key is a S3DataDistribution enum value S3DataDistributionShardedByS3key = "ShardedByS3Key" ) // S3DataDistribution_Values returns all elements of the S3DataDistribution enum func S3DataDistribution_Values() []string { return []string{ S3DataDistributionFullyReplicated, S3DataDistributionShardedByS3key, } } const ( // S3DataTypeManifestFile is a S3DataType enum value S3DataTypeManifestFile = "ManifestFile" // S3DataTypeS3prefix is a S3DataType enum value S3DataTypeS3prefix = "S3Prefix" // S3DataTypeAugmentedManifestFile is a S3DataType enum value S3DataTypeAugmentedManifestFile = "AugmentedManifestFile" ) // S3DataType_Values returns all elements of the S3DataType enum func S3DataType_Values() []string { return []string{ S3DataTypeManifestFile, S3DataTypeS3prefix, S3DataTypeAugmentedManifestFile, } } const ( // ScheduleStatusPending is a ScheduleStatus enum value ScheduleStatusPending = "Pending" // ScheduleStatusFailed is a ScheduleStatus enum value ScheduleStatusFailed = "Failed" // ScheduleStatusScheduled is a ScheduleStatus enum value ScheduleStatusScheduled = "Scheduled" // ScheduleStatusStopped is a ScheduleStatus enum value ScheduleStatusStopped = "Stopped" ) // ScheduleStatus_Values returns all elements of the ScheduleStatus enum func ScheduleStatus_Values() []string { return []string{ ScheduleStatusPending, ScheduleStatusFailed, ScheduleStatusScheduled, ScheduleStatusStopped, } } const ( // SearchSortOrderAscending is a SearchSortOrder enum value SearchSortOrderAscending = "Ascending" // SearchSortOrderDescending is a SearchSortOrder enum value SearchSortOrderDescending = "Descending" ) // SearchSortOrder_Values returns all elements of the SearchSortOrder enum func SearchSortOrder_Values() []string { return []string{ SearchSortOrderAscending, SearchSortOrderDescending, } } const ( // SecondaryStatusStarting is a SecondaryStatus enum value SecondaryStatusStarting = "Starting" // SecondaryStatusLaunchingMlinstances is a SecondaryStatus enum value SecondaryStatusLaunchingMlinstances = "LaunchingMLInstances" // SecondaryStatusPreparingTrainingStack is a SecondaryStatus enum value SecondaryStatusPreparingTrainingStack = "PreparingTrainingStack" // SecondaryStatusDownloading is a SecondaryStatus enum value SecondaryStatusDownloading = "Downloading" // SecondaryStatusDownloadingTrainingImage is a SecondaryStatus enum value SecondaryStatusDownloadingTrainingImage = "DownloadingTrainingImage" // SecondaryStatusTraining is a SecondaryStatus enum value SecondaryStatusTraining = "Training" // SecondaryStatusUploading is a SecondaryStatus enum value SecondaryStatusUploading = "Uploading" // SecondaryStatusStopping is a SecondaryStatus enum value SecondaryStatusStopping = "Stopping" // SecondaryStatusStopped is a SecondaryStatus enum value SecondaryStatusStopped = "Stopped" // SecondaryStatusMaxRuntimeExceeded is a SecondaryStatus enum value SecondaryStatusMaxRuntimeExceeded = "MaxRuntimeExceeded" // SecondaryStatusCompleted is a SecondaryStatus enum value SecondaryStatusCompleted = "Completed" // SecondaryStatusFailed is a SecondaryStatus enum value SecondaryStatusFailed = "Failed" // SecondaryStatusInterrupted is a SecondaryStatus enum value SecondaryStatusInterrupted = "Interrupted" // SecondaryStatusMaxWaitTimeExceeded is a SecondaryStatus enum value SecondaryStatusMaxWaitTimeExceeded = "MaxWaitTimeExceeded" ) // SecondaryStatus_Values returns all elements of the SecondaryStatus enum func SecondaryStatus_Values() []string { return []string{ SecondaryStatusStarting, SecondaryStatusLaunchingMlinstances, SecondaryStatusPreparingTrainingStack, SecondaryStatusDownloading, SecondaryStatusDownloadingTrainingImage, SecondaryStatusTraining, SecondaryStatusUploading, SecondaryStatusStopping, SecondaryStatusStopped, SecondaryStatusMaxRuntimeExceeded, SecondaryStatusCompleted, SecondaryStatusFailed, SecondaryStatusInterrupted, SecondaryStatusMaxWaitTimeExceeded, } } const ( // SortByName is a SortBy enum value SortByName = "Name" // SortByCreationTime is a SortBy enum value SortByCreationTime = "CreationTime" // SortByStatus is a SortBy enum value SortByStatus = "Status" ) // SortBy_Values returns all elements of the SortBy enum func SortBy_Values() []string { return []string{ SortByName, SortByCreationTime, SortByStatus, } } const ( // SortExperimentsByName is a SortExperimentsBy enum value SortExperimentsByName = "Name" // SortExperimentsByCreationTime is a SortExperimentsBy enum value SortExperimentsByCreationTime = "CreationTime" ) // SortExperimentsBy_Values returns all elements of the SortExperimentsBy enum func SortExperimentsBy_Values() []string { return []string{ SortExperimentsByName, SortExperimentsByCreationTime, } } const ( // SortOrderAscending is a SortOrder enum value SortOrderAscending = "Ascending" // SortOrderDescending is a SortOrder enum value SortOrderDescending = "Descending" ) // SortOrder_Values returns all elements of the SortOrder enum func SortOrder_Values() []string { return []string{ SortOrderAscending, SortOrderDescending, } } const ( // SortTrialComponentsByName is a SortTrialComponentsBy enum value SortTrialComponentsByName = "Name" // SortTrialComponentsByCreationTime is a SortTrialComponentsBy enum value SortTrialComponentsByCreationTime = "CreationTime" ) // SortTrialComponentsBy_Values returns all elements of the SortTrialComponentsBy enum func SortTrialComponentsBy_Values() []string { return []string{ SortTrialComponentsByName, SortTrialComponentsByCreationTime, } } const ( // SortTrialsByName is a SortTrialsBy enum value SortTrialsByName = "Name" // SortTrialsByCreationTime is a SortTrialsBy enum value SortTrialsByCreationTime = "CreationTime" ) // SortTrialsBy_Values returns all elements of the SortTrialsBy enum func SortTrialsBy_Values() []string { return []string{ SortTrialsByName, SortTrialsByCreationTime, } } const ( // SplitTypeNone is a SplitType enum value SplitTypeNone = "None" // SplitTypeLine is a SplitType enum value SplitTypeLine = "Line" // SplitTypeRecordIo is a SplitType enum value SplitTypeRecordIo = "RecordIO" // SplitTypeTfrecord is a SplitType enum value SplitTypeTfrecord = "TFRecord" ) // SplitType_Values returns all elements of the SplitType enum func SplitType_Values() []string { return []string{ SplitTypeNone, SplitTypeLine, SplitTypeRecordIo, SplitTypeTfrecord, } } const ( // TargetDeviceLambda is a TargetDevice enum value TargetDeviceLambda = "lambda" // TargetDeviceMlM4 is a TargetDevice enum value TargetDeviceMlM4 = "ml_m4" // TargetDeviceMlM5 is a TargetDevice enum value TargetDeviceMlM5 = "ml_m5" // TargetDeviceMlC4 is a TargetDevice enum value TargetDeviceMlC4 = "ml_c4" // TargetDeviceMlC5 is a TargetDevice enum value TargetDeviceMlC5 = "ml_c5" // TargetDeviceMlP2 is a TargetDevice enum value TargetDeviceMlP2 = "ml_p2" // TargetDeviceMlP3 is a TargetDevice enum value TargetDeviceMlP3 = "ml_p3" // TargetDeviceMlG4dn is a TargetDevice enum value TargetDeviceMlG4dn = "ml_g4dn" // TargetDeviceMlInf1 is a TargetDevice enum value TargetDeviceMlInf1 = "ml_inf1" // TargetDeviceJetsonTx1 is a TargetDevice enum value TargetDeviceJetsonTx1 = "jetson_tx1" // TargetDeviceJetsonTx2 is a TargetDevice enum value TargetDeviceJetsonTx2 = "jetson_tx2" // TargetDeviceJetsonNano is a TargetDevice enum value TargetDeviceJetsonNano = "jetson_nano" // TargetDeviceJetsonXavier is a TargetDevice enum value TargetDeviceJetsonXavier = "jetson_xavier" // TargetDeviceRasp3b is a TargetDevice enum value TargetDeviceRasp3b = "rasp3b" // TargetDeviceImx8qm is a TargetDevice enum value TargetDeviceImx8qm = "imx8qm" // TargetDeviceDeeplens is a TargetDevice enum value TargetDeviceDeeplens = "deeplens" // TargetDeviceRk3399 is a TargetDevice enum value TargetDeviceRk3399 = "rk3399" // TargetDeviceRk3288 is a TargetDevice enum value TargetDeviceRk3288 = "rk3288" // TargetDeviceAisage is a TargetDevice enum value TargetDeviceAisage = "aisage" // TargetDeviceSbeC is a TargetDevice enum value TargetDeviceSbeC = "sbe_c" // TargetDeviceQcs605 is a TargetDevice enum value TargetDeviceQcs605 = "qcs605" // TargetDeviceQcs603 is a TargetDevice enum value TargetDeviceQcs603 = "qcs603" // TargetDeviceSitaraAm57x is a TargetDevice enum value TargetDeviceSitaraAm57x = "sitara_am57x" // TargetDeviceAmbaCv22 is a TargetDevice enum value TargetDeviceAmbaCv22 = "amba_cv22" // TargetDeviceX86Win32 is a TargetDevice enum value TargetDeviceX86Win32 = "x86_win32" // TargetDeviceX86Win64 is a TargetDevice enum value TargetDeviceX86Win64 = "x86_win64" ) // TargetDevice_Values returns all elements of the TargetDevice enum func TargetDevice_Values() []string { return []string{ TargetDeviceLambda, TargetDeviceMlM4, TargetDeviceMlM5, TargetDeviceMlC4, TargetDeviceMlC5, TargetDeviceMlP2, TargetDeviceMlP3, TargetDeviceMlG4dn, TargetDeviceMlInf1, TargetDeviceJetsonTx1, TargetDeviceJetsonTx2, TargetDeviceJetsonNano, TargetDeviceJetsonXavier, TargetDeviceRasp3b, TargetDeviceImx8qm, TargetDeviceDeeplens, TargetDeviceRk3399, TargetDeviceRk3288, TargetDeviceAisage, TargetDeviceSbeC, TargetDeviceQcs605, TargetDeviceQcs603, TargetDeviceSitaraAm57x, TargetDeviceAmbaCv22, TargetDeviceX86Win32, TargetDeviceX86Win64, } } const ( // TargetPlatformAcceleratorIntelGraphics is a TargetPlatformAccelerator enum value TargetPlatformAcceleratorIntelGraphics = "INTEL_GRAPHICS" // TargetPlatformAcceleratorMali is a TargetPlatformAccelerator enum value TargetPlatformAcceleratorMali = "MALI" // TargetPlatformAcceleratorNvidia is a TargetPlatformAccelerator enum value TargetPlatformAcceleratorNvidia = "NVIDIA" ) // TargetPlatformAccelerator_Values returns all elements of the TargetPlatformAccelerator enum func TargetPlatformAccelerator_Values() []string { return []string{ TargetPlatformAcceleratorIntelGraphics, TargetPlatformAcceleratorMali, TargetPlatformAcceleratorNvidia, } } const ( // TargetPlatformArchX8664 is a TargetPlatformArch enum value TargetPlatformArchX8664 = "X86_64" // TargetPlatformArchX86 is a TargetPlatformArch enum value TargetPlatformArchX86 = "X86" // TargetPlatformArchArm64 is a TargetPlatformArch enum value TargetPlatformArchArm64 = "ARM64" // TargetPlatformArchArmEabi is a TargetPlatformArch enum value TargetPlatformArchArmEabi = "ARM_EABI" // TargetPlatformArchArmEabihf is a TargetPlatformArch enum value TargetPlatformArchArmEabihf = "ARM_EABIHF" ) // TargetPlatformArch_Values returns all elements of the TargetPlatformArch enum func TargetPlatformArch_Values() []string { return []string{ TargetPlatformArchX8664, TargetPlatformArchX86, TargetPlatformArchArm64, TargetPlatformArchArmEabi, TargetPlatformArchArmEabihf, } } const ( // TargetPlatformOsAndroid is a TargetPlatformOs enum value TargetPlatformOsAndroid = "ANDROID" // TargetPlatformOsLinux is a TargetPlatformOs enum value TargetPlatformOsLinux = "LINUX" ) // TargetPlatformOs_Values returns all elements of the TargetPlatformOs enum func TargetPlatformOs_Values() []string { return []string{ TargetPlatformOsAndroid, TargetPlatformOsLinux, } } const ( // TrainingInputModePipe is a TrainingInputMode enum value TrainingInputModePipe = "Pipe" // TrainingInputModeFile is a TrainingInputMode enum value TrainingInputModeFile = "File" ) // TrainingInputMode_Values returns all elements of the TrainingInputMode enum func TrainingInputMode_Values() []string { return []string{ TrainingInputModePipe, TrainingInputModeFile, } } const ( // TrainingInstanceTypeMlM4Xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM4Xlarge = "ml.m4.xlarge" // TrainingInstanceTypeMlM42xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM42xlarge = "ml.m4.2xlarge" // TrainingInstanceTypeMlM44xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM44xlarge = "ml.m4.4xlarge" // TrainingInstanceTypeMlM410xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM410xlarge = "ml.m4.10xlarge" // TrainingInstanceTypeMlM416xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM416xlarge = "ml.m4.16xlarge" // TrainingInstanceTypeMlG4dnXlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlG4dnXlarge = "ml.g4dn.xlarge" // TrainingInstanceTypeMlG4dn2xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlG4dn2xlarge = "ml.g4dn.2xlarge" // TrainingInstanceTypeMlG4dn4xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlG4dn4xlarge = "ml.g4dn.4xlarge" // TrainingInstanceTypeMlG4dn8xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlG4dn8xlarge = "ml.g4dn.8xlarge" // TrainingInstanceTypeMlG4dn12xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlG4dn12xlarge = "ml.g4dn.12xlarge" // TrainingInstanceTypeMlG4dn16xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlG4dn16xlarge = "ml.g4dn.16xlarge" // TrainingInstanceTypeMlM5Large is a TrainingInstanceType enum value TrainingInstanceTypeMlM5Large = "ml.m5.large" // TrainingInstanceTypeMlM5Xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM5Xlarge = "ml.m5.xlarge" // TrainingInstanceTypeMlM52xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM52xlarge = "ml.m5.2xlarge" // TrainingInstanceTypeMlM54xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM54xlarge = "ml.m5.4xlarge" // TrainingInstanceTypeMlM512xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM512xlarge = "ml.m5.12xlarge" // TrainingInstanceTypeMlM524xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlM524xlarge = "ml.m5.24xlarge" // TrainingInstanceTypeMlC4Xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC4Xlarge = "ml.c4.xlarge" // TrainingInstanceTypeMlC42xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC42xlarge = "ml.c4.2xlarge" // TrainingInstanceTypeMlC44xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC44xlarge = "ml.c4.4xlarge" // TrainingInstanceTypeMlC48xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC48xlarge = "ml.c4.8xlarge" // TrainingInstanceTypeMlP2Xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlP2Xlarge = "ml.p2.xlarge" // TrainingInstanceTypeMlP28xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlP28xlarge = "ml.p2.8xlarge" // TrainingInstanceTypeMlP216xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlP216xlarge = "ml.p2.16xlarge" // TrainingInstanceTypeMlP32xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlP32xlarge = "ml.p3.2xlarge" // TrainingInstanceTypeMlP38xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlP38xlarge = "ml.p3.8xlarge" // TrainingInstanceTypeMlP316xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlP316xlarge = "ml.p3.16xlarge" // TrainingInstanceTypeMlP3dn24xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlP3dn24xlarge = "ml.p3dn.24xlarge" // TrainingInstanceTypeMlC5Xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC5Xlarge = "ml.c5.xlarge" // TrainingInstanceTypeMlC52xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC52xlarge = "ml.c5.2xlarge" // TrainingInstanceTypeMlC54xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC54xlarge = "ml.c5.4xlarge" // TrainingInstanceTypeMlC59xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC59xlarge = "ml.c5.9xlarge" // TrainingInstanceTypeMlC518xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC518xlarge = "ml.c5.18xlarge" // TrainingInstanceTypeMlC5nXlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC5nXlarge = "ml.c5n.xlarge" // TrainingInstanceTypeMlC5n2xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC5n2xlarge = "ml.c5n.2xlarge" // TrainingInstanceTypeMlC5n4xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC5n4xlarge = "ml.c5n.4xlarge" // TrainingInstanceTypeMlC5n9xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC5n9xlarge = "ml.c5n.9xlarge" // TrainingInstanceTypeMlC5n18xlarge is a TrainingInstanceType enum value TrainingInstanceTypeMlC5n18xlarge = "ml.c5n.18xlarge" ) // TrainingInstanceType_Values returns all elements of the TrainingInstanceType enum func TrainingInstanceType_Values() []string { return []string{ TrainingInstanceTypeMlM4Xlarge, TrainingInstanceTypeMlM42xlarge, TrainingInstanceTypeMlM44xlarge, TrainingInstanceTypeMlM410xlarge, TrainingInstanceTypeMlM416xlarge, TrainingInstanceTypeMlG4dnXlarge, TrainingInstanceTypeMlG4dn2xlarge, TrainingInstanceTypeMlG4dn4xlarge, TrainingInstanceTypeMlG4dn8xlarge, TrainingInstanceTypeMlG4dn12xlarge, TrainingInstanceTypeMlG4dn16xlarge, TrainingInstanceTypeMlM5Large, TrainingInstanceTypeMlM5Xlarge, TrainingInstanceTypeMlM52xlarge, TrainingInstanceTypeMlM54xlarge, TrainingInstanceTypeMlM512xlarge, TrainingInstanceTypeMlM524xlarge, TrainingInstanceTypeMlC4Xlarge, TrainingInstanceTypeMlC42xlarge, TrainingInstanceTypeMlC44xlarge, TrainingInstanceTypeMlC48xlarge, TrainingInstanceTypeMlP2Xlarge, TrainingInstanceTypeMlP28xlarge, TrainingInstanceTypeMlP216xlarge, TrainingInstanceTypeMlP32xlarge, TrainingInstanceTypeMlP38xlarge, TrainingInstanceTypeMlP316xlarge, TrainingInstanceTypeMlP3dn24xlarge, TrainingInstanceTypeMlC5Xlarge, TrainingInstanceTypeMlC52xlarge, TrainingInstanceTypeMlC54xlarge, TrainingInstanceTypeMlC59xlarge, TrainingInstanceTypeMlC518xlarge, TrainingInstanceTypeMlC5nXlarge, TrainingInstanceTypeMlC5n2xlarge, TrainingInstanceTypeMlC5n4xlarge, TrainingInstanceTypeMlC5n9xlarge, TrainingInstanceTypeMlC5n18xlarge, } } const ( // TrainingJobEarlyStoppingTypeOff is a TrainingJobEarlyStoppingType enum value TrainingJobEarlyStoppingTypeOff = "Off" // TrainingJobEarlyStoppingTypeAuto is a TrainingJobEarlyStoppingType enum value TrainingJobEarlyStoppingTypeAuto = "Auto" ) // TrainingJobEarlyStoppingType_Values returns all elements of the TrainingJobEarlyStoppingType enum func TrainingJobEarlyStoppingType_Values() []string { return []string{ TrainingJobEarlyStoppingTypeOff, TrainingJobEarlyStoppingTypeAuto, } } const ( // TrainingJobSortByOptionsName is a TrainingJobSortByOptions enum value TrainingJobSortByOptionsName = "Name" // TrainingJobSortByOptionsCreationTime is a TrainingJobSortByOptions enum value TrainingJobSortByOptionsCreationTime = "CreationTime" // TrainingJobSortByOptionsStatus is a TrainingJobSortByOptions enum value TrainingJobSortByOptionsStatus = "Status" // TrainingJobSortByOptionsFinalObjectiveMetricValue is a TrainingJobSortByOptions enum value TrainingJobSortByOptionsFinalObjectiveMetricValue = "FinalObjectiveMetricValue" ) // TrainingJobSortByOptions_Values returns all elements of the TrainingJobSortByOptions enum func TrainingJobSortByOptions_Values() []string { return []string{ TrainingJobSortByOptionsName, TrainingJobSortByOptionsCreationTime, TrainingJobSortByOptionsStatus, TrainingJobSortByOptionsFinalObjectiveMetricValue, } } const ( // TrainingJobStatusInProgress is a TrainingJobStatus enum value TrainingJobStatusInProgress = "InProgress" // TrainingJobStatusCompleted is a TrainingJobStatus enum value TrainingJobStatusCompleted = "Completed" // TrainingJobStatusFailed is a TrainingJobStatus enum value TrainingJobStatusFailed = "Failed" // TrainingJobStatusStopping is a TrainingJobStatus enum value TrainingJobStatusStopping = "Stopping" // TrainingJobStatusStopped is a TrainingJobStatus enum value TrainingJobStatusStopped = "Stopped" ) // TrainingJobStatus_Values returns all elements of the TrainingJobStatus enum func TrainingJobStatus_Values() []string { return []string{ TrainingJobStatusInProgress, TrainingJobStatusCompleted, TrainingJobStatusFailed, TrainingJobStatusStopping, TrainingJobStatusStopped, } } const ( // TransformInstanceTypeMlM4Xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM4Xlarge = "ml.m4.xlarge" // TransformInstanceTypeMlM42xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM42xlarge = "ml.m4.2xlarge" // TransformInstanceTypeMlM44xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM44xlarge = "ml.m4.4xlarge" // TransformInstanceTypeMlM410xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM410xlarge = "ml.m4.10xlarge" // TransformInstanceTypeMlM416xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM416xlarge = "ml.m4.16xlarge" // TransformInstanceTypeMlC4Xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC4Xlarge = "ml.c4.xlarge" // TransformInstanceTypeMlC42xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC42xlarge = "ml.c4.2xlarge" // TransformInstanceTypeMlC44xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC44xlarge = "ml.c4.4xlarge" // TransformInstanceTypeMlC48xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC48xlarge = "ml.c4.8xlarge" // TransformInstanceTypeMlP2Xlarge is a TransformInstanceType enum value TransformInstanceTypeMlP2Xlarge = "ml.p2.xlarge" // TransformInstanceTypeMlP28xlarge is a TransformInstanceType enum value TransformInstanceTypeMlP28xlarge = "ml.p2.8xlarge" // TransformInstanceTypeMlP216xlarge is a TransformInstanceType enum value TransformInstanceTypeMlP216xlarge = "ml.p2.16xlarge" // TransformInstanceTypeMlP32xlarge is a TransformInstanceType enum value TransformInstanceTypeMlP32xlarge = "ml.p3.2xlarge" // TransformInstanceTypeMlP38xlarge is a TransformInstanceType enum value TransformInstanceTypeMlP38xlarge = "ml.p3.8xlarge" // TransformInstanceTypeMlP316xlarge is a TransformInstanceType enum value TransformInstanceTypeMlP316xlarge = "ml.p3.16xlarge" // TransformInstanceTypeMlC5Xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC5Xlarge = "ml.c5.xlarge" // TransformInstanceTypeMlC52xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC52xlarge = "ml.c5.2xlarge" // TransformInstanceTypeMlC54xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC54xlarge = "ml.c5.4xlarge" // TransformInstanceTypeMlC59xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC59xlarge = "ml.c5.9xlarge" // TransformInstanceTypeMlC518xlarge is a TransformInstanceType enum value TransformInstanceTypeMlC518xlarge = "ml.c5.18xlarge" // TransformInstanceTypeMlM5Large is a TransformInstanceType enum value TransformInstanceTypeMlM5Large = "ml.m5.large" // TransformInstanceTypeMlM5Xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM5Xlarge = "ml.m5.xlarge" // TransformInstanceTypeMlM52xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM52xlarge = "ml.m5.2xlarge" // TransformInstanceTypeMlM54xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM54xlarge = "ml.m5.4xlarge" // TransformInstanceTypeMlM512xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM512xlarge = "ml.m5.12xlarge" // TransformInstanceTypeMlM524xlarge is a TransformInstanceType enum value TransformInstanceTypeMlM524xlarge = "ml.m5.24xlarge" ) // TransformInstanceType_Values returns all elements of the TransformInstanceType enum func TransformInstanceType_Values() []string { return []string{ TransformInstanceTypeMlM4Xlarge, TransformInstanceTypeMlM42xlarge, TransformInstanceTypeMlM44xlarge, TransformInstanceTypeMlM410xlarge, TransformInstanceTypeMlM416xlarge, TransformInstanceTypeMlC4Xlarge, TransformInstanceTypeMlC42xlarge, TransformInstanceTypeMlC44xlarge, TransformInstanceTypeMlC48xlarge, TransformInstanceTypeMlP2Xlarge, TransformInstanceTypeMlP28xlarge, TransformInstanceTypeMlP216xlarge, TransformInstanceTypeMlP32xlarge, TransformInstanceTypeMlP38xlarge, TransformInstanceTypeMlP316xlarge, TransformInstanceTypeMlC5Xlarge, TransformInstanceTypeMlC52xlarge, TransformInstanceTypeMlC54xlarge, TransformInstanceTypeMlC59xlarge, TransformInstanceTypeMlC518xlarge, TransformInstanceTypeMlM5Large, TransformInstanceTypeMlM5Xlarge, TransformInstanceTypeMlM52xlarge, TransformInstanceTypeMlM54xlarge, TransformInstanceTypeMlM512xlarge, TransformInstanceTypeMlM524xlarge, } } const ( // TransformJobStatusInProgress is a TransformJobStatus enum value TransformJobStatusInProgress = "InProgress" // TransformJobStatusCompleted is a TransformJobStatus enum value TransformJobStatusCompleted = "Completed" // TransformJobStatusFailed is a TransformJobStatus enum value TransformJobStatusFailed = "Failed" // TransformJobStatusStopping is a TransformJobStatus enum value TransformJobStatusStopping = "Stopping" // TransformJobStatusStopped is a TransformJobStatus enum value TransformJobStatusStopped = "Stopped" ) // TransformJobStatus_Values returns all elements of the TransformJobStatus enum func TransformJobStatus_Values() []string { return []string{ TransformJobStatusInProgress, TransformJobStatusCompleted, TransformJobStatusFailed, TransformJobStatusStopping, TransformJobStatusStopped, } } const ( // TrialComponentPrimaryStatusInProgress is a TrialComponentPrimaryStatus enum value TrialComponentPrimaryStatusInProgress = "InProgress" // TrialComponentPrimaryStatusCompleted is a TrialComponentPrimaryStatus enum value TrialComponentPrimaryStatusCompleted = "Completed" // TrialComponentPrimaryStatusFailed is a TrialComponentPrimaryStatus enum value TrialComponentPrimaryStatusFailed = "Failed" // TrialComponentPrimaryStatusStopping is a TrialComponentPrimaryStatus enum value TrialComponentPrimaryStatusStopping = "Stopping" // TrialComponentPrimaryStatusStopped is a TrialComponentPrimaryStatus enum value TrialComponentPrimaryStatusStopped = "Stopped" ) // TrialComponentPrimaryStatus_Values returns all elements of the TrialComponentPrimaryStatus enum func TrialComponentPrimaryStatus_Values() []string { return []string{ TrialComponentPrimaryStatusInProgress, TrialComponentPrimaryStatusCompleted, TrialComponentPrimaryStatusFailed, TrialComponentPrimaryStatusStopping, TrialComponentPrimaryStatusStopped, } } const ( // UserProfileSortKeyCreationTime is a UserProfileSortKey enum value UserProfileSortKeyCreationTime = "CreationTime" // UserProfileSortKeyLastModifiedTime is a UserProfileSortKey enum value UserProfileSortKeyLastModifiedTime = "LastModifiedTime" ) // UserProfileSortKey_Values returns all elements of the UserProfileSortKey enum func UserProfileSortKey_Values() []string { return []string{ UserProfileSortKeyCreationTime, UserProfileSortKeyLastModifiedTime, } } const ( // UserProfileStatusDeleting is a UserProfileStatus enum value UserProfileStatusDeleting = "Deleting" // UserProfileStatusFailed is a UserProfileStatus enum value UserProfileStatusFailed = "Failed" // UserProfileStatusInService is a UserProfileStatus enum value UserProfileStatusInService = "InService" // UserProfileStatusPending is a UserProfileStatus enum value UserProfileStatusPending = "Pending" ) // UserProfileStatus_Values returns all elements of the UserProfileStatus enum func UserProfileStatus_Values() []string { return []string{ UserProfileStatusDeleting, UserProfileStatusFailed, UserProfileStatusInService, UserProfileStatusPending, } } const ( // VariantPropertyTypeDesiredInstanceCount is a VariantPropertyType enum value VariantPropertyTypeDesiredInstanceCount = "DesiredInstanceCount" // VariantPropertyTypeDesiredWeight is a VariantPropertyType enum value VariantPropertyTypeDesiredWeight = "DesiredWeight" // VariantPropertyTypeDataCaptureConfig is a VariantPropertyType enum value VariantPropertyTypeDataCaptureConfig = "DataCaptureConfig" ) // VariantPropertyType_Values returns all elements of the VariantPropertyType enum func VariantPropertyType_Values() []string { return []string{ VariantPropertyTypeDesiredInstanceCount, VariantPropertyTypeDesiredWeight, VariantPropertyTypeDataCaptureConfig, } }