chore: upgrade dependencies
This commit is contained in:
90
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/CHANGELOG.md
generated
vendored
90
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/CHANGELOG.md
generated
vendored
@@ -1,3 +1,93 @@
|
||||
# v1.32.1 (2022-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.32.0 (2022-05-27)
|
||||
|
||||
* **Feature**: Amazon SageMaker Notebook Instances now allows configuration of Instance Metadata Service version and Amazon SageMaker Studio now supports G5 instance types.
|
||||
|
||||
# v1.31.0 (2022-05-25)
|
||||
|
||||
* **Feature**: Amazon SageMaker Autopilot adds support for manually selecting features from the input dataset using the CreateAutoMLJob API.
|
||||
|
||||
# v1.30.1 (2022-05-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.30.0 (2022-05-03)
|
||||
|
||||
* **Feature**: SageMaker Autopilot adds new metrics for all candidate models generated by Autopilot experiments; RStudio on SageMaker now allows users to bring your own development environment in a custom image.
|
||||
|
||||
# v1.29.0 (2022-04-27)
|
||||
|
||||
* **Feature**: Amazon SageMaker Autopilot adds support for custom validation dataset and validation ratio through the CreateAutoMLJob and DescribeAutoMLJob APIs.
|
||||
|
||||
# v1.28.0 (2022-04-26)
|
||||
|
||||
* **Feature**: SageMaker Inference Recommender now accepts customer KMS key ID for encryption of endpoints and compilation outputs created during inference recommendation.
|
||||
|
||||
# v1.27.1 (2022-04-25)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.0 (2022-04-07)
|
||||
|
||||
* **Feature**: Amazon Sagemaker Notebook Instances now supports G5 instance types
|
||||
|
||||
# v1.26.3 (2022-03-30)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.2 (2022-03-24)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.1 (2022-03-23)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.0 (2022-03-08)
|
||||
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.25.0 (2022-02-24)
|
||||
|
||||
* **Feature**: API client updated
|
||||
* **Feature**: Adds RetryMaxAttempts and RetryMod to API client Options. This allows the API clients' default Retryer to be configured from the shared configuration files or environment variables. Adding a new Retry mode of `Adaptive`. `Adaptive` retry mode is an experimental mode, adding client rate limiting when throttles reponses are received from an API. See [retry.AdaptiveMode](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/retry#AdaptiveMode) for more details, and configuration options.
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.24.0 (2022-01-28)
|
||||
|
||||
* **Feature**: Updated to latest API model.
|
||||
|
||||
# v1.23.0 (2022-01-14)
|
||||
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.22.0 (2022-01-07)
|
||||
|
||||
* **Feature**: API client updated
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.0 (2021-12-21)
|
||||
|
||||
* **Feature**: API Paginators now support specifying the initial starting token, and support stopping on empty string tokens.
|
||||
* **Feature**: API client updated
|
||||
|
||||
# v1.20.0 (2021-12-02)
|
||||
|
||||
* **Feature**: API client updated
|
||||
* **Bug Fix**: Fixes a bug that prevented aws.EndpointResolverWithOptions from being used by the service client. ([#1514](https://github.com/aws/aws-sdk-go-v2/pull/1514))
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.1 (2021-11-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.0 (2021-11-12)
|
||||
|
||||
* **Feature**: Service clients now support custom endpoints that have an initial URI path defined.
|
||||
|
||||
159
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_client.go
generated
vendored
159
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_client.go
generated
vendored
@@ -6,6 +6,7 @@ import (
|
||||
"context"
|
||||
cryptorand "crypto/rand"
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/defaults"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/retry"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
@@ -17,6 +18,7 @@ import (
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyrand "github.com/aws/smithy-go/rand"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"net"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
@@ -38,6 +40,8 @@ func New(options Options, optFns ...func(*Options)) *Client {
|
||||
|
||||
resolveDefaultLogger(&options)
|
||||
|
||||
setResolvedDefaultsMode(&options)
|
||||
|
||||
resolveRetryer(&options)
|
||||
|
||||
resolveHTTPClient(&options)
|
||||
@@ -71,6 +75,10 @@ type Options struct {
|
||||
// The credentials object to use when signing requests.
|
||||
Credentials aws.CredentialsProvider
|
||||
|
||||
// The configuration DefaultsMode that the SDK should use when constructing the
|
||||
// clients initial default settings.
|
||||
DefaultsMode aws.DefaultsMode
|
||||
|
||||
// The endpoint options to be used when attempting to resolve an endpoint.
|
||||
EndpointOptions EndpointResolverOptions
|
||||
|
||||
@@ -90,10 +98,42 @@ type Options struct {
|
||||
// The region to send requests to. (Required)
|
||||
Region string
|
||||
|
||||
// RetryMaxAttempts specifies the maximum number attempts an API client will call
|
||||
// an operation that fails with a retryable error. A value of 0 is ignored, and
|
||||
// will not be used to configure the API client created default retryer, or modify
|
||||
// per operation call's retry max attempts. When creating a new API Clients this
|
||||
// member will only be used if the Retryer Options member is nil. This value will
|
||||
// be ignored if Retryer is not nil. If specified in an operation call's functional
|
||||
// options with a value that is different than the constructed client's Options,
|
||||
// the Client's Retryer will be wrapped to use the operation's specific
|
||||
// RetryMaxAttempts value.
|
||||
RetryMaxAttempts int
|
||||
|
||||
// RetryMode specifies the retry mode the API client will be created with, if
|
||||
// Retryer option is not also specified. When creating a new API Clients this
|
||||
// member will only be used if the Retryer Options member is nil. This value will
|
||||
// be ignored if Retryer is not nil. Currently does not support per operation call
|
||||
// overrides, may in the future.
|
||||
RetryMode aws.RetryMode
|
||||
|
||||
// Retryer guides how HTTP requests should be retried in case of recoverable
|
||||
// failures. When nil the API client will use a default retryer.
|
||||
// failures. When nil the API client will use a default retryer. The kind of
|
||||
// default retry created by the API client can be changed with the RetryMode
|
||||
// option.
|
||||
Retryer aws.Retryer
|
||||
|
||||
// The RuntimeEnvironment configuration, only populated if the DefaultsMode is set
|
||||
// to DefaultsModeAuto and is initialized using config.LoadDefaultConfig. You
|
||||
// should not populate this structure programmatically, or rely on the values here
|
||||
// within your applications.
|
||||
RuntimeEnvironment aws.RuntimeEnvironment
|
||||
|
||||
// The initial DefaultsMode used when the client options were constructed. If the
|
||||
// DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved
|
||||
// value was at that point in time. Currently does not support per operation call
|
||||
// overrides, may in the future.
|
||||
resolvedDefaultsMode aws.DefaultsMode
|
||||
|
||||
// The HTTP client to invoke API calls with. Defaults to client's default HTTP
|
||||
// implementation if nil.
|
||||
HTTPClient HTTPClient
|
||||
@@ -124,6 +164,7 @@ func (o Options) Copy() Options {
|
||||
to := o
|
||||
to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions))
|
||||
copy(to.APIOptions, o.APIOptions)
|
||||
|
||||
return to
|
||||
}
|
||||
func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) {
|
||||
@@ -134,6 +175,8 @@ func (c *Client) invokeOperation(ctx context.Context, opID string, params interf
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
finalizeRetryMaxAttemptOptions(&options, *c)
|
||||
|
||||
finalizeClientEndpointResolverOptions(&options)
|
||||
|
||||
for _, fn := range stackFns {
|
||||
@@ -173,17 +216,36 @@ func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error {
|
||||
return middleware.AddSetLoggerMiddleware(stack, o.Logger)
|
||||
}
|
||||
|
||||
func setResolvedDefaultsMode(o *Options) {
|
||||
if len(o.resolvedDefaultsMode) > 0 {
|
||||
return
|
||||
}
|
||||
|
||||
var mode aws.DefaultsMode
|
||||
mode.SetFromString(string(o.DefaultsMode))
|
||||
|
||||
if mode == aws.DefaultsModeAuto {
|
||||
mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment)
|
||||
}
|
||||
|
||||
o.resolvedDefaultsMode = mode
|
||||
}
|
||||
|
||||
// NewFromConfig returns a new client from the provided config.
|
||||
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
|
||||
opts := Options{
|
||||
Region: cfg.Region,
|
||||
HTTPClient: cfg.HTTPClient,
|
||||
Credentials: cfg.Credentials,
|
||||
APIOptions: cfg.APIOptions,
|
||||
Logger: cfg.Logger,
|
||||
ClientLogMode: cfg.ClientLogMode,
|
||||
Region: cfg.Region,
|
||||
DefaultsMode: cfg.DefaultsMode,
|
||||
RuntimeEnvironment: cfg.RuntimeEnvironment,
|
||||
HTTPClient: cfg.HTTPClient,
|
||||
Credentials: cfg.Credentials,
|
||||
APIOptions: cfg.APIOptions,
|
||||
Logger: cfg.Logger,
|
||||
ClientLogMode: cfg.ClientLogMode,
|
||||
}
|
||||
resolveAWSRetryerProvider(cfg, &opts)
|
||||
resolveAWSRetryMaxAttempts(cfg, &opts)
|
||||
resolveAWSRetryMode(cfg, &opts)
|
||||
resolveAWSEndpointResolver(cfg, &opts)
|
||||
resolveUseDualStackEndpoint(cfg, &opts)
|
||||
resolveUseFIPSEndpoint(cfg, &opts)
|
||||
@@ -191,17 +253,71 @@ func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
|
||||
}
|
||||
|
||||
func resolveHTTPClient(o *Options) {
|
||||
var buildable *awshttp.BuildableClient
|
||||
|
||||
if o.HTTPClient != nil {
|
||||
return
|
||||
var ok bool
|
||||
buildable, ok = o.HTTPClient.(*awshttp.BuildableClient)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
buildable = awshttp.NewBuildableClient()
|
||||
}
|
||||
o.HTTPClient = awshttp.NewBuildableClient()
|
||||
|
||||
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
|
||||
if err == nil {
|
||||
buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) {
|
||||
if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok {
|
||||
dialer.Timeout = dialerTimeout
|
||||
}
|
||||
})
|
||||
|
||||
buildable = buildable.WithTransportOptions(func(transport *http.Transport) {
|
||||
if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok {
|
||||
transport.TLSHandshakeTimeout = tlsHandshakeTimeout
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
o.HTTPClient = buildable
|
||||
}
|
||||
|
||||
func resolveRetryer(o *Options) {
|
||||
if o.Retryer != nil {
|
||||
return
|
||||
}
|
||||
o.Retryer = retry.NewStandard()
|
||||
|
||||
if len(o.RetryMode) == 0 {
|
||||
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
|
||||
if err == nil {
|
||||
o.RetryMode = modeConfig.RetryMode
|
||||
}
|
||||
}
|
||||
if len(o.RetryMode) == 0 {
|
||||
o.RetryMode = aws.RetryModeStandard
|
||||
}
|
||||
|
||||
var standardOptions []func(*retry.StandardOptions)
|
||||
if v := o.RetryMaxAttempts; v != 0 {
|
||||
standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
|
||||
so.MaxAttempts = v
|
||||
})
|
||||
}
|
||||
|
||||
switch o.RetryMode {
|
||||
case aws.RetryModeAdaptive:
|
||||
var adaptiveOptions []func(*retry.AdaptiveModeOptions)
|
||||
if len(standardOptions) != 0 {
|
||||
adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) {
|
||||
ao.StandardOptions = append(ao.StandardOptions, standardOptions...)
|
||||
})
|
||||
}
|
||||
o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...)
|
||||
|
||||
default:
|
||||
o.Retryer = retry.NewStandard(standardOptions...)
|
||||
}
|
||||
}
|
||||
|
||||
func resolveAWSRetryerProvider(cfg aws.Config, o *Options) {
|
||||
@@ -211,8 +327,29 @@ func resolveAWSRetryerProvider(cfg aws.Config, o *Options) {
|
||||
o.Retryer = cfg.Retryer()
|
||||
}
|
||||
|
||||
func resolveAWSRetryMode(cfg aws.Config, o *Options) {
|
||||
if len(cfg.RetryMode) == 0 {
|
||||
return
|
||||
}
|
||||
o.RetryMode = cfg.RetryMode
|
||||
}
|
||||
func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) {
|
||||
if cfg.RetryMaxAttempts == 0 {
|
||||
return
|
||||
}
|
||||
o.RetryMaxAttempts = cfg.RetryMaxAttempts
|
||||
}
|
||||
|
||||
func finalizeRetryMaxAttemptOptions(o *Options, client Client) {
|
||||
if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts {
|
||||
return
|
||||
}
|
||||
|
||||
o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
|
||||
}
|
||||
|
||||
func resolveAWSEndpointResolver(cfg aws.Config, o *Options) {
|
||||
if cfg.EndpointResolver == nil {
|
||||
if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil {
|
||||
return
|
||||
}
|
||||
o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver())
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_AddTags.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_AddTags.go
generated
vendored
@@ -11,9 +11,9 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// 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
|
||||
// Adds or overwrites one or more tags for the specified 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 Amazon Web Services Tagging Strategies
|
||||
@@ -68,7 +68,7 @@ type AddTagsInput struct {
|
||||
|
||||
type AddTagsOutput struct {
|
||||
|
||||
// A list of tags associated with the Amazon SageMaker resource.
|
||||
// A list of tags associated with the SageMaker resource.
|
||||
Tags []types.Tag
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
|
||||
11
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateAlgorithm.go
generated
vendored
11
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateAlgorithm.go
generated
vendored
@@ -11,8 +11,8 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Create a machine learning algorithm that you can use in Amazon SageMaker and
|
||||
// list in the Amazon Web Services Marketplace.
|
||||
// Create a machine learning algorithm that you can use in SageMaker and list in
|
||||
// the Amazon Web Services Marketplace.
|
||||
func (c *Client) CreateAlgorithm(ctx context.Context, params *CreateAlgorithmInput, optFns ...func(*Options)) (*CreateAlgorithmOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateAlgorithmInput{}
|
||||
@@ -88,10 +88,9 @@ type CreateAlgorithmInput struct {
|
||||
// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html).
|
||||
Tags []types.Tag
|
||||
|
||||
// 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.
|
||||
// Specifies configurations for one or more training jobs and that SageMaker runs
|
||||
// to test the algorithm's training code and, optionally, one or more batch
|
||||
// transform jobs that SageMaker runs to test the algorithm's inference code.
|
||||
ValidationSpecification *types.AlgorithmValidationSpecification
|
||||
|
||||
noSmithyDocumentSerde
|
||||
|
||||
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateAutoMLJob.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateAutoMLJob.go
generated
vendored
@@ -40,7 +40,9 @@ type CreateAutoMLJobInput struct {
|
||||
|
||||
// An array of channel objects that describes the input data and its location. Each
|
||||
// channel is a named input source. Similar to InputDataConfig supported by .
|
||||
// Format(s) supported: CSV. Minimum of 500 rows.
|
||||
// Format(s) supported: CSV, Parquet. A minimum of 500 rows is required for the
|
||||
// training dataset. There is not a minimum number of rows required for the
|
||||
// validation dataset.
|
||||
//
|
||||
// This member is required.
|
||||
InputDataConfig []types.AutoMLChannel
|
||||
@@ -56,7 +58,7 @@ type CreateAutoMLJobInput struct {
|
||||
// This member is required.
|
||||
RoleArn *string
|
||||
|
||||
// Contains CompletionCriteria and SecurityConfig settings for the AutoML job.
|
||||
// A collection of settings used to configure an AutoML job.
|
||||
AutoMLJobConfig *types.AutoMLJobConfig
|
||||
|
||||
// Defines the objective metric used to measure the predictive quality of an AutoML
|
||||
@@ -72,10 +74,8 @@ type CreateAutoMLJobInput struct {
|
||||
// model deployment.
|
||||
ModelDeployConfig *types.ModelDeployConfig
|
||||
|
||||
// Defines the type of supervised learning available for the candidates. Options
|
||||
// include: BinaryClassification, MulticlassClassification, and Regression. For
|
||||
// more information, see Amazon SageMaker Autopilot problem types and algorithm
|
||||
// support
|
||||
// Defines the type of supervised learning available for the candidates. For more
|
||||
// information, see Amazon SageMaker Autopilot problem types and algorithm support
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-problem-types.html).
|
||||
ProblemType types.ProblemType
|
||||
|
||||
|
||||
10
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateCodeRepository.go
generated
vendored
10
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateCodeRepository.go
generated
vendored
@@ -11,13 +11,13 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Creates a Git repository as a resource in your Amazon SageMaker account. You can
|
||||
// Creates a Git repository as a resource in your 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 Amazon
|
||||
// Web Services CodeCommit
|
||||
// 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 Amazon Web Services
|
||||
// CodeCommit
|
||||
// (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or in any
|
||||
// other Git repository.
|
||||
func (c *Client) CreateCodeRepository(ctx context.Context, params *CreateCodeRepositoryInput, optFns ...func(*Options)) (*CreateCodeRepositoryOutput, error) {
|
||||
|
||||
18
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateCompilationJob.go
generated
vendored
18
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateCompilationJob.go
generated
vendored
@@ -60,13 +60,6 @@ type CreateCompilationJobInput struct {
|
||||
// This member is required.
|
||||
CompilationJobName *string
|
||||
|
||||
// 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.
|
||||
//
|
||||
// This member is required.
|
||||
InputConfig *types.InputConfig
|
||||
|
||||
// Provides information about the output location for the compiled model and the
|
||||
// target device the model runs on.
|
||||
//
|
||||
@@ -102,6 +95,17 @@ type CreateCompilationJobInput struct {
|
||||
// This member is required.
|
||||
StoppingCondition *types.StoppingCondition
|
||||
|
||||
// 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 *types.InputConfig
|
||||
|
||||
// The Amazon Resource Name (ARN) of a versioned model package. Provide either a
|
||||
// ModelPackageVersionArn or an InputConfig object in the request syntax. The
|
||||
// presence of both objects in the CreateCompilationJob request will return an
|
||||
// exception.
|
||||
ModelPackageVersionArn *string
|
||||
|
||||
// An array of key-value pairs. You can use tags to categorize your Amazon Web
|
||||
// Services resources in different ways, for example, by purpose, owner, or
|
||||
// environment. For more information, see Tagging Amazon Web Services Resources
|
||||
|
||||
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateDomain.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateDomain.go
generated
vendored
@@ -114,7 +114,7 @@ type CreateDomainInput struct {
|
||||
// A collection of Domain settings.
|
||||
DomainSettings *types.DomainSettings
|
||||
|
||||
// This member is deprecated and replaced with KmsKeyId.
|
||||
// Use KmsKeyId.
|
||||
//
|
||||
// Deprecated: This property is deprecated, use KmsKeyId instead.
|
||||
HomeEfsFileSystemKmsKeyId *string
|
||||
|
||||
36
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateEndpoint.go
generated
vendored
36
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateEndpoint.go
generated
vendored
@@ -12,17 +12,17 @@ import (
|
||||
)
|
||||
|
||||
// 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 the Create Endpoint example notebook.
|
||||
// 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 SageMaker hosting services. For an example that calls this
|
||||
// method when deploying a model to SageMaker hosting services, see the Create
|
||||
// Endpoint example notebook.
|
||||
// (https://github.com/aws/amazon-sagemaker-examples/blob/master/sagemaker-fundamentals/create-endpoint/create_endpoint.ipynb)
|
||||
// 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 Amazon Web Services Region in your Amazon
|
||||
// Web Services account. When it receives the request, Amazon SageMaker creates the
|
||||
// Web Services account. When it receives the request, 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
|
||||
@@ -34,18 +34,18 @@ import (
|
||||
// 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 Amazon
|
||||
// Web Services Security Token Service to download model artifacts from the S3 path
|
||||
// you provided. Amazon Web Services STS is activated in your IAM user account by
|
||||
// default. If you previously deactivated Amazon Web Services STS for a region, you
|
||||
// need to reactivate Amazon Web Services STS for that region. For more
|
||||
// information, see Activating and Deactivating Amazon Web Services STS in an
|
||||
// Amazon Web Services Region
|
||||
// the potential impact of a DynamoDB eventually consistent read. When SageMaker
|
||||
// receives the request, it sets the endpoint status to Creating. After it creates
|
||||
// the endpoint, it sets the status to InService. 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, SageMaker uses Amazon Web Services Security
|
||||
// Token Service to download model artifacts from the S3 path you provided. Amazon
|
||||
// Web Services STS is activated in your IAM user account by default. If you
|
||||
// previously deactivated Amazon Web Services STS for a region, you need to
|
||||
// reactivate Amazon Web Services STS for that region. For more information, see
|
||||
// Activating and Deactivating Amazon Web Services STS in an Amazon Web Services
|
||||
// Region
|
||||
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
|
||||
// in the Amazon Web Services Identity and Access Management User Guide. To add the
|
||||
// IAM role policies for using this API operation, go to the IAM console
|
||||
|
||||
39
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateEndpointConfig.go
generated
vendored
39
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateEndpointConfig.go
generated
vendored
@@ -11,22 +11,21 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// 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. 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
|
||||
// Creates an endpoint configuration that 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 SageMaker to
|
||||
// provision. Then you call the CreateEndpoint API. Use this API if you want to use
|
||||
// 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 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. SageMaker distributes two-thirds of the traffic
|
||||
// to Model A, and one-third to model B. 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
|
||||
@@ -67,15 +66,15 @@ type CreateEndpointConfigInput struct {
|
||||
// Specifies configuration for how an endpoint performs asynchronous inference.
|
||||
// This is a required field in order for your Endpoint to be invoked using
|
||||
// InvokeEndpointAsync
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_runtime_InvokeEndpoint.html).
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_runtime_InvokeEndpointAsync.html).
|
||||
AsyncInferenceConfig *types.AsyncInferenceConfig
|
||||
|
||||
//
|
||||
// Configuration to control how SageMaker captures inference data.
|
||||
DataCaptureConfig *types.DataCaptureConfig
|
||||
|
||||
// The Amazon Resource Name (ARN) of a Amazon Web Services 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
|
||||
// key that 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
|
||||
|
||||
@@ -88,8 +88,8 @@ type CreateHyperParameterTuningJobInput struct {
|
||||
|
||||
type CreateHyperParameterTuningJobOutput struct {
|
||||
|
||||
// The Amazon Resource Name (ARN) of the tuning job. Amazon SageMaker assigns an
|
||||
// ARN to a hyperparameter tuning job when you create it.
|
||||
// The Amazon Resource Name (ARN) of the tuning job. SageMaker assigns an ARN to a
|
||||
// hyperparameter tuning job when you create it.
|
||||
//
|
||||
// This member is required.
|
||||
HyperParameterTuningJobArn *string
|
||||
|
||||
6
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateImage.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateImage.go
generated
vendored
@@ -12,9 +12,9 @@ import (
|
||||
)
|
||||
|
||||
// Creates a custom SageMaker image. A SageMaker image is a set of image versions.
|
||||
// Each image version represents a container image stored in Amazon Container
|
||||
// Registry (ECR). For more information, see Bring your own SageMaker image
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/studio-byoi.html).
|
||||
// Each image version represents a container image stored in Amazon Elastic
|
||||
// Container Registry (ECR). For more information, see Bring your own SageMaker
|
||||
// image (https://docs.aws.amazon.com/sagemaker/latest/dg/studio-byoi.html).
|
||||
func (c *Client) CreateImage(ctx context.Context, params *CreateImageInput, optFns ...func(*Options)) (*CreateImageOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateImageInput{}
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateImageVersion.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateImageVersion.go
generated
vendored
@@ -12,8 +12,8 @@ import (
|
||||
)
|
||||
|
||||
// Creates a version of the SageMaker image specified by ImageName. The version
|
||||
// represents the Amazon Container Registry (ECR) container image specified by
|
||||
// BaseImage.
|
||||
// represents the Amazon Elastic Container Registry (ECR) container image specified
|
||||
// by BaseImage.
|
||||
func (c *Client) CreateImageVersion(ctx context.Context, params *CreateImageVersionInput, optFns ...func(*Options)) (*CreateImageVersionOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateImageVersionInput{}
|
||||
@@ -32,8 +32,8 @@ func (c *Client) CreateImageVersion(ctx context.Context, params *CreateImageVers
|
||||
type CreateImageVersionInput struct {
|
||||
|
||||
// The registry path of the container image to use as the starting point for this
|
||||
// version. The path is an Amazon Container Registry (ECR) URI in the following
|
||||
// format: .dkr.ecr..amazonaws.com/
|
||||
// version. The path is an Amazon Elastic Container Registry (ECR) URI in the
|
||||
// following format: .dkr.ecr..amazonaws.com/
|
||||
//
|
||||
// This member is required.
|
||||
BaseImage *string
|
||||
|
||||
163
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateInferenceRecommendationsJob.go
generated
vendored
Normal file
163
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateInferenceRecommendationsJob.go
generated
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package sagemaker
|
||||
|
||||
import (
|
||||
"context"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go-v2/service/sagemaker/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Starts a recommendation job. You can create either an instance recommendation or
|
||||
// load test job.
|
||||
func (c *Client) CreateInferenceRecommendationsJob(ctx context.Context, params *CreateInferenceRecommendationsJobInput, optFns ...func(*Options)) (*CreateInferenceRecommendationsJobOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateInferenceRecommendationsJobInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "CreateInferenceRecommendationsJob", params, optFns, c.addOperationCreateInferenceRecommendationsJobMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*CreateInferenceRecommendationsJobOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type CreateInferenceRecommendationsJobInput struct {
|
||||
|
||||
// Provides information about the versioned model package Amazon Resource Name
|
||||
// (ARN), the traffic pattern, and endpoint configurations.
|
||||
//
|
||||
// This member is required.
|
||||
InputConfig *types.RecommendationJobInputConfig
|
||||
|
||||
// A name for the recommendation job. The name must be unique within the Amazon Web
|
||||
// Services Region and within your Amazon Web Services account.
|
||||
//
|
||||
// This member is required.
|
||||
JobName *string
|
||||
|
||||
// Defines the type of recommendation job. Specify Default to initiate an instance
|
||||
// recommendation and Advanced to initiate a load test. If left unspecified, Amazon
|
||||
// SageMaker Inference Recommender will run an instance recommendation (DEFAULT)
|
||||
// job.
|
||||
//
|
||||
// This member is required.
|
||||
JobType types.RecommendationJobType
|
||||
|
||||
// The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to
|
||||
// perform tasks on your behalf.
|
||||
//
|
||||
// This member is required.
|
||||
RoleArn *string
|
||||
|
||||
// Description of the recommendation job.
|
||||
JobDescription *string
|
||||
|
||||
// Provides information about the output artifacts and the KMS key to use for
|
||||
// Amazon S3 server-side encryption.
|
||||
OutputConfig *types.RecommendationJobOutputConfig
|
||||
|
||||
// A set of conditions for stopping a recommendation job. If any of the conditions
|
||||
// are met, the job is automatically stopped.
|
||||
StoppingConditions *types.RecommendationJobStoppingConditions
|
||||
|
||||
// The metadata that you apply to Amazon Web Services resources to help you
|
||||
// categorize and organize them. Each tag consists of a key and a value, both of
|
||||
// which you define. For more information, see Tagging Amazon Web Services
|
||||
// Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in
|
||||
// the Amazon Web Services General Reference.
|
||||
Tags []types.Tag
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type CreateInferenceRecommendationsJobOutput struct {
|
||||
|
||||
// The Amazon Resource Name (ARN) of the recommendation job.
|
||||
//
|
||||
// This member is required.
|
||||
JobArn *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationCreateInferenceRecommendationsJobMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateInferenceRecommendationsJob{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetryMiddlewares(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateInferenceRecommendationsJobValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInferenceRecommendationsJob(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opCreateInferenceRecommendationsJob(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: "sagemaker",
|
||||
OperationName: "CreateInferenceRecommendationsJob",
|
||||
}
|
||||
}
|
||||
52
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateModel.go
generated
vendored
52
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateModel.go
generated
vendored
@@ -11,29 +11,27 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// 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
|
||||
// (Amazon Web Services SDK for Python (Boto 3)).
|
||||
// Creates a model in 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 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. 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 SageMaker hosting
|
||||
// services, see Deploy the Model to Amazon SageMaker Hosting Services (Amazon Web
|
||||
// Services 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 Amazon Web Services resources, you grant necessary permissions via
|
||||
// this role.
|
||||
// CreateTransformJob API. SageMaker uses your model and your dataset to get
|
||||
// inferences which are then saved to a specified S3 location. In the request, you
|
||||
// also provide an IAM role that 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 Amazon
|
||||
// Web Services resources, you grant necessary permissions via this role.
|
||||
func (c *Client) CreateModel(ctx context.Context, params *CreateModelInput, optFns ...func(*Options)) (*CreateModelOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateModelInput{}
|
||||
@@ -51,12 +49,12 @@ func (c *Client) CreateModel(ctx context.Context, params *CreateModelInput, optF
|
||||
|
||||
type CreateModelInput struct {
|
||||
|
||||
// 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
|
||||
// The Amazon Resource Name (ARN) of the IAM role that 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 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
|
||||
// able to pass this role to SageMaker, the caller of this API must have the
|
||||
// iam:PassRole permission.
|
||||
//
|
||||
// This member is required.
|
||||
@@ -102,7 +100,7 @@ type CreateModelInput struct {
|
||||
|
||||
type CreateModelOutput struct {
|
||||
|
||||
// The ARN of the model created in Amazon SageMaker.
|
||||
// The ARN of the model created in SageMaker.
|
||||
//
|
||||
// This member is required.
|
||||
ModelArn *string
|
||||
|
||||
51
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateModelPackage.go
generated
vendored
51
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateModelPackage.go
generated
vendored
@@ -12,14 +12,14 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Creates a model package that you can use to create Amazon SageMaker models or
|
||||
// list on Amazon Web Services Marketplace, or a versioned model that is part of a
|
||||
// model group. Buyers can subscribe to model packages listed on Amazon Web
|
||||
// Services 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 Amazon Web Services Marketplace, provide a value for
|
||||
// Creates a model package that you can use to create SageMaker models or list on
|
||||
// Amazon Web Services Marketplace, or a versioned model that is part of a model
|
||||
// group. Buyers can subscribe to model packages listed on Amazon Web Services
|
||||
// Marketplace to create models in 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 Amazon Web Services Marketplace, provide a value for
|
||||
// SourceAlgorithmSpecification. There are two types of model packages:
|
||||
//
|
||||
// *
|
||||
@@ -44,6 +44,12 @@ func (c *Client) CreateModelPackage(ctx context.Context, params *CreateModelPack
|
||||
|
||||
type CreateModelPackageInput struct {
|
||||
|
||||
// An array of additional Inference Specification objects. Each additional
|
||||
// Inference Specification specifies artifacts based on this model package that can
|
||||
// be used on inference endpoints. Generally used with SageMaker Neo to store the
|
||||
// compiled artifacts.
|
||||
AdditionalInferenceSpecifications []types.AdditionalInferenceSpecificationDefinition
|
||||
|
||||
// Whether to certify the model package for listing on Amazon Web Services
|
||||
// Marketplace. This parameter is optional for unversioned models, and does not
|
||||
// apply to versioned models.
|
||||
@@ -55,6 +61,18 @@ type CreateModelPackageInput struct {
|
||||
// The metadata properties associated with the model package versions.
|
||||
CustomerMetadataProperties map[string]string
|
||||
|
||||
// The machine learning domain of your model package and its components. Common
|
||||
// machine learning domains include computer vision and natural language
|
||||
// processing.
|
||||
Domain *string
|
||||
|
||||
// Represents the drift check baselines that can be used when the model monitor is
|
||||
// set using the model package. For more information, see the topic on Drift
|
||||
// Detection against Previous Baselines in SageMaker Pipelines
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-quality-clarify-baseline-lifecycle.html#pipelines-quality-clarify-baseline-drift-detection)
|
||||
// in the Amazon SageMaker Developer Guide.
|
||||
DriftCheckBaselines *types.DriftCheckBaselines
|
||||
|
||||
// Specifies details about inference jobs that can be run with models based on this
|
||||
// model package, including the following:
|
||||
//
|
||||
@@ -93,6 +111,11 @@ type CreateModelPackageInput struct {
|
||||
// unversioned models. It is not applicable to versioned models.
|
||||
ModelPackageName *string
|
||||
|
||||
// The Amazon Simple Storage Service (Amazon S3) path where the sample payload are
|
||||
// stored. This path must point to a single gzip compressed tar archive (.tar.gz
|
||||
// suffix).
|
||||
SamplePayloadUrl *string
|
||||
|
||||
// Details about the algorithm that was used to create the model package.
|
||||
SourceAlgorithmSpecification *types.SourceAlgorithmSpecification
|
||||
|
||||
@@ -102,8 +125,16 @@ type CreateModelPackageInput struct {
|
||||
// Web Services General Reference Guide.
|
||||
Tags []types.Tag
|
||||
|
||||
// Specifies configurations for one or more transform jobs that Amazon SageMaker
|
||||
// runs to test the model package.
|
||||
// The machine learning task your model package accomplishes. Common machine
|
||||
// learning tasks include object detection and image classification. The following
|
||||
// tasks are supported by Inference Recommender: "IMAGE_CLASSIFICATION" |
|
||||
// "OBJECT_DETECTION" | "TEXT_GENERATION" |"IMAGE_SEGMENTATION" | "FILL_MASK" |
|
||||
// "CLASSIFICATION" | "REGRESSION" | "OTHER". Specify "OTHER" if none of the tasks
|
||||
// listed fit your use case.
|
||||
Task *string
|
||||
|
||||
// Specifies configurations for one or more transform jobs that SageMaker runs to
|
||||
// test the model package.
|
||||
ValidationSpecification *types.ModelPackageValidationSpecification
|
||||
|
||||
noSmithyDocumentSerde
|
||||
|
||||
87
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateNotebookInstance.go
generated
vendored
87
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateNotebookInstance.go
generated
vendored
@@ -11,39 +11,38 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Creates an Amazon SageMaker notebook instance. A notebook instance is a machine
|
||||
// Creates an 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:
|
||||
// want to run. 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. SageMaker also provides a set of example
|
||||
// notebooks. Each notebook demonstrates how to use SageMaker with a specific
|
||||
// algorithm or with a machine learning framework. After receiving the request,
|
||||
// SageMaker does the following:
|
||||
//
|
||||
// * Creates a network interface in
|
||||
// the Amazon SageMaker VPC.
|
||||
// * Creates a network interface in the 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.
|
||||
// * (Option) If you specified SubnetId, 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, 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.
|
||||
// * Launches an EC2 instance of the type specified in the
|
||||
// request in the SageMaker VPC. If you specified SubnetId of your VPC, 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
|
||||
// After creating the notebook instance, SageMaker
|
||||
// returns its Amazon Resource Name (ARN). You can't change the name of a notebook
|
||||
// instance after you create it. After 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 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).
|
||||
func (c *Client) CreateNotebookInstance(ctx context.Context, params *CreateNotebookInstanceInput, optFns ...func(*Options)) (*CreateNotebookInstanceOutput, error) {
|
||||
if params == nil {
|
||||
@@ -73,13 +72,12 @@ type CreateNotebookInstanceInput struct {
|
||||
NotebookInstanceName *string
|
||||
|
||||
// When you send any requests to Amazon Web Services 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
|
||||
// instance, SageMaker assumes this role to perform tasks on your behalf. You must
|
||||
// grant this role necessary permissions so SageMaker can perform these tasks. The
|
||||
// policy must allow the SageMaker service principal (sagemaker.amazonaws.com)
|
||||
// permissions to assume this role. For more information, see 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
|
||||
// able to pass this role to SageMaker, the caller of this API must have the
|
||||
// iam:PassRole permission.
|
||||
//
|
||||
// This member is required.
|
||||
@@ -98,7 +96,7 @@ type CreateNotebookInstanceInput struct {
|
||||
// (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
|
||||
// Associating Git Repositories with SageMaker Notebook Instances
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
|
||||
AdditionalCodeRepositories []string
|
||||
|
||||
@@ -109,24 +107,27 @@ type CreateNotebookInstanceInput struct {
|
||||
// (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
|
||||
// Git Repositories with SageMaker Notebook Instances
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
|
||||
DefaultCodeRepository *string
|
||||
|
||||
// Sets whether Amazon SageMaker provides internet access to the notebook instance.
|
||||
// If you set this to Disabled this notebook instance is able to access resources
|
||||
// only in your VPC, and is not be able to connect to Amazon SageMaker training and
|
||||
// endpoint services unless you configure a NAT Gateway in your VPC. For more
|
||||
// information, see Notebook Instances Are Internet-Enabled by Default
|
||||
// Sets whether SageMaker provides internet access to the notebook instance. If you
|
||||
// set this to Disabled this notebook instance is able to access resources only in
|
||||
// your VPC, and is not be able to connect to SageMaker training and endpoint
|
||||
// services unless you 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 types.DirectInternetAccess
|
||||
|
||||
// Information on the IMDS configuration of the notebook instance
|
||||
InstanceMetadataServiceConfiguration *types.InstanceMetadataServiceConfiguration
|
||||
|
||||
// The Amazon Resource Name (ARN) of a Amazon Web Services 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
|
||||
// key that 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 Amazon Web Services Key Management Service Developer Guide.
|
||||
KmsKeyId *string
|
||||
|
||||
16
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreatePipeline.go
generated
vendored
16
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreatePipeline.go
generated
vendored
@@ -36,11 +36,6 @@ type CreatePipelineInput struct {
|
||||
// This member is required.
|
||||
ClientRequestToken *string
|
||||
|
||||
// The JSON pipeline definition of the pipeline.
|
||||
//
|
||||
// This member is required.
|
||||
PipelineDefinition *string
|
||||
|
||||
// The name of the pipeline.
|
||||
//
|
||||
// This member is required.
|
||||
@@ -52,6 +47,17 @@ type CreatePipelineInput struct {
|
||||
// This member is required.
|
||||
RoleArn *string
|
||||
|
||||
// This is the configuration that controls the parallelism of the pipeline. If
|
||||
// specified, it applies to all runs of this pipeline by default.
|
||||
ParallelismConfiguration *types.ParallelismConfiguration
|
||||
|
||||
// The JSON pipeline definition of the pipeline.
|
||||
PipelineDefinition *string
|
||||
|
||||
// The location of the pipeline definition stored in Amazon S3. If specified,
|
||||
// SageMaker will retrieve the pipeline definition from this location.
|
||||
PipelineDefinitionS3Location *types.PipelineDefinitionS3Location
|
||||
|
||||
// A description of the pipeline.
|
||||
PipelineDescription *string
|
||||
|
||||
|
||||
@@ -11,19 +11,19 @@ import (
|
||||
)
|
||||
|
||||
// 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
|
||||
// instance. In the SageMaker console, when you choose Open next to a notebook
|
||||
// instance, 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,
|
||||
|
||||
105
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateTrainingJob.go
generated
vendored
105
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateTrainingJob.go
generated
vendored
@@ -11,21 +11,21 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// 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 inference. In the request body, you provide
|
||||
// the following:
|
||||
// Starts a model training job. After training completes, SageMaker saves the
|
||||
// resulting model artifacts to an Amazon S3 location that you specify. If you
|
||||
// choose to host your model using 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 SageMaker, provided that you know how
|
||||
// to use them for inference. In the request body, you provide the following:
|
||||
//
|
||||
// * AlgorithmSpecification - Identifies the training algorithm to
|
||||
// use.
|
||||
// *
|
||||
// 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
|
||||
// *
|
||||
// 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 SageMaker, see Algorithms
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html).
|
||||
//
|
||||
// * InputDataConfig
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// it is stored.
|
||||
//
|
||||
// * OutputDataConfig - Identifies the Amazon S3 bucket where you
|
||||
// want Amazon SageMaker to save the results of model training.
|
||||
// want SageMaker to save the results of model training.
|
||||
//
|
||||
// * ResourceConfig -
|
||||
// Identifies the resources, ML compute instances, and ML storage volumes to deploy
|
||||
@@ -46,24 +46,24 @@ import (
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html).
|
||||
//
|
||||
// *
|
||||
// RoleArn - The Amazon Resource Name (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.
|
||||
// RoleArn - The Amazon Resource Name (ARN) that SageMaker assumes to perform tasks
|
||||
// on your behalf during model training. You must grant this role the necessary
|
||||
// permissions so that 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 a managed spot training job has to complete.
|
||||
// *
|
||||
// StoppingCondition - To help cap training costs, use MaxRuntimeInSeconds to set a
|
||||
// time limit for training. Use MaxWaitTimeInSeconds to specify how long a managed
|
||||
// spot training job has to complete.
|
||||
//
|
||||
// * Environment
|
||||
// - The environment variables to set in the Docker container.
|
||||
// * Environment - The environment variables to
|
||||
// set in the Docker container.
|
||||
//
|
||||
// * RetryStrategy -
|
||||
// The number of times to retry the job when the job fails due to an
|
||||
// InternalServerError.
|
||||
// * RetryStrategy - The number of times to retry the
|
||||
// job when the job fails due to an InternalServerError.
|
||||
//
|
||||
// For more information about Amazon SageMaker, see How It
|
||||
// Works (https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html).
|
||||
// For more information
|
||||
// about SageMaker, see How It Works
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html).
|
||||
func (c *Client) CreateTrainingJob(ctx context.Context, params *CreateTrainingJobInput, optFns ...func(*Options)) (*CreateTrainingJobOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateTrainingJobInput{}
|
||||
@@ -83,7 +83,7 @@ type CreateTrainingJobInput struct {
|
||||
|
||||
// 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
|
||||
// about algorithms provided by 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
|
||||
@@ -93,7 +93,7 @@ type CreateTrainingJobInput struct {
|
||||
AlgorithmSpecification *types.AlgorithmSpecification
|
||||
|
||||
// Specifies the path to the S3 location where you want to store model artifacts.
|
||||
// Amazon SageMaker creates subfolders for the artifacts.
|
||||
// SageMaker creates subfolders for the artifacts.
|
||||
//
|
||||
// This member is required.
|
||||
OutputDataConfig *types.OutputDataConfig
|
||||
@@ -101,22 +101,22 @@ type CreateTrainingJobInput struct {
|
||||
// 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
|
||||
// If you want 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.
|
||||
//
|
||||
// This member is required.
|
||||
ResourceConfig *types.ResourceConfig
|
||||
|
||||
// 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
|
||||
// The Amazon Resource Name (ARN) of an IAM role that SageMaker can assume to
|
||||
// perform tasks on your behalf. During model training, 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
|
||||
// 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
|
||||
// able to pass this role to SageMaker, the caller of this API must have the
|
||||
// iam:PassRole permission.
|
||||
//
|
||||
// This member is required.
|
||||
@@ -124,11 +124,10 @@ type CreateTrainingJobInput struct {
|
||||
|
||||
// Specifies a limit to how long a model training job can run. It also specifies
|
||||
// how long a managed Spot training job has to complete. 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.
|
||||
// time limit, SageMaker ends the training job. Use this API to cap model training
|
||||
// costs. To stop a job, 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.
|
||||
//
|
||||
// This member is required.
|
||||
StoppingCondition *types.StoppingCondition
|
||||
@@ -175,9 +174,9 @@ type CreateTrainingJobInput struct {
|
||||
// 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.
|
||||
// to use a VPC, SageMaker downloads and uploads customer data and model artifacts
|
||||
// through the specified VPC, but the training container does not have network
|
||||
// access.
|
||||
EnableNetworkIsolation bool
|
||||
|
||||
// The environment variables to set in the Docker container.
|
||||
@@ -196,7 +195,7 @@ type CreateTrainingJobInput struct {
|
||||
|
||||
// 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
|
||||
// hyperparameters for each training algorithm provided by 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
|
||||
@@ -210,11 +209,11 @@ type CreateTrainingJobInput struct {
|
||||
// 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.
|
||||
// Depending on the input mode that the algorithm supports, 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 are available as input streams. They do not need to
|
||||
// be downloaded.
|
||||
InputDataConfig []types.Channel
|
||||
|
||||
// Configuration information for Debugger system monitoring, framework profiling,
|
||||
|
||||
33
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateTransformJob.go
generated
vendored
33
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_CreateTransformJob.go
generated
vendored
@@ -24,20 +24,22 @@ import (
|
||||
// * ModelName - Identifies the model to use. ModelName must be the name
|
||||
// of an existing Amazon SageMaker model in the same Amazon Web Services Region and
|
||||
// Amazon Web Services account. For information on creating a model, see
|
||||
// CreateModel.
|
||||
// CreateModel
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateModel.html).
|
||||
//
|
||||
// * TransformInput - Describes the dataset to be transformed and the
|
||||
// Amazon S3 location where it is stored.
|
||||
// *
|
||||
// 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
|
||||
// * 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.
|
||||
//
|
||||
// * TransformResources - Identifies the ML compute instances for
|
||||
// the transform job.
|
||||
//
|
||||
// For more information about how batch transformation works,
|
||||
// see Batch Transform
|
||||
// For more information about how batch transformation works, see
|
||||
// Batch Transform
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html).
|
||||
func (c *Client) CreateTransformJob(ctx context.Context, params *CreateTransformJobInput, optFns ...func(*Options)) (*CreateTransformJobOutput, error) {
|
||||
if params == nil {
|
||||
@@ -136,10 +138,13 @@ type CreateTransformJobInput struct {
|
||||
// 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.
|
||||
// larger value. The default value is 6 MB. The value of MaxPayloadInMB cannot be
|
||||
// greater than 100 MB. If you specify the MaxConcurrentTransforms parameter, the
|
||||
// value of (MaxConcurrentTransforms * MaxPayloadInMB) also cannot exceed 100 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 *int32
|
||||
|
||||
// Configures the timeout and maximum number of retries for processing a transform
|
||||
|
||||
14
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteEndpoint.go
generated
vendored
14
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteEndpoint.go
generated
vendored
@@ -10,12 +10,16 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// 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
|
||||
// Deletes an endpoint. SageMaker frees up all of the resources that were deployed
|
||||
// when the endpoint was created. 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.
|
||||
// call. When you delete your endpoint, SageMaker asynchronously deletes associated
|
||||
// endpoint resources such as KMS key grants. You might still see these resources
|
||||
// in your account for a few minutes after deleting your endpoint. Do not delete or
|
||||
// revoke the permissions for your ExecutionRoleArn
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateModel.html#sagemaker-CreateModel-request-ExecutionRoleArn),
|
||||
// otherwise SageMaker cannot delete these resources.
|
||||
func (c *Client) DeleteEndpoint(ctx context.Context, params *DeleteEndpointInput, optFns ...func(*Options)) (*DeleteEndpointOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteEndpointInput{}
|
||||
|
||||
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteModel.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteModel.go
generated
vendored
@@ -11,8 +11,8 @@ import (
|
||||
)
|
||||
|
||||
// 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
|
||||
// created in 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.
|
||||
func (c *Client) DeleteModel(ctx context.Context, params *DeleteModelInput, optFns ...func(*Options)) (*DeleteModelOutput, error) {
|
||||
if params == nil {
|
||||
|
||||
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteModelPackage.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteModelPackage.go
generated
vendored
@@ -10,10 +10,9 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes a model package. A model package is used to create Amazon SageMaker
|
||||
// models or list on Amazon Web Services Marketplace. Buyers can subscribe to model
|
||||
// packages listed on Amazon Web Services Marketplace to create models in Amazon
|
||||
// SageMaker.
|
||||
// Deletes a model package. A model package is used to create SageMaker models or
|
||||
// list on Amazon Web Services Marketplace. Buyers can subscribe to model packages
|
||||
// listed on Amazon Web Services Marketplace to create models in SageMaker.
|
||||
func (c *Client) DeleteModelPackage(ctx context.Context, params *DeleteModelPackageInput, optFns ...func(*Options)) (*DeleteModelPackageOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteModelPackageInput{}
|
||||
|
||||
10
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteNotebookInstance.go
generated
vendored
10
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteNotebookInstance.go
generated
vendored
@@ -10,11 +10,11 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook
|
||||
// Deletes an 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.
|
||||
// instance, you lose all of your data. SageMaker removes the ML compute instance,
|
||||
// and deletes the ML storage volume and the network interface associated with the
|
||||
// notebook instance.
|
||||
func (c *Client) DeleteNotebookInstance(ctx context.Context, params *DeleteNotebookInstanceInput, optFns ...func(*Options)) (*DeleteNotebookInstanceOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteNotebookInstanceInput{}
|
||||
@@ -32,7 +32,7 @@ func (c *Client) DeleteNotebookInstance(ctx context.Context, params *DeleteNoteb
|
||||
|
||||
type DeleteNotebookInstanceInput struct {
|
||||
|
||||
// The name of the Amazon SageMaker notebook instance to delete.
|
||||
// The name of the SageMaker notebook instance to delete.
|
||||
//
|
||||
// This member is required.
|
||||
NotebookInstanceName *string
|
||||
|
||||
14
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteTags.go
generated
vendored
14
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DeleteTags.go
generated
vendored
@@ -10,13 +10,13 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// 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.
|
||||
// When you call this API to delete tags from a SageMaker Studio Domain or User
|
||||
// Profile, the deleted tags are not removed from Apps that the SageMaker Studio
|
||||
// Domain or User Profile launched before you called this API.
|
||||
// Deletes the specified tags from an 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. When you
|
||||
// call this API to delete tags from a SageMaker Studio Domain or User Profile, the
|
||||
// deleted tags are not removed from Apps that the SageMaker Studio Domain or User
|
||||
// Profile launched before you called this API.
|
||||
func (c *Client) DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns ...func(*Options)) (*DeleteTagsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteTagsInput{}
|
||||
|
||||
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeAction.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeAction.go
generated
vendored
@@ -50,7 +50,7 @@ type DescribeActionOutput struct {
|
||||
ActionType *string
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// When the action was created.
|
||||
@@ -60,12 +60,15 @@ type DescribeActionOutput struct {
|
||||
Description *string
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// When the action was last modified.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The Amazon Resource Name (ARN) of the lineage group.
|
||||
LineageGroupArn *string
|
||||
|
||||
// Metadata properties of the tracking entity, trial, or trial component.
|
||||
MetadataProperties *types.MetadataProperties
|
||||
|
||||
|
||||
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeAlgorithm.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeAlgorithm.go
generated
vendored
@@ -83,8 +83,8 @@ type DescribeAlgorithmOutput struct {
|
||||
// The product identifier of the algorithm.
|
||||
ProductId *string
|
||||
|
||||
// Details about configurations for one or more training jobs that Amazon SageMaker
|
||||
// runs to test the algorithm.
|
||||
// Details about configurations for one or more training jobs that SageMaker runs
|
||||
// to test the algorithm.
|
||||
ValidationSpecification *types.AlgorithmValidationSpecification
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
|
||||
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeArtifact.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeArtifact.go
generated
vendored
@@ -50,19 +50,22 @@ type DescribeArtifactOutput struct {
|
||||
ArtifactType *string
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// When the artifact was created.
|
||||
CreationTime *time.Time
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// When the artifact was last modified.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The Amazon Resource Name (ARN) of the lineage group.
|
||||
LineageGroupArn *string
|
||||
|
||||
// Metadata properties of the tracking entity, trial, or trial component.
|
||||
MetadataProperties *types.MetadataProperties
|
||||
|
||||
|
||||
@@ -126,6 +126,10 @@ type DescribeCompilationJobOutput struct {
|
||||
// Amazon S3.
|
||||
ModelDigests *types.ModelDigests
|
||||
|
||||
// The Amazon Resource Name (ARN) of the versioned model package that was provided
|
||||
// to SageMaker Neo when you initiated a compilation job.
|
||||
ModelPackageVersionArn *string
|
||||
|
||||
// A VpcConfig object that specifies the VPC that you want your compilation job to
|
||||
// connect to. Control access to your models by configuring the VPC. For more
|
||||
// information, see Protect Compilation Jobs by Using an Amazon Virtual Private
|
||||
|
||||
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeContext.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeContext.go
generated
vendored
@@ -50,7 +50,7 @@ type DescribeContextOutput struct {
|
||||
ContextType *string
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// When the context was created.
|
||||
@@ -60,12 +60,15 @@ type DescribeContextOutput struct {
|
||||
Description *string
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// When the context was last modified.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The Amazon Resource Name (ARN) of the lineage group.
|
||||
LineageGroupArn *string
|
||||
|
||||
// A list of the context's properties.
|
||||
Properties map[string]string
|
||||
|
||||
|
||||
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeDomain.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeDomain.go
generated
vendored
@@ -85,7 +85,7 @@ type DescribeDomainOutput struct {
|
||||
// The ID of the Amazon Elastic File System (EFS) managed by this Domain.
|
||||
HomeEfsFileSystemId *string
|
||||
|
||||
// This member is deprecated and replaced with KmsKeyId.
|
||||
// Use KmsKeyId.
|
||||
//
|
||||
// Deprecated: This property is deprecated, use KmsKeyId instead.
|
||||
HomeEfsFileSystemKmsKeyId *string
|
||||
|
||||
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeEndpoint.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeEndpoint.go
generated
vendored
@@ -114,7 +114,7 @@ type DescribeEndpointOutput struct {
|
||||
// API.
|
||||
AsyncInferenceConfig *types.AsyncInferenceConfig
|
||||
|
||||
//
|
||||
// The currently active data capture configuration used by your Endpoint.
|
||||
DataCaptureConfig *types.DataCaptureConfigSummary
|
||||
|
||||
// If the status of the endpoint is Failed, the reason why it failed.
|
||||
|
||||
@@ -51,7 +51,7 @@ type DescribeEndpointConfigOutput struct {
|
||||
// This member is required.
|
||||
EndpointConfigArn *string
|
||||
|
||||
// Name of the Amazon SageMaker endpoint configuration.
|
||||
// Name of the SageMaker endpoint configuration.
|
||||
//
|
||||
// This member is required.
|
||||
EndpointConfigName *string
|
||||
@@ -68,7 +68,7 @@ type DescribeEndpointConfigOutput struct {
|
||||
// API.
|
||||
AsyncInferenceConfig *types.AsyncInferenceConfig
|
||||
|
||||
//
|
||||
// Configuration to control how SageMaker captures inference data.
|
||||
DataCaptureConfig *types.DataCaptureConfig
|
||||
|
||||
// Amazon Web Services KMS key ID Amazon SageMaker uses to encrypt data when
|
||||
|
||||
180
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeInferenceRecommendationsJob.go
generated
vendored
Normal file
180
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeInferenceRecommendationsJob.go
generated
vendored
Normal file
@@ -0,0 +1,180 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package sagemaker
|
||||
|
||||
import (
|
||||
"context"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go-v2/service/sagemaker/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Provides the results of the Inference Recommender job. One or more
|
||||
// recommendation jobs are returned.
|
||||
func (c *Client) DescribeInferenceRecommendationsJob(ctx context.Context, params *DescribeInferenceRecommendationsJobInput, optFns ...func(*Options)) (*DescribeInferenceRecommendationsJobOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeInferenceRecommendationsJobInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeInferenceRecommendationsJob", params, optFns, c.addOperationDescribeInferenceRecommendationsJobMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeInferenceRecommendationsJobOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeInferenceRecommendationsJobInput struct {
|
||||
|
||||
// The name of the job. The name must be unique within an Amazon Web Services
|
||||
// Region in the Amazon Web Services account.
|
||||
//
|
||||
// This member is required.
|
||||
JobName *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeInferenceRecommendationsJobOutput struct {
|
||||
|
||||
// A timestamp that shows when the job was created.
|
||||
//
|
||||
// This member is required.
|
||||
CreationTime *time.Time
|
||||
|
||||
// Returns information about the versioned model package Amazon Resource Name
|
||||
// (ARN), the traffic pattern, and endpoint configurations you provided when you
|
||||
// initiated the job.
|
||||
//
|
||||
// This member is required.
|
||||
InputConfig *types.RecommendationJobInputConfig
|
||||
|
||||
// The Amazon Resource Name (ARN) of the job.
|
||||
//
|
||||
// This member is required.
|
||||
JobArn *string
|
||||
|
||||
// The name of the job. The name must be unique within an Amazon Web Services
|
||||
// Region in the Amazon Web Services account.
|
||||
//
|
||||
// This member is required.
|
||||
JobName *string
|
||||
|
||||
// The job type that you provided when you initiated the job.
|
||||
//
|
||||
// This member is required.
|
||||
JobType types.RecommendationJobType
|
||||
|
||||
// A timestamp that shows when the job was last modified.
|
||||
//
|
||||
// This member is required.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access
|
||||
// Management (IAM) role you provided when you initiated the job.
|
||||
//
|
||||
// This member is required.
|
||||
RoleArn *string
|
||||
|
||||
// The status of the job.
|
||||
//
|
||||
// This member is required.
|
||||
Status types.RecommendationJobStatus
|
||||
|
||||
// A timestamp that shows when the job completed.
|
||||
CompletionTime *time.Time
|
||||
|
||||
// If the job fails, provides information why the job failed.
|
||||
FailureReason *string
|
||||
|
||||
// The recommendations made by Inference Recommender.
|
||||
InferenceRecommendations []types.InferenceRecommendation
|
||||
|
||||
// The job description that you provided when you initiated the job.
|
||||
JobDescription *string
|
||||
|
||||
// The stopping conditions that you provided when you initiated the job.
|
||||
StoppingConditions *types.RecommendationJobStoppingConditions
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeInferenceRecommendationsJobMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeInferenceRecommendationsJob{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetryMiddlewares(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeInferenceRecommendationsJobValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInferenceRecommendationsJob(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeInferenceRecommendationsJob(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: "sagemaker",
|
||||
OperationName: "DescribeInferenceRecommendationsJob",
|
||||
}
|
||||
}
|
||||
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeLabelingJob.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeLabelingJob.go
generated
vendored
@@ -96,8 +96,8 @@ type DescribeLabelingJobOutput struct {
|
||||
// This member is required.
|
||||
OutputConfig *types.LabelingJobOutputConfig
|
||||
|
||||
// The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks on
|
||||
// your behalf during data labeling.
|
||||
// The Amazon Resource Name (ARN) that SageMaker assumes to perform tasks on your
|
||||
// behalf during data labeling.
|
||||
//
|
||||
// This member is required.
|
||||
RoleArn *string
|
||||
|
||||
148
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeLineageGroup.go
generated
vendored
Normal file
148
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeLineageGroup.go
generated
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package sagemaker
|
||||
|
||||
import (
|
||||
"context"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go-v2/service/sagemaker/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Provides a list of properties for the requested lineage group. For more
|
||||
// information, see Cross-Account Lineage Tracking
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/xaccount-lineage-tracking.html)
|
||||
// in the Amazon SageMaker Developer Guide.
|
||||
func (c *Client) DescribeLineageGroup(ctx context.Context, params *DescribeLineageGroupInput, optFns ...func(*Options)) (*DescribeLineageGroupOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeLineageGroupInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeLineageGroup", params, optFns, c.addOperationDescribeLineageGroupMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeLineageGroupOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeLineageGroupInput struct {
|
||||
|
||||
// The name of the lineage group.
|
||||
//
|
||||
// This member is required.
|
||||
LineageGroupName *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeLineageGroupOutput struct {
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// The creation time of lineage group.
|
||||
CreationTime *time.Time
|
||||
|
||||
// The description of the lineage group.
|
||||
Description *string
|
||||
|
||||
// The display name of the lineage group.
|
||||
DisplayName *string
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// The last modified time of the lineage group.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The Amazon Resource Name (ARN) of the lineage group.
|
||||
LineageGroupArn *string
|
||||
|
||||
// The name of the lineage group.
|
||||
LineageGroupName *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeLineageGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeLineageGroup{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeLineageGroup{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetryMiddlewares(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeLineageGroupValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLineageGroup(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeLineageGroup(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: "sagemaker",
|
||||
OperationName: "DescribeLineageGroup",
|
||||
}
|
||||
}
|
||||
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeModel.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeModel.go
generated
vendored
@@ -55,7 +55,7 @@ type DescribeModelOutput struct {
|
||||
// This member is required.
|
||||
ModelArn *string
|
||||
|
||||
// Name of the Amazon SageMaker model.
|
||||
// Name of the SageMaker model.
|
||||
//
|
||||
// This member is required.
|
||||
ModelName *string
|
||||
|
||||
32
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeModelPackage.go
generated
vendored
32
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeModelPackage.go
generated
vendored
@@ -70,6 +70,12 @@ type DescribeModelPackageOutput struct {
|
||||
// This member is required.
|
||||
ModelPackageStatusDetails *types.ModelPackageStatusDetails
|
||||
|
||||
// An array of additional Inference Specification objects. Each additional
|
||||
// Inference Specification specifies artifacts based on this model package that can
|
||||
// be used on inference endpoints. Generally used with SageMaker Neo to store the
|
||||
// compiled artifacts.
|
||||
AdditionalInferenceSpecifications []types.AdditionalInferenceSpecificationDefinition
|
||||
|
||||
// A description provided for the model approval.
|
||||
ApprovalDescription *string
|
||||
|
||||
@@ -78,21 +84,32 @@ type DescribeModelPackageOutput struct {
|
||||
CertifyForMarketplace bool
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// The metadata properties associated with the model package versions.
|
||||
CustomerMetadataProperties map[string]string
|
||||
|
||||
// The machine learning domain of the model package you specified. Common machine
|
||||
// learning domains include computer vision and natural language processing.
|
||||
Domain *string
|
||||
|
||||
// Represents the drift check baselines that can be used when the model monitor is
|
||||
// set using the model package. For more information, see the topic on Drift
|
||||
// Detection against Previous Baselines in SageMaker Pipelines
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-quality-clarify-baseline-lifecycle.html#pipelines-quality-clarify-baseline-drift-detection)
|
||||
// in the Amazon SageMaker Developer Guide.
|
||||
DriftCheckBaselines *types.DriftCheckBaselines
|
||||
|
||||
// Details about inference jobs that can be run with models based on this model
|
||||
// package.
|
||||
InferenceSpecification *types.InferenceSpecification
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// The last time the model package was modified.
|
||||
// The last time that the model package was modified.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// Metadata properties of the tracking entity, trial, or trial component.
|
||||
@@ -114,9 +131,18 @@ type DescribeModelPackageOutput struct {
|
||||
// The version of the model package.
|
||||
ModelPackageVersion *int32
|
||||
|
||||
// The Amazon Simple Storage Service (Amazon S3) path where the sample payload are
|
||||
// stored. This path points to a single gzip compressed tar archive (.tar.gz
|
||||
// suffix).
|
||||
SamplePayloadUrl *string
|
||||
|
||||
// Details about the algorithm that was used to create the model package.
|
||||
SourceAlgorithmSpecification *types.SourceAlgorithmSpecification
|
||||
|
||||
// The machine learning task you specified that your model package accomplishes.
|
||||
// Common machine learning tasks include object detection and image classification.
|
||||
Task *string
|
||||
|
||||
// Configurations for one or more transform jobs that SageMaker runs to test the
|
||||
// model package.
|
||||
ValidationSpecification *types.ModelPackageValidationSpecification
|
||||
|
||||
@@ -30,7 +30,7 @@ func (c *Client) DescribeModelPackageGroup(ctx context.Context, params *Describe
|
||||
|
||||
type DescribeModelPackageGroupInput struct {
|
||||
|
||||
// The name of the model group to describe.
|
||||
// The name of gthe model group to describe.
|
||||
//
|
||||
// This member is required.
|
||||
ModelPackageGroupName *string
|
||||
@@ -41,7 +41,7 @@ type DescribeModelPackageGroupInput struct {
|
||||
type DescribeModelPackageGroupOutput struct {
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
//
|
||||
// This member is required.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
26
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeNotebookInstance.go
generated
vendored
26
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeNotebookInstance.go
generated
vendored
@@ -58,7 +58,7 @@ type DescribeNotebookInstanceOutput struct {
|
||||
// (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
|
||||
// Associating Git Repositories with SageMaker Notebook Instances
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
|
||||
AdditionalCodeRepositories []string
|
||||
|
||||
@@ -73,34 +73,36 @@ type DescribeNotebookInstanceOutput struct {
|
||||
// (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
|
||||
// Git Repositories with SageMaker Notebook Instances
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html).
|
||||
DefaultCodeRepository *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
|
||||
// Describes whether 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 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 types.DirectInternetAccess
|
||||
|
||||
// If status is Failed, the reason it failed.
|
||||
FailureReason *string
|
||||
|
||||
// Information on the IMDS configuration of the notebook instance
|
||||
InstanceMetadataServiceConfiguration *types.InstanceMetadataServiceConfiguration
|
||||
|
||||
// The type of ML compute instance running on the notebook instance.
|
||||
InstanceType types.InstanceType
|
||||
|
||||
// The Amazon Web Services KMS key ID Amazon SageMaker uses to encrypt data when
|
||||
// storing it on the ML storage volume attached to the instance.
|
||||
// The Amazon Web Services KMS key ID SageMaker uses to encrypt data when storing
|
||||
// it on the ML storage volume attached to the instance.
|
||||
KmsKeyId *string
|
||||
|
||||
// A timestamp. Use this parameter to retrieve the time when the notebook instance
|
||||
// was last modified.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The network interface IDs that Amazon SageMaker created at the time of creating
|
||||
// the instance.
|
||||
// The network interface IDs that SageMaker created at the time of creating the
|
||||
// instance.
|
||||
NetworkInterfaceId *string
|
||||
|
||||
// The Amazon Resource Name (ARN) of the notebook instance.
|
||||
@@ -112,7 +114,7 @@ type DescribeNotebookInstanceOutput struct {
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html)
|
||||
NotebookInstanceLifecycleConfigName *string
|
||||
|
||||
// The name of the Amazon SageMaker notebook instance.
|
||||
// The name of the SageMaker notebook instance.
|
||||
NotebookInstanceName *string
|
||||
|
||||
// The status of the notebook instance.
|
||||
|
||||
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribePipeline.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribePipeline.go
generated
vendored
@@ -41,14 +41,14 @@ type DescribePipelineInput struct {
|
||||
type DescribePipelineOutput struct {
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// The time when the pipeline was created.
|
||||
CreationTime *time.Time
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// The time when the pipeline was last modified.
|
||||
@@ -57,6 +57,9 @@ type DescribePipelineOutput struct {
|
||||
// The time when the pipeline was last run.
|
||||
LastRunTime *time.Time
|
||||
|
||||
// Lists the parallelism configuration applied to the pipeline.
|
||||
ParallelismConfiguration *types.ParallelismConfiguration
|
||||
|
||||
// The Amazon Resource Name (ARN) of the pipeline.
|
||||
PipelineArn *string
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ type DescribePipelineExecutionInput struct {
|
||||
type DescribePipelineExecutionOutput struct {
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// The time when the pipeline execution was created.
|
||||
@@ -51,12 +51,15 @@ type DescribePipelineExecutionOutput struct {
|
||||
FailureReason *string
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// The time when the pipeline execution was modified last.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The parallelism configuration applied to the pipeline.
|
||||
ParallelismConfiguration *types.ParallelismConfiguration
|
||||
|
||||
// The Amazon Resource Name (ARN) of the pipeline.
|
||||
PipelineArn *string
|
||||
|
||||
|
||||
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeProject.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeProject.go
generated
vendored
@@ -73,11 +73,11 @@ type DescribeProjectOutput struct {
|
||||
ServiceCatalogProvisioningDetails *types.ServiceCatalogProvisioningDetails
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
CreatedBy *types.UserContext
|
||||
|
||||
// Information about the user who created or modified an experiment, trial, trial
|
||||
// component, or project.
|
||||
// component, lineage group, or project.
|
||||
LastModifiedBy *types.UserContext
|
||||
|
||||
// The timestamp when project was last modified.
|
||||
|
||||
47
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeTrainingJob.go
generated
vendored
47
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_DescribeTrainingJob.go
generated
vendored
@@ -74,11 +74,11 @@ type DescribeTrainingJobOutput struct {
|
||||
|
||||
// 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
|
||||
// SecondaryStatusTransition. SageMaker provides primary statuses and secondary
|
||||
// statuses that apply to each of them: InProgress
|
||||
//
|
||||
// * Starting - Starting
|
||||
// the training job.
|
||||
// * 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
|
||||
@@ -135,11 +135,10 @@ type DescribeTrainingJobOutput struct {
|
||||
|
||||
// Specifies a limit to how long a model training job can run. It also specifies
|
||||
// how long a managed Spot training job has to complete. 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.
|
||||
// time limit, SageMaker ends the training job. Use this API to cap model training
|
||||
// costs. To stop a job, 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.
|
||||
//
|
||||
// This member is required.
|
||||
StoppingCondition *types.StoppingCondition
|
||||
@@ -154,8 +153,8 @@ type DescribeTrainingJobOutput struct {
|
||||
// This member is required.
|
||||
TrainingJobName *string
|
||||
|
||||
// The status of the training job. Amazon SageMaker provides the following training
|
||||
// job statuses:
|
||||
// The status of the training job. SageMaker provides the following training job
|
||||
// statuses:
|
||||
//
|
||||
// * InProgress - The training is in progress.
|
||||
//
|
||||
@@ -182,12 +181,12 @@ type DescribeTrainingJobOutput struct {
|
||||
|
||||
// The billable time in seconds. Billable time refers to the absolute wall-clock
|
||||
// time. Multiply BillableTimeInSeconds by the number of instances (InstanceCount)
|
||||
// in your training cluster to get the total compute time SageMaker will bill you
|
||||
// if you run distributed training. The formula is as follows:
|
||||
// BillableTimeInSeconds * InstanceCount . 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%.
|
||||
// in your training cluster to get the total compute time SageMaker bills you if
|
||||
// you run distributed training. The formula is as follows: BillableTimeInSeconds *
|
||||
// InstanceCount . 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 *int32
|
||||
|
||||
// Contains information about the output location for managed spot training
|
||||
@@ -221,8 +220,8 @@ type DescribeTrainingJobOutput struct {
|
||||
// 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.
|
||||
// SageMaker downloads and uploads customer data and model artifacts through the
|
||||
// specified VPC, but the training container does not have network access.
|
||||
EnableNetworkIsolation bool
|
||||
|
||||
// The environment variables to set in the Docker container.
|
||||
@@ -252,8 +251,8 @@ type DescribeTrainingJobOutput struct {
|
||||
// An array of Channel objects that describes each data input channel.
|
||||
InputDataConfig []types.Channel
|
||||
|
||||
// The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling job
|
||||
// that created the transform or training job.
|
||||
// The Amazon Resource Name (ARN) of the SageMaker Ground Truth labeling job that
|
||||
// created the transform or training job.
|
||||
LabelingJobArn *string
|
||||
|
||||
// A timestamp that indicates when the status of the training job was last
|
||||
@@ -261,7 +260,7 @@ type DescribeTrainingJobOutput struct {
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The S3 path where model artifacts that you configured when creating the job are
|
||||
// stored. Amazon SageMaker creates subfolders for model artifacts.
|
||||
// stored. SageMaker creates subfolders for model artifacts.
|
||||
OutputDataConfig *types.OutputDataConfig
|
||||
|
||||
// Configuration information for Debugger system monitoring, framework profiling,
|
||||
@@ -296,8 +295,8 @@ type DescribeTrainingJobOutput struct {
|
||||
// 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.
|
||||
// artifacts are uploaded. For failed jobs, this is the time when SageMaker detects
|
||||
// a job failure.
|
||||
TrainingEndTime *time.Time
|
||||
|
||||
// Indicates the time when the training job starts on training instances. You are
|
||||
|
||||
@@ -62,6 +62,9 @@ type DescribeTrialComponentOutput struct {
|
||||
// When the component was last modified.
|
||||
LastModifiedTime *time.Time
|
||||
|
||||
// The Amazon Resource Name (ARN) of the lineage group.
|
||||
LineageGroupArn *string
|
||||
|
||||
// Metadata properties of the tracking entity, trial, or trial component.
|
||||
MetadataProperties *types.MetadataProperties
|
||||
|
||||
|
||||
123
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_GetLineageGroupPolicy.go
generated
vendored
Normal file
123
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_GetLineageGroupPolicy.go
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package sagemaker
|
||||
|
||||
import (
|
||||
"context"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// The resource policy for the lineage group.
|
||||
func (c *Client) GetLineageGroupPolicy(ctx context.Context, params *GetLineageGroupPolicyInput, optFns ...func(*Options)) (*GetLineageGroupPolicyOutput, error) {
|
||||
if params == nil {
|
||||
params = &GetLineageGroupPolicyInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "GetLineageGroupPolicy", params, optFns, c.addOperationGetLineageGroupPolicyMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*GetLineageGroupPolicyOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type GetLineageGroupPolicyInput struct {
|
||||
|
||||
// The name or Amazon Resource Name (ARN) of the lineage group.
|
||||
//
|
||||
// This member is required.
|
||||
LineageGroupName *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type GetLineageGroupPolicyOutput struct {
|
||||
|
||||
// The Amazon Resource Name (ARN) of the lineage group.
|
||||
LineageGroupArn *string
|
||||
|
||||
// The resource policy that gives access to the lineage group in another account.
|
||||
ResourcePolicy *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationGetLineageGroupPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetLineageGroupPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetLineageGroupPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetryMiddlewares(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpGetLineageGroupPolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetLineageGroupPolicy(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opGetLineageGroupPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: "sagemaker",
|
||||
OperationName: "GetLineageGroupPolicy",
|
||||
}
|
||||
}
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListActions.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListActions.go
generated
vendored
@@ -181,12 +181,13 @@ func NewListActionsPaginator(client ListActionsAPIClient, params *ListActionsInp
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListActionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListActions page.
|
||||
@@ -213,7 +214,10 @@ func (p *ListActionsPaginator) NextPage(ctx context.Context, optFns ...func(*Opt
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAlgorithms.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAlgorithms.go
generated
vendored
@@ -67,8 +67,8 @@ type ListAlgorithmsOutput struct {
|
||||
// This member is required.
|
||||
AlgorithmSummaryList []types.AlgorithmSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of algorithms, use it in the subsequent request.
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of algorithms, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -184,12 +184,13 @@ func NewListAlgorithmsPaginator(client ListAlgorithmsAPIClient, params *ListAlgo
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListAlgorithmsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListAlgorithms page.
|
||||
@@ -216,7 +217,10 @@ func (p *ListAlgorithmsPaginator) NextPage(ctx context.Context, optFns ...func(*
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAppImageConfigs.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAppImageConfigs.go
generated
vendored
@@ -194,12 +194,13 @@ func NewListAppImageConfigsPaginator(client ListAppImageConfigsAPIClient, params
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListAppImageConfigsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListAppImageConfigs page.
|
||||
@@ -226,7 +227,10 @@ func (p *ListAppImageConfigsPaginator) NextPage(ctx context.Context, optFns ...f
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListApps.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListApps.go
generated
vendored
@@ -173,12 +173,13 @@ func NewListAppsPaginator(client ListAppsAPIClient, params *ListAppsInput, optFn
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListAppsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListApps page.
|
||||
@@ -205,7 +206,10 @@ func (p *ListAppsPaginator) NextPage(ctx context.Context, optFns ...func(*Option
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListArtifacts.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListArtifacts.go
generated
vendored
@@ -181,12 +181,13 @@ func NewListArtifactsPaginator(client ListArtifactsAPIClient, params *ListArtifa
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListArtifactsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListArtifacts page.
|
||||
@@ -213,7 +214,10 @@ func (p *ListArtifactsPaginator) NextPage(ctx context.Context, optFns ...func(*O
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAssociations.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAssociations.go
generated
vendored
@@ -192,12 +192,13 @@ func NewListAssociationsPaginator(client ListAssociationsAPIClient, params *List
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListAssociationsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListAssociations page.
|
||||
@@ -224,7 +225,10 @@ func (p *ListAssociationsPaginator) NextPage(ctx context.Context, optFns ...func
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAutoMLJobs.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListAutoMLJobs.go
generated
vendored
@@ -189,12 +189,13 @@ func NewListAutoMLJobsPaginator(client ListAutoMLJobsAPIClient, params *ListAuto
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListAutoMLJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListAutoMLJobs page.
|
||||
@@ -217,7 +218,10 @@ func (p *ListAutoMLJobsPaginator) NextPage(ctx context.Context, optFns ...func(*
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -187,12 +187,13 @@ func NewListCandidatesForAutoMLJobPaginator(client ListCandidatesForAutoMLJobAPI
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListCandidatesForAutoMLJobPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListCandidatesForAutoMLJob page.
|
||||
@@ -215,7 +216,10 @@ func (p *ListCandidatesForAutoMLJobPaginator) NextPage(ctx context.Context, optF
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListCodeRepositories.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListCodeRepositories.go
generated
vendored
@@ -208,12 +208,13 @@ func NewListCodeRepositoriesPaginator(client ListCodeRepositoriesAPIClient, para
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListCodeRepositoriesPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListCodeRepositories page.
|
||||
@@ -240,7 +241,10 @@ func (p *ListCodeRepositoriesPaginator) NextPage(ctx context.Context, optFns ...
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListCompilationJobs.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListCompilationJobs.go
generated
vendored
@@ -201,12 +201,13 @@ func NewListCompilationJobsPaginator(client ListCompilationJobsAPIClient, params
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListCompilationJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListCompilationJobs page.
|
||||
@@ -233,7 +234,10 @@ func (p *ListCompilationJobsPaginator) NextPage(ctx context.Context, optFns ...f
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListContexts.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListContexts.go
generated
vendored
@@ -181,12 +181,13 @@ func NewListContextsPaginator(client ListContextsAPIClient, params *ListContexts
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListContextsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListContexts page.
|
||||
@@ -213,7 +214,10 @@ func (p *ListContextsPaginator) NextPage(ctx context.Context, optFns ...func(*Op
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -195,12 +195,13 @@ func NewListDataQualityJobDefinitionsPaginator(client ListDataQualityJobDefiniti
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListDataQualityJobDefinitionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListDataQualityJobDefinitions page.
|
||||
@@ -227,7 +228,10 @@ func (p *ListDataQualityJobDefinitionsPaginator) NextPage(ctx context.Context, o
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListDeviceFleets.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListDeviceFleets.go
generated
vendored
@@ -186,12 +186,13 @@ func NewListDeviceFleetsPaginator(client ListDeviceFleetsAPIClient, params *List
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListDeviceFleetsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListDeviceFleets page.
|
||||
@@ -214,7 +215,10 @@ func (p *ListDeviceFleetsPaginator) NextPage(ctx context.Context, optFns ...func
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListDevices.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListDevices.go
generated
vendored
@@ -173,12 +173,13 @@ func NewListDevicesPaginator(client ListDevicesAPIClient, params *ListDevicesInp
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListDevicesPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListDevices page.
|
||||
@@ -201,7 +202,10 @@ func (p *ListDevicesPaginator) NextPage(ctx context.Context, optFns ...func(*Opt
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListDomains.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListDomains.go
generated
vendored
@@ -161,12 +161,13 @@ func NewListDomainsPaginator(client ListDomainsAPIClient, params *ListDomainsInp
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListDomainsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListDomains page.
|
||||
@@ -193,7 +194,10 @@ func (p *ListDomainsPaginator) NextPage(ctx context.Context, optFns ...func(*Opt
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -192,12 +192,13 @@ func NewListEdgePackagingJobsPaginator(client ListEdgePackagingJobsAPIClient, pa
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListEdgePackagingJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListEdgePackagingJobs page.
|
||||
@@ -220,7 +221,10 @@ func (p *ListEdgePackagingJobsPaginator) NextPage(ctx context.Context, optFns ..
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListEndpointConfigs.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListEndpointConfigs.go
generated
vendored
@@ -67,8 +67,8 @@ type ListEndpointConfigsOutput struct {
|
||||
// This member is required.
|
||||
EndpointConfigs []types.EndpointConfigSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of endpoint configurations, use it in the subsequent request
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of endpoint configurations, use it in the subsequent request
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -185,12 +185,13 @@ func NewListEndpointConfigsPaginator(client ListEndpointConfigsAPIClient, params
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListEndpointConfigsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListEndpointConfigs page.
|
||||
@@ -217,7 +218,10 @@ func (p *ListEndpointConfigsPaginator) NextPage(ctx context.Context, optFns ...f
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListEndpoints.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListEndpoints.go
generated
vendored
@@ -79,8 +79,8 @@ type ListEndpointsOutput struct {
|
||||
// This member is required.
|
||||
Endpoints []types.EndpointSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of training jobs, use it in the subsequent request.
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of training jobs, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -196,12 +196,13 @@ func NewListEndpointsPaginator(client ListEndpointsAPIClient, params *ListEndpoi
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListEndpointsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListEndpoints page.
|
||||
@@ -228,7 +229,10 @@ func (p *ListEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*O
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListExperiments.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListExperiments.go
generated
vendored
@@ -178,12 +178,13 @@ func NewListExperimentsPaginator(client ListExperimentsAPIClient, params *ListEx
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListExperimentsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListExperiments page.
|
||||
@@ -210,7 +211,10 @@ func (p *ListExperimentsPaginator) NextPage(ctx context.Context, optFns ...func(
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListFlowDefinitions.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListFlowDefinitions.go
generated
vendored
@@ -180,12 +180,13 @@ func NewListFlowDefinitionsPaginator(client ListFlowDefinitionsAPIClient, params
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListFlowDefinitionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListFlowDefinitions page.
|
||||
@@ -212,7 +213,10 @@ func (p *ListFlowDefinitionsPaginator) NextPage(ctx context.Context, optFns ...f
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListHumanTaskUis.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListHumanTaskUis.go
generated
vendored
@@ -179,12 +179,13 @@ func NewListHumanTaskUisPaginator(client ListHumanTaskUisAPIClient, params *List
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListHumanTaskUisPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListHumanTaskUis page.
|
||||
@@ -211,7 +212,10 @@ func (p *ListHumanTaskUisPaginator) NextPage(ctx context.Context, optFns ...func
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -201,12 +201,13 @@ func NewListHyperParameterTuningJobsPaginator(client ListHyperParameterTuningJob
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListHyperParameterTuningJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListHyperParameterTuningJobs page.
|
||||
@@ -233,7 +234,10 @@ func (p *ListHyperParameterTuningJobsPaginator) NextPage(ctx context.Context, op
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListImageVersions.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListImageVersions.go
generated
vendored
@@ -191,12 +191,13 @@ func NewListImageVersionsPaginator(client ListImageVersionsAPIClient, params *Li
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListImageVersionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListImageVersions page.
|
||||
@@ -223,7 +224,10 @@ func (p *ListImageVersionsPaginator) NextPage(ctx context.Context, optFns ...fun
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListImages.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListImages.go
generated
vendored
@@ -184,12 +184,13 @@ func NewListImagesPaginator(client ListImagesAPIClient, params *ListImagesInput,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListImagesPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListImages page.
|
||||
@@ -216,7 +217,10 @@ func (p *ListImagesPaginator) NextPage(ctx context.Context, optFns ...func(*Opti
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
249
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListInferenceRecommendationsJobs.go
generated
vendored
Normal file
249
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListInferenceRecommendationsJobs.go
generated
vendored
Normal file
@@ -0,0 +1,249 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package sagemaker
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go-v2/service/sagemaker/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Lists recommendation jobs that satisfy various filters.
|
||||
func (c *Client) ListInferenceRecommendationsJobs(ctx context.Context, params *ListInferenceRecommendationsJobsInput, optFns ...func(*Options)) (*ListInferenceRecommendationsJobsOutput, error) {
|
||||
if params == nil {
|
||||
params = &ListInferenceRecommendationsJobsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "ListInferenceRecommendationsJobs", params, optFns, c.addOperationListInferenceRecommendationsJobsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*ListInferenceRecommendationsJobsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type ListInferenceRecommendationsJobsInput struct {
|
||||
|
||||
// A filter that returns only jobs created after the specified time (timestamp).
|
||||
CreationTimeAfter *time.Time
|
||||
|
||||
// A filter that returns only jobs created before the specified time (timestamp).
|
||||
CreationTimeBefore *time.Time
|
||||
|
||||
// A filter that returns only jobs that were last modified after the specified time
|
||||
// (timestamp).
|
||||
LastModifiedTimeAfter *time.Time
|
||||
|
||||
// A filter that returns only jobs that were last modified before the specified
|
||||
// time (timestamp).
|
||||
LastModifiedTimeBefore *time.Time
|
||||
|
||||
// The maximum number of recommendations to return in the response.
|
||||
MaxResults *int32
|
||||
|
||||
// A string in the job name. This filter returns only recommendations whose name
|
||||
// contains the specified string.
|
||||
NameContains *string
|
||||
|
||||
// If the response to a previous ListInferenceRecommendationsJobsRequest request
|
||||
// was truncated, the response includes a NextToken. To retrieve the next set of
|
||||
// recommendations, use the token in the next request.
|
||||
NextToken *string
|
||||
|
||||
// The parameter by which to sort the results.
|
||||
SortBy types.ListInferenceRecommendationsJobsSortBy
|
||||
|
||||
// The sort order for the results.
|
||||
SortOrder types.SortOrder
|
||||
|
||||
// A filter that retrieves only inference recommendations jobs with a specific
|
||||
// status.
|
||||
StatusEquals types.RecommendationJobStatus
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type ListInferenceRecommendationsJobsOutput struct {
|
||||
|
||||
// The recommendations created from the Amazon SageMaker Inference Recommender job.
|
||||
//
|
||||
// This member is required.
|
||||
InferenceRecommendationsJobs []types.InferenceRecommendationsJob
|
||||
|
||||
// A token for getting the next set of recommendations, if there are any.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationListInferenceRecommendationsJobsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListInferenceRecommendationsJobs{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListInferenceRecommendationsJobs{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetryMiddlewares(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInferenceRecommendationsJobs(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ListInferenceRecommendationsJobsAPIClient is a client that implements the
|
||||
// ListInferenceRecommendationsJobs operation.
|
||||
type ListInferenceRecommendationsJobsAPIClient interface {
|
||||
ListInferenceRecommendationsJobs(context.Context, *ListInferenceRecommendationsJobsInput, ...func(*Options)) (*ListInferenceRecommendationsJobsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListInferenceRecommendationsJobsAPIClient = (*Client)(nil)
|
||||
|
||||
// ListInferenceRecommendationsJobsPaginatorOptions is the paginator options for
|
||||
// ListInferenceRecommendationsJobs
|
||||
type ListInferenceRecommendationsJobsPaginatorOptions struct {
|
||||
// The maximum number of recommendations to return in the response.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// ListInferenceRecommendationsJobsPaginator is a paginator for
|
||||
// ListInferenceRecommendationsJobs
|
||||
type ListInferenceRecommendationsJobsPaginator struct {
|
||||
options ListInferenceRecommendationsJobsPaginatorOptions
|
||||
client ListInferenceRecommendationsJobsAPIClient
|
||||
params *ListInferenceRecommendationsJobsInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewListInferenceRecommendationsJobsPaginator returns a new
|
||||
// ListInferenceRecommendationsJobsPaginator
|
||||
func NewListInferenceRecommendationsJobsPaginator(client ListInferenceRecommendationsJobsAPIClient, params *ListInferenceRecommendationsJobsInput, optFns ...func(*ListInferenceRecommendationsJobsPaginatorOptions)) *ListInferenceRecommendationsJobsPaginator {
|
||||
if params == nil {
|
||||
params = &ListInferenceRecommendationsJobsInput{}
|
||||
}
|
||||
|
||||
options := ListInferenceRecommendationsJobsPaginatorOptions{}
|
||||
if params.MaxResults != nil {
|
||||
options.Limit = *params.MaxResults
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &ListInferenceRecommendationsJobsPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListInferenceRecommendationsJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListInferenceRecommendationsJobs page.
|
||||
func (p *ListInferenceRecommendationsJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInferenceRecommendationsJobsOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.NextToken = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxResults = limit
|
||||
|
||||
result, err := p.client.ListInferenceRecommendationsJobs(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opListInferenceRecommendationsJobs(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: "sagemaker",
|
||||
OperationName: "ListInferenceRecommendationsJobs",
|
||||
}
|
||||
}
|
||||
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListLabelingJobs.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListLabelingJobs.go
generated
vendored
@@ -76,8 +76,8 @@ type ListLabelingJobsOutput struct {
|
||||
// An array of LabelingJobSummary objects, each describing a labeling job.
|
||||
LabelingJobSummaryList []types.LabelingJobSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of labeling jobs, use it in the subsequent request.
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of labeling jobs, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -193,12 +193,13 @@ func NewListLabelingJobsPaginator(client ListLabelingJobsAPIClient, params *List
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListLabelingJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListLabelingJobs page.
|
||||
@@ -225,7 +226,10 @@ func (p *ListLabelingJobsPaginator) NextPage(ctx context.Context, optFns ...func
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -73,8 +73,8 @@ type ListLabelingJobsForWorkteamOutput struct {
|
||||
// This member is required.
|
||||
LabelingJobSummaryList []types.LabelingJobForWorkteamSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of labeling jobs, use it in the subsequent request.
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of labeling jobs, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -196,12 +196,13 @@ func NewListLabelingJobsForWorkteamPaginator(client ListLabelingJobsForWorkteamA
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListLabelingJobsForWorkteamPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListLabelingJobsForWorkteam page.
|
||||
@@ -228,7 +229,10 @@ func (p *ListLabelingJobsForWorkteamPaginator) NextPage(ctx context.Context, opt
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
235
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListLineageGroups.go
generated
vendored
Normal file
235
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListLineageGroups.go
generated
vendored
Normal file
@@ -0,0 +1,235 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package sagemaker
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go-v2/service/sagemaker/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// A list of lineage groups shared with your Amazon Web Services account. For more
|
||||
// information, see Cross-Account Lineage Tracking
|
||||
// (https://docs.aws.amazon.com/sagemaker/latest/dg/xaccount-lineage-tracking.html)
|
||||
// in the Amazon SageMaker Developer Guide.
|
||||
func (c *Client) ListLineageGroups(ctx context.Context, params *ListLineageGroupsInput, optFns ...func(*Options)) (*ListLineageGroupsOutput, error) {
|
||||
if params == nil {
|
||||
params = &ListLineageGroupsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "ListLineageGroups", params, optFns, c.addOperationListLineageGroupsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*ListLineageGroupsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type ListLineageGroupsInput struct {
|
||||
|
||||
// A timestamp to filter against lineage groups created after a certain point in
|
||||
// time.
|
||||
CreatedAfter *time.Time
|
||||
|
||||
// A timestamp to filter against lineage groups created before a certain point in
|
||||
// time.
|
||||
CreatedBefore *time.Time
|
||||
|
||||
// The maximum number of endpoints to return in the response. This value defaults
|
||||
// to 10.
|
||||
MaxResults *int32
|
||||
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of algorithms, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// The parameter by which to sort the results. The default is CreationTime.
|
||||
SortBy types.SortLineageGroupsBy
|
||||
|
||||
// The sort order for the results. The default is Ascending.
|
||||
SortOrder types.SortOrder
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type ListLineageGroupsOutput struct {
|
||||
|
||||
// A list of lineage groups and their properties.
|
||||
LineageGroupSummaries []types.LineageGroupSummary
|
||||
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of algorithms, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationListLineageGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListLineageGroups{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListLineageGroups{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetryMiddlewares(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListLineageGroups(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ListLineageGroupsAPIClient is a client that implements the ListLineageGroups
|
||||
// operation.
|
||||
type ListLineageGroupsAPIClient interface {
|
||||
ListLineageGroups(context.Context, *ListLineageGroupsInput, ...func(*Options)) (*ListLineageGroupsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListLineageGroupsAPIClient = (*Client)(nil)
|
||||
|
||||
// ListLineageGroupsPaginatorOptions is the paginator options for ListLineageGroups
|
||||
type ListLineageGroupsPaginatorOptions struct {
|
||||
// The maximum number of endpoints to return in the response. This value defaults
|
||||
// to 10.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// ListLineageGroupsPaginator is a paginator for ListLineageGroups
|
||||
type ListLineageGroupsPaginator struct {
|
||||
options ListLineageGroupsPaginatorOptions
|
||||
client ListLineageGroupsAPIClient
|
||||
params *ListLineageGroupsInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewListLineageGroupsPaginator returns a new ListLineageGroupsPaginator
|
||||
func NewListLineageGroupsPaginator(client ListLineageGroupsAPIClient, params *ListLineageGroupsInput, optFns ...func(*ListLineageGroupsPaginatorOptions)) *ListLineageGroupsPaginator {
|
||||
if params == nil {
|
||||
params = &ListLineageGroupsInput{}
|
||||
}
|
||||
|
||||
options := ListLineageGroupsPaginatorOptions{}
|
||||
if params.MaxResults != nil {
|
||||
options.Limit = *params.MaxResults
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &ListLineageGroupsPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListLineageGroupsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListLineageGroups page.
|
||||
func (p *ListLineageGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLineageGroupsOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.NextToken = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxResults = limit
|
||||
|
||||
result, err := p.client.ListLineageGroups(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opListLineageGroups(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: "sagemaker",
|
||||
OperationName: "ListLineageGroups",
|
||||
}
|
||||
}
|
||||
@@ -190,12 +190,13 @@ func NewListModelBiasJobDefinitionsPaginator(client ListModelBiasJobDefinitionsA
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListModelBiasJobDefinitionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListModelBiasJobDefinitions page.
|
||||
@@ -222,7 +223,10 @@ func (p *ListModelBiasJobDefinitionsPaginator) NextPage(ctx context.Context, opt
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -190,12 +190,13 @@ func NewListModelExplainabilityJobDefinitionsPaginator(client ListModelExplainab
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListModelExplainabilityJobDefinitionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListModelExplainabilityJobDefinitions page.
|
||||
@@ -222,7 +223,10 @@ func (p *ListModelExplainabilityJobDefinitionsPaginator) NextPage(ctx context.Co
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
227
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListModelMetadata.go
generated
vendored
Normal file
227
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListModelMetadata.go
generated
vendored
Normal file
@@ -0,0 +1,227 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package sagemaker
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go-v2/service/sagemaker/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Lists the domain, framework, task, and model name of standard machine learning
|
||||
// models found in common model zoos.
|
||||
func (c *Client) ListModelMetadata(ctx context.Context, params *ListModelMetadataInput, optFns ...func(*Options)) (*ListModelMetadataOutput, error) {
|
||||
if params == nil {
|
||||
params = &ListModelMetadataInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "ListModelMetadata", params, optFns, c.addOperationListModelMetadataMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*ListModelMetadataOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type ListModelMetadataInput struct {
|
||||
|
||||
// The maximum number of models to return in the response.
|
||||
MaxResults *int32
|
||||
|
||||
// If the response to a previous ListModelMetadataResponse request was truncated,
|
||||
// the response includes a NextToken. To retrieve the next set of model metadata,
|
||||
// use the token in the next request.
|
||||
NextToken *string
|
||||
|
||||
// One or more filters 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. Specify the Framework, FrameworkVersion, Domain
|
||||
// or Task to filter supported. Filter names and values are case-sensitive.
|
||||
SearchExpression *types.ModelMetadataSearchExpression
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type ListModelMetadataOutput struct {
|
||||
|
||||
// A structure that holds model metadata.
|
||||
//
|
||||
// This member is required.
|
||||
ModelMetadataSummaries []types.ModelMetadataSummary
|
||||
|
||||
// A token for getting the next set of recommendations, if there are any.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationListModelMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListModelMetadata{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListModelMetadata{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetryMiddlewares(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpListModelMetadataValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListModelMetadata(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ListModelMetadataAPIClient is a client that implements the ListModelMetadata
|
||||
// operation.
|
||||
type ListModelMetadataAPIClient interface {
|
||||
ListModelMetadata(context.Context, *ListModelMetadataInput, ...func(*Options)) (*ListModelMetadataOutput, error)
|
||||
}
|
||||
|
||||
var _ ListModelMetadataAPIClient = (*Client)(nil)
|
||||
|
||||
// ListModelMetadataPaginatorOptions is the paginator options for ListModelMetadata
|
||||
type ListModelMetadataPaginatorOptions struct {
|
||||
// The maximum number of models to return in the response.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// ListModelMetadataPaginator is a paginator for ListModelMetadata
|
||||
type ListModelMetadataPaginator struct {
|
||||
options ListModelMetadataPaginatorOptions
|
||||
client ListModelMetadataAPIClient
|
||||
params *ListModelMetadataInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewListModelMetadataPaginator returns a new ListModelMetadataPaginator
|
||||
func NewListModelMetadataPaginator(client ListModelMetadataAPIClient, params *ListModelMetadataInput, optFns ...func(*ListModelMetadataPaginatorOptions)) *ListModelMetadataPaginator {
|
||||
if params == nil {
|
||||
params = &ListModelMetadataInput{}
|
||||
}
|
||||
|
||||
options := ListModelMetadataPaginatorOptions{}
|
||||
if params.MaxResults != nil {
|
||||
options.Limit = *params.MaxResults
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &ListModelMetadataPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListModelMetadataPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListModelMetadata page.
|
||||
func (p *ListModelMetadataPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListModelMetadataOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.NextToken = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxResults = limit
|
||||
|
||||
result, err := p.client.ListModelMetadata(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opListModelMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: "sagemaker",
|
||||
OperationName: "ListModelMetadata",
|
||||
}
|
||||
}
|
||||
@@ -183,12 +183,13 @@ func NewListModelPackageGroupsPaginator(client ListModelPackageGroupsAPIClient,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListModelPackageGroupsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListModelPackageGroups page.
|
||||
@@ -215,7 +216,10 @@ func (p *ListModelPackageGroupsPaginator) NextPage(ctx context.Context, optFns .
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
27
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListModelPackages.go
generated
vendored
27
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListModelPackages.go
generated
vendored
@@ -50,16 +50,17 @@ type ListModelPackagesInput struct {
|
||||
// group.
|
||||
ModelPackageGroupName *string
|
||||
|
||||
// A filter that returns onlyl the model packages of the specified type. This can
|
||||
// be one of the following values.
|
||||
// A filter that returns only the model packages of the specified type. This can be
|
||||
// one of the following values.
|
||||
//
|
||||
// * VERSIONED - List only versioned models.
|
||||
// * UNVERSIONED - List only unversioined models.
|
||||
// This is the default value if no ModelPackageType is specified.
|
||||
//
|
||||
// *
|
||||
// UNVERSIONED - List only unversioined models.
|
||||
// * VERSIONED -
|
||||
// List only versioned models.
|
||||
//
|
||||
// * BOTH - List both versioned and
|
||||
// unversioned models.
|
||||
// * BOTH - List both versioned and unversioned
|
||||
// models.
|
||||
ModelPackageType types.ModelPackageType
|
||||
|
||||
// A string in the model package name. This filter returns only model packages
|
||||
@@ -87,8 +88,8 @@ type ListModelPackagesOutput struct {
|
||||
// This member is required.
|
||||
ModelPackageSummaryList []types.ModelPackageSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of model packages, use it in the subsequent request.
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of model packages, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -204,12 +205,13 @@ func NewListModelPackagesPaginator(client ListModelPackagesAPIClient, params *Li
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListModelPackagesPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListModelPackages page.
|
||||
@@ -236,7 +238,10 @@ func (p *ListModelPackagesPaginator) NextPage(ctx context.Context, optFns ...fun
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -194,12 +194,13 @@ func NewListModelQualityJobDefinitionsPaginator(client ListModelQualityJobDefini
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListModelQualityJobDefinitionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListModelQualityJobDefinitions page.
|
||||
@@ -226,7 +227,10 @@ func (p *ListModelQualityJobDefinitionsPaginator) NextPage(ctx context.Context,
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListModels.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListModels.go
generated
vendored
@@ -66,8 +66,8 @@ type ListModelsOutput struct {
|
||||
// This member is required.
|
||||
Models []types.ModelSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of models, use it in the subsequent request.
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of models, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -182,12 +182,13 @@ func NewListModelsPaginator(client ListModelsAPIClient, params *ListModelsInput,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListModelsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListModels page.
|
||||
@@ -214,7 +215,10 @@ func (p *ListModelsPaginator) NextPage(ctx context.Context, optFns ...func(*Opti
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -210,12 +210,13 @@ func NewListMonitoringExecutionsPaginator(client ListMonitoringExecutionsAPIClie
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListMonitoringExecutionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListMonitoringExecutions page.
|
||||
@@ -242,7 +243,10 @@ func (p *ListMonitoringExecutionsPaginator) NextPage(ctx context.Context, optFns
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -206,12 +206,13 @@ func NewListMonitoringSchedulesPaginator(client ListMonitoringSchedulesAPIClient
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListMonitoringSchedulesPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListMonitoringSchedules page.
|
||||
@@ -238,7 +239,10 @@ func (p *ListMonitoringSchedulesPaginator) NextPage(ctx context.Context, optFns
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -71,8 +71,8 @@ type ListNotebookInstanceLifecycleConfigsInput struct {
|
||||
|
||||
type ListNotebookInstanceLifecycleConfigsOutput struct {
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To get the
|
||||
// next set of lifecycle configurations, use it in the next request.
|
||||
// If the response is truncated, SageMaker returns this token. To get the next set
|
||||
// of lifecycle configurations, use it in the next request.
|
||||
NextToken *string
|
||||
|
||||
// An array of NotebookInstanceLifecycleConfiguration objects, each listing a
|
||||
@@ -195,12 +195,13 @@ func NewListNotebookInstanceLifecycleConfigsPaginator(client ListNotebookInstanc
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListNotebookInstanceLifecycleConfigsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListNotebookInstanceLifecycleConfigs page.
|
||||
@@ -227,7 +228,10 @@ func (p *ListNotebookInstanceLifecycleConfigsPaginator) NextPage(ctx context.Con
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
16
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListNotebookInstances.go
generated
vendored
16
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListNotebookInstances.go
generated
vendored
@@ -13,8 +13,8 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Returns a list of the Amazon SageMaker notebook instances in the requester's
|
||||
// account in an Amazon Web Services Region.
|
||||
// Returns a list of the SageMaker notebook instances in the requester's account in
|
||||
// an Amazon Web Services Region.
|
||||
func (c *Client) ListNotebookInstances(ctx context.Context, params *ListNotebookInstancesInput, optFns ...func(*Options)) (*ListNotebookInstancesOutput, error) {
|
||||
if params == nil {
|
||||
params = &ListNotebookInstancesInput{}
|
||||
@@ -93,8 +93,8 @@ type ListNotebookInstancesInput struct {
|
||||
type ListNotebookInstancesOutput struct {
|
||||
|
||||
// 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.
|
||||
// SageMaker returns this token. To retrieve the next set of notebook instances,
|
||||
// use the token in the next request.
|
||||
NextToken *string
|
||||
|
||||
// An array of NotebookInstanceSummary objects, one for each notebook instance.
|
||||
@@ -214,12 +214,13 @@ func NewListNotebookInstancesPaginator(client ListNotebookInstancesAPIClient, pa
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListNotebookInstancesPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListNotebookInstances page.
|
||||
@@ -246,7 +247,10 @@ func (p *ListNotebookInstancesPaginator) NextPage(ctx context.Context, optFns ..
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -176,12 +176,13 @@ func NewListPipelineExecutionStepsPaginator(client ListPipelineExecutionStepsAPI
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListPipelineExecutionStepsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListPipelineExecutionSteps page.
|
||||
@@ -208,7 +209,10 @@ func (p *ListPipelineExecutionStepsPaginator) NextPage(ctx context.Context, optF
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -190,12 +190,13 @@ func NewListPipelineExecutionsPaginator(client ListPipelineExecutionsAPIClient,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListPipelineExecutionsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListPipelineExecutions page.
|
||||
@@ -222,7 +223,10 @@ func (p *ListPipelineExecutionsPaginator) NextPage(ctx context.Context, optFns .
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -175,12 +175,13 @@ func NewListPipelineParametersForExecutionPaginator(client ListPipelineParameter
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListPipelineParametersForExecutionPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListPipelineParametersForExecution page.
|
||||
@@ -207,7 +208,10 @@ func (p *ListPipelineParametersForExecutionPaginator) NextPage(ctx context.Conte
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListPipelines.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListPipelines.go
generated
vendored
@@ -182,12 +182,13 @@ func NewListPipelinesPaginator(client ListPipelinesAPIClient, params *ListPipeli
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListPipelinesPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListPipelines page.
|
||||
@@ -214,7 +215,10 @@ func (p *ListPipelinesPaginator) NextPage(ctx context.Context, optFns ...func(*O
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListProcessingJobs.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListProcessingJobs.go
generated
vendored
@@ -192,12 +192,13 @@ func NewListProcessingJobsPaginator(client ListProcessingJobsAPIClient, params *
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListProcessingJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListProcessingJobs page.
|
||||
@@ -224,7 +225,10 @@ func (p *ListProcessingJobsPaginator) NextPage(ctx context.Context, optFns ...fu
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListProjects.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListProjects.go
generated
vendored
@@ -181,12 +181,13 @@ func NewListProjectsPaginator(client ListProjectsAPIClient, params *ListProjects
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListProjectsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListProjects page.
|
||||
@@ -213,7 +214,10 @@ func (p *ListProjectsPaginator) NextPage(ctx context.Context, optFns ...func(*Op
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -198,12 +198,13 @@ func NewListStudioLifecycleConfigsPaginator(client ListStudioLifecycleConfigsAPI
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListStudioLifecycleConfigsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListStudioLifecycleConfigs page.
|
||||
@@ -230,7 +231,10 @@ func (p *ListStudioLifecycleConfigsPaginator) NextPage(ctx context.Context, optF
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -173,12 +173,13 @@ func NewListSubscribedWorkteamsPaginator(client ListSubscribedWorkteamsAPIClient
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListSubscribedWorkteamsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListSubscribedWorkteams page.
|
||||
@@ -205,7 +206,10 @@ func (p *ListSubscribedWorkteamsPaginator) NextPage(ctx context.Context, optFns
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
19
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTags.go
generated
vendored
19
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTags.go
generated
vendored
@@ -12,7 +12,7 @@ import (
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the tags for the specified Amazon SageMaker resource.
|
||||
// Returns the tags for the specified SageMaker resource.
|
||||
func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error) {
|
||||
if params == nil {
|
||||
params = &ListTagsInput{}
|
||||
@@ -38,9 +38,8 @@ type ListTagsInput struct {
|
||||
// Maximum number of tags to return.
|
||||
MaxResults *int32
|
||||
|
||||
// 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.
|
||||
// If the response to the previous ListTags request is truncated, SageMaker returns
|
||||
// this token. To retrieve the next set of tags, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
@@ -48,8 +47,8 @@ type ListTagsInput struct {
|
||||
|
||||
type ListTagsOutput struct {
|
||||
|
||||
// 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.
|
||||
// If response is truncated, SageMaker includes a token in the response. You can
|
||||
// use this token in your subsequent request to fetch next set of tokens.
|
||||
NextToken *string
|
||||
|
||||
// An array of Tag objects, each with a tag key and a value.
|
||||
@@ -170,12 +169,13 @@ func NewListTagsPaginator(client ListTagsAPIClient, params *ListTagsInput, optFn
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListTagsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListTags page.
|
||||
@@ -202,7 +202,10 @@ func (p *ListTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Option
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTrainingJobs.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTrainingJobs.go
generated
vendored
@@ -87,8 +87,8 @@ type ListTrainingJobsOutput struct {
|
||||
// This member is required.
|
||||
TrainingJobSummaries []types.TrainingJobSummary
|
||||
|
||||
// If the response is truncated, Amazon SageMaker returns this token. To retrieve
|
||||
// the next set of training jobs, use it in the subsequent request.
|
||||
// If the response is truncated, SageMaker returns this token. To retrieve the next
|
||||
// set of training jobs, use it in the subsequent request.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
@@ -204,12 +204,13 @@ func NewListTrainingJobsPaginator(client ListTrainingJobsAPIClient, params *List
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListTrainingJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListTrainingJobs page.
|
||||
@@ -236,7 +237,10 @@ func (p *ListTrainingJobsPaginator) NextPage(ctx context.Context, optFns ...func
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -190,12 +190,13 @@ func NewListTrainingJobsForHyperParameterTuningJobPaginator(client ListTrainingJ
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListTrainingJobsForHyperParameterTuningJobPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListTrainingJobsForHyperParameterTuningJob page.
|
||||
@@ -222,7 +223,10 @@ func (p *ListTrainingJobsForHyperParameterTuningJobPaginator) NextPage(ctx conte
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTransformJobs.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTransformJobs.go
generated
vendored
@@ -193,12 +193,13 @@ func NewListTransformJobsPaginator(client ListTransformJobsAPIClient, params *Li
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListTransformJobsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListTransformJobs page.
|
||||
@@ -225,7 +226,10 @@ func (p *ListTransformJobsPaginator) NextPage(ctx context.Context, optFns ...fun
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTrialComponents.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTrialComponents.go
generated
vendored
@@ -199,12 +199,13 @@ func NewListTrialComponentsPaginator(client ListTrialComponentsAPIClient, params
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListTrialComponentsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListTrialComponents page.
|
||||
@@ -231,7 +232,10 @@ func (p *ListTrialComponentsPaginator) NextPage(ctx context.Context, optFns ...f
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTrials.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/sagemaker/api_op_ListTrials.go
generated
vendored
@@ -184,12 +184,13 @@ func NewListTrialsPaginator(client ListTrialsAPIClient, params *ListTrialsInput,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListTrialsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || p.nextToken != nil
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListTrials page.
|
||||
@@ -216,7 +217,10 @@ func (p *ListTrialsPaginator) NextPage(ctx context.Context, optFns ...func(*Opti
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user