repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-go-v2
aws
Go
// 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" ) // Gets a list of the work teams that you are subscribed to in the Amazon Web // Services Marketplace. The list may be empty if no work team satisfies the filter // specified in the NameContains parameter. func (c *Client) ListSubscribedWorkteams(ctx context.Context, params *ListSubscribedWorkteamsInput, optFns ...func(*Options)) (*ListSubscribedWorkteamsOutput, error) { if params == nil { params = &ListSubscribedWorkteamsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListSubscribedWorkteams", params, optFns, c.addOperationListSubscribedWorkteamsMiddlewares) if err != nil { return nil, err } out := result.(*ListSubscribedWorkteamsOutput) out.ResultMetadata = metadata return out, nil } type ListSubscribedWorkteamsInput struct { // The maximum number of work teams to return in each page of the response. MaxResults *int32 // A string in the work team name. This filter returns only work teams whose name // contains the specified string. NameContains *string // If the result of the previous ListSubscribedWorkteams request was truncated, // the response includes a NextToken . To retrieve the next set of labeling jobs, // use the token in the next request. NextToken *string noSmithyDocumentSerde } type ListSubscribedWorkteamsOutput struct { // An array of Workteam objects, each describing a work team. // // This member is required. SubscribedWorkteams []types.SubscribedWorkteam // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of work teams, use it in the subsequent request. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListSubscribedWorkteamsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSubscribedWorkteams{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSubscribedWorkteams{}, 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_opListSubscribedWorkteams(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListSubscribedWorkteamsAPIClient is a client that implements the // ListSubscribedWorkteams operation. type ListSubscribedWorkteamsAPIClient interface { ListSubscribedWorkteams(context.Context, *ListSubscribedWorkteamsInput, ...func(*Options)) (*ListSubscribedWorkteamsOutput, error) } var _ ListSubscribedWorkteamsAPIClient = (*Client)(nil) // ListSubscribedWorkteamsPaginatorOptions is the paginator options for // ListSubscribedWorkteams type ListSubscribedWorkteamsPaginatorOptions struct { // The maximum number of work teams to return in each page of 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 } // ListSubscribedWorkteamsPaginator is a paginator for ListSubscribedWorkteams type ListSubscribedWorkteamsPaginator struct { options ListSubscribedWorkteamsPaginatorOptions client ListSubscribedWorkteamsAPIClient params *ListSubscribedWorkteamsInput nextToken *string firstPage bool } // NewListSubscribedWorkteamsPaginator returns a new // ListSubscribedWorkteamsPaginator func NewListSubscribedWorkteamsPaginator(client ListSubscribedWorkteamsAPIClient, params *ListSubscribedWorkteamsInput, optFns ...func(*ListSubscribedWorkteamsPaginatorOptions)) *ListSubscribedWorkteamsPaginator { if params == nil { params = &ListSubscribedWorkteamsInput{} } options := ListSubscribedWorkteamsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListSubscribedWorkteamsPaginator{ options: options, 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 && len(*p.nextToken) != 0) } // NextPage retrieves the next ListSubscribedWorkteams page. func (p *ListSubscribedWorkteamsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSubscribedWorkteamsOutput, 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.ListSubscribedWorkteams(ctx, &params, 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_opListSubscribedWorkteams(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListSubscribedWorkteams", } }
230
aws-sdk-go-v2
aws
Go
// 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" ) // 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{} } result, metadata, err := c.invokeOperation(ctx, "ListTags", params, optFns, c.addOperationListTagsMiddlewares) if err != nil { return nil, err } out := result.(*ListTagsOutput) out.ResultMetadata = metadata return out, nil } type ListTagsInput struct { // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. // // This member is required. ResourceArn *string // Maximum number of tags to return. MaxResults *int32 // 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 } type ListTagsOutput struct { // 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. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTags{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTags{}, 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 = addOpListTagsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTags(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListTagsAPIClient is a client that implements the ListTags operation. type ListTagsAPIClient interface { ListTags(context.Context, *ListTagsInput, ...func(*Options)) (*ListTagsOutput, error) } var _ ListTagsAPIClient = (*Client)(nil) // ListTagsPaginatorOptions is the paginator options for ListTags type ListTagsPaginatorOptions struct { // Maximum number of tags to return. 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 } // ListTagsPaginator is a paginator for ListTags type ListTagsPaginator struct { options ListTagsPaginatorOptions client ListTagsAPIClient params *ListTagsInput nextToken *string firstPage bool } // NewListTagsPaginator returns a new ListTagsPaginator func NewListTagsPaginator(client ListTagsAPIClient, params *ListTagsInput, optFns ...func(*ListTagsPaginatorOptions)) *ListTagsPaginator { if params == nil { params = &ListTagsInput{} } options := ListTagsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListTagsPaginator{ options: options, 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 && len(*p.nextToken) != 0) } // NextPage retrieves the next ListTags page. func (p *ListTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTagsOutput, 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.ListTags(ctx, &params, 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_opListTags(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListTags", } }
227
aws-sdk-go-v2
aws
Go
// 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 training jobs. When StatusEquals and MaxResults are set at the same time, // the MaxResults number of training jobs are first retrieved ignoring the // StatusEquals parameter and then they are filtered by the StatusEquals // parameter, which is returned as a response. For example, if ListTrainingJobs is // invoked with the following parameters: { ... MaxResults: 100, StatusEquals: // InProgress ... } First, 100 trainings jobs with any status, including those // other than InProgress , are selected (sorted according to the creation time, // from the most current to the oldest). Next, those with a status of InProgress // are returned. You can quickly test the API using the following Amazon Web // Services CLI code. aws sagemaker list-training-jobs --max-results 100 // --status-equals InProgress func (c *Client) ListTrainingJobs(ctx context.Context, params *ListTrainingJobsInput, optFns ...func(*Options)) (*ListTrainingJobsOutput, error) { if params == nil { params = &ListTrainingJobsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTrainingJobs", params, optFns, c.addOperationListTrainingJobsMiddlewares) if err != nil { return nil, err } out := result.(*ListTrainingJobsOutput) out.ResultMetadata = metadata return out, nil } type ListTrainingJobsInput struct { // A filter that returns only training jobs created after the specified time // (timestamp). CreationTimeAfter *time.Time // A filter that returns only training jobs created before the specified time // (timestamp). CreationTimeBefore *time.Time // A filter that returns only training jobs modified after the specified time // (timestamp). LastModifiedTimeAfter *time.Time // A filter that returns only training jobs modified before the specified time // (timestamp). LastModifiedTimeBefore *time.Time // The maximum number of training jobs to return in the response. MaxResults *int32 // A string in the training job name. This filter returns only training jobs whose // name contains the specified string. NameContains *string // If the result of the previous ListTrainingJobs request was truncated, the // response includes a NextToken . To retrieve the next set of training jobs, use // the token in the next request. NextToken *string // The field to sort results by. The default is CreationTime . SortBy types.SortBy // The sort order for results. The default is Ascending . SortOrder types.SortOrder // A filter that retrieves only training jobs with a specific status. StatusEquals types.TrainingJobStatus // A filter that retrieves only training jobs with a specific warm pool status. WarmPoolStatusEquals types.WarmPoolResourceStatus noSmithyDocumentSerde } type ListTrainingJobsOutput struct { // An array of TrainingJobSummary objects, each listing a training job. // // This member is required. TrainingJobSummaries []types.TrainingJobSummary // 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. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTrainingJobsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTrainingJobs{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTrainingJobs{}, 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_opListTrainingJobs(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListTrainingJobsAPIClient is a client that implements the ListTrainingJobs // operation. type ListTrainingJobsAPIClient interface { ListTrainingJobs(context.Context, *ListTrainingJobsInput, ...func(*Options)) (*ListTrainingJobsOutput, error) } var _ ListTrainingJobsAPIClient = (*Client)(nil) // ListTrainingJobsPaginatorOptions is the paginator options for ListTrainingJobs type ListTrainingJobsPaginatorOptions struct { // The maximum number of training jobs 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 } // ListTrainingJobsPaginator is a paginator for ListTrainingJobs type ListTrainingJobsPaginator struct { options ListTrainingJobsPaginatorOptions client ListTrainingJobsAPIClient params *ListTrainingJobsInput nextToken *string firstPage bool } // NewListTrainingJobsPaginator returns a new ListTrainingJobsPaginator func NewListTrainingJobsPaginator(client ListTrainingJobsAPIClient, params *ListTrainingJobsInput, optFns ...func(*ListTrainingJobsPaginatorOptions)) *ListTrainingJobsPaginator { if params == nil { params = &ListTrainingJobsInput{} } options := ListTrainingJobsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListTrainingJobsPaginator{ options: options, 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 && len(*p.nextToken) != 0) } // NextPage retrieves the next ListTrainingJobs page. func (p *ListTrainingJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTrainingJobsOutput, 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.ListTrainingJobs(ctx, &params, 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_opListTrainingJobs(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListTrainingJobs", } }
265
aws-sdk-go-v2
aws
Go
// 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" ) // Gets a list of TrainingJobSummary (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_TrainingJobSummary.html) // objects that describe the training jobs that a hyperparameter tuning job // launched. func (c *Client) ListTrainingJobsForHyperParameterTuningJob(ctx context.Context, params *ListTrainingJobsForHyperParameterTuningJobInput, optFns ...func(*Options)) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { if params == nil { params = &ListTrainingJobsForHyperParameterTuningJobInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTrainingJobsForHyperParameterTuningJob", params, optFns, c.addOperationListTrainingJobsForHyperParameterTuningJobMiddlewares) if err != nil { return nil, err } out := result.(*ListTrainingJobsForHyperParameterTuningJobOutput) out.ResultMetadata = metadata return out, nil } type ListTrainingJobsForHyperParameterTuningJobInput struct { // The name of the tuning job whose training jobs you want to list. // // This member is required. HyperParameterTuningJobName *string // The maximum number of training jobs to return. The default value is 10. MaxResults *int32 // If the result of the previous ListTrainingJobsForHyperParameterTuningJob // request was truncated, the response includes a NextToken . To retrieve the next // set of training jobs, use the token in the next request. NextToken *string // The field to sort results by. The default is Name . If the value of this field // is FinalObjectiveMetricValue , any training jobs that did not return an // objective metric are not listed. SortBy types.TrainingJobSortByOptions // The sort order for results. The default is Ascending . SortOrder types.SortOrder // A filter that returns only training jobs with the specified status. StatusEquals types.TrainingJobStatus noSmithyDocumentSerde } type ListTrainingJobsForHyperParameterTuningJobOutput struct { // A list of TrainingJobSummary (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_TrainingJobSummary.html) // objects that describe the training jobs that the // ListTrainingJobsForHyperParameterTuningJob request returned. // // This member is required. TrainingJobSummaries []types.HyperParameterTrainingJobSummary // If the result of this ListTrainingJobsForHyperParameterTuningJob request was // truncated, the response includes a NextToken . To retrieve the next set of // training jobs, use the token in the next request. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTrainingJobsForHyperParameterTuningJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTrainingJobsForHyperParameterTuningJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob{}, 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 = addOpListTrainingJobsForHyperParameterTuningJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTrainingJobsForHyperParameterTuningJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListTrainingJobsForHyperParameterTuningJobAPIClient is a client that implements // the ListTrainingJobsForHyperParameterTuningJob operation. type ListTrainingJobsForHyperParameterTuningJobAPIClient interface { ListTrainingJobsForHyperParameterTuningJob(context.Context, *ListTrainingJobsForHyperParameterTuningJobInput, ...func(*Options)) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) } var _ ListTrainingJobsForHyperParameterTuningJobAPIClient = (*Client)(nil) // ListTrainingJobsForHyperParameterTuningJobPaginatorOptions is the paginator // options for ListTrainingJobsForHyperParameterTuningJob type ListTrainingJobsForHyperParameterTuningJobPaginatorOptions struct { // The maximum number of training jobs to return. The default value is 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 } // ListTrainingJobsForHyperParameterTuningJobPaginator is a paginator for // ListTrainingJobsForHyperParameterTuningJob type ListTrainingJobsForHyperParameterTuningJobPaginator struct { options ListTrainingJobsForHyperParameterTuningJobPaginatorOptions client ListTrainingJobsForHyperParameterTuningJobAPIClient params *ListTrainingJobsForHyperParameterTuningJobInput nextToken *string firstPage bool } // NewListTrainingJobsForHyperParameterTuningJobPaginator returns a new // ListTrainingJobsForHyperParameterTuningJobPaginator func NewListTrainingJobsForHyperParameterTuningJobPaginator(client ListTrainingJobsForHyperParameterTuningJobAPIClient, params *ListTrainingJobsForHyperParameterTuningJobInput, optFns ...func(*ListTrainingJobsForHyperParameterTuningJobPaginatorOptions)) *ListTrainingJobsForHyperParameterTuningJobPaginator { if params == nil { params = &ListTrainingJobsForHyperParameterTuningJobInput{} } options := ListTrainingJobsForHyperParameterTuningJobPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListTrainingJobsForHyperParameterTuningJobPaginator{ options: options, 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 && len(*p.nextToken) != 0) } // NextPage retrieves the next ListTrainingJobsForHyperParameterTuningJob page. func (p *ListTrainingJobsForHyperParameterTuningJobPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTrainingJobsForHyperParameterTuningJobOutput, 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.ListTrainingJobsForHyperParameterTuningJob(ctx, &params, 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_opListTrainingJobsForHyperParameterTuningJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListTrainingJobsForHyperParameterTuningJob", } }
249
aws-sdk-go-v2
aws
Go
// 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 transform jobs. func (c *Client) ListTransformJobs(ctx context.Context, params *ListTransformJobsInput, optFns ...func(*Options)) (*ListTransformJobsOutput, error) { if params == nil { params = &ListTransformJobsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTransformJobs", params, optFns, c.addOperationListTransformJobsMiddlewares) if err != nil { return nil, err } out := result.(*ListTransformJobsOutput) out.ResultMetadata = metadata return out, nil } type ListTransformJobsInput struct { // A filter that returns only transform jobs created after the specified time. CreationTimeAfter *time.Time // A filter that returns only transform jobs created before the specified time. CreationTimeBefore *time.Time // A filter that returns only transform jobs modified after the specified time. LastModifiedTimeAfter *time.Time // A filter that returns only transform jobs modified before the specified time. LastModifiedTimeBefore *time.Time // The maximum number of transform jobs to return in the response. The default // value is 10 . MaxResults *int32 // A string in the transform job name. This filter returns only transform jobs // whose name contains the specified string. NameContains *string // If the result of the previous ListTransformJobs request was truncated, the // response includes a NextToken . To retrieve the next set of transform jobs, use // the token in the next request. NextToken *string // The field to sort results by. The default is CreationTime . SortBy types.SortBy // The sort order for results. The default is Descending . SortOrder types.SortOrder // A filter that retrieves only transform jobs with a specific status. StatusEquals types.TransformJobStatus noSmithyDocumentSerde } type ListTransformJobsOutput struct { // An array of TransformJobSummary objects. // // This member is required. TransformJobSummaries []types.TransformJobSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of transform jobs, use it in the next request. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTransformJobsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTransformJobs{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTransformJobs{}, 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_opListTransformJobs(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListTransformJobsAPIClient is a client that implements the ListTransformJobs // operation. type ListTransformJobsAPIClient interface { ListTransformJobs(context.Context, *ListTransformJobsInput, ...func(*Options)) (*ListTransformJobsOutput, error) } var _ ListTransformJobsAPIClient = (*Client)(nil) // ListTransformJobsPaginatorOptions is the paginator options for ListTransformJobs type ListTransformJobsPaginatorOptions struct { // The maximum number of transform jobs to return in the response. The default // value is 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 } // ListTransformJobsPaginator is a paginator for ListTransformJobs type ListTransformJobsPaginator struct { options ListTransformJobsPaginatorOptions client ListTransformJobsAPIClient params *ListTransformJobsInput nextToken *string firstPage bool } // NewListTransformJobsPaginator returns a new ListTransformJobsPaginator func NewListTransformJobsPaginator(client ListTransformJobsAPIClient, params *ListTransformJobsInput, optFns ...func(*ListTransformJobsPaginatorOptions)) *ListTransformJobsPaginator { if params == nil { params = &ListTransformJobsInput{} } options := ListTransformJobsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListTransformJobsPaginator{ options: options, 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 && len(*p.nextToken) != 0) } // NextPage retrieves the next ListTransformJobs page. func (p *ListTransformJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTransformJobsOutput, 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.ListTransformJobs(ctx, &params, 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_opListTransformJobs(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListTransformJobs", } }
250
aws-sdk-go-v2
aws
Go
// 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 the trial components in your account. You can sort the list by trial // component name or creation time. You can filter the list to show only components // that were created in a specific time range. You can also filter on one of the // following: // - ExperimentName // - SourceArn // - TrialName func (c *Client) ListTrialComponents(ctx context.Context, params *ListTrialComponentsInput, optFns ...func(*Options)) (*ListTrialComponentsOutput, error) { if params == nil { params = &ListTrialComponentsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTrialComponents", params, optFns, c.addOperationListTrialComponentsMiddlewares) if err != nil { return nil, err } out := result.(*ListTrialComponentsOutput) out.ResultMetadata = metadata return out, nil } type ListTrialComponentsInput struct { // A filter that returns only components created after the specified time. CreatedAfter *time.Time // A filter that returns only components created before the specified time. CreatedBefore *time.Time // A filter that returns only components that are part of the specified // experiment. If you specify ExperimentName , you can't filter by SourceArn or // TrialName . ExperimentName *string // The maximum number of components to return in the response. The default value // is 10. MaxResults *int32 // If the previous call to ListTrialComponents didn't return the full set of // components, the call returns a token for getting the next set of components. NextToken *string // The property used to sort results. The default value is CreationTime . SortBy types.SortTrialComponentsBy // The sort order. The default value is Descending . SortOrder types.SortOrder // A filter that returns only components that have the specified source Amazon // Resource Name (ARN). If you specify SourceArn , you can't filter by // ExperimentName or TrialName . SourceArn *string // A filter that returns only components that are part of the specified trial. If // you specify TrialName , you can't filter by ExperimentName or SourceArn . TrialName *string noSmithyDocumentSerde } type ListTrialComponentsOutput struct { // A token for getting the next set of components, if there are any. NextToken *string // A list of the summaries of your trial components. TrialComponentSummaries []types.TrialComponentSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTrialComponentsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTrialComponents{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTrialComponents{}, 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_opListTrialComponents(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListTrialComponentsAPIClient is a client that implements the // ListTrialComponents operation. type ListTrialComponentsAPIClient interface { ListTrialComponents(context.Context, *ListTrialComponentsInput, ...func(*Options)) (*ListTrialComponentsOutput, error) } var _ ListTrialComponentsAPIClient = (*Client)(nil) // ListTrialComponentsPaginatorOptions is the paginator options for // ListTrialComponents type ListTrialComponentsPaginatorOptions struct { // The maximum number of components to return in the response. The default value // is 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 } // ListTrialComponentsPaginator is a paginator for ListTrialComponents type ListTrialComponentsPaginator struct { options ListTrialComponentsPaginatorOptions client ListTrialComponentsAPIClient params *ListTrialComponentsInput nextToken *string firstPage bool } // NewListTrialComponentsPaginator returns a new ListTrialComponentsPaginator func NewListTrialComponentsPaginator(client ListTrialComponentsAPIClient, params *ListTrialComponentsInput, optFns ...func(*ListTrialComponentsPaginatorOptions)) *ListTrialComponentsPaginator { if params == nil { params = &ListTrialComponentsInput{} } options := ListTrialComponentsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListTrialComponentsPaginator{ options: options, 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 && len(*p.nextToken) != 0) } // NextPage retrieves the next ListTrialComponents page. func (p *ListTrialComponentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTrialComponentsOutput, 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.ListTrialComponents(ctx, &params, 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_opListTrialComponents(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListTrialComponents", } }
254
aws-sdk-go-v2
aws
Go
// 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 the trials in your account. Specify an experiment name to limit the list // to the trials that are part of that experiment. Specify a trial component name // to limit the list to the trials that associated with that trial component. The // list can be filtered to show only trials that were created in a specific time // range. The list can be sorted by trial name or creation time. func (c *Client) ListTrials(ctx context.Context, params *ListTrialsInput, optFns ...func(*Options)) (*ListTrialsOutput, error) { if params == nil { params = &ListTrialsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTrials", params, optFns, c.addOperationListTrialsMiddlewares) if err != nil { return nil, err } out := result.(*ListTrialsOutput) out.ResultMetadata = metadata return out, nil } type ListTrialsInput struct { // A filter that returns only trials created after the specified time. CreatedAfter *time.Time // A filter that returns only trials created before the specified time. CreatedBefore *time.Time // A filter that returns only trials that are part of the specified experiment. ExperimentName *string // The maximum number of trials to return in the response. The default value is 10. MaxResults *int32 // If the previous call to ListTrials didn't return the full set of trials, the // call returns a token for getting the next set of trials. NextToken *string // The property used to sort results. The default value is CreationTime . SortBy types.SortTrialsBy // The sort order. The default value is Descending . SortOrder types.SortOrder // A filter that returns only trials that are associated with the specified trial // component. TrialComponentName *string noSmithyDocumentSerde } type ListTrialsOutput struct { // A token for getting the next set of trials, if there are any. NextToken *string // A list of the summaries of your trials. TrialSummaries []types.TrialSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTrialsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTrials{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTrials{}, 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_opListTrials(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListTrialsAPIClient is a client that implements the ListTrials operation. type ListTrialsAPIClient interface { ListTrials(context.Context, *ListTrialsInput, ...func(*Options)) (*ListTrialsOutput, error) } var _ ListTrialsAPIClient = (*Client)(nil) // ListTrialsPaginatorOptions is the paginator options for ListTrials type ListTrialsPaginatorOptions struct { // The maximum number of trials to return in the response. The default value is 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 } // ListTrialsPaginator is a paginator for ListTrials type ListTrialsPaginator struct { options ListTrialsPaginatorOptions client ListTrialsAPIClient params *ListTrialsInput nextToken *string firstPage bool } // NewListTrialsPaginator returns a new ListTrialsPaginator func NewListTrialsPaginator(client ListTrialsAPIClient, params *ListTrialsInput, optFns ...func(*ListTrialsPaginatorOptions)) *ListTrialsPaginator { if params == nil { params = &ListTrialsInput{} } options := ListTrialsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListTrialsPaginator{ options: options, 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 && len(*p.nextToken) != 0) } // NextPage retrieves the next ListTrials page. func (p *ListTrialsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTrialsOutput, 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.ListTrials(ctx, &params, 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_opListTrials(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListTrials", } }
241
aws-sdk-go-v2
aws
Go
// 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 user profiles. func (c *Client) ListUserProfiles(ctx context.Context, params *ListUserProfilesInput, optFns ...func(*Options)) (*ListUserProfilesOutput, error) { if params == nil { params = &ListUserProfilesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListUserProfiles", params, optFns, c.addOperationListUserProfilesMiddlewares) if err != nil { return nil, err } out := result.(*ListUserProfilesOutput) out.ResultMetadata = metadata return out, nil } type ListUserProfilesInput struct { // A parameter by which to filter the results. DomainIdEquals *string // The total number of items to return in the response. If the total number of // items available is more than the value specified, a NextToken is provided in // the response. To resume pagination, provide the NextToken value in the as part // of a subsequent call. The default value is 10. MaxResults *int32 // If the previous response was truncated, you will receive this token. Use it in // your next request to receive the next set of results. NextToken *string // The parameter by which to sort the results. The default is CreationTime. SortBy types.UserProfileSortKey // The sort order for the results. The default is Ascending. SortOrder types.SortOrder // A parameter by which to filter the results. UserProfileNameContains *string noSmithyDocumentSerde } type ListUserProfilesOutput struct { // If the previous response was truncated, you will receive this token. Use it in // your next request to receive the next set of results. NextToken *string // The list of user profiles. UserProfiles []types.UserProfileDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListUserProfilesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListUserProfiles{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListUserProfiles{}, 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_opListUserProfiles(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListUserProfilesAPIClient is a client that implements the ListUserProfiles // operation. type ListUserProfilesAPIClient interface { ListUserProfiles(context.Context, *ListUserProfilesInput, ...func(*Options)) (*ListUserProfilesOutput, error) } var _ ListUserProfilesAPIClient = (*Client)(nil) // ListUserProfilesPaginatorOptions is the paginator options for ListUserProfiles type ListUserProfilesPaginatorOptions struct { // The total number of items to return in the response. If the total number of // items available is more than the value specified, a NextToken is provided in // the response. To resume pagination, provide the NextToken value in the as part // of a subsequent call. The default value is 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 } // ListUserProfilesPaginator is a paginator for ListUserProfiles type ListUserProfilesPaginator struct { options ListUserProfilesPaginatorOptions client ListUserProfilesAPIClient params *ListUserProfilesInput nextToken *string firstPage bool } // NewListUserProfilesPaginator returns a new ListUserProfilesPaginator func NewListUserProfilesPaginator(client ListUserProfilesAPIClient, params *ListUserProfilesInput, optFns ...func(*ListUserProfilesPaginatorOptions)) *ListUserProfilesPaginator { if params == nil { params = &ListUserProfilesInput{} } options := ListUserProfilesPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListUserProfilesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListUserProfilesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListUserProfiles page. func (p *ListUserProfilesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListUserProfilesOutput, 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.ListUserProfiles(ctx, &params, 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_opListUserProfiles(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListUserProfiles", } }
237
aws-sdk-go-v2
aws
Go
// 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" ) // Use this operation to list all private and vendor workforces in an Amazon Web // Services Region. Note that you can only have one private workforce per Amazon // Web Services Region. func (c *Client) ListWorkforces(ctx context.Context, params *ListWorkforcesInput, optFns ...func(*Options)) (*ListWorkforcesOutput, error) { if params == nil { params = &ListWorkforcesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListWorkforces", params, optFns, c.addOperationListWorkforcesMiddlewares) if err != nil { return nil, err } out := result.(*ListWorkforcesOutput) out.ResultMetadata = metadata return out, nil } type ListWorkforcesInput struct { // The maximum number of workforces returned in the response. MaxResults *int32 // A filter you can use to search for workforces using part of the workforce name. NameContains *string // A token to resume pagination. NextToken *string // Sort workforces using the workforce name or creation date. SortBy types.ListWorkforcesSortByOptions // Sort workforces in ascending or descending order. SortOrder types.SortOrder noSmithyDocumentSerde } type ListWorkforcesOutput struct { // A list containing information about your workforce. // // This member is required. Workforces []types.Workforce // A token to resume pagination. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListWorkforcesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListWorkforces{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListWorkforces{}, 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_opListWorkforces(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListWorkforcesAPIClient is a client that implements the ListWorkforces // operation. type ListWorkforcesAPIClient interface { ListWorkforces(context.Context, *ListWorkforcesInput, ...func(*Options)) (*ListWorkforcesOutput, error) } var _ ListWorkforcesAPIClient = (*Client)(nil) // ListWorkforcesPaginatorOptions is the paginator options for ListWorkforces type ListWorkforcesPaginatorOptions struct { // The maximum number of workforces returned 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 } // ListWorkforcesPaginator is a paginator for ListWorkforces type ListWorkforcesPaginator struct { options ListWorkforcesPaginatorOptions client ListWorkforcesAPIClient params *ListWorkforcesInput nextToken *string firstPage bool } // NewListWorkforcesPaginator returns a new ListWorkforcesPaginator func NewListWorkforcesPaginator(client ListWorkforcesAPIClient, params *ListWorkforcesInput, optFns ...func(*ListWorkforcesPaginatorOptions)) *ListWorkforcesPaginator { if params == nil { params = &ListWorkforcesInput{} } options := ListWorkforcesPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListWorkforcesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListWorkforcesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListWorkforces page. func (p *ListWorkforcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListWorkforcesOutput, 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.ListWorkforces(ctx, &params, 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_opListWorkforces(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListWorkforces", } }
230
aws-sdk-go-v2
aws
Go
// 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" ) // Gets a list of private work teams that you have defined in a region. The list // may be empty if no work team satisfies the filter specified in the NameContains // parameter. func (c *Client) ListWorkteams(ctx context.Context, params *ListWorkteamsInput, optFns ...func(*Options)) (*ListWorkteamsOutput, error) { if params == nil { params = &ListWorkteamsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListWorkteams", params, optFns, c.addOperationListWorkteamsMiddlewares) if err != nil { return nil, err } out := result.(*ListWorkteamsOutput) out.ResultMetadata = metadata return out, nil } type ListWorkteamsInput struct { // The maximum number of work teams to return in each page of the response. MaxResults *int32 // A string in the work team's name. This filter returns only work teams whose // name contains the specified string. NameContains *string // If the result of the previous ListWorkteams request was truncated, the response // includes a NextToken . To retrieve the next set of labeling jobs, use the token // in the next request. NextToken *string // The field to sort results by. The default is CreationTime . SortBy types.ListWorkteamsSortByOptions // The sort order for results. The default is Ascending . SortOrder types.SortOrder noSmithyDocumentSerde } type ListWorkteamsOutput struct { // An array of Workteam objects, each describing a work team. // // This member is required. Workteams []types.Workteam // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of work teams, use it in the subsequent request. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListWorkteamsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpListWorkteams{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListWorkteams{}, 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_opListWorkteams(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListWorkteamsAPIClient is a client that implements the ListWorkteams operation. type ListWorkteamsAPIClient interface { ListWorkteams(context.Context, *ListWorkteamsInput, ...func(*Options)) (*ListWorkteamsOutput, error) } var _ ListWorkteamsAPIClient = (*Client)(nil) // ListWorkteamsPaginatorOptions is the paginator options for ListWorkteams type ListWorkteamsPaginatorOptions struct { // The maximum number of work teams to return in each page of 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 } // ListWorkteamsPaginator is a paginator for ListWorkteams type ListWorkteamsPaginator struct { options ListWorkteamsPaginatorOptions client ListWorkteamsAPIClient params *ListWorkteamsInput nextToken *string firstPage bool } // NewListWorkteamsPaginator returns a new ListWorkteamsPaginator func NewListWorkteamsPaginator(client ListWorkteamsAPIClient, params *ListWorkteamsInput, optFns ...func(*ListWorkteamsPaginatorOptions)) *ListWorkteamsPaginator { if params == nil { params = &ListWorkteamsInput{} } options := ListWorkteamsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListWorkteamsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListWorkteamsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListWorkteams page. func (p *ListWorkteamsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListWorkteamsOutput, 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.ListWorkteams(ctx, &params, 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_opListWorkteams(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListWorkteams", } }
233
aws-sdk-go-v2
aws
Go
// 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" ) // Adds a resouce policy to control access to a model group. For information about // resoure policies, see Identity-based policies and resource-based policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html) // in the Amazon Web Services Identity and Access Management User Guide.. func (c *Client) PutModelPackageGroupPolicy(ctx context.Context, params *PutModelPackageGroupPolicyInput, optFns ...func(*Options)) (*PutModelPackageGroupPolicyOutput, error) { if params == nil { params = &PutModelPackageGroupPolicyInput{} } result, metadata, err := c.invokeOperation(ctx, "PutModelPackageGroupPolicy", params, optFns, c.addOperationPutModelPackageGroupPolicyMiddlewares) if err != nil { return nil, err } out := result.(*PutModelPackageGroupPolicyOutput) out.ResultMetadata = metadata return out, nil } type PutModelPackageGroupPolicyInput struct { // The name of the model group to add a resource policy to. // // This member is required. ModelPackageGroupName *string // The resource policy for the model group. // // This member is required. ResourcePolicy *string noSmithyDocumentSerde } type PutModelPackageGroupPolicyOutput struct { // The Amazon Resource Name (ARN) of the model package group. // // This member is required. ModelPackageGroupArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationPutModelPackageGroupPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutModelPackageGroupPolicy{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutModelPackageGroupPolicy{}, 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 = addOpPutModelPackageGroupPolicyValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutModelPackageGroupPolicy(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opPutModelPackageGroupPolicy(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "PutModelPackageGroupPolicy", } }
133
aws-sdk-go-v2
aws
Go
// 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" ) // Use this action to inspect your lineage and discover relationships between // entities. For more information, see Querying Lineage Entities (https://docs.aws.amazon.com/sagemaker/latest/dg/querying-lineage-entities.html) // in the Amazon SageMaker Developer Guide. func (c *Client) QueryLineage(ctx context.Context, params *QueryLineageInput, optFns ...func(*Options)) (*QueryLineageOutput, error) { if params == nil { params = &QueryLineageInput{} } result, metadata, err := c.invokeOperation(ctx, "QueryLineage", params, optFns, c.addOperationQueryLineageMiddlewares) if err != nil { return nil, err } out := result.(*QueryLineageOutput) out.ResultMetadata = metadata return out, nil } type QueryLineageInput struct { // Associations between lineage entities have a direction. This parameter // determines the direction from the StartArn(s) that the query traverses. Direction types.Direction // A set of filtering parameters that allow you to specify which entities should // be returned. // - Properties - Key-value pairs to match on the lineage entities' properties. // - LineageTypes - A set of lineage entity types to match on. For example: // TrialComponent , Artifact , or Context . // - CreatedBefore - Filter entities created before this date. // - ModifiedBefore - Filter entities modified before this date. // - ModifiedAfter - Filter entities modified after this date. Filters *types.QueryFilters // Setting this value to True retrieves not only the entities of interest but also // the Associations (https://docs.aws.amazon.com/sagemaker/latest/dg/lineage-tracking-entities.html) // and lineage entities on the path. Set to False to only return lineage entities // that match your query. IncludeEdges bool // The maximum depth in lineage relationships from the StartArns that are // traversed. Depth is a measure of the number of Associations from the StartArn // entity to the matched results. MaxDepth *int32 // Limits the number of vertices in the results. Use the NextToken in a response // to to retrieve the next page of results. MaxResults *int32 // Limits the number of vertices in the request. Use the NextToken in a response // to to retrieve the next page of results. NextToken *string // A list of resource Amazon Resource Name (ARN) that represent the starting point // for your lineage query. StartArns []string noSmithyDocumentSerde } type QueryLineageOutput struct { // A list of edges that connect vertices in the response. Edges []types.Edge // Limits the number of vertices in the response. Use the NextToken in a response // to to retrieve the next page of results. NextToken *string // A list of vertices connected to the start entity(ies) in the lineage graph. Vertices []types.Vertex // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationQueryLineageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpQueryLineage{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpQueryLineage{}, 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_opQueryLineage(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // QueryLineageAPIClient is a client that implements the QueryLineage operation. type QueryLineageAPIClient interface { QueryLineage(context.Context, *QueryLineageInput, ...func(*Options)) (*QueryLineageOutput, error) } var _ QueryLineageAPIClient = (*Client)(nil) // QueryLineagePaginatorOptions is the paginator options for QueryLineage type QueryLineagePaginatorOptions struct { // Limits the number of vertices in the results. Use the NextToken in a response // to to retrieve the next page of results. 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 } // QueryLineagePaginator is a paginator for QueryLineage type QueryLineagePaginator struct { options QueryLineagePaginatorOptions client QueryLineageAPIClient params *QueryLineageInput nextToken *string firstPage bool } // NewQueryLineagePaginator returns a new QueryLineagePaginator func NewQueryLineagePaginator(client QueryLineageAPIClient, params *QueryLineageInput, optFns ...func(*QueryLineagePaginatorOptions)) *QueryLineagePaginator { if params == nil { params = &QueryLineageInput{} } options := QueryLineagePaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &QueryLineagePaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *QueryLineagePaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next QueryLineage page. func (p *QueryLineagePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*QueryLineageOutput, 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.QueryLineage(ctx, &params, 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_opQueryLineage(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "QueryLineage", } }
254
aws-sdk-go-v2
aws
Go
// 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" ) // Register devices. func (c *Client) RegisterDevices(ctx context.Context, params *RegisterDevicesInput, optFns ...func(*Options)) (*RegisterDevicesOutput, error) { if params == nil { params = &RegisterDevicesInput{} } result, metadata, err := c.invokeOperation(ctx, "RegisterDevices", params, optFns, c.addOperationRegisterDevicesMiddlewares) if err != nil { return nil, err } out := result.(*RegisterDevicesOutput) out.ResultMetadata = metadata return out, nil } type RegisterDevicesInput struct { // The name of the fleet. // // This member is required. DeviceFleetName *string // A list of devices to register with SageMaker Edge Manager. // // This member is required. Devices []types.Device // The tags associated with devices. Tags []types.Tag noSmithyDocumentSerde } type RegisterDevicesOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationRegisterDevicesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterDevices{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterDevices{}, 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 = addOpRegisterDevicesValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterDevices(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opRegisterDevices(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "RegisterDevices", } }
129
aws-sdk-go-v2
aws
Go
// 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" ) // Renders the UI template so that you can preview the worker's experience. func (c *Client) RenderUiTemplate(ctx context.Context, params *RenderUiTemplateInput, optFns ...func(*Options)) (*RenderUiTemplateOutput, error) { if params == nil { params = &RenderUiTemplateInput{} } result, metadata, err := c.invokeOperation(ctx, "RenderUiTemplate", params, optFns, c.addOperationRenderUiTemplateMiddlewares) if err != nil { return nil, err } out := result.(*RenderUiTemplateOutput) out.ResultMetadata = metadata return out, nil } type RenderUiTemplateInput struct { // The Amazon Resource Name (ARN) that has access to the S3 objects that are used // by the template. // // This member is required. RoleArn *string // A RenderableTask object containing a representative task to render. // // This member is required. Task *types.RenderableTask // The HumanTaskUiArn of the worker UI that you want to render. Do not provide a // HumanTaskUiArn if you use the UiTemplate parameter. See a list of available // Human Ui Amazon Resource Names (ARNs) in UiConfig (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UiConfig.html) // . HumanTaskUiArn *string // A Template object containing the worker UI template to render. UiTemplate *types.UiTemplate noSmithyDocumentSerde } type RenderUiTemplateOutput struct { // A list of one or more RenderingError objects if any were encountered while // rendering the template. If there were no errors, the list is empty. // // This member is required. Errors []types.RenderingError // A Liquid template that renders the HTML for the worker UI. // // This member is required. RenderedContent *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationRenderUiTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpRenderUiTemplate{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRenderUiTemplate{}, 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 = addOpRenderUiTemplateValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRenderUiTemplate(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opRenderUiTemplate(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "RenderUiTemplate", } }
148
aws-sdk-go-v2
aws
Go
// 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" ) // Retry the execution of the pipeline. func (c *Client) RetryPipelineExecution(ctx context.Context, params *RetryPipelineExecutionInput, optFns ...func(*Options)) (*RetryPipelineExecutionOutput, error) { if params == nil { params = &RetryPipelineExecutionInput{} } result, metadata, err := c.invokeOperation(ctx, "RetryPipelineExecution", params, optFns, c.addOperationRetryPipelineExecutionMiddlewares) if err != nil { return nil, err } out := result.(*RetryPipelineExecutionOutput) out.ResultMetadata = metadata return out, nil } type RetryPipelineExecutionInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the operation. An idempotent operation completes no more than once. // // This member is required. ClientRequestToken *string // The Amazon Resource Name (ARN) of the pipeline execution. // // This member is required. PipelineExecutionArn *string // This configuration, if specified, overrides the parallelism configuration of // the parent pipeline. ParallelismConfiguration *types.ParallelismConfiguration noSmithyDocumentSerde } type RetryPipelineExecutionOutput struct { // The Amazon Resource Name (ARN) of the pipeline execution. PipelineExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationRetryPipelineExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpRetryPipelineExecution{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRetryPipelineExecution{}, 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 = addIdempotencyToken_opRetryPipelineExecutionMiddleware(stack, options); err != nil { return err } if err = addOpRetryPipelineExecutionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRetryPipelineExecution(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } type idempotencyToken_initializeOpRetryPipelineExecution struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpRetryPipelineExecution) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpRetryPipelineExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*RetryPipelineExecutionInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *RetryPipelineExecutionInput ") } if input.ClientRequestToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.ClientRequestToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opRetryPipelineExecutionMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpRetryPipelineExecution{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opRetryPipelineExecution(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "RetryPipelineExecution", } }
172
aws-sdk-go-v2
aws
Go
// 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" ) // Finds SageMaker resources that match a search query. Matching resources are // returned as a list of SearchRecord objects in the response. You can sort the // search results by any resource property in a ascending or descending order. You // can query against the following value types: numeric, text, Boolean, and // timestamp. The Search API may provide access to otherwise restricted data. See // Amazon SageMaker API Permissions: Actions, Permissions, and Resources Reference (https://docs.aws.amazon.com/sagemaker/latest/dg/api-permissions-reference.html) // for more information. func (c *Client) Search(ctx context.Context, params *SearchInput, optFns ...func(*Options)) (*SearchOutput, error) { if params == nil { params = &SearchInput{} } result, metadata, err := c.invokeOperation(ctx, "Search", params, optFns, c.addOperationSearchMiddlewares) if err != nil { return nil, err } out := result.(*SearchOutput) out.ResultMetadata = metadata return out, nil } type SearchInput struct { // The name of the SageMaker resource to search for. // // This member is required. Resource types.ResourceType // The maximum number of results to return. MaxResults *int32 // If more than MaxResults resources match the specified SearchExpression , the // response includes a NextToken . The NextToken can be passed to the next // SearchRequest to continue retrieving results. NextToken *string // A Boolean conditional statement. Resources must satisfy this condition to be // included in search results. You must provide at least one subexpression, filter, // or nested filter. The maximum number of recursive SubExpressions , NestedFilters // , and Filters that can be included in a SearchExpression object is 50. SearchExpression *types.SearchExpression // The name of the resource property used to sort the SearchResults . The default // is LastModifiedTime . SortBy *string // How SearchResults are ordered. Valid values are Ascending or Descending . The // default is Descending . SortOrder types.SearchSortOrder noSmithyDocumentSerde } type SearchOutput struct { // If the result of the previous Search request was truncated, the response // includes a NextToken. To retrieve the next set of results, use the token in the // next request. NextToken *string // A list of SearchRecord objects. Results []types.SearchRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationSearchMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearch{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearch{}, 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 = addOpSearchValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearch(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // SearchAPIClient is a client that implements the Search operation. type SearchAPIClient interface { Search(context.Context, *SearchInput, ...func(*Options)) (*SearchOutput, error) } var _ SearchAPIClient = (*Client)(nil) // SearchPaginatorOptions is the paginator options for Search type SearchPaginatorOptions struct { // The maximum number of results to return. 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 } // SearchPaginator is a paginator for Search type SearchPaginator struct { options SearchPaginatorOptions client SearchAPIClient params *SearchInput nextToken *string firstPage bool } // NewSearchPaginator returns a new SearchPaginator func NewSearchPaginator(client SearchAPIClient, params *SearchInput, optFns ...func(*SearchPaginatorOptions)) *SearchPaginator { if params == nil { params = &SearchInput{} } options := SearchPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &SearchPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *SearchPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next Search page. func (p *SearchPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchOutput, 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.Search(ctx, &params, 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_opSearch(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "Search", } }
248
aws-sdk-go-v2
aws
Go
// 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/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Notifies the pipeline that the execution of a callback step failed, along with // a message describing why. When a callback step is run, the pipeline generates a // callback token and includes the token in a message sent to Amazon Simple Queue // Service (Amazon SQS). func (c *Client) SendPipelineExecutionStepFailure(ctx context.Context, params *SendPipelineExecutionStepFailureInput, optFns ...func(*Options)) (*SendPipelineExecutionStepFailureOutput, error) { if params == nil { params = &SendPipelineExecutionStepFailureInput{} } result, metadata, err := c.invokeOperation(ctx, "SendPipelineExecutionStepFailure", params, optFns, c.addOperationSendPipelineExecutionStepFailureMiddlewares) if err != nil { return nil, err } out := result.(*SendPipelineExecutionStepFailureOutput) out.ResultMetadata = metadata return out, nil } type SendPipelineExecutionStepFailureInput struct { // The pipeline generated token from the Amazon SQS queue. // // This member is required. CallbackToken *string // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the operation. An idempotent operation completes no more than one time. ClientRequestToken *string // A message describing why the step failed. FailureReason *string noSmithyDocumentSerde } type SendPipelineExecutionStepFailureOutput struct { // The Amazon Resource Name (ARN) of the pipeline execution. PipelineExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationSendPipelineExecutionStepFailureMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpSendPipelineExecutionStepFailure{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure{}, 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 = addIdempotencyToken_opSendPipelineExecutionStepFailureMiddleware(stack, options); err != nil { return err } if err = addOpSendPipelineExecutionStepFailureValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSendPipelineExecutionStepFailure(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } type idempotencyToken_initializeOpSendPipelineExecutionStepFailure struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpSendPipelineExecutionStepFailure) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpSendPipelineExecutionStepFailure) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*SendPipelineExecutionStepFailureInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *SendPipelineExecutionStepFailureInput ") } if input.ClientRequestToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.ClientRequestToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opSendPipelineExecutionStepFailureMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpSendPipelineExecutionStepFailure{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opSendPipelineExecutionStepFailure(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "SendPipelineExecutionStepFailure", } }
171
aws-sdk-go-v2
aws
Go
// 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" ) // Notifies the pipeline that the execution of a callback step succeeded and // provides a list of the step's output parameters. When a callback step is run, // the pipeline generates a callback token and includes the token in a message sent // to Amazon Simple Queue Service (Amazon SQS). func (c *Client) SendPipelineExecutionStepSuccess(ctx context.Context, params *SendPipelineExecutionStepSuccessInput, optFns ...func(*Options)) (*SendPipelineExecutionStepSuccessOutput, error) { if params == nil { params = &SendPipelineExecutionStepSuccessInput{} } result, metadata, err := c.invokeOperation(ctx, "SendPipelineExecutionStepSuccess", params, optFns, c.addOperationSendPipelineExecutionStepSuccessMiddlewares) if err != nil { return nil, err } out := result.(*SendPipelineExecutionStepSuccessOutput) out.ResultMetadata = metadata return out, nil } type SendPipelineExecutionStepSuccessInput struct { // The pipeline generated token from the Amazon SQS queue. // // This member is required. CallbackToken *string // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the operation. An idempotent operation completes no more than one time. ClientRequestToken *string // A list of the output parameters of the callback step. OutputParameters []types.OutputParameter noSmithyDocumentSerde } type SendPipelineExecutionStepSuccessOutput struct { // The Amazon Resource Name (ARN) of the pipeline execution. PipelineExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationSendPipelineExecutionStepSuccessMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpSendPipelineExecutionStepSuccess{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess{}, 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 = addIdempotencyToken_opSendPipelineExecutionStepSuccessMiddleware(stack, options); err != nil { return err } if err = addOpSendPipelineExecutionStepSuccessValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSendPipelineExecutionStepSuccess(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } type idempotencyToken_initializeOpSendPipelineExecutionStepSuccess struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpSendPipelineExecutionStepSuccess) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpSendPipelineExecutionStepSuccess) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*SendPipelineExecutionStepSuccessInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *SendPipelineExecutionStepSuccessInput ") } if input.ClientRequestToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.ClientRequestToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opSendPipelineExecutionStepSuccessMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpSendPipelineExecutionStepSuccess{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opSendPipelineExecutionStepSuccess(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "SendPipelineExecutionStepSuccess", } }
172
aws-sdk-go-v2
aws
Go
// 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" ) // Starts a stage in an edge deployment plan. func (c *Client) StartEdgeDeploymentStage(ctx context.Context, params *StartEdgeDeploymentStageInput, optFns ...func(*Options)) (*StartEdgeDeploymentStageOutput, error) { if params == nil { params = &StartEdgeDeploymentStageInput{} } result, metadata, err := c.invokeOperation(ctx, "StartEdgeDeploymentStage", params, optFns, c.addOperationStartEdgeDeploymentStageMiddlewares) if err != nil { return nil, err } out := result.(*StartEdgeDeploymentStageOutput) out.ResultMetadata = metadata return out, nil } type StartEdgeDeploymentStageInput struct { // The name of the edge deployment plan to start. // // This member is required. EdgeDeploymentPlanName *string // The name of the stage to start. // // This member is required. StageName *string noSmithyDocumentSerde } type StartEdgeDeploymentStageOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartEdgeDeploymentStageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartEdgeDeploymentStage{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartEdgeDeploymentStage{}, 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 = addOpStartEdgeDeploymentStageValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartEdgeDeploymentStage(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStartEdgeDeploymentStage(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StartEdgeDeploymentStage", } }
125
aws-sdk-go-v2
aws
Go
// 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" ) // Starts an inference experiment. func (c *Client) StartInferenceExperiment(ctx context.Context, params *StartInferenceExperimentInput, optFns ...func(*Options)) (*StartInferenceExperimentOutput, error) { if params == nil { params = &StartInferenceExperimentInput{} } result, metadata, err := c.invokeOperation(ctx, "StartInferenceExperiment", params, optFns, c.addOperationStartInferenceExperimentMiddlewares) if err != nil { return nil, err } out := result.(*StartInferenceExperimentOutput) out.ResultMetadata = metadata return out, nil } type StartInferenceExperimentInput struct { // The name of the inference experiment to start. // // This member is required. Name *string noSmithyDocumentSerde } type StartInferenceExperimentOutput struct { // The ARN of the started inference experiment to start. // // This member is required. InferenceExperimentArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartInferenceExperimentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartInferenceExperiment{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartInferenceExperiment{}, 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 = addOpStartInferenceExperimentValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartInferenceExperiment(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStartInferenceExperiment(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StartInferenceExperiment", } }
126
aws-sdk-go-v2
aws
Go
// 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" ) // Starts a previously stopped monitoring schedule. By default, when you // successfully create a new schedule, the status of a monitoring schedule is // scheduled . func (c *Client) StartMonitoringSchedule(ctx context.Context, params *StartMonitoringScheduleInput, optFns ...func(*Options)) (*StartMonitoringScheduleOutput, error) { if params == nil { params = &StartMonitoringScheduleInput{} } result, metadata, err := c.invokeOperation(ctx, "StartMonitoringSchedule", params, optFns, c.addOperationStartMonitoringScheduleMiddlewares) if err != nil { return nil, err } out := result.(*StartMonitoringScheduleOutput) out.ResultMetadata = metadata return out, nil } type StartMonitoringScheduleInput struct { // The name of the schedule to start. // // This member is required. MonitoringScheduleName *string noSmithyDocumentSerde } type StartMonitoringScheduleOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartMonitoringScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartMonitoringSchedule{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartMonitoringSchedule{}, 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 = addOpStartMonitoringScheduleValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartMonitoringSchedule(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStartMonitoringSchedule(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StartMonitoringSchedule", } }
122
aws-sdk-go-v2
aws
Go
// 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" ) // Launches an ML compute instance with the latest version of the libraries and // attaches your ML storage volume. After configuring the notebook instance, // SageMaker sets the notebook instance status to InService . A notebook instance's // status must be InService before you can connect to your Jupyter notebook. func (c *Client) StartNotebookInstance(ctx context.Context, params *StartNotebookInstanceInput, optFns ...func(*Options)) (*StartNotebookInstanceOutput, error) { if params == nil { params = &StartNotebookInstanceInput{} } result, metadata, err := c.invokeOperation(ctx, "StartNotebookInstance", params, optFns, c.addOperationStartNotebookInstanceMiddlewares) if err != nil { return nil, err } out := result.(*StartNotebookInstanceOutput) out.ResultMetadata = metadata return out, nil } type StartNotebookInstanceInput struct { // The name of the notebook instance to start. // // This member is required. NotebookInstanceName *string noSmithyDocumentSerde } type StartNotebookInstanceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartNotebookInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartNotebookInstance{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartNotebookInstance{}, 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 = addOpStartNotebookInstanceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartNotebookInstance(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStartNotebookInstance(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StartNotebookInstance", } }
123
aws-sdk-go-v2
aws
Go
// 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" ) // Starts a pipeline execution. func (c *Client) StartPipelineExecution(ctx context.Context, params *StartPipelineExecutionInput, optFns ...func(*Options)) (*StartPipelineExecutionOutput, error) { if params == nil { params = &StartPipelineExecutionInput{} } result, metadata, err := c.invokeOperation(ctx, "StartPipelineExecution", params, optFns, c.addOperationStartPipelineExecutionMiddlewares) if err != nil { return nil, err } out := result.(*StartPipelineExecutionOutput) out.ResultMetadata = metadata return out, nil } type StartPipelineExecutionInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the operation. An idempotent operation completes no more than once. // // This member is required. ClientRequestToken *string // The name or Amazon Resource Name (ARN) of the pipeline. // // This member is required. PipelineName *string // This configuration, if specified, overrides the parallelism configuration of // the parent pipeline for this specific run. ParallelismConfiguration *types.ParallelismConfiguration // The description of the pipeline execution. PipelineExecutionDescription *string // The display name of the pipeline execution. PipelineExecutionDisplayName *string // Contains a list of pipeline parameters. This list can be empty. PipelineParameters []types.Parameter // The selective execution configuration applied to the pipeline run. SelectiveExecutionConfig *types.SelectiveExecutionConfig noSmithyDocumentSerde } type StartPipelineExecutionOutput struct { // The Amazon Resource Name (ARN) of the pipeline execution. PipelineExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartPipelineExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartPipelineExecution{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartPipelineExecution{}, 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 = addIdempotencyToken_opStartPipelineExecutionMiddleware(stack, options); err != nil { return err } if err = addOpStartPipelineExecutionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartPipelineExecution(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } type idempotencyToken_initializeOpStartPipelineExecution struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpStartPipelineExecution) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpStartPipelineExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*StartPipelineExecutionInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *StartPipelineExecutionInput ") } if input.ClientRequestToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.ClientRequestToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opStartPipelineExecutionMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpStartPipelineExecution{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opStartPipelineExecution(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StartPipelineExecution", } }
184
aws-sdk-go-v2
aws
Go
// 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" ) // A method for forcing a running job to shut down. func (c *Client) StopAutoMLJob(ctx context.Context, params *StopAutoMLJobInput, optFns ...func(*Options)) (*StopAutoMLJobOutput, error) { if params == nil { params = &StopAutoMLJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopAutoMLJob", params, optFns, c.addOperationStopAutoMLJobMiddlewares) if err != nil { return nil, err } out := result.(*StopAutoMLJobOutput) out.ResultMetadata = metadata return out, nil } type StopAutoMLJobInput struct { // The name of the object you are requesting. // // This member is required. AutoMLJobName *string noSmithyDocumentSerde } type StopAutoMLJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopAutoMLJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopAutoMLJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopAutoMLJob{}, 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 = addOpStopAutoMLJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopAutoMLJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopAutoMLJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopAutoMLJob", } }
120
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a model compilation job. To stop a job, Amazon SageMaker sends the // algorithm the SIGTERM signal. This gracefully shuts the job down. If the job // hasn't stopped, it sends the SIGKILL signal. When it receives a // StopCompilationJob request, Amazon SageMaker changes the CompilationJobStatus // of the job to Stopping . After Amazon SageMaker stops the job, it sets the // CompilationJobStatus to Stopped . func (c *Client) StopCompilationJob(ctx context.Context, params *StopCompilationJobInput, optFns ...func(*Options)) (*StopCompilationJobOutput, error) { if params == nil { params = &StopCompilationJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopCompilationJob", params, optFns, c.addOperationStopCompilationJobMiddlewares) if err != nil { return nil, err } out := result.(*StopCompilationJobOutput) out.ResultMetadata = metadata return out, nil } type StopCompilationJobInput struct { // The name of the model compilation job to stop. // // This member is required. CompilationJobName *string noSmithyDocumentSerde } type StopCompilationJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopCompilationJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopCompilationJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopCompilationJob{}, 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 = addOpStopCompilationJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopCompilationJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopCompilationJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopCompilationJob", } }
125
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a stage in an edge deployment plan. func (c *Client) StopEdgeDeploymentStage(ctx context.Context, params *StopEdgeDeploymentStageInput, optFns ...func(*Options)) (*StopEdgeDeploymentStageOutput, error) { if params == nil { params = &StopEdgeDeploymentStageInput{} } result, metadata, err := c.invokeOperation(ctx, "StopEdgeDeploymentStage", params, optFns, c.addOperationStopEdgeDeploymentStageMiddlewares) if err != nil { return nil, err } out := result.(*StopEdgeDeploymentStageOutput) out.ResultMetadata = metadata return out, nil } type StopEdgeDeploymentStageInput struct { // The name of the edge deployment plan to stop. // // This member is required. EdgeDeploymentPlanName *string // The name of the stage to stop. // // This member is required. StageName *string noSmithyDocumentSerde } type StopEdgeDeploymentStageOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopEdgeDeploymentStageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopEdgeDeploymentStage{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopEdgeDeploymentStage{}, 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 = addOpStopEdgeDeploymentStageValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopEdgeDeploymentStage(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopEdgeDeploymentStage(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopEdgeDeploymentStage", } }
125
aws-sdk-go-v2
aws
Go
// 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" ) // Request to stop an edge packaging job. func (c *Client) StopEdgePackagingJob(ctx context.Context, params *StopEdgePackagingJobInput, optFns ...func(*Options)) (*StopEdgePackagingJobOutput, error) { if params == nil { params = &StopEdgePackagingJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopEdgePackagingJob", params, optFns, c.addOperationStopEdgePackagingJobMiddlewares) if err != nil { return nil, err } out := result.(*StopEdgePackagingJobOutput) out.ResultMetadata = metadata return out, nil } type StopEdgePackagingJobInput struct { // The name of the edge packaging job. // // This member is required. EdgePackagingJobName *string noSmithyDocumentSerde } type StopEdgePackagingJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopEdgePackagingJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopEdgePackagingJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopEdgePackagingJob{}, 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 = addOpStopEdgePackagingJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopEdgePackagingJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopEdgePackagingJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopEdgePackagingJob", } }
120
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a running hyperparameter tuning job and all running training jobs that // the tuning job launched. All model artifacts output from the training jobs are // stored in Amazon Simple Storage Service (Amazon S3). All data that the training // jobs write to Amazon CloudWatch Logs are still available in CloudWatch. After // the tuning job moves to the Stopped state, it releases all reserved resources // for the tuning job. func (c *Client) StopHyperParameterTuningJob(ctx context.Context, params *StopHyperParameterTuningJobInput, optFns ...func(*Options)) (*StopHyperParameterTuningJobOutput, error) { if params == nil { params = &StopHyperParameterTuningJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopHyperParameterTuningJob", params, optFns, c.addOperationStopHyperParameterTuningJobMiddlewares) if err != nil { return nil, err } out := result.(*StopHyperParameterTuningJobOutput) out.ResultMetadata = metadata return out, nil } type StopHyperParameterTuningJobInput struct { // The name of the tuning job to stop. // // This member is required. HyperParameterTuningJobName *string noSmithyDocumentSerde } type StopHyperParameterTuningJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopHyperParameterTuningJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopHyperParameterTuningJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopHyperParameterTuningJob{}, 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 = addOpStopHyperParameterTuningJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopHyperParameterTuningJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopHyperParameterTuningJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopHyperParameterTuningJob", } }
125
aws-sdk-go-v2
aws
Go
// 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" ) // Stops an inference experiment. func (c *Client) StopInferenceExperiment(ctx context.Context, params *StopInferenceExperimentInput, optFns ...func(*Options)) (*StopInferenceExperimentOutput, error) { if params == nil { params = &StopInferenceExperimentInput{} } result, metadata, err := c.invokeOperation(ctx, "StopInferenceExperiment", params, optFns, c.addOperationStopInferenceExperimentMiddlewares) if err != nil { return nil, err } out := result.(*StopInferenceExperimentOutput) out.ResultMetadata = metadata return out, nil } type StopInferenceExperimentInput struct { // Array of key-value pairs, with names of variants mapped to actions. The // possible actions are the following: // - Promote - Promote the shadow variant to a production variant // - Remove - Delete the variant // - Retain - Keep the variant as it is // // This member is required. ModelVariantActions map[string]types.ModelVariantAction // The name of the inference experiment to stop. // // This member is required. Name *string // An array of ModelVariantConfig objects. There is one for each variant that you // want to deploy after the inference experiment stops. Each ModelVariantConfig // describes the infrastructure configuration for deploying the corresponding // variant. DesiredModelVariants []types.ModelVariantConfig // The desired state of the experiment after stopping. The possible states are the // following: // - Completed : The experiment completed successfully // - Cancelled : The experiment was canceled DesiredState types.InferenceExperimentStopDesiredState // The reason for stopping the experiment. Reason *string noSmithyDocumentSerde } type StopInferenceExperimentOutput struct { // The ARN of the stopped inference experiment. // // This member is required. InferenceExperimentArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopInferenceExperimentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopInferenceExperiment{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopInferenceExperiment{}, 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 = addOpStopInferenceExperimentValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopInferenceExperiment(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopInferenceExperiment(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopInferenceExperiment", } }
151
aws-sdk-go-v2
aws
Go
// 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" ) // Stops an Inference Recommender job. func (c *Client) StopInferenceRecommendationsJob(ctx context.Context, params *StopInferenceRecommendationsJobInput, optFns ...func(*Options)) (*StopInferenceRecommendationsJobOutput, error) { if params == nil { params = &StopInferenceRecommendationsJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopInferenceRecommendationsJob", params, optFns, c.addOperationStopInferenceRecommendationsJobMiddlewares) if err != nil { return nil, err } out := result.(*StopInferenceRecommendationsJobOutput) out.ResultMetadata = metadata return out, nil } type StopInferenceRecommendationsJobInput struct { // The name of the job you want to stop. // // This member is required. JobName *string noSmithyDocumentSerde } type StopInferenceRecommendationsJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopInferenceRecommendationsJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopInferenceRecommendationsJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopInferenceRecommendationsJob{}, 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 = addOpStopInferenceRecommendationsJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopInferenceRecommendationsJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopInferenceRecommendationsJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopInferenceRecommendationsJob", } }
120
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a running labeling job. A job that is stopped cannot be restarted. Any // results obtained before the job is stopped are placed in the Amazon S3 output // bucket. func (c *Client) StopLabelingJob(ctx context.Context, params *StopLabelingJobInput, optFns ...func(*Options)) (*StopLabelingJobOutput, error) { if params == nil { params = &StopLabelingJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopLabelingJob", params, optFns, c.addOperationStopLabelingJobMiddlewares) if err != nil { return nil, err } out := result.(*StopLabelingJobOutput) out.ResultMetadata = metadata return out, nil } type StopLabelingJobInput struct { // The name of the labeling job to stop. // // This member is required. LabelingJobName *string noSmithyDocumentSerde } type StopLabelingJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopLabelingJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopLabelingJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopLabelingJob{}, 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 = addOpStopLabelingJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopLabelingJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopLabelingJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopLabelingJob", } }
122
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a previously started monitoring schedule. func (c *Client) StopMonitoringSchedule(ctx context.Context, params *StopMonitoringScheduleInput, optFns ...func(*Options)) (*StopMonitoringScheduleOutput, error) { if params == nil { params = &StopMonitoringScheduleInput{} } result, metadata, err := c.invokeOperation(ctx, "StopMonitoringSchedule", params, optFns, c.addOperationStopMonitoringScheduleMiddlewares) if err != nil { return nil, err } out := result.(*StopMonitoringScheduleOutput) out.ResultMetadata = metadata return out, nil } type StopMonitoringScheduleInput struct { // The name of the schedule to stop. // // This member is required. MonitoringScheduleName *string noSmithyDocumentSerde } type StopMonitoringScheduleOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopMonitoringScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopMonitoringSchedule{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopMonitoringSchedule{}, 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 = addOpStopMonitoringScheduleValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopMonitoringSchedule(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopMonitoringSchedule(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopMonitoringSchedule", } }
120
aws-sdk-go-v2
aws
Go
// 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" ) // Terminates the ML compute instance. Before terminating the instance, SageMaker // disconnects the ML storage volume from it. SageMaker preserves the ML storage // volume. SageMaker stops charging you for the ML compute instance when you call // StopNotebookInstance . To access data on the ML storage volume for a notebook // instance that has been terminated, call the StartNotebookInstance API. // StartNotebookInstance launches another ML compute instance, configures it, and // attaches the preserved ML storage volume so you can continue your work. func (c *Client) StopNotebookInstance(ctx context.Context, params *StopNotebookInstanceInput, optFns ...func(*Options)) (*StopNotebookInstanceOutput, error) { if params == nil { params = &StopNotebookInstanceInput{} } result, metadata, err := c.invokeOperation(ctx, "StopNotebookInstance", params, optFns, c.addOperationStopNotebookInstanceMiddlewares) if err != nil { return nil, err } out := result.(*StopNotebookInstanceOutput) out.ResultMetadata = metadata return out, nil } type StopNotebookInstanceInput struct { // The name of the notebook instance to terminate. // // This member is required. NotebookInstanceName *string noSmithyDocumentSerde } type StopNotebookInstanceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopNotebookInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopNotebookInstance{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopNotebookInstance{}, 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 = addOpStopNotebookInstanceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopNotebookInstance(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopNotebookInstance(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopNotebookInstance", } }
126
aws-sdk-go-v2
aws
Go
// 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/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Stops a pipeline execution. Callback Step A pipeline execution won't stop while // a callback step is running. When you call StopPipelineExecution on a pipeline // execution with a running callback step, SageMaker Pipelines sends an additional // Amazon SQS message to the specified SQS queue. The body of the SQS message // contains a "Status" field which is set to "Stopping". You should add logic to // your Amazon SQS message consumer to take any needed action (for example, // resource cleanup) upon receipt of the message followed by a call to // SendPipelineExecutionStepSuccess or SendPipelineExecutionStepFailure . Only when // SageMaker Pipelines receives one of these calls will it stop the pipeline // execution. Lambda Step A pipeline execution can't be stopped while a lambda step // is running because the Lambda function invoked by the lambda step can't be // stopped. If you attempt to stop the execution while the Lambda function is // running, the pipeline waits for the Lambda function to finish or until the // timeout is hit, whichever occurs first, and then stops. If the Lambda function // finishes, the pipeline execution status is Stopped . If the timeout is hit the // pipeline execution status is Failed . func (c *Client) StopPipelineExecution(ctx context.Context, params *StopPipelineExecutionInput, optFns ...func(*Options)) (*StopPipelineExecutionOutput, error) { if params == nil { params = &StopPipelineExecutionInput{} } result, metadata, err := c.invokeOperation(ctx, "StopPipelineExecution", params, optFns, c.addOperationStopPipelineExecutionMiddlewares) if err != nil { return nil, err } out := result.(*StopPipelineExecutionOutput) out.ResultMetadata = metadata return out, nil } type StopPipelineExecutionInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the operation. An idempotent operation completes no more than once. // // This member is required. ClientRequestToken *string // The Amazon Resource Name (ARN) of the pipeline execution. // // This member is required. PipelineExecutionArn *string noSmithyDocumentSerde } type StopPipelineExecutionOutput struct { // The Amazon Resource Name (ARN) of the pipeline execution. PipelineExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopPipelineExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopPipelineExecution{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopPipelineExecution{}, 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 = addIdempotencyToken_opStopPipelineExecutionMiddleware(stack, options); err != nil { return err } if err = addOpStopPipelineExecutionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopPipelineExecution(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } type idempotencyToken_initializeOpStopPipelineExecution struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpStopPipelineExecution) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpStopPipelineExecution) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*StopPipelineExecutionInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *StopPipelineExecutionInput ") } if input.ClientRequestToken == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.ClientRequestToken = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opStopPipelineExecutionMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpStopPipelineExecution{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opStopPipelineExecution(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopPipelineExecution", } }
182
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a processing job. func (c *Client) StopProcessingJob(ctx context.Context, params *StopProcessingJobInput, optFns ...func(*Options)) (*StopProcessingJobOutput, error) { if params == nil { params = &StopProcessingJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopProcessingJob", params, optFns, c.addOperationStopProcessingJobMiddlewares) if err != nil { return nil, err } out := result.(*StopProcessingJobOutput) out.ResultMetadata = metadata return out, nil } type StopProcessingJobInput struct { // The name of the processing job to stop. // // This member is required. ProcessingJobName *string noSmithyDocumentSerde } type StopProcessingJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopProcessingJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopProcessingJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopProcessingJob{}, 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 = addOpStopProcessingJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopProcessingJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopProcessingJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopProcessingJob", } }
120
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a training job. To stop a job, SageMaker sends the algorithm the SIGTERM // signal, which delays job termination for 120 seconds. Algorithms might use this // 120-second window to save the model artifacts, so the results of the training is // not lost. When it receives a StopTrainingJob request, SageMaker changes the // status of the job to Stopping . After SageMaker stops the job, it sets the // status to Stopped . func (c *Client) StopTrainingJob(ctx context.Context, params *StopTrainingJobInput, optFns ...func(*Options)) (*StopTrainingJobOutput, error) { if params == nil { params = &StopTrainingJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopTrainingJob", params, optFns, c.addOperationStopTrainingJobMiddlewares) if err != nil { return nil, err } out := result.(*StopTrainingJobOutput) out.ResultMetadata = metadata return out, nil } type StopTrainingJobInput struct { // The name of the training job to stop. // // This member is required. TrainingJobName *string noSmithyDocumentSerde } type StopTrainingJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopTrainingJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopTrainingJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopTrainingJob{}, 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 = addOpStopTrainingJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopTrainingJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopTrainingJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopTrainingJob", } }
125
aws-sdk-go-v2
aws
Go
// 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" ) // Stops a batch transform job. When Amazon SageMaker receives a StopTransformJob // request, the status of the job changes to Stopping . After Amazon SageMaker // stops the job, the status is set to Stopped . When you stop a batch transform // job before it is completed, Amazon SageMaker doesn't store the job's output in // Amazon S3. func (c *Client) StopTransformJob(ctx context.Context, params *StopTransformJobInput, optFns ...func(*Options)) (*StopTransformJobOutput, error) { if params == nil { params = &StopTransformJobInput{} } result, metadata, err := c.invokeOperation(ctx, "StopTransformJob", params, optFns, c.addOperationStopTransformJobMiddlewares) if err != nil { return nil, err } out := result.(*StopTransformJobOutput) out.ResultMetadata = metadata return out, nil } type StopTransformJobInput struct { // The name of the batch transform job to stop. // // This member is required. TransformJobName *string noSmithyDocumentSerde } type StopTransformJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopTransformJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopTransformJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopTransformJob{}, 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 = addOpStopTransformJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopTransformJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopTransformJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopTransformJob", } }
124
aws-sdk-go-v2
aws
Go
// 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" ) // Updates an action. func (c *Client) UpdateAction(ctx context.Context, params *UpdateActionInput, optFns ...func(*Options)) (*UpdateActionOutput, error) { if params == nil { params = &UpdateActionInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateAction", params, optFns, c.addOperationUpdateActionMiddlewares) if err != nil { return nil, err } out := result.(*UpdateActionOutput) out.ResultMetadata = metadata return out, nil } type UpdateActionInput struct { // The name of the action to update. // // This member is required. ActionName *string // The new description for the action. Description *string // The new list of properties. Overwrites the current property list. Properties map[string]string // A list of properties to remove. PropertiesToRemove []string // The new status for the action. Status types.ActionStatus noSmithyDocumentSerde } type UpdateActionOutput struct { // The Amazon Resource Name (ARN) of the action. ActionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateActionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateAction{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateAction{}, 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 = addOpUpdateActionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAction(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateAction(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateAction", } }
137
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the properties of an AppImageConfig. func (c *Client) UpdateAppImageConfig(ctx context.Context, params *UpdateAppImageConfigInput, optFns ...func(*Options)) (*UpdateAppImageConfigOutput, error) { if params == nil { params = &UpdateAppImageConfigInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateAppImageConfig", params, optFns, c.addOperationUpdateAppImageConfigMiddlewares) if err != nil { return nil, err } out := result.(*UpdateAppImageConfigOutput) out.ResultMetadata = metadata return out, nil } type UpdateAppImageConfigInput struct { // The name of the AppImageConfig to update. // // This member is required. AppImageConfigName *string // The new KernelGateway app to run on the image. KernelGatewayImageConfig *types.KernelGatewayImageConfig noSmithyDocumentSerde } type UpdateAppImageConfigOutput struct { // The Amazon Resource Name (ARN) for the AppImageConfig. AppImageConfigArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateAppImageConfigMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateAppImageConfig{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateAppImageConfig{}, 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 = addOpUpdateAppImageConfigValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAppImageConfig(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateAppImageConfig(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateAppImageConfig", } }
128
aws-sdk-go-v2
aws
Go
// 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" ) // Updates an artifact. func (c *Client) UpdateArtifact(ctx context.Context, params *UpdateArtifactInput, optFns ...func(*Options)) (*UpdateArtifactOutput, error) { if params == nil { params = &UpdateArtifactInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateArtifact", params, optFns, c.addOperationUpdateArtifactMiddlewares) if err != nil { return nil, err } out := result.(*UpdateArtifactOutput) out.ResultMetadata = metadata return out, nil } type UpdateArtifactInput struct { // The Amazon Resource Name (ARN) of the artifact to update. // // This member is required. ArtifactArn *string // The new name for the artifact. ArtifactName *string // The new list of properties. Overwrites the current property list. Properties map[string]string // A list of properties to remove. PropertiesToRemove []string noSmithyDocumentSerde } type UpdateArtifactOutput struct { // The Amazon Resource Name (ARN) of the artifact. ArtifactArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateArtifactMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateArtifact{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateArtifact{}, 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 = addOpUpdateArtifactValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateArtifact(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateArtifact(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateArtifact", } }
133
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the specified Git repository with the specified values. func (c *Client) UpdateCodeRepository(ctx context.Context, params *UpdateCodeRepositoryInput, optFns ...func(*Options)) (*UpdateCodeRepositoryOutput, error) { if params == nil { params = &UpdateCodeRepositoryInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateCodeRepository", params, optFns, c.addOperationUpdateCodeRepositoryMiddlewares) if err != nil { return nil, err } out := result.(*UpdateCodeRepositoryOutput) out.ResultMetadata = metadata return out, nil } type UpdateCodeRepositoryInput struct { // The name of the Git repository to update. // // This member is required. CodeRepositoryName *string // The configuration of the git repository, including the URL and the Amazon // Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that // contains the credentials used to access the repository. The secret must have a // staging label of AWSCURRENT and must be in the following format: {"username": // UserName, "password": Password} GitConfig *types.GitConfigForUpdate noSmithyDocumentSerde } type UpdateCodeRepositoryOutput struct { // The ARN of the Git repository. // // This member is required. CodeRepositoryArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateCodeRepositoryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateCodeRepository{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateCodeRepository{}, 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 = addOpUpdateCodeRepositoryValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCodeRepository(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateCodeRepository(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateCodeRepository", } }
134
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a context. func (c *Client) UpdateContext(ctx context.Context, params *UpdateContextInput, optFns ...func(*Options)) (*UpdateContextOutput, error) { if params == nil { params = &UpdateContextInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateContext", params, optFns, c.addOperationUpdateContextMiddlewares) if err != nil { return nil, err } out := result.(*UpdateContextOutput) out.ResultMetadata = metadata return out, nil } type UpdateContextInput struct { // The name of the context to update. // // This member is required. ContextName *string // The new description for the context. Description *string // The new list of properties. Overwrites the current property list. Properties map[string]string // A list of properties to remove. PropertiesToRemove []string noSmithyDocumentSerde } type UpdateContextOutput struct { // The Amazon Resource Name (ARN) of the context. ContextArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateContextMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateContext{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateContext{}, 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 = addOpUpdateContextValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateContext(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateContext(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateContext", } }
133
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a fleet of devices. func (c *Client) UpdateDeviceFleet(ctx context.Context, params *UpdateDeviceFleetInput, optFns ...func(*Options)) (*UpdateDeviceFleetOutput, error) { if params == nil { params = &UpdateDeviceFleetInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateDeviceFleet", params, optFns, c.addOperationUpdateDeviceFleetMiddlewares) if err != nil { return nil, err } out := result.(*UpdateDeviceFleetOutput) out.ResultMetadata = metadata return out, nil } type UpdateDeviceFleetInput struct { // The name of the fleet. // // This member is required. DeviceFleetName *string // Output configuration for storing sample data collected by the fleet. // // This member is required. OutputConfig *types.EdgeOutputConfig // Description of the fleet. Description *string // Whether to create an Amazon Web Services IoT Role Alias during device fleet // creation. The name of the role alias generated will match this pattern: // "SageMakerEdge-{DeviceFleetName}". For example, if your device fleet is called // "demo-fleet", the name of the role alias will be "SageMakerEdge-demo-fleet". EnableIotRoleAlias *bool // The Amazon Resource Name (ARN) of the device. RoleArn *string noSmithyDocumentSerde } type UpdateDeviceFleetOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateDeviceFleetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDeviceFleet{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDeviceFleet{}, 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 = addOpUpdateDeviceFleetValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDeviceFleet(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateDeviceFleet(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateDeviceFleet", } }
138
aws-sdk-go-v2
aws
Go
// 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" ) // Updates one or more devices in a fleet. func (c *Client) UpdateDevices(ctx context.Context, params *UpdateDevicesInput, optFns ...func(*Options)) (*UpdateDevicesOutput, error) { if params == nil { params = &UpdateDevicesInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateDevices", params, optFns, c.addOperationUpdateDevicesMiddlewares) if err != nil { return nil, err } out := result.(*UpdateDevicesOutput) out.ResultMetadata = metadata return out, nil } type UpdateDevicesInput struct { // The name of the fleet the devices belong to. // // This member is required. DeviceFleetName *string // List of devices to register with Edge Manager agent. // // This member is required. Devices []types.Device noSmithyDocumentSerde } type UpdateDevicesOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateDevicesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDevices{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDevices{}, 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 = addOpUpdateDevicesValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDevices(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateDevices(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateDevices", } }
126
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the default settings for new user profiles in the domain. func (c *Client) UpdateDomain(ctx context.Context, params *UpdateDomainInput, optFns ...func(*Options)) (*UpdateDomainOutput, error) { if params == nil { params = &UpdateDomainInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateDomain", params, optFns, c.addOperationUpdateDomainMiddlewares) if err != nil { return nil, err } out := result.(*UpdateDomainOutput) out.ResultMetadata = metadata return out, nil } type UpdateDomainInput struct { // The ID of the domain to be updated. // // This member is required. DomainId *string // The entity that creates and manages the required security groups for inter-app // communication in VPCOnly mode. Required when CreateDomain.AppNetworkAccessType // is VPCOnly and // DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is // provided. If setting up the domain for use with RStudio, this value must be set // to Service . AppSecurityGroupManagement types.AppSecurityGroupManagement // The default settings used to create a space within the Domain. DefaultSpaceSettings *types.DefaultSpaceSettings // A collection of settings. DefaultUserSettings *types.UserSettings // A collection of DomainSettings configuration values to update. DomainSettingsForUpdate *types.DomainSettingsForUpdate noSmithyDocumentSerde } type UpdateDomainOutput struct { // The Amazon Resource Name (ARN) of the domain. DomainArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDomain{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDomain{}, 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 = addOpUpdateDomainValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDomain(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateDomain(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateDomain", } }
142
aws-sdk-go-v2
aws
Go
// 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" ) // Deploys the new EndpointConfig specified in the request, switches to using // newly created endpoint, and then deletes resources provisioned for the endpoint // using the previous EndpointConfig (there is no availability loss). When // SageMaker receives the request, it sets the endpoint status to Updating . After // updating the endpoint, it sets the status to InService . To check the status of // an endpoint, use the DescribeEndpoint (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeEndpoint.html) // API. You must not delete an EndpointConfig in use by an endpoint that is live // or while the UpdateEndpoint or CreateEndpoint operations are being performed on // the endpoint. To update an endpoint, you must create a new EndpointConfig . If // you delete the EndpointConfig of an endpoint that is active or being created or // updated you may lose visibility into the instance type the endpoint is using. // The endpoint must be deleted in order to stop incurring charges. func (c *Client) UpdateEndpoint(ctx context.Context, params *UpdateEndpointInput, optFns ...func(*Options)) (*UpdateEndpointOutput, error) { if params == nil { params = &UpdateEndpointInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateEndpoint", params, optFns, c.addOperationUpdateEndpointMiddlewares) if err != nil { return nil, err } out := result.(*UpdateEndpointOutput) out.ResultMetadata = metadata return out, nil } type UpdateEndpointInput struct { // The name of the new endpoint configuration. // // This member is required. EndpointConfigName *string // The name of the endpoint whose configuration you want to update. // // This member is required. EndpointName *string // The deployment configuration for an endpoint, which contains the desired // deployment strategy and rollback configurations. DeploymentConfig *types.DeploymentConfig // When you are updating endpoint resources with RetainAllVariantProperties , whose // value is set to true , ExcludeRetainedVariantProperties specifies the list of // type VariantProperty (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_VariantProperty.html) // to override with the values provided by EndpointConfig . If you don't specify a // value for ExcludeRetainedVariantProperties , no variant properties are // overridden. ExcludeRetainedVariantProperties []types.VariantProperty // When updating endpoint resources, enables or disables the retention of variant // properties (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_VariantProperty.html) // , such as the instance count or the variant weight. To retain the variant // properties of an endpoint when updating it, set RetainAllVariantProperties to // true . To use the variant properties specified in a new EndpointConfig call // when updating an endpoint, set RetainAllVariantProperties to false . The default // is false . RetainAllVariantProperties bool // Specifies whether to reuse the last deployment configuration. The default value // is false (the configuration is not reused). RetainDeploymentConfig bool noSmithyDocumentSerde } type UpdateEndpointOutput struct { // The Amazon Resource Name (ARN) of the endpoint. // // This member is required. EndpointArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateEndpoint{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateEndpoint{}, 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 = addOpUpdateEndpointValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateEndpoint(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateEndpoint(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateEndpoint", } }
168
aws-sdk-go-v2
aws
Go
// 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" ) // Updates variant weight of one or more variants associated with an existing // endpoint, or capacity of one variant associated with an existing endpoint. When // it receives the request, SageMaker sets the endpoint status to Updating . After // updating the endpoint, it sets the status to InService . To check the status of // an endpoint, use the DescribeEndpoint (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeEndpoint.html) // API. func (c *Client) UpdateEndpointWeightsAndCapacities(ctx context.Context, params *UpdateEndpointWeightsAndCapacitiesInput, optFns ...func(*Options)) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { if params == nil { params = &UpdateEndpointWeightsAndCapacitiesInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateEndpointWeightsAndCapacities", params, optFns, c.addOperationUpdateEndpointWeightsAndCapacitiesMiddlewares) if err != nil { return nil, err } out := result.(*UpdateEndpointWeightsAndCapacitiesOutput) out.ResultMetadata = metadata return out, nil } type UpdateEndpointWeightsAndCapacitiesInput struct { // An object that provides new capacity and weight values for a variant. // // This member is required. DesiredWeightsAndCapacities []types.DesiredWeightAndCapacity // The name of an existing SageMaker endpoint. // // This member is required. EndpointName *string noSmithyDocumentSerde } type UpdateEndpointWeightsAndCapacitiesOutput struct { // The Amazon Resource Name (ARN) of the updated endpoint. // // This member is required. EndpointArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateEndpointWeightsAndCapacitiesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateEndpointWeightsAndCapacities{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities{}, 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 = addOpUpdateEndpointWeightsAndCapacitiesValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateEndpointWeightsAndCapacities(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateEndpointWeightsAndCapacities(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateEndpointWeightsAndCapacities", } }
137
aws-sdk-go-v2
aws
Go
// 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" ) // Adds, updates, or removes the description of an experiment. Updates the display // name of an experiment. func (c *Client) UpdateExperiment(ctx context.Context, params *UpdateExperimentInput, optFns ...func(*Options)) (*UpdateExperimentOutput, error) { if params == nil { params = &UpdateExperimentInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateExperiment", params, optFns, c.addOperationUpdateExperimentMiddlewares) if err != nil { return nil, err } out := result.(*UpdateExperimentOutput) out.ResultMetadata = metadata return out, nil } type UpdateExperimentInput struct { // The name of the experiment to update. // // This member is required. ExperimentName *string // The description of the experiment. Description *string // The name of the experiment as displayed. The name doesn't need to be unique. If // DisplayName isn't specified, ExperimentName is displayed. DisplayName *string noSmithyDocumentSerde } type UpdateExperimentOutput struct { // The Amazon Resource Name (ARN) of the experiment. ExperimentArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateExperimentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateExperiment{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateExperiment{}, 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 = addOpUpdateExperimentValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateExperiment(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateExperiment(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateExperiment", } }
132
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the feature group. func (c *Client) UpdateFeatureGroup(ctx context.Context, params *UpdateFeatureGroupInput, optFns ...func(*Options)) (*UpdateFeatureGroupOutput, error) { if params == nil { params = &UpdateFeatureGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateFeatureGroup", params, optFns, c.addOperationUpdateFeatureGroupMiddlewares) if err != nil { return nil, err } out := result.(*UpdateFeatureGroupOutput) out.ResultMetadata = metadata return out, nil } type UpdateFeatureGroupInput struct { // The name of the feature group that you're updating. // // This member is required. FeatureGroupName *string // Updates the feature group. Updating a feature group is an asynchronous // operation. When you get an HTTP 200 response, you've made a valid request. It // takes some time after you've made a valid request for Feature Store to update // the feature group. FeatureAdditions []types.FeatureDefinition // Updates the feature group online store configuration. OnlineStoreConfig *types.OnlineStoreConfigUpdate noSmithyDocumentSerde } type UpdateFeatureGroupOutput struct { // The Amazon Resource Number (ARN) of the feature group that you're updating. // // This member is required. FeatureGroupArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateFeatureGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateFeatureGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateFeatureGroup{}, 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 = addOpUpdateFeatureGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateFeatureGroup(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateFeatureGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateFeatureGroup", } }
136
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the description and parameters of the feature group. func (c *Client) UpdateFeatureMetadata(ctx context.Context, params *UpdateFeatureMetadataInput, optFns ...func(*Options)) (*UpdateFeatureMetadataOutput, error) { if params == nil { params = &UpdateFeatureMetadataInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateFeatureMetadata", params, optFns, c.addOperationUpdateFeatureMetadataMiddlewares) if err != nil { return nil, err } out := result.(*UpdateFeatureMetadataOutput) out.ResultMetadata = metadata return out, nil } type UpdateFeatureMetadataInput struct { // The name of the feature group containing the feature that you're updating. // // This member is required. FeatureGroupName *string // The name of the feature that you're updating. // // This member is required. FeatureName *string // A description that you can write to better describe the feature. Description *string // A list of key-value pairs that you can add to better describe the feature. ParameterAdditions []types.FeatureParameter // A list of parameter keys that you can specify to remove parameters that // describe your feature. ParameterRemovals []string noSmithyDocumentSerde } type UpdateFeatureMetadataOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateFeatureMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateFeatureMetadata{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateFeatureMetadata{}, 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 = addOpUpdateFeatureMetadataValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateFeatureMetadata(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateFeatureMetadata(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateFeatureMetadata", } }
136
aws-sdk-go-v2
aws
Go
// 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" ) // Update a hub. Hub APIs are only callable through SageMaker Studio. func (c *Client) UpdateHub(ctx context.Context, params *UpdateHubInput, optFns ...func(*Options)) (*UpdateHubOutput, error) { if params == nil { params = &UpdateHubInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateHub", params, optFns, c.addOperationUpdateHubMiddlewares) if err != nil { return nil, err } out := result.(*UpdateHubOutput) out.ResultMetadata = metadata return out, nil } type UpdateHubInput struct { // The name of the hub to update. // // This member is required. HubName *string // A description of the updated hub. HubDescription *string // The display name of the hub. HubDisplayName *string // The searchable keywords for the hub. HubSearchKeywords []string noSmithyDocumentSerde } type UpdateHubOutput struct { // The Amazon Resource Name (ARN) of the updated hub. // // This member is required. HubArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateHubMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateHub{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateHub{}, 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 = addOpUpdateHubValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateHub(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateHub(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateHub", } }
135
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the properties of a SageMaker image. To change the image's tags, use // the AddTags (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) // and DeleteTags (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DeleteTags.html) // APIs. func (c *Client) UpdateImage(ctx context.Context, params *UpdateImageInput, optFns ...func(*Options)) (*UpdateImageOutput, error) { if params == nil { params = &UpdateImageInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateImage", params, optFns, c.addOperationUpdateImageMiddlewares) if err != nil { return nil, err } out := result.(*UpdateImageOutput) out.ResultMetadata = metadata return out, nil } type UpdateImageInput struct { // The name of the image to update. // // This member is required. ImageName *string // A list of properties to delete. Only the Description and DisplayName properties // can be deleted. DeleteProperties []string // The new description for the image. Description *string // The new display name for the image. DisplayName *string // The new ARN for the IAM role that enables Amazon SageMaker to perform tasks on // your behalf. RoleArn *string noSmithyDocumentSerde } type UpdateImageOutput struct { // The ARN of the image. ImageArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateImage{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateImage{}, 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 = addOpUpdateImageValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateImage(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateImage(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateImage", } }
141
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the properties of a SageMaker image version. func (c *Client) UpdateImageVersion(ctx context.Context, params *UpdateImageVersionInput, optFns ...func(*Options)) (*UpdateImageVersionOutput, error) { if params == nil { params = &UpdateImageVersionInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateImageVersion", params, optFns, c.addOperationUpdateImageVersionMiddlewares) if err != nil { return nil, err } out := result.(*UpdateImageVersionOutput) out.ResultMetadata = metadata return out, nil } type UpdateImageVersionInput struct { // The name of the image. // // This member is required. ImageName *string // The alias of the image version. Alias *string // A list of aliases to add. AliasesToAdd []string // A list of aliases to delete. AliasesToDelete []string // Indicates Horovod compatibility. Horovod bool // Indicates SageMaker job type compatibility. // - TRAINING : The image version is compatible with SageMaker training jobs. // - INFERENCE : The image version is compatible with SageMaker inference jobs. // - NOTEBOOK_KERNEL : The image version is compatible with SageMaker notebook // kernels. JobType types.JobType // The machine learning framework vended in the image version. MLFramework *string // Indicates CPU or GPU compatibility. // - CPU : The image version is compatible with CPU. // - GPU : The image version is compatible with GPU. Processor types.Processor // The supported programming language and its version. ProgrammingLang *string // The maintainer description of the image version. ReleaseNotes *string // The availability of the image version specified by the maintainer. // - NOT_PROVIDED : The maintainers did not provide a status for image version // stability. // - STABLE : The image version is stable. // - TO_BE_ARCHIVED : The image version is set to be archived. Custom image // versions that are set to be archived are automatically archived after three // months. // - ARCHIVED : The image version is archived. Archived image versions are not // searchable and are no longer actively supported. VendorGuidance types.VendorGuidance // The version of the image. Version *int32 noSmithyDocumentSerde } type UpdateImageVersionOutput struct { // The ARN of the image version. ImageVersionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateImageVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateImageVersion{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateImageVersion{}, 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 = addOpUpdateImageVersionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateImageVersion(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateImageVersion(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateImageVersion", } }
172
aws-sdk-go-v2
aws
Go
// 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" ) // Updates an inference experiment that you created. The status of the inference // experiment has to be either Created , Running . For more information on the // status of an inference experiment, see DescribeInferenceExperiment (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeInferenceExperiment.html) // . func (c *Client) UpdateInferenceExperiment(ctx context.Context, params *UpdateInferenceExperimentInput, optFns ...func(*Options)) (*UpdateInferenceExperimentOutput, error) { if params == nil { params = &UpdateInferenceExperimentInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateInferenceExperiment", params, optFns, c.addOperationUpdateInferenceExperimentMiddlewares) if err != nil { return nil, err } out := result.(*UpdateInferenceExperimentOutput) out.ResultMetadata = metadata return out, nil } type UpdateInferenceExperimentInput struct { // The name of the inference experiment to be updated. // // This member is required. Name *string // The Amazon S3 location and configuration for storing inference request and // response data. DataStorageConfig *types.InferenceExperimentDataStorageConfig // The description of the inference experiment. Description *string // An array of ModelVariantConfig objects. There is one for each variant, whose // infrastructure configuration you want to update. ModelVariants []types.ModelVariantConfig // The duration for which the inference experiment will run. If the status of the // inference experiment is Created , then you can update both the start and end // dates. If the status of the inference experiment is Running , then you can // update only the end date. Schedule *types.InferenceExperimentSchedule // The configuration of ShadowMode inference experiment type. Use this field to // specify a production variant which takes all the inference requests, and a // shadow variant to which Amazon SageMaker replicates a percentage of the // inference requests. For the shadow variant also specify the percentage of // requests that Amazon SageMaker replicates. ShadowModeConfig *types.ShadowModeConfig noSmithyDocumentSerde } type UpdateInferenceExperimentOutput struct { // The ARN of the updated inference experiment. // // This member is required. InferenceExperimentArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateInferenceExperimentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateInferenceExperiment{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateInferenceExperiment{}, 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 = addOpUpdateInferenceExperimentValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateInferenceExperiment(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateInferenceExperiment(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateInferenceExperiment", } }
154
aws-sdk-go-v2
aws
Go
// 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" ) // Update an Amazon SageMaker Model Card. You cannot update both model card // content and model card status in a single call. func (c *Client) UpdateModelCard(ctx context.Context, params *UpdateModelCardInput, optFns ...func(*Options)) (*UpdateModelCardOutput, error) { if params == nil { params = &UpdateModelCardInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateModelCard", params, optFns, c.addOperationUpdateModelCardMiddlewares) if err != nil { return nil, err } out := result.(*UpdateModelCardOutput) out.ResultMetadata = metadata return out, nil } type UpdateModelCardInput struct { // The name of the model card to update. // // This member is required. ModelCardName *string // The updated model card content. Content must be in model card JSON schema (https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema) // and provided as a string. When updating model card content, be sure to include // the full content and not just updated content. Content *string // The approval status of the model card within your organization. Different // organizations might have different criteria for model card review and approval. // - Draft : The model card is a work in progress. // - PendingReview : The model card is pending review. // - Approved : The model card is approved. // - Archived : The model card is archived. No more updates should be made to the // model card, but it can still be exported. ModelCardStatus types.ModelCardStatus noSmithyDocumentSerde } type UpdateModelCardOutput struct { // The Amazon Resource Name (ARN) of the updated model card. // // This member is required. ModelCardArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateModelCardMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateModelCard{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateModelCard{}, 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 = addOpUpdateModelCardValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateModelCard(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateModelCard(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateModelCard", } }
142
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a versioned model. func (c *Client) UpdateModelPackage(ctx context.Context, params *UpdateModelPackageInput, optFns ...func(*Options)) (*UpdateModelPackageOutput, error) { if params == nil { params = &UpdateModelPackageInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateModelPackage", params, optFns, c.addOperationUpdateModelPackageMiddlewares) if err != nil { return nil, err } out := result.(*UpdateModelPackageOutput) out.ResultMetadata = metadata return out, nil } type UpdateModelPackageInput struct { // The Amazon Resource Name (ARN) of the model package. // // This member is required. ModelPackageArn *string // An array of additional Inference Specification objects to be added to the // existing array additional Inference Specification. Total number of additional // Inference Specifications can not exceed 15. 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. AdditionalInferenceSpecificationsToAdd []types.AdditionalInferenceSpecificationDefinition // A description for the approval status of the model. ApprovalDescription *string // The metadata properties associated with the model package versions. CustomerMetadataProperties map[string]string // The metadata properties associated with the model package versions to remove. CustomerMetadataPropertiesToRemove []string // The approval status of the model. ModelApprovalStatus types.ModelApprovalStatus noSmithyDocumentSerde } type UpdateModelPackageOutput struct { // The Amazon Resource Name (ARN) of the model. // // This member is required. ModelPackageArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateModelPackageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateModelPackage{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateModelPackage{}, 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 = addOpUpdateModelPackageValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateModelPackage(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateModelPackage(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateModelPackage", } }
147
aws-sdk-go-v2
aws
Go
// 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" ) // Update the parameters of a model monitor alert. func (c *Client) UpdateMonitoringAlert(ctx context.Context, params *UpdateMonitoringAlertInput, optFns ...func(*Options)) (*UpdateMonitoringAlertOutput, error) { if params == nil { params = &UpdateMonitoringAlertInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateMonitoringAlert", params, optFns, c.addOperationUpdateMonitoringAlertMiddlewares) if err != nil { return nil, err } out := result.(*UpdateMonitoringAlertOutput) out.ResultMetadata = metadata return out, nil } type UpdateMonitoringAlertInput struct { // Within EvaluationPeriod , how many execution failures will raise an alert. // // This member is required. DatapointsToAlert *int32 // The number of most recent monitoring executions to consider when evaluating // alert status. // // This member is required. EvaluationPeriod *int32 // The name of a monitoring alert. // // This member is required. MonitoringAlertName *string // The name of a monitoring schedule. // // This member is required. MonitoringScheduleName *string noSmithyDocumentSerde } type UpdateMonitoringAlertOutput struct { // The Amazon Resource Name (ARN) of the monitoring schedule. // // This member is required. MonitoringScheduleArn *string // The name of a monitoring alert. MonitoringAlertName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateMonitoringAlertMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateMonitoringAlert{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateMonitoringAlert{}, 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 = addOpUpdateMonitoringAlertValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMonitoringAlert(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateMonitoringAlert(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateMonitoringAlert", } }
145
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a previously created schedule. func (c *Client) UpdateMonitoringSchedule(ctx context.Context, params *UpdateMonitoringScheduleInput, optFns ...func(*Options)) (*UpdateMonitoringScheduleOutput, error) { if params == nil { params = &UpdateMonitoringScheduleInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateMonitoringSchedule", params, optFns, c.addOperationUpdateMonitoringScheduleMiddlewares) if err != nil { return nil, err } out := result.(*UpdateMonitoringScheduleOutput) out.ResultMetadata = metadata return out, nil } type UpdateMonitoringScheduleInput struct { // The configuration object that specifies the monitoring schedule and defines the // monitoring job. // // This member is required. MonitoringScheduleConfig *types.MonitoringScheduleConfig // The name of the monitoring schedule. The name must be unique within an Amazon // Web Services Region within an Amazon Web Services account. // // This member is required. MonitoringScheduleName *string noSmithyDocumentSerde } type UpdateMonitoringScheduleOutput struct { // The Amazon Resource Name (ARN) of the monitoring schedule. // // This member is required. MonitoringScheduleArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateMonitoringScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateMonitoringSchedule{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateMonitoringSchedule{}, 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 = addOpUpdateMonitoringScheduleValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMonitoringSchedule(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateMonitoringSchedule(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateMonitoringSchedule", } }
134
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a notebook instance. NotebookInstance updates include upgrading or // downgrading the ML compute instance used for your notebook instance to // accommodate changes in your workload requirements. func (c *Client) UpdateNotebookInstance(ctx context.Context, params *UpdateNotebookInstanceInput, optFns ...func(*Options)) (*UpdateNotebookInstanceOutput, error) { if params == nil { params = &UpdateNotebookInstanceInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateNotebookInstance", params, optFns, c.addOperationUpdateNotebookInstanceMiddlewares) if err != nil { return nil, err } out := result.(*UpdateNotebookInstanceOutput) out.ResultMetadata = metadata return out, nil } type UpdateNotebookInstanceInput struct { // The name of the notebook instance to update. // // This member is required. NotebookInstanceName *string // A list of the Elastic Inference (EI) instance types to associate with this // notebook instance. Currently only one EI instance type can be associated with a // notebook instance. For more information, see Using Elastic Inference in Amazon // SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html) . AcceleratorTypes []types.NotebookInstanceAcceleratorType // An array of up to three Git repositories to associate with the notebook // instance. These can be either the names of Git repositories stored as resources // in your account, or the URL of Git repositories in Amazon Web Services // CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. These repositories are cloned at the same level // as the default repository of your notebook instance. For more information, see // Associating Git Repositories with SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html) // . AdditionalCodeRepositories []string // The Git repository to associate with the notebook instance as its default code // repository. This can be either the name of a Git repository stored as a resource // in your account, or the URL of a Git repository in Amazon Web Services // CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) // or in any other Git repository. When you open a notebook instance, it opens in // the directory that contains this repository. For more information, see // Associating Git Repositories with SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html) // . DefaultCodeRepository *string // A list of the Elastic Inference (EI) instance types to remove from this // notebook instance. This operation is idempotent. If you specify an accelerator // type that is not associated with the notebook instance when you call this // method, it does not throw an error. DisassociateAcceleratorTypes bool // A list of names or URLs of the default Git repositories to remove from this // notebook instance. This operation is idempotent. If you specify a Git repository // that is not associated with the notebook instance when you call this method, it // does not throw an error. DisassociateAdditionalCodeRepositories bool // The name or URL of the default Git repository to remove from this notebook // instance. This operation is idempotent. If you specify a Git repository that is // not associated with the notebook instance when you call this method, it does not // throw an error. DisassociateDefaultCodeRepository bool // Set to true to remove the notebook instance lifecycle configuration currently // associated with the notebook instance. This operation is idempotent. If you // specify a lifecycle configuration that is not associated with the notebook // instance when you call this method, it does not throw an error. DisassociateLifecycleConfig bool // Information on the IMDS configuration of the notebook instance InstanceMetadataServiceConfiguration *types.InstanceMetadataServiceConfiguration // The Amazon ML compute instance type. InstanceType types.InstanceType // The name of a lifecycle configuration to associate with the notebook instance. // For information about lifestyle configurations, see Step 2.1: (Optional) // Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html) // . LifecycleConfigName *string // The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to // access the notebook instance. 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 SageMaker, the caller of this API must have // the iam:PassRole permission. RoleArn *string // Whether root access is enabled or disabled for users of the notebook instance. // The default value is Enabled . If you set this to Disabled , users don't have // root access on the notebook instance, but lifecycle configuration scripts still // run with root permissions. RootAccess types.RootAccess // The size, in GB, of the ML storage volume to attach to the notebook instance. // The default value is 5 GB. ML storage volumes are encrypted, so SageMaker can't // determine the amount of available free space on the volume. Because of this, you // can increase the volume size when you update a notebook instance, but you can't // decrease the volume size. If you want to decrease the size of the ML storage // volume in use, create a new notebook instance with the desired size. VolumeSizeInGB *int32 noSmithyDocumentSerde } type UpdateNotebookInstanceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateNotebookInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateNotebookInstance{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateNotebookInstance{}, 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 = addOpUpdateNotebookInstanceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateNotebookInstance(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateNotebookInstance(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateNotebookInstance", } }
205
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a notebook instance lifecycle configuration created with the // CreateNotebookInstanceLifecycleConfig (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateNotebookInstanceLifecycleConfig.html) // API. func (c *Client) UpdateNotebookInstanceLifecycleConfig(ctx context.Context, params *UpdateNotebookInstanceLifecycleConfigInput, optFns ...func(*Options)) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { if params == nil { params = &UpdateNotebookInstanceLifecycleConfigInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateNotebookInstanceLifecycleConfig", params, optFns, c.addOperationUpdateNotebookInstanceLifecycleConfigMiddlewares) if err != nil { return nil, err } out := result.(*UpdateNotebookInstanceLifecycleConfigOutput) out.ResultMetadata = metadata return out, nil } type UpdateNotebookInstanceLifecycleConfigInput struct { // The name of the lifecycle configuration. // // This member is required. NotebookInstanceLifecycleConfigName *string // The shell script that runs only once, when you create a notebook instance. The // shell script must be a base64-encoded string. OnCreate []types.NotebookInstanceLifecycleHook // The shell script that runs every time you start a notebook instance, including // when you create the notebook instance. The shell script must be a base64-encoded // string. OnStart []types.NotebookInstanceLifecycleHook noSmithyDocumentSerde } type UpdateNotebookInstanceLifecycleConfigOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateNotebookInstanceLifecycleConfigMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateNotebookInstanceLifecycleConfig{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig{}, 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 = addOpUpdateNotebookInstanceLifecycleConfigValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateNotebookInstanceLifecycleConfig(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateNotebookInstanceLifecycleConfig(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateNotebookInstanceLifecycleConfig", } }
132
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a pipeline. func (c *Client) UpdatePipeline(ctx context.Context, params *UpdatePipelineInput, optFns ...func(*Options)) (*UpdatePipelineOutput, error) { if params == nil { params = &UpdatePipelineInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdatePipeline", params, optFns, c.addOperationUpdatePipelineMiddlewares) if err != nil { return nil, err } out := result.(*UpdatePipelineOutput) out.ResultMetadata = metadata return out, nil } type UpdatePipelineInput struct { // The name of the pipeline to update. // // This member is required. PipelineName *string // If specified, it applies to all executions of this pipeline by default. ParallelismConfiguration *types.ParallelismConfiguration // The JSON pipeline definition. 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 // The description of the pipeline. PipelineDescription *string // The display name of the pipeline. PipelineDisplayName *string // The Amazon Resource Name (ARN) that the pipeline uses to execute. RoleArn *string noSmithyDocumentSerde } type UpdatePipelineOutput struct { // The Amazon Resource Name (ARN) of the updated pipeline. PipelineArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdatePipelineMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdatePipeline{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdatePipeline{}, 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 = addOpUpdatePipelineValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePipeline(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdatePipeline(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdatePipeline", } }
144
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a pipeline execution. func (c *Client) UpdatePipelineExecution(ctx context.Context, params *UpdatePipelineExecutionInput, optFns ...func(*Options)) (*UpdatePipelineExecutionOutput, error) { if params == nil { params = &UpdatePipelineExecutionInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdatePipelineExecution", params, optFns, c.addOperationUpdatePipelineExecutionMiddlewares) if err != nil { return nil, err } out := result.(*UpdatePipelineExecutionOutput) out.ResultMetadata = metadata return out, nil } type UpdatePipelineExecutionInput struct { // The Amazon Resource Name (ARN) of the pipeline execution. // // This member is required. PipelineExecutionArn *string // This configuration, if specified, overrides the parallelism configuration of // the parent pipeline for this specific run. ParallelismConfiguration *types.ParallelismConfiguration // The description of the pipeline execution. PipelineExecutionDescription *string // The display name of the pipeline execution. PipelineExecutionDisplayName *string noSmithyDocumentSerde } type UpdatePipelineExecutionOutput struct { // The Amazon Resource Name (ARN) of the updated pipeline execution. PipelineExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdatePipelineExecutionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdatePipelineExecution{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdatePipelineExecution{}, 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 = addOpUpdatePipelineExecutionValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePipelineExecution(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdatePipelineExecution(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdatePipelineExecution", } }
135
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a machine learning (ML) project that is created from a template that // sets up an ML pipeline from training to deploying an approved model. You must // not update a project that is in use. If you update the // ServiceCatalogProvisioningUpdateDetails of a project that is active or being // created, or updated, you may lose resources already created by the project. func (c *Client) UpdateProject(ctx context.Context, params *UpdateProjectInput, optFns ...func(*Options)) (*UpdateProjectOutput, error) { if params == nil { params = &UpdateProjectInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateProject", params, optFns, c.addOperationUpdateProjectMiddlewares) if err != nil { return nil, err } out := result.(*UpdateProjectOutput) out.ResultMetadata = metadata return out, nil } type UpdateProjectInput struct { // The name of the project. // // This member is required. ProjectName *string // The description for the project. ProjectDescription *string // The product ID and provisioning artifact ID to provision a service catalog. The // provisioning artifact ID will default to the latest provisioning artifact ID of // the product, if you don't provide the provisioning artifact ID. For more // information, see What is Amazon Web Services Service Catalog (https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html) // . ServiceCatalogProvisioningUpdateDetails *types.ServiceCatalogProvisioningUpdateDetails // 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 (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // . In addition, the project must have tag update constraints set in order to // include this parameter in the request. For more information, see Amazon Web // Services Service Catalog Tag Update Constraints (https://docs.aws.amazon.com/servicecatalog/latest/adminguide/constraints-resourceupdate.html) // . Tags []types.Tag noSmithyDocumentSerde } type UpdateProjectOutput struct { // The Amazon Resource Name (ARN) of the project. // // This member is required. ProjectArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateProjectMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateProject{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateProject{}, 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 = addOpUpdateProjectValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateProject(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateProject(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateProject", } }
150
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the settings of a space. func (c *Client) UpdateSpace(ctx context.Context, params *UpdateSpaceInput, optFns ...func(*Options)) (*UpdateSpaceOutput, error) { if params == nil { params = &UpdateSpaceInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateSpace", params, optFns, c.addOperationUpdateSpaceMiddlewares) if err != nil { return nil, err } out := result.(*UpdateSpaceOutput) out.ResultMetadata = metadata return out, nil } type UpdateSpaceInput struct { // The ID of the associated Domain. // // This member is required. DomainId *string // The name of the space. // // This member is required. SpaceName *string // A collection of space settings. SpaceSettings *types.SpaceSettings noSmithyDocumentSerde } type UpdateSpaceOutput struct { // The space's Amazon Resource Name (ARN). SpaceArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateSpaceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateSpace{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateSpace{}, 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 = addOpUpdateSpaceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSpace(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateSpace(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateSpace", } }
133
aws-sdk-go-v2
aws
Go
// 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" ) // Update a model training job to request a new Debugger profiling configuration // or to change warm pool retention length. func (c *Client) UpdateTrainingJob(ctx context.Context, params *UpdateTrainingJobInput, optFns ...func(*Options)) (*UpdateTrainingJobOutput, error) { if params == nil { params = &UpdateTrainingJobInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateTrainingJob", params, optFns, c.addOperationUpdateTrainingJobMiddlewares) if err != nil { return nil, err } out := result.(*UpdateTrainingJobOutput) out.ResultMetadata = metadata return out, nil } type UpdateTrainingJobInput struct { // The name of a training job to update the Debugger profiling configuration. // // This member is required. TrainingJobName *string // Configuration information for Amazon SageMaker Debugger system monitoring, // framework profiling, and storage paths. ProfilerConfig *types.ProfilerConfigForUpdate // Configuration information for Amazon SageMaker Debugger rules for profiling // system and framework metrics. ProfilerRuleConfigurations []types.ProfilerRuleConfiguration // The training job ResourceConfig to update warm pool retention length. ResourceConfig *types.ResourceConfigForUpdate noSmithyDocumentSerde } type UpdateTrainingJobOutput struct { // The Amazon Resource Name (ARN) of the training job. // // This member is required. TrainingJobArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateTrainingJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateTrainingJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateTrainingJob{}, 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 = addOpUpdateTrainingJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTrainingJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateTrainingJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateTrainingJob", } }
139
aws-sdk-go-v2
aws
Go
// 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" ) // Updates the display name of a trial. func (c *Client) UpdateTrial(ctx context.Context, params *UpdateTrialInput, optFns ...func(*Options)) (*UpdateTrialOutput, error) { if params == nil { params = &UpdateTrialInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateTrial", params, optFns, c.addOperationUpdateTrialMiddlewares) if err != nil { return nil, err } out := result.(*UpdateTrialOutput) out.ResultMetadata = metadata return out, nil } type UpdateTrialInput struct { // The name of the trial to update. // // This member is required. TrialName *string // The name of the trial as displayed. The name doesn't need to be unique. If // DisplayName isn't specified, TrialName is displayed. DisplayName *string noSmithyDocumentSerde } type UpdateTrialOutput struct { // The Amazon Resource Name (ARN) of the trial. TrialArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateTrialMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateTrial{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateTrial{}, 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 = addOpUpdateTrialValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTrial(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateTrial(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateTrial", } }
128
aws-sdk-go-v2
aws
Go
// 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" ) // Updates one or more properties of a trial component. func (c *Client) UpdateTrialComponent(ctx context.Context, params *UpdateTrialComponentInput, optFns ...func(*Options)) (*UpdateTrialComponentOutput, error) { if params == nil { params = &UpdateTrialComponentInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateTrialComponent", params, optFns, c.addOperationUpdateTrialComponentMiddlewares) if err != nil { return nil, err } out := result.(*UpdateTrialComponentOutput) out.ResultMetadata = metadata return out, nil } type UpdateTrialComponentInput struct { // The name of the component to update. // // This member is required. TrialComponentName *string // The name of the component as displayed. The name doesn't need to be unique. If // DisplayName isn't specified, TrialComponentName is displayed. DisplayName *string // When the component ended. EndTime *time.Time // Replaces all of the component's input artifacts with the specified artifacts or // adds new input artifacts. Existing input artifacts are replaced if the trial // component is updated with an identical input artifact key. InputArtifacts map[string]types.TrialComponentArtifact // The input artifacts to remove from the component. InputArtifactsToRemove []string // Replaces all of the component's output artifacts with the specified artifacts // or adds new output artifacts. Existing output artifacts are replaced if the // trial component is updated with an identical output artifact key. OutputArtifacts map[string]types.TrialComponentArtifact // The output artifacts to remove from the component. OutputArtifactsToRemove []string // Replaces all of the component's hyperparameters with the specified // hyperparameters or add new hyperparameters. Existing hyperparameters are // replaced if the trial component is updated with an identical hyperparameter key. Parameters map[string]types.TrialComponentParameterValue // The hyperparameters to remove from the component. ParametersToRemove []string // When the component started. StartTime *time.Time // The new status of the component. Status *types.TrialComponentStatus noSmithyDocumentSerde } type UpdateTrialComponentOutput struct { // The Amazon Resource Name (ARN) of the trial component. TrialComponentArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateTrialComponentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateTrialComponent{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateTrialComponent{}, 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 = addOpUpdateTrialComponentValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTrialComponent(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateTrialComponent(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateTrialComponent", } }
163
aws-sdk-go-v2
aws
Go
// 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" ) // Updates a user profile. func (c *Client) UpdateUserProfile(ctx context.Context, params *UpdateUserProfileInput, optFns ...func(*Options)) (*UpdateUserProfileOutput, error) { if params == nil { params = &UpdateUserProfileInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateUserProfile", params, optFns, c.addOperationUpdateUserProfileMiddlewares) if err != nil { return nil, err } out := result.(*UpdateUserProfileOutput) out.ResultMetadata = metadata return out, nil } type UpdateUserProfileInput struct { // The domain ID. // // This member is required. DomainId *string // The user profile name. // // This member is required. UserProfileName *string // A collection of settings. UserSettings *types.UserSettings noSmithyDocumentSerde } type UpdateUserProfileOutput struct { // The user profile Amazon Resource Name (ARN). UserProfileArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateUserProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateUserProfile{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateUserProfile{}, 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 = addOpUpdateUserProfileValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateUserProfile(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateUserProfile(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateUserProfile", } }
133
aws-sdk-go-v2
aws
Go
// 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" ) // Use this operation to update your workforce. You can use this operation to // require that workers use specific IP addresses to work on tasks and to update // your OpenID Connect (OIDC) Identity Provider (IdP) workforce configuration. The // worker portal is now supported in VPC and public internet. Use SourceIpConfig // to restrict worker access to tasks to a specific range of IP addresses. You // specify allowed IP addresses by creating a list of up to ten CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) // . By default, a workforce isn't restricted to specific IP addresses. If you // specify a range of IP addresses, workers who attempt to access tasks using any // IP address outside the specified range are denied and get a Not Found error // message on the worker portal. To restrict access to all the workers in public // internet, add the SourceIpConfig CIDR value as "10.0.0.0/16". Amazon SageMaker // does not support Source Ip restriction for worker portals in VPC. Use OidcConfig // to update the configuration of a workforce created using your own OIDC IdP. You // can only update your OIDC IdP configuration when there are no work teams // associated with your workforce. You can delete work teams using the // DeleteWorkteam (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DeleteWorkteam.html) // operation. After restricting access to a range of IP addresses or updating your // OIDC IdP configuration with this operation, you can view details about your // update workforce using the DescribeWorkforce (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeWorkforce.html) // operation. This operation only applies to private workforces. func (c *Client) UpdateWorkforce(ctx context.Context, params *UpdateWorkforceInput, optFns ...func(*Options)) (*UpdateWorkforceOutput, error) { if params == nil { params = &UpdateWorkforceInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateWorkforce", params, optFns, c.addOperationUpdateWorkforceMiddlewares) if err != nil { return nil, err } out := result.(*UpdateWorkforceOutput) out.ResultMetadata = metadata return out, nil } type UpdateWorkforceInput struct { // The name of the private workforce that you want to update. You can find your // workforce name by using the ListWorkforces (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ListWorkforces.html) // operation. // // This member is required. WorkforceName *string // Use this parameter to update your OIDC Identity Provider (IdP) configuration // for a workforce made using your own IdP. OidcConfig *types.OidcConfig // A list of one to ten worker IP address ranges ( CIDRs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) // ) that can be used to access tasks assigned to this workforce. Maximum: Ten CIDR // values SourceIpConfig *types.SourceIpConfig // Use this parameter to update your VPC configuration for a workforce. WorkforceVpcConfig *types.WorkforceVpcConfigRequest noSmithyDocumentSerde } type UpdateWorkforceOutput struct { // A single private workforce. You can create one private work force in each // Amazon Web Services Region. By default, any workforce-related API operation used // in a specific region will apply to the workforce created in that region. To // learn how to create a private workforce, see Create a Private Workforce (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-create-private.html) // . // // This member is required. Workforce *types.Workforce // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateWorkforceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateWorkforce{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateWorkforce{}, 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 = addOpUpdateWorkforceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateWorkforce(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateWorkforce(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateWorkforce", } }
164
aws-sdk-go-v2
aws
Go
// 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" ) // Updates an existing work team with new member definitions or description. func (c *Client) UpdateWorkteam(ctx context.Context, params *UpdateWorkteamInput, optFns ...func(*Options)) (*UpdateWorkteamOutput, error) { if params == nil { params = &UpdateWorkteamInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateWorkteam", params, optFns, c.addOperationUpdateWorkteamMiddlewares) if err != nil { return nil, err } out := result.(*UpdateWorkteamOutput) out.ResultMetadata = metadata return out, nil } type UpdateWorkteamInput struct { // The name of the work team to update. // // This member is required. WorkteamName *string // An updated description for the work team. Description *string // A list of MemberDefinition objects that contains objects that identify the // workers that make up the work team. Workforces can be created using Amazon // Cognito or your own OIDC Identity Provider (IdP). For private workforces created // using Amazon Cognito use CognitoMemberDefinition . For workforces created using // your own OIDC identity provider (IdP) use OidcMemberDefinition . You should not // provide input for both of these parameters in a single request. For workforces // created using Amazon Cognito, private work teams correspond to Amazon Cognito // user groups within the user pool used to create a workforce. All of the // CognitoMemberDefinition objects that make up the member definition must have the // same ClientId and UserPool values. To add a Amazon Cognito user group to an // existing worker pool, see Adding groups to a User Pool . For more information // about user pools, see Amazon Cognito User Pools (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html) // . For workforces created using your own OIDC IdP, specify the user groups that // you want to include in your private work team in OidcMemberDefinition by // listing those groups in Groups . Be aware that user groups that are already in // the work team must also be listed in Groups when you make this request to // remain on the work team. If you do not include these user groups, they will no // longer be associated with the work team you update. MemberDefinitions []types.MemberDefinition // Configures SNS topic notifications for available or expiring work items NotificationConfiguration *types.NotificationConfiguration noSmithyDocumentSerde } type UpdateWorkteamOutput struct { // A Workteam object that describes the updated work team. // // This member is required. Workteam *types.Workteam // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateWorkteamMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateWorkteam{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateWorkteam{}, 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 = addOpUpdateWorkteamValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateWorkteam(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opUpdateWorkteam(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "UpdateWorkteam", } }
153
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. // Package sagemaker provides the API client, operations, and parameter types for // Amazon SageMaker Service. // // Provides APIs for creating and managing SageMaker resources. Other Resources: // - SageMaker Developer Guide (https://docs.aws.amazon.com/sagemaker/latest/dg/whatis.html#first-time-user) // - Amazon Augmented AI Runtime API Reference (https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/Welcome.html) package sagemaker
10
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemaker import ( "context" "errors" "fmt" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" internalendpoints "github.com/aws/aws-sdk-go-v2/service/sagemaker/internal/endpoints" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "net/url" "strings" ) // EndpointResolverOptions is the service endpoint resolver options type EndpointResolverOptions = internalendpoints.Options // EndpointResolver interface for resolving service endpoints. type EndpointResolver interface { ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) } var _ EndpointResolver = &internalendpoints.Resolver{} // NewDefaultEndpointResolver constructs a new service endpoint resolver func NewDefaultEndpointResolver() *internalendpoints.Resolver { return internalendpoints.New() } // EndpointResolverFunc is a helper utility that wraps a function so it satisfies // the EndpointResolver interface. This is useful when you want to add additional // endpoint resolving logic, or stub out specific endpoints with custom values. type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { return fn(region, options) } func resolveDefaultEndpointConfiguration(o *Options) { if o.EndpointResolver != nil { return } o.EndpointResolver = NewDefaultEndpointResolver() } // EndpointResolverFromURL returns an EndpointResolver configured using the // provided endpoint url. By default, the resolved endpoint resolver uses the // client region as signing region, and the endpoint source is set to // EndpointSourceCustom.You can provide functional options to configure endpoint // values for the resolved endpoint. func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} for _, fn := range optFns { fn(&e) } return EndpointResolverFunc( func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { if len(e.SigningRegion) == 0 { e.SigningRegion = region } return e, nil }, ) } type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions } func (*ResolveEndpoint) ID() string { return "ResolveEndpoint" } func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } if m.Resolver == nil { return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") } eo := m.Options eo.Logger = middleware.GetLogger(ctx) var endpoint aws.Endpoint endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) if err != nil { return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) } req.URL, err = url.Parse(endpoint.URL) if err != nil { return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) } if len(awsmiddleware.GetSigningName(ctx)) == 0 { signingName := endpoint.SigningName if len(signingName) == 0 { signingName = "sagemaker" } ctx = awsmiddleware.SetSigningName(ctx, signingName) } ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) return next.HandleSerialize(ctx, in) } func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { return stack.Serialize.Insert(&ResolveEndpoint{ Resolver: o.EndpointResolver, Options: o.EndpointOptions, }, "OperationSerializer", middleware.Before) } func removeResolveEndpointMiddleware(stack *middleware.Stack) error { _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) return err } type wrappedEndpointResolver struct { awsResolver aws.EndpointResolverWithOptions resolver EndpointResolver } func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { if w.awsResolver == nil { goto fallback } endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options) if err == nil { return endpoint, nil } if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { return endpoint, err } fallback: if w.resolver == nil { return endpoint, fmt.Errorf("default endpoint resolver provided was nil") } return w.resolver.ResolveEndpoint(region, options) } type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { return a(service, region) } var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) // withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. // If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided // fallbackResolver for resolution. // // fallbackResolver must not be nil func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver { var resolver aws.EndpointResolverWithOptions if awsResolverWithOptions != nil { resolver = awsResolverWithOptions } else if awsResolver != nil { resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) } return &wrappedEndpointResolver{ awsResolver: resolver, resolver: fallbackResolver, } } func finalizeClientEndpointResolverOptions(options *Options) { options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() if len(options.EndpointOptions.ResolvedRegion) == 0 { const fipsInfix = "-fips-" const fipsPrefix = "fips-" const fipsSuffix = "-fips" if strings.Contains(options.Region, fipsInfix) || strings.Contains(options.Region, fipsPrefix) || strings.Contains(options.Region, fipsSuffix) { options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled } } }
201
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package sagemaker // goModuleVersion is the tagged release for this module const goModuleVersion = "1.90.0"
7
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemaker
4
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "github.com/aws/aws-sdk-go-v2/aws" endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" "github.com/aws/smithy-go/logging" "regexp" ) // Options is the endpoint resolver configuration options type Options struct { // Logger is a logging implementation that log events should be sent to. Logger logging.Logger // LogDeprecated indicates that deprecated endpoints should be logged to the // provided logger. LogDeprecated bool // ResolvedRegion is used to override the region to be resolved, rather then the // using the value passed to the ResolveEndpoint method. This value is used by the // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative // name. You must not set this value directly in your application. ResolvedRegion string // DisableHTTPS informs the resolver to return an endpoint that does not use the // HTTPS scheme. DisableHTTPS bool // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. UseDualStackEndpoint aws.DualStackEndpointState // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. UseFIPSEndpoint aws.FIPSEndpointState } func (o Options) GetResolvedRegion() string { return o.ResolvedRegion } func (o Options) GetDisableHTTPS() bool { return o.DisableHTTPS } func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { return o.UseDualStackEndpoint } func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { return o.UseFIPSEndpoint } func transformToSharedOptions(options Options) endpoints.Options { return endpoints.Options{ Logger: options.Logger, LogDeprecated: options.LogDeprecated, ResolvedRegion: options.ResolvedRegion, DisableHTTPS: options.DisableHTTPS, UseDualStackEndpoint: options.UseDualStackEndpoint, UseFIPSEndpoint: options.UseFIPSEndpoint, } } // Resolver SageMaker endpoint resolver type Resolver struct { partitions endpoints.Partitions } // ResolveEndpoint resolves the service endpoint for the given region and options func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { if len(region) == 0 { return endpoint, &aws.MissingRegionError{} } opt := transformToSharedOptions(options) return r.partitions.ResolveEndpoint(region, opt) } // New returns a new Resolver func New() *Resolver { return &Resolver{ partitions: defaultPartitions, } } var partitionRegexp = struct { Aws *regexp.Regexp AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp AwsIsoE *regexp.Regexp AwsIsoF *regexp.Regexp AwsUsGov *regexp.Regexp }{ Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } var defaultPartitions = endpoints.Partitions{ { ID: "aws", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "api.sagemaker.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "api-fips.sagemaker.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "api.sagemaker-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "api.sagemaker.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "af-south-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-east-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-northeast-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-northeast-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-northeast-3", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-south-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-south-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-4", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-central-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-north-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-south-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-south-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-3", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-central-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-south-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "sa-east-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-1", Variant: endpoints.FIPSVariant, }: { Hostname: "api-fips.sagemaker.us-east-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-east-1-fips", }: endpoints.Endpoint{ Hostname: "api-fips.sagemaker.us-east-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-east-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-east-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-2", Variant: endpoints.FIPSVariant, }: { Hostname: "api-fips.sagemaker.us-east-2.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-east-2-fips", }: endpoints.Endpoint{ Hostname: "api-fips.sagemaker.us-east-2.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-east-2", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-west-1", Variant: endpoints.FIPSVariant, }: { Hostname: "api-fips.sagemaker.us-west-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-west-1-fips", }: endpoints.Endpoint{ Hostname: "api-fips.sagemaker.us-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-west-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-west-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-west-2", Variant: endpoints.FIPSVariant, }: { Hostname: "api-fips.sagemaker.us-west-2.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-west-2-fips", }: endpoints.Endpoint{ Hostname: "api-fips.sagemaker.us-west-2.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-west-2", }, Deprecated: aws.TrueTernary, }, }, }, { ID: "aws-cn", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "api.sagemaker.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "api.sagemaker-fips.{region}.amazonaws.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "api.sagemaker-fips.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "api.sagemaker.{region}.amazonaws.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsCn, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "cn-north-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "cn-northwest-1", }: endpoints.Endpoint{}, }, }, { ID: "aws-iso", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "api.sagemaker-fips.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "api.sagemaker.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIso, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "us-iso-east-1", }: endpoints.Endpoint{}, }, }, { ID: "aws-iso-b", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "api.sagemaker-fips.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "api.sagemaker.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, { ID: "aws-iso-e", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "api.sagemaker-fips.{region}.cloud.adc-e.uk", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "api.sagemaker.{region}.cloud.adc-e.uk", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoE, IsRegionalized: true, }, { ID: "aws-iso-f", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "api.sagemaker-fips.{region}.csp.hci.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "api.sagemaker.{region}.csp.hci.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoF, IsRegionalized: true, }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "api.sagemaker.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "api-fips.sagemaker.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "api.sagemaker-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "api.sagemaker.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsUsGov, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "us-gov-east-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-gov-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-gov-west-1", Variant: endpoints.FIPSVariant, }: { Hostname: "api-fips.sagemaker.us-gov-west-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-gov-west-1-fips", }: endpoints.Endpoint{ Hostname: "api-fips.sagemaker.us-gov-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-gov-west-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-gov-west-1-fips-secondary", }: endpoints.Endpoint{ Hostname: "api.sagemaker.us-gov-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-gov-west-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-gov-west-1-secondary", }: endpoints.Endpoint{ CredentialScope: endpoints.CredentialScope{ Region: "us-gov-west-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-gov-west-1-secondary", Variant: endpoints.FIPSVariant, }: { Hostname: "api.sagemaker.us-gov-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-gov-west-1", }, Deprecated: aws.TrueTernary, }, }, }, }
503
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "testing" ) func TestRegexCompile(t *testing.T) { _ = defaultPartitions }
12
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types type ActionStatus string // Enum values for ActionStatus const ( ActionStatusUnknown ActionStatus = "Unknown" ActionStatusInProgress ActionStatus = "InProgress" ActionStatusCompleted ActionStatus = "Completed" ActionStatusFailed ActionStatus = "Failed" ActionStatusStopping ActionStatus = "Stopping" ActionStatusStopped ActionStatus = "Stopped" ) // Values returns all known values for ActionStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ActionStatus) Values() []ActionStatus { return []ActionStatus{ "Unknown", "InProgress", "Completed", "Failed", "Stopping", "Stopped", } } type AggregationTransformationValue string // Enum values for AggregationTransformationValue const ( AggregationTransformationValueSum AggregationTransformationValue = "sum" AggregationTransformationValueAvg AggregationTransformationValue = "avg" AggregationTransformationValueFirst AggregationTransformationValue = "first" AggregationTransformationValueMin AggregationTransformationValue = "min" AggregationTransformationValueMax AggregationTransformationValue = "max" ) // Values returns all known values for AggregationTransformationValue. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AggregationTransformationValue) Values() []AggregationTransformationValue { return []AggregationTransformationValue{ "sum", "avg", "first", "min", "max", } } type AlgorithmSortBy string // Enum values for AlgorithmSortBy const ( AlgorithmSortByName AlgorithmSortBy = "Name" AlgorithmSortByCreationTime AlgorithmSortBy = "CreationTime" ) // Values returns all known values for AlgorithmSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AlgorithmSortBy) Values() []AlgorithmSortBy { return []AlgorithmSortBy{ "Name", "CreationTime", } } type AlgorithmStatus string // Enum values for AlgorithmStatus const ( AlgorithmStatusPending AlgorithmStatus = "Pending" AlgorithmStatusInProgress AlgorithmStatus = "InProgress" AlgorithmStatusCompleted AlgorithmStatus = "Completed" AlgorithmStatusFailed AlgorithmStatus = "Failed" AlgorithmStatusDeleting AlgorithmStatus = "Deleting" ) // Values returns all known values for AlgorithmStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AlgorithmStatus) Values() []AlgorithmStatus { return []AlgorithmStatus{ "Pending", "InProgress", "Completed", "Failed", "Deleting", } } type AppImageConfigSortKey string // Enum values for AppImageConfigSortKey const ( AppImageConfigSortKeyCreationTime AppImageConfigSortKey = "CreationTime" AppImageConfigSortKeyLastModifiedTime AppImageConfigSortKey = "LastModifiedTime" AppImageConfigSortKeyName AppImageConfigSortKey = "Name" ) // Values returns all known values for AppImageConfigSortKey. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AppImageConfigSortKey) Values() []AppImageConfigSortKey { return []AppImageConfigSortKey{ "CreationTime", "LastModifiedTime", "Name", } } type AppInstanceType string // Enum values for AppInstanceType const ( AppInstanceTypeSystem AppInstanceType = "system" AppInstanceTypeMlT3Micro AppInstanceType = "ml.t3.micro" AppInstanceTypeMlT3Small AppInstanceType = "ml.t3.small" AppInstanceTypeMlT3Medium AppInstanceType = "ml.t3.medium" AppInstanceTypeMlT3Large AppInstanceType = "ml.t3.large" AppInstanceTypeMlT3Xlarge AppInstanceType = "ml.t3.xlarge" AppInstanceTypeMlT32xlarge AppInstanceType = "ml.t3.2xlarge" AppInstanceTypeMlM5Large AppInstanceType = "ml.m5.large" AppInstanceTypeMlM5Xlarge AppInstanceType = "ml.m5.xlarge" AppInstanceTypeMlM52xlarge AppInstanceType = "ml.m5.2xlarge" AppInstanceTypeMlM54xlarge AppInstanceType = "ml.m5.4xlarge" AppInstanceTypeMlM58xlarge AppInstanceType = "ml.m5.8xlarge" AppInstanceTypeMlM512xlarge AppInstanceType = "ml.m5.12xlarge" AppInstanceTypeMlM516xlarge AppInstanceType = "ml.m5.16xlarge" AppInstanceTypeMlM524xlarge AppInstanceType = "ml.m5.24xlarge" AppInstanceTypeMlM5dLarge AppInstanceType = "ml.m5d.large" AppInstanceTypeMlM5dXlarge AppInstanceType = "ml.m5d.xlarge" AppInstanceTypeMlM5d2xlarge AppInstanceType = "ml.m5d.2xlarge" AppInstanceTypeMlM5d4xlarge AppInstanceType = "ml.m5d.4xlarge" AppInstanceTypeMlM5d8xlarge AppInstanceType = "ml.m5d.8xlarge" AppInstanceTypeMlM5d12xlarge AppInstanceType = "ml.m5d.12xlarge" AppInstanceTypeMlM5d16xlarge AppInstanceType = "ml.m5d.16xlarge" AppInstanceTypeMlM5d24xlarge AppInstanceType = "ml.m5d.24xlarge" AppInstanceTypeMlC5Large AppInstanceType = "ml.c5.large" AppInstanceTypeMlC5Xlarge AppInstanceType = "ml.c5.xlarge" AppInstanceTypeMlC52xlarge AppInstanceType = "ml.c5.2xlarge" AppInstanceTypeMlC54xlarge AppInstanceType = "ml.c5.4xlarge" AppInstanceTypeMlC59xlarge AppInstanceType = "ml.c5.9xlarge" AppInstanceTypeMlC512xlarge AppInstanceType = "ml.c5.12xlarge" AppInstanceTypeMlC518xlarge AppInstanceType = "ml.c5.18xlarge" AppInstanceTypeMlC524xlarge AppInstanceType = "ml.c5.24xlarge" AppInstanceTypeMlP32xlarge AppInstanceType = "ml.p3.2xlarge" AppInstanceTypeMlP38xlarge AppInstanceType = "ml.p3.8xlarge" AppInstanceTypeMlP316xlarge AppInstanceType = "ml.p3.16xlarge" AppInstanceTypeMlP3dn24xlarge AppInstanceType = "ml.p3dn.24xlarge" AppInstanceTypeMlG4dnXlarge AppInstanceType = "ml.g4dn.xlarge" AppInstanceTypeMlG4dn2xlarge AppInstanceType = "ml.g4dn.2xlarge" AppInstanceTypeMlG4dn4xlarge AppInstanceType = "ml.g4dn.4xlarge" AppInstanceTypeMlG4dn8xlarge AppInstanceType = "ml.g4dn.8xlarge" AppInstanceTypeMlG4dn12xlarge AppInstanceType = "ml.g4dn.12xlarge" AppInstanceTypeMlG4dn16xlarge AppInstanceType = "ml.g4dn.16xlarge" AppInstanceTypeMlR5Large AppInstanceType = "ml.r5.large" AppInstanceTypeMlR5Xlarge AppInstanceType = "ml.r5.xlarge" AppInstanceTypeMlR52xlarge AppInstanceType = "ml.r5.2xlarge" AppInstanceTypeMlR54xlarge AppInstanceType = "ml.r5.4xlarge" AppInstanceTypeMlR58xlarge AppInstanceType = "ml.r5.8xlarge" AppInstanceTypeMlR512xlarge AppInstanceType = "ml.r5.12xlarge" AppInstanceTypeMlR516xlarge AppInstanceType = "ml.r5.16xlarge" AppInstanceTypeMlR524xlarge AppInstanceType = "ml.r5.24xlarge" AppInstanceTypeMlG5Xlarge AppInstanceType = "ml.g5.xlarge" AppInstanceTypeMlG52xlarge AppInstanceType = "ml.g5.2xlarge" AppInstanceTypeMlG54xlarge AppInstanceType = "ml.g5.4xlarge" AppInstanceTypeMlG58xlarge AppInstanceType = "ml.g5.8xlarge" AppInstanceTypeMlG516xlarge AppInstanceType = "ml.g5.16xlarge" AppInstanceTypeMlG512xlarge AppInstanceType = "ml.g5.12xlarge" AppInstanceTypeMlG524xlarge AppInstanceType = "ml.g5.24xlarge" AppInstanceTypeMlG548xlarge AppInstanceType = "ml.g5.48xlarge" AppInstanceTypeMlGeospatialInteractive AppInstanceType = "ml.geospatial.interactive" AppInstanceTypeMlP4d24xlarge AppInstanceType = "ml.p4d.24xlarge" AppInstanceTypeMlP4de24xlarge AppInstanceType = "ml.p4de.24xlarge" ) // Values returns all known values for AppInstanceType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AppInstanceType) Values() []AppInstanceType { return []AppInstanceType{ "system", "ml.t3.micro", "ml.t3.small", "ml.t3.medium", "ml.t3.large", "ml.t3.xlarge", "ml.t3.2xlarge", "ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge", "ml.m5.4xlarge", "ml.m5.8xlarge", "ml.m5.12xlarge", "ml.m5.16xlarge", "ml.m5.24xlarge", "ml.m5d.large", "ml.m5d.xlarge", "ml.m5d.2xlarge", "ml.m5d.4xlarge", "ml.m5d.8xlarge", "ml.m5d.12xlarge", "ml.m5d.16xlarge", "ml.m5d.24xlarge", "ml.c5.large", "ml.c5.xlarge", "ml.c5.2xlarge", "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.12xlarge", "ml.c5.18xlarge", "ml.c5.24xlarge", "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", "ml.p3dn.24xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", "ml.r5.large", "ml.r5.xlarge", "ml.r5.2xlarge", "ml.r5.4xlarge", "ml.r5.8xlarge", "ml.r5.12xlarge", "ml.r5.16xlarge", "ml.r5.24xlarge", "ml.g5.xlarge", "ml.g5.2xlarge", "ml.g5.4xlarge", "ml.g5.8xlarge", "ml.g5.16xlarge", "ml.g5.12xlarge", "ml.g5.24xlarge", "ml.g5.48xlarge", "ml.geospatial.interactive", "ml.p4d.24xlarge", "ml.p4de.24xlarge", } } type AppNetworkAccessType string // Enum values for AppNetworkAccessType const ( AppNetworkAccessTypePublicInternetOnly AppNetworkAccessType = "PublicInternetOnly" AppNetworkAccessTypeVpcOnly AppNetworkAccessType = "VpcOnly" ) // Values returns all known values for AppNetworkAccessType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AppNetworkAccessType) Values() []AppNetworkAccessType { return []AppNetworkAccessType{ "PublicInternetOnly", "VpcOnly", } } type AppSecurityGroupManagement string // Enum values for AppSecurityGroupManagement const ( AppSecurityGroupManagementService AppSecurityGroupManagement = "Service" AppSecurityGroupManagementCustomer AppSecurityGroupManagement = "Customer" ) // Values returns all known values for AppSecurityGroupManagement. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AppSecurityGroupManagement) Values() []AppSecurityGroupManagement { return []AppSecurityGroupManagement{ "Service", "Customer", } } type AppSortKey string // Enum values for AppSortKey const ( AppSortKeyCreationTime AppSortKey = "CreationTime" ) // Values returns all known values for AppSortKey. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (AppSortKey) Values() []AppSortKey { return []AppSortKey{ "CreationTime", } } type AppStatus string // Enum values for AppStatus const ( AppStatusDeleted AppStatus = "Deleted" AppStatusDeleting AppStatus = "Deleting" AppStatusFailed AppStatus = "Failed" AppStatusInService AppStatus = "InService" AppStatusPending AppStatus = "Pending" ) // Values returns all known values for AppStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (AppStatus) Values() []AppStatus { return []AppStatus{ "Deleted", "Deleting", "Failed", "InService", "Pending", } } type AppType string // Enum values for AppType const ( AppTypeJupyterServer AppType = "JupyterServer" AppTypeKernelGateway AppType = "KernelGateway" AppTypeTensorBoard AppType = "TensorBoard" AppTypeRStudioServerPro AppType = "RStudioServerPro" AppTypeRSessionGateway AppType = "RSessionGateway" ) // Values returns all known values for AppType. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (AppType) Values() []AppType { return []AppType{ "JupyterServer", "KernelGateway", "TensorBoard", "RStudioServerPro", "RSessionGateway", } } type ArtifactSourceIdType string // Enum values for ArtifactSourceIdType const ( ArtifactSourceIdTypeMd5Hash ArtifactSourceIdType = "MD5Hash" ArtifactSourceIdTypeS3Etag ArtifactSourceIdType = "S3ETag" ArtifactSourceIdTypeS3Version ArtifactSourceIdType = "S3Version" ArtifactSourceIdTypeCustom ArtifactSourceIdType = "Custom" ) // Values returns all known values for ArtifactSourceIdType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ArtifactSourceIdType) Values() []ArtifactSourceIdType { return []ArtifactSourceIdType{ "MD5Hash", "S3ETag", "S3Version", "Custom", } } type AssemblyType string // Enum values for AssemblyType const ( AssemblyTypeNone AssemblyType = "None" AssemblyTypeLine AssemblyType = "Line" ) // Values returns all known values for AssemblyType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AssemblyType) Values() []AssemblyType { return []AssemblyType{ "None", "Line", } } type AssociationEdgeType string // Enum values for AssociationEdgeType const ( AssociationEdgeTypeContributedTo AssociationEdgeType = "ContributedTo" AssociationEdgeTypeAssociatedWith AssociationEdgeType = "AssociatedWith" AssociationEdgeTypeDerivedFrom AssociationEdgeType = "DerivedFrom" AssociationEdgeTypeProduced AssociationEdgeType = "Produced" ) // Values returns all known values for AssociationEdgeType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AssociationEdgeType) Values() []AssociationEdgeType { return []AssociationEdgeType{ "ContributedTo", "AssociatedWith", "DerivedFrom", "Produced", } } type AsyncNotificationTopicTypes string // Enum values for AsyncNotificationTopicTypes const ( AsyncNotificationTopicTypesSuccessNotificationTopic AsyncNotificationTopicTypes = "SUCCESS_NOTIFICATION_TOPIC" AsyncNotificationTopicTypesErrorNotificationTopic AsyncNotificationTopicTypes = "ERROR_NOTIFICATION_TOPIC" ) // Values returns all known values for AsyncNotificationTopicTypes. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AsyncNotificationTopicTypes) Values() []AsyncNotificationTopicTypes { return []AsyncNotificationTopicTypes{ "SUCCESS_NOTIFICATION_TOPIC", "ERROR_NOTIFICATION_TOPIC", } } type AthenaResultCompressionType string // Enum values for AthenaResultCompressionType const ( AthenaResultCompressionTypeGzip AthenaResultCompressionType = "GZIP" AthenaResultCompressionTypeSnappy AthenaResultCompressionType = "SNAPPY" AthenaResultCompressionTypeZlib AthenaResultCompressionType = "ZLIB" ) // Values returns all known values for AthenaResultCompressionType. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AthenaResultCompressionType) Values() []AthenaResultCompressionType { return []AthenaResultCompressionType{ "GZIP", "SNAPPY", "ZLIB", } } type AthenaResultFormat string // Enum values for AthenaResultFormat const ( AthenaResultFormatParquet AthenaResultFormat = "PARQUET" AthenaResultFormatOrc AthenaResultFormat = "ORC" AthenaResultFormatAvro AthenaResultFormat = "AVRO" AthenaResultFormatJson AthenaResultFormat = "JSON" AthenaResultFormatTextfile AthenaResultFormat = "TEXTFILE" ) // Values returns all known values for AthenaResultFormat. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AthenaResultFormat) Values() []AthenaResultFormat { return []AthenaResultFormat{ "PARQUET", "ORC", "AVRO", "JSON", "TEXTFILE", } } type AuthMode string // Enum values for AuthMode const ( AuthModeSso AuthMode = "SSO" AuthModeIam AuthMode = "IAM" ) // Values returns all known values for AuthMode. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (AuthMode) Values() []AuthMode { return []AuthMode{ "SSO", "IAM", } } type AutoMLAlgorithm string // Enum values for AutoMLAlgorithm const ( AutoMLAlgorithmXgboost AutoMLAlgorithm = "xgboost" AutoMLAlgorithmLinearLearner AutoMLAlgorithm = "linear-learner" AutoMLAlgorithmMlp AutoMLAlgorithm = "mlp" AutoMLAlgorithmLightgbm AutoMLAlgorithm = "lightgbm" AutoMLAlgorithmCatboost AutoMLAlgorithm = "catboost" AutoMLAlgorithmRandomforest AutoMLAlgorithm = "randomforest" AutoMLAlgorithmExtraTrees AutoMLAlgorithm = "extra-trees" AutoMLAlgorithmNnTorch AutoMLAlgorithm = "nn-torch" AutoMLAlgorithmFastai AutoMLAlgorithm = "fastai" ) // Values returns all known values for AutoMLAlgorithm. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLAlgorithm) Values() []AutoMLAlgorithm { return []AutoMLAlgorithm{ "xgboost", "linear-learner", "mlp", "lightgbm", "catboost", "randomforest", "extra-trees", "nn-torch", "fastai", } } type AutoMLChannelType string // Enum values for AutoMLChannelType const ( AutoMLChannelTypeTraining AutoMLChannelType = "training" AutoMLChannelTypeValidation AutoMLChannelType = "validation" ) // Values returns all known values for AutoMLChannelType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLChannelType) Values() []AutoMLChannelType { return []AutoMLChannelType{ "training", "validation", } } type AutoMLJobObjectiveType string // Enum values for AutoMLJobObjectiveType const ( AutoMLJobObjectiveTypeMaximize AutoMLJobObjectiveType = "Maximize" AutoMLJobObjectiveTypeMinimize AutoMLJobObjectiveType = "Minimize" ) // Values returns all known values for AutoMLJobObjectiveType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLJobObjectiveType) Values() []AutoMLJobObjectiveType { return []AutoMLJobObjectiveType{ "Maximize", "Minimize", } } type AutoMLJobSecondaryStatus string // Enum values for AutoMLJobSecondaryStatus const ( AutoMLJobSecondaryStatusStarting AutoMLJobSecondaryStatus = "Starting" AutoMLJobSecondaryStatusAnalyzingData AutoMLJobSecondaryStatus = "AnalyzingData" AutoMLJobSecondaryStatusFeatureEngineering AutoMLJobSecondaryStatus = "FeatureEngineering" AutoMLJobSecondaryStatusModelTuning AutoMLJobSecondaryStatus = "ModelTuning" AutoMLJobSecondaryStatusMaxCandidatesReached AutoMLJobSecondaryStatus = "MaxCandidatesReached" AutoMLJobSecondaryStatusFailed AutoMLJobSecondaryStatus = "Failed" AutoMLJobSecondaryStatusStopped AutoMLJobSecondaryStatus = "Stopped" AutoMLJobSecondaryStatusMaxAutoMlJobRuntimeReached AutoMLJobSecondaryStatus = "MaxAutoMLJobRuntimeReached" AutoMLJobSecondaryStatusStopping AutoMLJobSecondaryStatus = "Stopping" AutoMLJobSecondaryStatusCandidateDefinitionsGenerated AutoMLJobSecondaryStatus = "CandidateDefinitionsGenerated" AutoMLJobSecondaryStatusGeneratingExplainabilityReport AutoMLJobSecondaryStatus = "GeneratingExplainabilityReport" AutoMLJobSecondaryStatusCompleted AutoMLJobSecondaryStatus = "Completed" AutoMLJobSecondaryStatusExplainabilityError AutoMLJobSecondaryStatus = "ExplainabilityError" AutoMLJobSecondaryStatusDeployingModel AutoMLJobSecondaryStatus = "DeployingModel" AutoMLJobSecondaryStatusModelDeploymentError AutoMLJobSecondaryStatus = "ModelDeploymentError" AutoMLJobSecondaryStatusGeneratingModelInsightsReport AutoMLJobSecondaryStatus = "GeneratingModelInsightsReport" AutoMLJobSecondaryStatusModelInsightsError AutoMLJobSecondaryStatus = "ModelInsightsError" AutoMLJobSecondaryStatusTrainingModels AutoMLJobSecondaryStatus = "TrainingModels" AutoMLJobSecondaryStatusPreTraining AutoMLJobSecondaryStatus = "PreTraining" ) // Values returns all known values for AutoMLJobSecondaryStatus. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AutoMLJobSecondaryStatus) Values() []AutoMLJobSecondaryStatus { return []AutoMLJobSecondaryStatus{ "Starting", "AnalyzingData", "FeatureEngineering", "ModelTuning", "MaxCandidatesReached", "Failed", "Stopped", "MaxAutoMLJobRuntimeReached", "Stopping", "CandidateDefinitionsGenerated", "GeneratingExplainabilityReport", "Completed", "ExplainabilityError", "DeployingModel", "ModelDeploymentError", "GeneratingModelInsightsReport", "ModelInsightsError", "TrainingModels", "PreTraining", } } type AutoMLJobStatus string // Enum values for AutoMLJobStatus const ( AutoMLJobStatusCompleted AutoMLJobStatus = "Completed" AutoMLJobStatusInProgress AutoMLJobStatus = "InProgress" AutoMLJobStatusFailed AutoMLJobStatus = "Failed" AutoMLJobStatusStopped AutoMLJobStatus = "Stopped" AutoMLJobStatusStopping AutoMLJobStatus = "Stopping" ) // Values returns all known values for AutoMLJobStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLJobStatus) Values() []AutoMLJobStatus { return []AutoMLJobStatus{ "Completed", "InProgress", "Failed", "Stopped", "Stopping", } } type AutoMLMetricEnum string // Enum values for AutoMLMetricEnum const ( AutoMLMetricEnumAccuracy AutoMLMetricEnum = "Accuracy" AutoMLMetricEnumMse AutoMLMetricEnum = "MSE" AutoMLMetricEnumF1 AutoMLMetricEnum = "F1" AutoMLMetricEnumF1Macro AutoMLMetricEnum = "F1macro" AutoMLMetricEnumAuc AutoMLMetricEnum = "AUC" AutoMLMetricEnumRmse AutoMLMetricEnum = "RMSE" AutoMLMetricEnumMae AutoMLMetricEnum = "MAE" AutoMLMetricEnumR2 AutoMLMetricEnum = "R2" AutoMLMetricEnumBalancedAccuracy AutoMLMetricEnum = "BalancedAccuracy" AutoMLMetricEnumPrecision AutoMLMetricEnum = "Precision" AutoMLMetricEnumPrecisionMacro AutoMLMetricEnum = "PrecisionMacro" AutoMLMetricEnumRecall AutoMLMetricEnum = "Recall" AutoMLMetricEnumRecallMacro AutoMLMetricEnum = "RecallMacro" AutoMLMetricEnumMape AutoMLMetricEnum = "MAPE" AutoMLMetricEnumMase AutoMLMetricEnum = "MASE" AutoMLMetricEnumWape AutoMLMetricEnum = "WAPE" AutoMLMetricEnumAverageWeightedQuantileLoss AutoMLMetricEnum = "AverageWeightedQuantileLoss" ) // Values returns all known values for AutoMLMetricEnum. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLMetricEnum) Values() []AutoMLMetricEnum { return []AutoMLMetricEnum{ "Accuracy", "MSE", "F1", "F1macro", "AUC", "RMSE", "MAE", "R2", "BalancedAccuracy", "Precision", "PrecisionMacro", "Recall", "RecallMacro", "MAPE", "MASE", "WAPE", "AverageWeightedQuantileLoss", } } type AutoMLMetricExtendedEnum string // Enum values for AutoMLMetricExtendedEnum const ( AutoMLMetricExtendedEnumAccuracy AutoMLMetricExtendedEnum = "Accuracy" AutoMLMetricExtendedEnumMse AutoMLMetricExtendedEnum = "MSE" AutoMLMetricExtendedEnumF1 AutoMLMetricExtendedEnum = "F1" AutoMLMetricExtendedEnumF1Macro AutoMLMetricExtendedEnum = "F1macro" AutoMLMetricExtendedEnumAuc AutoMLMetricExtendedEnum = "AUC" AutoMLMetricExtendedEnumRmse AutoMLMetricExtendedEnum = "RMSE" AutoMLMetricExtendedEnumMae AutoMLMetricExtendedEnum = "MAE" AutoMLMetricExtendedEnumR2 AutoMLMetricExtendedEnum = "R2" AutoMLMetricExtendedEnumBalancedAccuracy AutoMLMetricExtendedEnum = "BalancedAccuracy" AutoMLMetricExtendedEnumPrecision AutoMLMetricExtendedEnum = "Precision" AutoMLMetricExtendedEnumPrecisionMacro AutoMLMetricExtendedEnum = "PrecisionMacro" AutoMLMetricExtendedEnumRecall AutoMLMetricExtendedEnum = "Recall" AutoMLMetricExtendedEnumRecallMacro AutoMLMetricExtendedEnum = "RecallMacro" AutoMLMetricExtendedEnumLogLoss AutoMLMetricExtendedEnum = "LogLoss" AutoMLMetricExtendedEnumInferenceLatency AutoMLMetricExtendedEnum = "InferenceLatency" AutoMLMetricExtendedEnumMape AutoMLMetricExtendedEnum = "MAPE" AutoMLMetricExtendedEnumMase AutoMLMetricExtendedEnum = "MASE" AutoMLMetricExtendedEnumWape AutoMLMetricExtendedEnum = "WAPE" AutoMLMetricExtendedEnumAverageWeightedQuantileLoss AutoMLMetricExtendedEnum = "AverageWeightedQuantileLoss" ) // Values returns all known values for AutoMLMetricExtendedEnum. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AutoMLMetricExtendedEnum) Values() []AutoMLMetricExtendedEnum { return []AutoMLMetricExtendedEnum{ "Accuracy", "MSE", "F1", "F1macro", "AUC", "RMSE", "MAE", "R2", "BalancedAccuracy", "Precision", "PrecisionMacro", "Recall", "RecallMacro", "LogLoss", "InferenceLatency", "MAPE", "MASE", "WAPE", "AverageWeightedQuantileLoss", } } type AutoMLMode string // Enum values for AutoMLMode const ( AutoMLModeAuto AutoMLMode = "AUTO" AutoMLModeEnsembling AutoMLMode = "ENSEMBLING" AutoMLModeHyperparameterTuning AutoMLMode = "HYPERPARAMETER_TUNING" ) // Values returns all known values for AutoMLMode. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (AutoMLMode) Values() []AutoMLMode { return []AutoMLMode{ "AUTO", "ENSEMBLING", "HYPERPARAMETER_TUNING", } } type AutoMLProblemTypeConfigName string // Enum values for AutoMLProblemTypeConfigName const ( AutoMLProblemTypeConfigNameImageClassification AutoMLProblemTypeConfigName = "ImageClassification" AutoMLProblemTypeConfigNameTextClassification AutoMLProblemTypeConfigName = "TextClassification" AutoMLProblemTypeConfigNameTabular AutoMLProblemTypeConfigName = "Tabular" AutoMLProblemTypeConfigNameTimeseriesForecasting AutoMLProblemTypeConfigName = "TimeSeriesForecasting" ) // Values returns all known values for AutoMLProblemTypeConfigName. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AutoMLProblemTypeConfigName) Values() []AutoMLProblemTypeConfigName { return []AutoMLProblemTypeConfigName{ "ImageClassification", "TextClassification", "Tabular", "TimeSeriesForecasting", } } type AutoMLProcessingUnit string // Enum values for AutoMLProcessingUnit const ( AutoMLProcessingUnitCpu AutoMLProcessingUnit = "CPU" AutoMLProcessingUnitGpu AutoMLProcessingUnit = "GPU" ) // Values returns all known values for AutoMLProcessingUnit. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLProcessingUnit) Values() []AutoMLProcessingUnit { return []AutoMLProcessingUnit{ "CPU", "GPU", } } type AutoMLS3DataType string // Enum values for AutoMLS3DataType const ( AutoMLS3DataTypeManifestFile AutoMLS3DataType = "ManifestFile" AutoMLS3DataTypeS3Prefix AutoMLS3DataType = "S3Prefix" AutoMLS3DataTypeAugmentedManifestFile AutoMLS3DataType = "AugmentedManifestFile" ) // Values returns all known values for AutoMLS3DataType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLS3DataType) Values() []AutoMLS3DataType { return []AutoMLS3DataType{ "ManifestFile", "S3Prefix", "AugmentedManifestFile", } } type AutoMLSortBy string // Enum values for AutoMLSortBy const ( AutoMLSortByName AutoMLSortBy = "Name" AutoMLSortByCreationTime AutoMLSortBy = "CreationTime" AutoMLSortByStatus AutoMLSortBy = "Status" ) // Values returns all known values for AutoMLSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLSortBy) Values() []AutoMLSortBy { return []AutoMLSortBy{ "Name", "CreationTime", "Status", } } type AutoMLSortOrder string // Enum values for AutoMLSortOrder const ( AutoMLSortOrderAscending AutoMLSortOrder = "Ascending" AutoMLSortOrderDescending AutoMLSortOrder = "Descending" ) // Values returns all known values for AutoMLSortOrder. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutoMLSortOrder) Values() []AutoMLSortOrder { return []AutoMLSortOrder{ "Ascending", "Descending", } } type AutotuneMode string // Enum values for AutotuneMode const ( AutotuneModeEnabled AutotuneMode = "Enabled" ) // Values returns all known values for AutotuneMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AutotuneMode) Values() []AutotuneMode { return []AutotuneMode{ "Enabled", } } type AwsManagedHumanLoopRequestSource string // Enum values for AwsManagedHumanLoopRequestSource const ( AwsManagedHumanLoopRequestSourceRekognitionDetectModerationLabelsImageV3 AwsManagedHumanLoopRequestSource = "AWS/Rekognition/DetectModerationLabels/Image/V3" AwsManagedHumanLoopRequestSourceTextractAnalyzeDocumentFormsV1 AwsManagedHumanLoopRequestSource = "AWS/Textract/AnalyzeDocument/Forms/V1" ) // Values returns all known values for AwsManagedHumanLoopRequestSource. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AwsManagedHumanLoopRequestSource) Values() []AwsManagedHumanLoopRequestSource { return []AwsManagedHumanLoopRequestSource{ "AWS/Rekognition/DetectModerationLabels/Image/V3", "AWS/Textract/AnalyzeDocument/Forms/V1", } } type BatchStrategy string // Enum values for BatchStrategy const ( BatchStrategyMultiRecord BatchStrategy = "MultiRecord" BatchStrategySingleRecord BatchStrategy = "SingleRecord" ) // Values returns all known values for BatchStrategy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (BatchStrategy) Values() []BatchStrategy { return []BatchStrategy{ "MultiRecord", "SingleRecord", } } type BooleanOperator string // Enum values for BooleanOperator const ( BooleanOperatorAnd BooleanOperator = "And" BooleanOperatorOr BooleanOperator = "Or" ) // Values returns all known values for BooleanOperator. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (BooleanOperator) Values() []BooleanOperator { return []BooleanOperator{ "And", "Or", } } type CandidateSortBy string // Enum values for CandidateSortBy const ( CandidateSortByCreationTime CandidateSortBy = "CreationTime" CandidateSortByStatus CandidateSortBy = "Status" CandidateSortByFinalObjectiveMetricValue CandidateSortBy = "FinalObjectiveMetricValue" ) // Values returns all known values for CandidateSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CandidateSortBy) Values() []CandidateSortBy { return []CandidateSortBy{ "CreationTime", "Status", "FinalObjectiveMetricValue", } } type CandidateStatus string // Enum values for CandidateStatus const ( CandidateStatusCompleted CandidateStatus = "Completed" CandidateStatusInProgress CandidateStatus = "InProgress" CandidateStatusFailed CandidateStatus = "Failed" CandidateStatusStopped CandidateStatus = "Stopped" CandidateStatusStopping CandidateStatus = "Stopping" ) // Values returns all known values for CandidateStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CandidateStatus) Values() []CandidateStatus { return []CandidateStatus{ "Completed", "InProgress", "Failed", "Stopped", "Stopping", } } type CandidateStepType string // Enum values for CandidateStepType const ( CandidateStepTypeTraining CandidateStepType = "AWS::SageMaker::TrainingJob" CandidateStepTypeTransform CandidateStepType = "AWS::SageMaker::TransformJob" CandidateStepTypeProcessing CandidateStepType = "AWS::SageMaker::ProcessingJob" ) // Values returns all known values for CandidateStepType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CandidateStepType) Values() []CandidateStepType { return []CandidateStepType{ "AWS::SageMaker::TrainingJob", "AWS::SageMaker::TransformJob", "AWS::SageMaker::ProcessingJob", } } type CapacitySizeType string // Enum values for CapacitySizeType const ( CapacitySizeTypeInstanceCount CapacitySizeType = "INSTANCE_COUNT" CapacitySizeTypeCapacityPercent CapacitySizeType = "CAPACITY_PERCENT" ) // Values returns all known values for CapacitySizeType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CapacitySizeType) Values() []CapacitySizeType { return []CapacitySizeType{ "INSTANCE_COUNT", "CAPACITY_PERCENT", } } type CaptureMode string // Enum values for CaptureMode const ( CaptureModeInput CaptureMode = "Input" CaptureModeOutput CaptureMode = "Output" ) // Values returns all known values for CaptureMode. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (CaptureMode) Values() []CaptureMode { return []CaptureMode{ "Input", "Output", } } type CaptureStatus string // Enum values for CaptureStatus const ( CaptureStatusStarted CaptureStatus = "Started" CaptureStatusStopped CaptureStatus = "Stopped" ) // Values returns all known values for CaptureStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CaptureStatus) Values() []CaptureStatus { return []CaptureStatus{ "Started", "Stopped", } } type ClarifyFeatureType string // Enum values for ClarifyFeatureType const ( ClarifyFeatureTypeNumerical ClarifyFeatureType = "numerical" ClarifyFeatureTypeCategorical ClarifyFeatureType = "categorical" ClarifyFeatureTypeText ClarifyFeatureType = "text" ) // Values returns all known values for ClarifyFeatureType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ClarifyFeatureType) Values() []ClarifyFeatureType { return []ClarifyFeatureType{ "numerical", "categorical", "text", } } type ClarifyTextGranularity string // Enum values for ClarifyTextGranularity const ( ClarifyTextGranularityToken ClarifyTextGranularity = "token" ClarifyTextGranularitySentence ClarifyTextGranularity = "sentence" ClarifyTextGranularityParagraph ClarifyTextGranularity = "paragraph" ) // Values returns all known values for ClarifyTextGranularity. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ClarifyTextGranularity) Values() []ClarifyTextGranularity { return []ClarifyTextGranularity{ "token", "sentence", "paragraph", } } type ClarifyTextLanguage string // Enum values for ClarifyTextLanguage const ( ClarifyTextLanguageAfrikaans ClarifyTextLanguage = "af" ClarifyTextLanguageAlbanian ClarifyTextLanguage = "sq" ClarifyTextLanguageArabic ClarifyTextLanguage = "ar" ClarifyTextLanguageArmenian ClarifyTextLanguage = "hy" ClarifyTextLanguageBasque ClarifyTextLanguage = "eu" ClarifyTextLanguageBengali ClarifyTextLanguage = "bn" ClarifyTextLanguageBulgarian ClarifyTextLanguage = "bg" ClarifyTextLanguageCatalan ClarifyTextLanguage = "ca" ClarifyTextLanguageChinese ClarifyTextLanguage = "zh" ClarifyTextLanguageCroatian ClarifyTextLanguage = "hr" ClarifyTextLanguageCzech ClarifyTextLanguage = "cs" ClarifyTextLanguageDanish ClarifyTextLanguage = "da" ClarifyTextLanguageDutch ClarifyTextLanguage = "nl" ClarifyTextLanguageEnglish ClarifyTextLanguage = "en" ClarifyTextLanguageEstonian ClarifyTextLanguage = "et" ClarifyTextLanguageFinnish ClarifyTextLanguage = "fi" ClarifyTextLanguageFrench ClarifyTextLanguage = "fr" ClarifyTextLanguageGerman ClarifyTextLanguage = "de" ClarifyTextLanguageGreek ClarifyTextLanguage = "el" ClarifyTextLanguageGujarati ClarifyTextLanguage = "gu" ClarifyTextLanguageHebrew ClarifyTextLanguage = "he" ClarifyTextLanguageHindi ClarifyTextLanguage = "hi" ClarifyTextLanguageHungarian ClarifyTextLanguage = "hu" ClarifyTextLanguageIcelandic ClarifyTextLanguage = "is" ClarifyTextLanguageIndonesian ClarifyTextLanguage = "id" ClarifyTextLanguageIrish ClarifyTextLanguage = "ga" ClarifyTextLanguageItalian ClarifyTextLanguage = "it" ClarifyTextLanguageKannada ClarifyTextLanguage = "kn" ClarifyTextLanguageKyrgyz ClarifyTextLanguage = "ky" ClarifyTextLanguageLatvian ClarifyTextLanguage = "lv" ClarifyTextLanguageLithuanian ClarifyTextLanguage = "lt" ClarifyTextLanguageLuxembourgish ClarifyTextLanguage = "lb" ClarifyTextLanguageMacedonian ClarifyTextLanguage = "mk" ClarifyTextLanguageMalayalam ClarifyTextLanguage = "ml" ClarifyTextLanguageMarathi ClarifyTextLanguage = "mr" ClarifyTextLanguageNepali ClarifyTextLanguage = "ne" ClarifyTextLanguageNorwegianBokmal ClarifyTextLanguage = "nb" ClarifyTextLanguagePersian ClarifyTextLanguage = "fa" ClarifyTextLanguagePolish ClarifyTextLanguage = "pl" ClarifyTextLanguagePortuguese ClarifyTextLanguage = "pt" ClarifyTextLanguageRomanian ClarifyTextLanguage = "ro" ClarifyTextLanguageRussian ClarifyTextLanguage = "ru" ClarifyTextLanguageSanskrit ClarifyTextLanguage = "sa" ClarifyTextLanguageSerbian ClarifyTextLanguage = "sr" ClarifyTextLanguageSetswana ClarifyTextLanguage = "tn" ClarifyTextLanguageSinhala ClarifyTextLanguage = "si" ClarifyTextLanguageSlovak ClarifyTextLanguage = "sk" ClarifyTextLanguageSlovenian ClarifyTextLanguage = "sl" ClarifyTextLanguageSpanish ClarifyTextLanguage = "es" ClarifyTextLanguageSwedish ClarifyTextLanguage = "sv" ClarifyTextLanguageTagalog ClarifyTextLanguage = "tl" ClarifyTextLanguageTamil ClarifyTextLanguage = "ta" ClarifyTextLanguageTatar ClarifyTextLanguage = "tt" ClarifyTextLanguageTelugu ClarifyTextLanguage = "te" ClarifyTextLanguageTurkish ClarifyTextLanguage = "tr" ClarifyTextLanguageUkrainian ClarifyTextLanguage = "uk" ClarifyTextLanguageUrdu ClarifyTextLanguage = "ur" ClarifyTextLanguageYoruba ClarifyTextLanguage = "yo" ClarifyTextLanguageLigurian ClarifyTextLanguage = "lij" ClarifyTextLanguageMultiLanguage ClarifyTextLanguage = "xx" ) // Values returns all known values for ClarifyTextLanguage. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ClarifyTextLanguage) Values() []ClarifyTextLanguage { return []ClarifyTextLanguage{ "af", "sq", "ar", "hy", "eu", "bn", "bg", "ca", "zh", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "gu", "he", "hi", "hu", "is", "id", "ga", "it", "kn", "ky", "lv", "lt", "lb", "mk", "ml", "mr", "ne", "nb", "fa", "pl", "pt", "ro", "ru", "sa", "sr", "tn", "si", "sk", "sl", "es", "sv", "tl", "ta", "tt", "te", "tr", "uk", "ur", "yo", "lij", "xx", } } type CodeRepositorySortBy string // Enum values for CodeRepositorySortBy const ( CodeRepositorySortByName CodeRepositorySortBy = "Name" CodeRepositorySortByCreationTime CodeRepositorySortBy = "CreationTime" CodeRepositorySortByLastModifiedTime CodeRepositorySortBy = "LastModifiedTime" ) // Values returns all known values for CodeRepositorySortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CodeRepositorySortBy) Values() []CodeRepositorySortBy { return []CodeRepositorySortBy{ "Name", "CreationTime", "LastModifiedTime", } } type CodeRepositorySortOrder string // Enum values for CodeRepositorySortOrder const ( CodeRepositorySortOrderAscending CodeRepositorySortOrder = "Ascending" CodeRepositorySortOrderDescending CodeRepositorySortOrder = "Descending" ) // Values returns all known values for CodeRepositorySortOrder. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CodeRepositorySortOrder) Values() []CodeRepositorySortOrder { return []CodeRepositorySortOrder{ "Ascending", "Descending", } } type CompilationJobStatus string // Enum values for CompilationJobStatus const ( CompilationJobStatusInprogress CompilationJobStatus = "INPROGRESS" CompilationJobStatusCompleted CompilationJobStatus = "COMPLETED" CompilationJobStatusFailed CompilationJobStatus = "FAILED" CompilationJobStatusStarting CompilationJobStatus = "STARTING" CompilationJobStatusStopping CompilationJobStatus = "STOPPING" CompilationJobStatusStopped CompilationJobStatus = "STOPPED" ) // Values returns all known values for CompilationJobStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CompilationJobStatus) Values() []CompilationJobStatus { return []CompilationJobStatus{ "INPROGRESS", "COMPLETED", "FAILED", "STARTING", "STOPPING", "STOPPED", } } type CompleteOnConvergence string // Enum values for CompleteOnConvergence const ( CompleteOnConvergenceDisabled CompleteOnConvergence = "Disabled" CompleteOnConvergenceEnabled CompleteOnConvergence = "Enabled" ) // Values returns all known values for CompleteOnConvergence. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CompleteOnConvergence) Values() []CompleteOnConvergence { return []CompleteOnConvergence{ "Disabled", "Enabled", } } type CompressionType string // Enum values for CompressionType const ( CompressionTypeNone CompressionType = "None" CompressionTypeGzip CompressionType = "Gzip" ) // Values returns all known values for CompressionType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CompressionType) Values() []CompressionType { return []CompressionType{ "None", "Gzip", } } type ConditionOutcome string // Enum values for ConditionOutcome const ( ConditionOutcomeTrue ConditionOutcome = "True" ConditionOutcomeFalse ConditionOutcome = "False" ) // Values returns all known values for ConditionOutcome. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ConditionOutcome) Values() []ConditionOutcome { return []ConditionOutcome{ "True", "False", } } type ContainerMode string // Enum values for ContainerMode const ( ContainerModeSingleModel ContainerMode = "SingleModel" ContainerModeMultiModel ContainerMode = "MultiModel" ) // Values returns all known values for ContainerMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ContainerMode) Values() []ContainerMode { return []ContainerMode{ "SingleModel", "MultiModel", } } type ContentClassifier string // Enum values for ContentClassifier const ( ContentClassifierFreeOfPersonallyIdentifiableInformation ContentClassifier = "FreeOfPersonallyIdentifiableInformation" ContentClassifierFreeOfAdultContent ContentClassifier = "FreeOfAdultContent" ) // Values returns all known values for ContentClassifier. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ContentClassifier) Values() []ContentClassifier { return []ContentClassifier{ "FreeOfPersonallyIdentifiableInformation", "FreeOfAdultContent", } } type DataDistributionType string // Enum values for DataDistributionType const ( DataDistributionTypeFullyreplicated DataDistributionType = "FullyReplicated" DataDistributionTypeShardedbys3key DataDistributionType = "ShardedByS3Key" ) // Values returns all known values for DataDistributionType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DataDistributionType) Values() []DataDistributionType { return []DataDistributionType{ "FullyReplicated", "ShardedByS3Key", } } type DetailedAlgorithmStatus string // Enum values for DetailedAlgorithmStatus const ( DetailedAlgorithmStatusNotStarted DetailedAlgorithmStatus = "NotStarted" DetailedAlgorithmStatusInProgress DetailedAlgorithmStatus = "InProgress" DetailedAlgorithmStatusCompleted DetailedAlgorithmStatus = "Completed" DetailedAlgorithmStatusFailed DetailedAlgorithmStatus = "Failed" ) // Values returns all known values for DetailedAlgorithmStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DetailedAlgorithmStatus) Values() []DetailedAlgorithmStatus { return []DetailedAlgorithmStatus{ "NotStarted", "InProgress", "Completed", "Failed", } } type DetailedModelPackageStatus string // Enum values for DetailedModelPackageStatus const ( DetailedModelPackageStatusNotStarted DetailedModelPackageStatus = "NotStarted" DetailedModelPackageStatusInProgress DetailedModelPackageStatus = "InProgress" DetailedModelPackageStatusCompleted DetailedModelPackageStatus = "Completed" DetailedModelPackageStatusFailed DetailedModelPackageStatus = "Failed" ) // Values returns all known values for DetailedModelPackageStatus. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DetailedModelPackageStatus) Values() []DetailedModelPackageStatus { return []DetailedModelPackageStatus{ "NotStarted", "InProgress", "Completed", "Failed", } } type DeviceDeploymentStatus string // Enum values for DeviceDeploymentStatus const ( DeviceDeploymentStatusReadyToDeploy DeviceDeploymentStatus = "READYTODEPLOY" DeviceDeploymentStatusInProgress DeviceDeploymentStatus = "INPROGRESS" DeviceDeploymentStatusDeployed DeviceDeploymentStatus = "DEPLOYED" DeviceDeploymentStatusFailed DeviceDeploymentStatus = "FAILED" DeviceDeploymentStatusStopping DeviceDeploymentStatus = "STOPPING" DeviceDeploymentStatusStopped DeviceDeploymentStatus = "STOPPED" ) // Values returns all known values for DeviceDeploymentStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DeviceDeploymentStatus) Values() []DeviceDeploymentStatus { return []DeviceDeploymentStatus{ "READYTODEPLOY", "INPROGRESS", "DEPLOYED", "FAILED", "STOPPING", "STOPPED", } } type DeviceSubsetType string // Enum values for DeviceSubsetType const ( DeviceSubsetTypePercentage DeviceSubsetType = "PERCENTAGE" DeviceSubsetTypeSelection DeviceSubsetType = "SELECTION" DeviceSubsetTypeNameContains DeviceSubsetType = "NAMECONTAINS" ) // Values returns all known values for DeviceSubsetType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DeviceSubsetType) Values() []DeviceSubsetType { return []DeviceSubsetType{ "PERCENTAGE", "SELECTION", "NAMECONTAINS", } } type DirectInternetAccess string // Enum values for DirectInternetAccess const ( DirectInternetAccessEnabled DirectInternetAccess = "Enabled" DirectInternetAccessDisabled DirectInternetAccess = "Disabled" ) // Values returns all known values for DirectInternetAccess. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DirectInternetAccess) Values() []DirectInternetAccess { return []DirectInternetAccess{ "Enabled", "Disabled", } } type Direction string // Enum values for Direction const ( DirectionBoth Direction = "Both" DirectionAscendants Direction = "Ascendants" DirectionDescendants Direction = "Descendants" ) // Values returns all known values for Direction. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Direction) Values() []Direction { return []Direction{ "Both", "Ascendants", "Descendants", } } type DomainStatus string // Enum values for DomainStatus const ( DomainStatusDeleting DomainStatus = "Deleting" DomainStatusFailed DomainStatus = "Failed" DomainStatusInService DomainStatus = "InService" DomainStatusPending DomainStatus = "Pending" DomainStatusUpdating DomainStatus = "Updating" DomainStatusUpdateFailed DomainStatus = "Update_Failed" DomainStatusDeleteFailed DomainStatus = "Delete_Failed" ) // Values returns all known values for DomainStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DomainStatus) Values() []DomainStatus { return []DomainStatus{ "Deleting", "Failed", "InService", "Pending", "Updating", "Update_Failed", "Delete_Failed", } } type EdgePackagingJobStatus string // Enum values for EdgePackagingJobStatus const ( EdgePackagingJobStatusStarting EdgePackagingJobStatus = "STARTING" EdgePackagingJobStatusInProgress EdgePackagingJobStatus = "INPROGRESS" EdgePackagingJobStatusCompleted EdgePackagingJobStatus = "COMPLETED" EdgePackagingJobStatusFailed EdgePackagingJobStatus = "FAILED" EdgePackagingJobStatusStopping EdgePackagingJobStatus = "STOPPING" EdgePackagingJobStatusStopped EdgePackagingJobStatus = "STOPPED" ) // Values returns all known values for EdgePackagingJobStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (EdgePackagingJobStatus) Values() []EdgePackagingJobStatus { return []EdgePackagingJobStatus{ "STARTING", "INPROGRESS", "COMPLETED", "FAILED", "STOPPING", "STOPPED", } } type EdgePresetDeploymentStatus string // Enum values for EdgePresetDeploymentStatus const ( EdgePresetDeploymentStatusCompleted EdgePresetDeploymentStatus = "COMPLETED" EdgePresetDeploymentStatusFailed EdgePresetDeploymentStatus = "FAILED" ) // Values returns all known values for EdgePresetDeploymentStatus. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (EdgePresetDeploymentStatus) Values() []EdgePresetDeploymentStatus { return []EdgePresetDeploymentStatus{ "COMPLETED", "FAILED", } } type EdgePresetDeploymentType string // Enum values for EdgePresetDeploymentType const ( EdgePresetDeploymentTypeGreengrassV2Component EdgePresetDeploymentType = "GreengrassV2Component" ) // Values returns all known values for EdgePresetDeploymentType. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (EdgePresetDeploymentType) Values() []EdgePresetDeploymentType { return []EdgePresetDeploymentType{ "GreengrassV2Component", } } type EndpointConfigSortKey string // Enum values for EndpointConfigSortKey const ( EndpointConfigSortKeyName EndpointConfigSortKey = "Name" EndpointConfigSortKeyCreationTime EndpointConfigSortKey = "CreationTime" ) // Values returns all known values for EndpointConfigSortKey. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (EndpointConfigSortKey) Values() []EndpointConfigSortKey { return []EndpointConfigSortKey{ "Name", "CreationTime", } } type EndpointSortKey string // Enum values for EndpointSortKey const ( EndpointSortKeyName EndpointSortKey = "Name" EndpointSortKeyCreationTime EndpointSortKey = "CreationTime" EndpointSortKeyStatus EndpointSortKey = "Status" ) // Values returns all known values for EndpointSortKey. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (EndpointSortKey) Values() []EndpointSortKey { return []EndpointSortKey{ "Name", "CreationTime", "Status", } } type EndpointStatus string // Enum values for EndpointStatus const ( EndpointStatusOutOfService EndpointStatus = "OutOfService" EndpointStatusCreating EndpointStatus = "Creating" EndpointStatusUpdating EndpointStatus = "Updating" EndpointStatusSystemUpdating EndpointStatus = "SystemUpdating" EndpointStatusRollingBack EndpointStatus = "RollingBack" EndpointStatusInService EndpointStatus = "InService" EndpointStatusDeleting EndpointStatus = "Deleting" EndpointStatusFailed EndpointStatus = "Failed" EndpointStatusUpdateRollbackFailed EndpointStatus = "UpdateRollbackFailed" ) // Values returns all known values for EndpointStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (EndpointStatus) Values() []EndpointStatus { return []EndpointStatus{ "OutOfService", "Creating", "Updating", "SystemUpdating", "RollingBack", "InService", "Deleting", "Failed", "UpdateRollbackFailed", } } type ExecutionRoleIdentityConfig string // Enum values for ExecutionRoleIdentityConfig const ( ExecutionRoleIdentityConfigUserProfileName ExecutionRoleIdentityConfig = "USER_PROFILE_NAME" ExecutionRoleIdentityConfigDisabled ExecutionRoleIdentityConfig = "DISABLED" ) // Values returns all known values for ExecutionRoleIdentityConfig. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ExecutionRoleIdentityConfig) Values() []ExecutionRoleIdentityConfig { return []ExecutionRoleIdentityConfig{ "USER_PROFILE_NAME", "DISABLED", } } type ExecutionStatus string // Enum values for ExecutionStatus const ( ExecutionStatusPending ExecutionStatus = "Pending" ExecutionStatusCompleted ExecutionStatus = "Completed" ExecutionStatusCompletedWithViolations ExecutionStatus = "CompletedWithViolations" ExecutionStatusInProgress ExecutionStatus = "InProgress" ExecutionStatusFailed ExecutionStatus = "Failed" ExecutionStatusStopping ExecutionStatus = "Stopping" ExecutionStatusStopped ExecutionStatus = "Stopped" ) // Values returns all known values for ExecutionStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ExecutionStatus) Values() []ExecutionStatus { return []ExecutionStatus{ "Pending", "Completed", "CompletedWithViolations", "InProgress", "Failed", "Stopping", "Stopped", } } type FailureHandlingPolicy string // Enum values for FailureHandlingPolicy const ( FailureHandlingPolicyRollbackOnFailure FailureHandlingPolicy = "ROLLBACK_ON_FAILURE" FailureHandlingPolicyDoNothing FailureHandlingPolicy = "DO_NOTHING" ) // Values returns all known values for FailureHandlingPolicy. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FailureHandlingPolicy) Values() []FailureHandlingPolicy { return []FailureHandlingPolicy{ "ROLLBACK_ON_FAILURE", "DO_NOTHING", } } type FeatureGroupSortBy string // Enum values for FeatureGroupSortBy const ( FeatureGroupSortByName FeatureGroupSortBy = "Name" FeatureGroupSortByFeatureGroupStatus FeatureGroupSortBy = "FeatureGroupStatus" FeatureGroupSortByOfflineStoreStatus FeatureGroupSortBy = "OfflineStoreStatus" FeatureGroupSortByCreationTime FeatureGroupSortBy = "CreationTime" ) // Values returns all known values for FeatureGroupSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FeatureGroupSortBy) Values() []FeatureGroupSortBy { return []FeatureGroupSortBy{ "Name", "FeatureGroupStatus", "OfflineStoreStatus", "CreationTime", } } type FeatureGroupSortOrder string // Enum values for FeatureGroupSortOrder const ( FeatureGroupSortOrderAscending FeatureGroupSortOrder = "Ascending" FeatureGroupSortOrderDescending FeatureGroupSortOrder = "Descending" ) // Values returns all known values for FeatureGroupSortOrder. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FeatureGroupSortOrder) Values() []FeatureGroupSortOrder { return []FeatureGroupSortOrder{ "Ascending", "Descending", } } type FeatureGroupStatus string // Enum values for FeatureGroupStatus const ( FeatureGroupStatusCreating FeatureGroupStatus = "Creating" FeatureGroupStatusCreated FeatureGroupStatus = "Created" FeatureGroupStatusCreateFailed FeatureGroupStatus = "CreateFailed" FeatureGroupStatusDeleting FeatureGroupStatus = "Deleting" FeatureGroupStatusDeleteFailed FeatureGroupStatus = "DeleteFailed" ) // Values returns all known values for FeatureGroupStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FeatureGroupStatus) Values() []FeatureGroupStatus { return []FeatureGroupStatus{ "Creating", "Created", "CreateFailed", "Deleting", "DeleteFailed", } } type FeatureStatus string // Enum values for FeatureStatus const ( FeatureStatusEnabled FeatureStatus = "ENABLED" FeatureStatusDisabled FeatureStatus = "DISABLED" ) // Values returns all known values for FeatureStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FeatureStatus) Values() []FeatureStatus { return []FeatureStatus{ "ENABLED", "DISABLED", } } type FeatureType string // Enum values for FeatureType const ( FeatureTypeIntegral FeatureType = "Integral" FeatureTypeFractional FeatureType = "Fractional" FeatureTypeString FeatureType = "String" ) // Values returns all known values for FeatureType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (FeatureType) Values() []FeatureType { return []FeatureType{ "Integral", "Fractional", "String", } } type FileSystemAccessMode string // Enum values for FileSystemAccessMode const ( FileSystemAccessModeRw FileSystemAccessMode = "rw" FileSystemAccessModeRo FileSystemAccessMode = "ro" ) // Values returns all known values for FileSystemAccessMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FileSystemAccessMode) Values() []FileSystemAccessMode { return []FileSystemAccessMode{ "rw", "ro", } } type FileSystemType string // Enum values for FileSystemType const ( FileSystemTypeEfs FileSystemType = "EFS" FileSystemTypeFsxlustre FileSystemType = "FSxLustre" ) // Values returns all known values for FileSystemType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FileSystemType) Values() []FileSystemType { return []FileSystemType{ "EFS", "FSxLustre", } } type FillingType string // Enum values for FillingType const ( FillingTypeFrontfill FillingType = "frontfill" FillingTypeMiddlefill FillingType = "middlefill" FillingTypeBackfill FillingType = "backfill" FillingTypeFuturefill FillingType = "futurefill" FillingTypeFrontfillValue FillingType = "frontfill_value" FillingTypeMiddlefillValue FillingType = "middlefill_value" FillingTypeBackfillValue FillingType = "backfill_value" FillingTypeFuturefillValue FillingType = "futurefill_value" ) // Values returns all known values for FillingType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (FillingType) Values() []FillingType { return []FillingType{ "frontfill", "middlefill", "backfill", "futurefill", "frontfill_value", "middlefill_value", "backfill_value", "futurefill_value", } } type FlowDefinitionStatus string // Enum values for FlowDefinitionStatus const ( FlowDefinitionStatusInitializing FlowDefinitionStatus = "Initializing" FlowDefinitionStatusActive FlowDefinitionStatus = "Active" FlowDefinitionStatusFailed FlowDefinitionStatus = "Failed" FlowDefinitionStatusDeleting FlowDefinitionStatus = "Deleting" ) // Values returns all known values for FlowDefinitionStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (FlowDefinitionStatus) Values() []FlowDefinitionStatus { return []FlowDefinitionStatus{ "Initializing", "Active", "Failed", "Deleting", } } type Framework string // Enum values for Framework const ( FrameworkTensorflow Framework = "TENSORFLOW" FrameworkKeras Framework = "KERAS" FrameworkMxnet Framework = "MXNET" FrameworkOnnx Framework = "ONNX" FrameworkPytorch Framework = "PYTORCH" FrameworkXgboost Framework = "XGBOOST" FrameworkTflite Framework = "TFLITE" FrameworkDarknet Framework = "DARKNET" FrameworkSklearn Framework = "SKLEARN" ) // Values returns all known values for Framework. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Framework) Values() []Framework { return []Framework{ "TENSORFLOW", "KERAS", "MXNET", "ONNX", "PYTORCH", "XGBOOST", "TFLITE", "DARKNET", "SKLEARN", } } type HubContentSortBy string // Enum values for HubContentSortBy const ( HubContentSortByHubContentName HubContentSortBy = "HubContentName" HubContentSortByCreationTime HubContentSortBy = "CreationTime" HubContentSortByHubContentStatus HubContentSortBy = "HubContentStatus" ) // Values returns all known values for HubContentSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HubContentSortBy) Values() []HubContentSortBy { return []HubContentSortBy{ "HubContentName", "CreationTime", "HubContentStatus", } } type HubContentStatus string // Enum values for HubContentStatus const ( HubContentStatusAvailable HubContentStatus = "Available" HubContentStatusImporting HubContentStatus = "Importing" HubContentStatusDeleting HubContentStatus = "Deleting" HubContentStatusImportFailed HubContentStatus = "ImportFailed" HubContentStatusDeleteFailed HubContentStatus = "DeleteFailed" ) // Values returns all known values for HubContentStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HubContentStatus) Values() []HubContentStatus { return []HubContentStatus{ "Available", "Importing", "Deleting", "ImportFailed", "DeleteFailed", } } type HubContentType string // Enum values for HubContentType const ( HubContentTypeModel HubContentType = "Model" HubContentTypeNotebook HubContentType = "Notebook" ) // Values returns all known values for HubContentType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HubContentType) Values() []HubContentType { return []HubContentType{ "Model", "Notebook", } } type HubSortBy string // Enum values for HubSortBy const ( HubSortByHubName HubSortBy = "HubName" HubSortByCreationTime HubSortBy = "CreationTime" HubSortByHubStatus HubSortBy = "HubStatus" HubSortByAccountIdOwner HubSortBy = "AccountIdOwner" ) // Values returns all known values for HubSortBy. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (HubSortBy) Values() []HubSortBy { return []HubSortBy{ "HubName", "CreationTime", "HubStatus", "AccountIdOwner", } } type HubStatus string // Enum values for HubStatus const ( HubStatusInService HubStatus = "InService" HubStatusCreating HubStatus = "Creating" HubStatusUpdating HubStatus = "Updating" HubStatusDeleting HubStatus = "Deleting" HubStatusCreateFailed HubStatus = "CreateFailed" HubStatusUpdateFailed HubStatus = "UpdateFailed" HubStatusDeleteFailed HubStatus = "DeleteFailed" ) // Values returns all known values for HubStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (HubStatus) Values() []HubStatus { return []HubStatus{ "InService", "Creating", "Updating", "Deleting", "CreateFailed", "UpdateFailed", "DeleteFailed", } } type HumanTaskUiStatus string // Enum values for HumanTaskUiStatus const ( HumanTaskUiStatusActive HumanTaskUiStatus = "Active" HumanTaskUiStatusDeleting HumanTaskUiStatus = "Deleting" ) // Values returns all known values for HumanTaskUiStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HumanTaskUiStatus) Values() []HumanTaskUiStatus { return []HumanTaskUiStatus{ "Active", "Deleting", } } type HyperParameterScalingType string // Enum values for HyperParameterScalingType const ( HyperParameterScalingTypeAuto HyperParameterScalingType = "Auto" HyperParameterScalingTypeLinear HyperParameterScalingType = "Linear" HyperParameterScalingTypeLogarithmic HyperParameterScalingType = "Logarithmic" HyperParameterScalingTypeReverseLogarithmic HyperParameterScalingType = "ReverseLogarithmic" ) // Values returns all known values for HyperParameterScalingType. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (HyperParameterScalingType) Values() []HyperParameterScalingType { return []HyperParameterScalingType{ "Auto", "Linear", "Logarithmic", "ReverseLogarithmic", } } type HyperParameterTuningAllocationStrategy string // Enum values for HyperParameterTuningAllocationStrategy const ( HyperParameterTuningAllocationStrategyPrioritized HyperParameterTuningAllocationStrategy = "Prioritized" ) // Values returns all known values for HyperParameterTuningAllocationStrategy. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (HyperParameterTuningAllocationStrategy) Values() []HyperParameterTuningAllocationStrategy { return []HyperParameterTuningAllocationStrategy{ "Prioritized", } } type HyperParameterTuningJobObjectiveType string // Enum values for HyperParameterTuningJobObjectiveType const ( HyperParameterTuningJobObjectiveTypeMaximize HyperParameterTuningJobObjectiveType = "Maximize" HyperParameterTuningJobObjectiveTypeMinimize HyperParameterTuningJobObjectiveType = "Minimize" ) // Values returns all known values for HyperParameterTuningJobObjectiveType. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HyperParameterTuningJobObjectiveType) Values() []HyperParameterTuningJobObjectiveType { return []HyperParameterTuningJobObjectiveType{ "Maximize", "Minimize", } } type HyperParameterTuningJobSortByOptions string // Enum values for HyperParameterTuningJobSortByOptions const ( HyperParameterTuningJobSortByOptionsName HyperParameterTuningJobSortByOptions = "Name" HyperParameterTuningJobSortByOptionsStatus HyperParameterTuningJobSortByOptions = "Status" HyperParameterTuningJobSortByOptionsCreationTime HyperParameterTuningJobSortByOptions = "CreationTime" ) // Values returns all known values for HyperParameterTuningJobSortByOptions. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HyperParameterTuningJobSortByOptions) Values() []HyperParameterTuningJobSortByOptions { return []HyperParameterTuningJobSortByOptions{ "Name", "Status", "CreationTime", } } type HyperParameterTuningJobStatus string // Enum values for HyperParameterTuningJobStatus const ( HyperParameterTuningJobStatusCompleted HyperParameterTuningJobStatus = "Completed" HyperParameterTuningJobStatusInProgress HyperParameterTuningJobStatus = "InProgress" HyperParameterTuningJobStatusFailed HyperParameterTuningJobStatus = "Failed" HyperParameterTuningJobStatusStopped HyperParameterTuningJobStatus = "Stopped" HyperParameterTuningJobStatusStopping HyperParameterTuningJobStatus = "Stopping" ) // Values returns all known values for HyperParameterTuningJobStatus. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HyperParameterTuningJobStatus) Values() []HyperParameterTuningJobStatus { return []HyperParameterTuningJobStatus{ "Completed", "InProgress", "Failed", "Stopped", "Stopping", } } type HyperParameterTuningJobStrategyType string // Enum values for HyperParameterTuningJobStrategyType const ( HyperParameterTuningJobStrategyTypeBayesian HyperParameterTuningJobStrategyType = "Bayesian" HyperParameterTuningJobStrategyTypeRandom HyperParameterTuningJobStrategyType = "Random" HyperParameterTuningJobStrategyTypeHyperband HyperParameterTuningJobStrategyType = "Hyperband" HyperParameterTuningJobStrategyTypeGrid HyperParameterTuningJobStrategyType = "Grid" ) // Values returns all known values for HyperParameterTuningJobStrategyType. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HyperParameterTuningJobStrategyType) Values() []HyperParameterTuningJobStrategyType { return []HyperParameterTuningJobStrategyType{ "Bayesian", "Random", "Hyperband", "Grid", } } type HyperParameterTuningJobWarmStartType string // Enum values for HyperParameterTuningJobWarmStartType const ( HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm HyperParameterTuningJobWarmStartType = "IdenticalDataAndAlgorithm" HyperParameterTuningJobWarmStartTypeTransferLearning HyperParameterTuningJobWarmStartType = "TransferLearning" ) // Values returns all known values for HyperParameterTuningJobWarmStartType. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HyperParameterTuningJobWarmStartType) Values() []HyperParameterTuningJobWarmStartType { return []HyperParameterTuningJobWarmStartType{ "IdenticalDataAndAlgorithm", "TransferLearning", } } type ImageSortBy string // Enum values for ImageSortBy const ( ImageSortByCreationTime ImageSortBy = "CREATION_TIME" ImageSortByLastModifiedTime ImageSortBy = "LAST_MODIFIED_TIME" ImageSortByImageName ImageSortBy = "IMAGE_NAME" ) // Values returns all known values for ImageSortBy. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (ImageSortBy) Values() []ImageSortBy { return []ImageSortBy{ "CREATION_TIME", "LAST_MODIFIED_TIME", "IMAGE_NAME", } } type ImageSortOrder string // Enum values for ImageSortOrder const ( ImageSortOrderAscending ImageSortOrder = "ASCENDING" ImageSortOrderDescending ImageSortOrder = "DESCENDING" ) // Values returns all known values for ImageSortOrder. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ImageSortOrder) Values() []ImageSortOrder { return []ImageSortOrder{ "ASCENDING", "DESCENDING", } } type ImageStatus string // Enum values for ImageStatus const ( ImageStatusCreating ImageStatus = "CREATING" ImageStatusCreated ImageStatus = "CREATED" ImageStatusCreateFailed ImageStatus = "CREATE_FAILED" ImageStatusUpdating ImageStatus = "UPDATING" ImageStatusUpdateFailed ImageStatus = "UPDATE_FAILED" ImageStatusDeleting ImageStatus = "DELETING" ImageStatusDeleteFailed ImageStatus = "DELETE_FAILED" ) // Values returns all known values for ImageStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (ImageStatus) Values() []ImageStatus { return []ImageStatus{ "CREATING", "CREATED", "CREATE_FAILED", "UPDATING", "UPDATE_FAILED", "DELETING", "DELETE_FAILED", } } type ImageVersionSortBy string // Enum values for ImageVersionSortBy const ( ImageVersionSortByCreationTime ImageVersionSortBy = "CREATION_TIME" ImageVersionSortByLastModifiedTime ImageVersionSortBy = "LAST_MODIFIED_TIME" ImageVersionSortByVersion ImageVersionSortBy = "VERSION" ) // Values returns all known values for ImageVersionSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ImageVersionSortBy) Values() []ImageVersionSortBy { return []ImageVersionSortBy{ "CREATION_TIME", "LAST_MODIFIED_TIME", "VERSION", } } type ImageVersionSortOrder string // Enum values for ImageVersionSortOrder const ( ImageVersionSortOrderAscending ImageVersionSortOrder = "ASCENDING" ImageVersionSortOrderDescending ImageVersionSortOrder = "DESCENDING" ) // Values returns all known values for ImageVersionSortOrder. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ImageVersionSortOrder) Values() []ImageVersionSortOrder { return []ImageVersionSortOrder{ "ASCENDING", "DESCENDING", } } type ImageVersionStatus string // Enum values for ImageVersionStatus const ( ImageVersionStatusCreating ImageVersionStatus = "CREATING" ImageVersionStatusCreated ImageVersionStatus = "CREATED" ImageVersionStatusCreateFailed ImageVersionStatus = "CREATE_FAILED" ImageVersionStatusDeleting ImageVersionStatus = "DELETING" ImageVersionStatusDeleteFailed ImageVersionStatus = "DELETE_FAILED" ) // Values returns all known values for ImageVersionStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ImageVersionStatus) Values() []ImageVersionStatus { return []ImageVersionStatus{ "CREATING", "CREATED", "CREATE_FAILED", "DELETING", "DELETE_FAILED", } } type InferenceExecutionMode string // Enum values for InferenceExecutionMode const ( InferenceExecutionModeSerial InferenceExecutionMode = "Serial" InferenceExecutionModeDirect InferenceExecutionMode = "Direct" ) // Values returns all known values for InferenceExecutionMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InferenceExecutionMode) Values() []InferenceExecutionMode { return []InferenceExecutionMode{ "Serial", "Direct", } } type InferenceExperimentStatus string // Enum values for InferenceExperimentStatus const ( InferenceExperimentStatusCreating InferenceExperimentStatus = "Creating" InferenceExperimentStatusCreated InferenceExperimentStatus = "Created" InferenceExperimentStatusUpdating InferenceExperimentStatus = "Updating" InferenceExperimentStatusRunning InferenceExperimentStatus = "Running" InferenceExperimentStatusStarting InferenceExperimentStatus = "Starting" InferenceExperimentStatusStopping InferenceExperimentStatus = "Stopping" InferenceExperimentStatusCompleted InferenceExperimentStatus = "Completed" InferenceExperimentStatusCancelled InferenceExperimentStatus = "Cancelled" ) // Values returns all known values for InferenceExperimentStatus. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (InferenceExperimentStatus) Values() []InferenceExperimentStatus { return []InferenceExperimentStatus{ "Creating", "Created", "Updating", "Running", "Starting", "Stopping", "Completed", "Cancelled", } } type InferenceExperimentStopDesiredState string // Enum values for InferenceExperimentStopDesiredState const ( InferenceExperimentStopDesiredStateCompleted InferenceExperimentStopDesiredState = "Completed" InferenceExperimentStopDesiredStateCancelled InferenceExperimentStopDesiredState = "Cancelled" ) // Values returns all known values for InferenceExperimentStopDesiredState. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (InferenceExperimentStopDesiredState) Values() []InferenceExperimentStopDesiredState { return []InferenceExperimentStopDesiredState{ "Completed", "Cancelled", } } type InferenceExperimentType string // Enum values for InferenceExperimentType const ( InferenceExperimentTypeShadowMode InferenceExperimentType = "ShadowMode" ) // Values returns all known values for InferenceExperimentType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InferenceExperimentType) Values() []InferenceExperimentType { return []InferenceExperimentType{ "ShadowMode", } } type InputMode string // Enum values for InputMode const ( InputModePipe InputMode = "Pipe" InputModeFile InputMode = "File" ) // Values returns all known values for InputMode. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (InputMode) Values() []InputMode { return []InputMode{ "Pipe", "File", } } type InstanceType string // Enum values for InstanceType const ( InstanceTypeMlT2Medium InstanceType = "ml.t2.medium" InstanceTypeMlT2Large InstanceType = "ml.t2.large" InstanceTypeMlT2Xlarge InstanceType = "ml.t2.xlarge" InstanceTypeMlT22xlarge InstanceType = "ml.t2.2xlarge" InstanceTypeMlT3Medium InstanceType = "ml.t3.medium" InstanceTypeMlT3Large InstanceType = "ml.t3.large" InstanceTypeMlT3Xlarge InstanceType = "ml.t3.xlarge" InstanceTypeMlT32xlarge InstanceType = "ml.t3.2xlarge" InstanceTypeMlM4Xlarge InstanceType = "ml.m4.xlarge" InstanceTypeMlM42xlarge InstanceType = "ml.m4.2xlarge" InstanceTypeMlM44xlarge InstanceType = "ml.m4.4xlarge" InstanceTypeMlM410xlarge InstanceType = "ml.m4.10xlarge" InstanceTypeMlM416xlarge InstanceType = "ml.m4.16xlarge" InstanceTypeMlM5Xlarge InstanceType = "ml.m5.xlarge" InstanceTypeMlM52xlarge InstanceType = "ml.m5.2xlarge" InstanceTypeMlM54xlarge InstanceType = "ml.m5.4xlarge" InstanceTypeMlM512xlarge InstanceType = "ml.m5.12xlarge" InstanceTypeMlM524xlarge InstanceType = "ml.m5.24xlarge" InstanceTypeMlM5dLarge InstanceType = "ml.m5d.large" InstanceTypeMlM5dXlarge InstanceType = "ml.m5d.xlarge" InstanceTypeMlM5d2xlarge InstanceType = "ml.m5d.2xlarge" InstanceTypeMlM5d4xlarge InstanceType = "ml.m5d.4xlarge" InstanceTypeMlM5d8xlarge InstanceType = "ml.m5d.8xlarge" InstanceTypeMlM5d12xlarge InstanceType = "ml.m5d.12xlarge" InstanceTypeMlM5d16xlarge InstanceType = "ml.m5d.16xlarge" InstanceTypeMlM5d24xlarge InstanceType = "ml.m5d.24xlarge" InstanceTypeMlC4Xlarge InstanceType = "ml.c4.xlarge" InstanceTypeMlC42xlarge InstanceType = "ml.c4.2xlarge" InstanceTypeMlC44xlarge InstanceType = "ml.c4.4xlarge" InstanceTypeMlC48xlarge InstanceType = "ml.c4.8xlarge" InstanceTypeMlC5Xlarge InstanceType = "ml.c5.xlarge" InstanceTypeMlC52xlarge InstanceType = "ml.c5.2xlarge" InstanceTypeMlC54xlarge InstanceType = "ml.c5.4xlarge" InstanceTypeMlC59xlarge InstanceType = "ml.c5.9xlarge" InstanceTypeMlC518xlarge InstanceType = "ml.c5.18xlarge" InstanceTypeMlC5dXlarge InstanceType = "ml.c5d.xlarge" InstanceTypeMlC5d2xlarge InstanceType = "ml.c5d.2xlarge" InstanceTypeMlC5d4xlarge InstanceType = "ml.c5d.4xlarge" InstanceTypeMlC5d9xlarge InstanceType = "ml.c5d.9xlarge" InstanceTypeMlC5d18xlarge InstanceType = "ml.c5d.18xlarge" InstanceTypeMlP2Xlarge InstanceType = "ml.p2.xlarge" InstanceTypeMlP28xlarge InstanceType = "ml.p2.8xlarge" InstanceTypeMlP216xlarge InstanceType = "ml.p2.16xlarge" InstanceTypeMlP32xlarge InstanceType = "ml.p3.2xlarge" InstanceTypeMlP38xlarge InstanceType = "ml.p3.8xlarge" InstanceTypeMlP316xlarge InstanceType = "ml.p3.16xlarge" InstanceTypeMlP3dn24xlarge InstanceType = "ml.p3dn.24xlarge" InstanceTypeMlG4dnXlarge InstanceType = "ml.g4dn.xlarge" InstanceTypeMlG4dn2xlarge InstanceType = "ml.g4dn.2xlarge" InstanceTypeMlG4dn4xlarge InstanceType = "ml.g4dn.4xlarge" InstanceTypeMlG4dn8xlarge InstanceType = "ml.g4dn.8xlarge" InstanceTypeMlG4dn12xlarge InstanceType = "ml.g4dn.12xlarge" InstanceTypeMlG4dn16xlarge InstanceType = "ml.g4dn.16xlarge" InstanceTypeMlR5Large InstanceType = "ml.r5.large" InstanceTypeMlR5Xlarge InstanceType = "ml.r5.xlarge" InstanceTypeMlR52xlarge InstanceType = "ml.r5.2xlarge" InstanceTypeMlR54xlarge InstanceType = "ml.r5.4xlarge" InstanceTypeMlR58xlarge InstanceType = "ml.r5.8xlarge" InstanceTypeMlR512xlarge InstanceType = "ml.r5.12xlarge" InstanceTypeMlR516xlarge InstanceType = "ml.r5.16xlarge" InstanceTypeMlR524xlarge InstanceType = "ml.r5.24xlarge" InstanceTypeMlG5Xlarge InstanceType = "ml.g5.xlarge" InstanceTypeMlG52xlarge InstanceType = "ml.g5.2xlarge" InstanceTypeMlG54xlarge InstanceType = "ml.g5.4xlarge" InstanceTypeMlG58xlarge InstanceType = "ml.g5.8xlarge" InstanceTypeMlG516xlarge InstanceType = "ml.g5.16xlarge" InstanceTypeMlG512xlarge InstanceType = "ml.g5.12xlarge" InstanceTypeMlG524xlarge InstanceType = "ml.g5.24xlarge" InstanceTypeMlG548xlarge InstanceType = "ml.g5.48xlarge" InstanceTypeMlInf1Xlarge InstanceType = "ml.inf1.xlarge" InstanceTypeMlInf12xlarge InstanceType = "ml.inf1.2xlarge" InstanceTypeMlInf16xlarge InstanceType = "ml.inf1.6xlarge" InstanceTypeMlInf124xlarge InstanceType = "ml.inf1.24xlarge" InstanceTypeMlP4d24xlarge InstanceType = "ml.p4d.24xlarge" InstanceTypeMlP4de24xlarge InstanceType = "ml.p4de.24xlarge" ) // Values returns all known values for InstanceType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InstanceType) Values() []InstanceType { return []InstanceType{ "ml.t2.medium", "ml.t2.large", "ml.t2.xlarge", "ml.t2.2xlarge", "ml.t3.medium", "ml.t3.large", "ml.t3.xlarge", "ml.t3.2xlarge", "ml.m4.xlarge", "ml.m4.2xlarge", "ml.m4.4xlarge", "ml.m4.10xlarge", "ml.m4.16xlarge", "ml.m5.xlarge", "ml.m5.2xlarge", "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", "ml.m5d.large", "ml.m5d.xlarge", "ml.m5d.2xlarge", "ml.m5d.4xlarge", "ml.m5d.8xlarge", "ml.m5d.12xlarge", "ml.m5d.16xlarge", "ml.m5d.24xlarge", "ml.c4.xlarge", "ml.c4.2xlarge", "ml.c4.4xlarge", "ml.c4.8xlarge", "ml.c5.xlarge", "ml.c5.2xlarge", "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.18xlarge", "ml.c5d.xlarge", "ml.c5d.2xlarge", "ml.c5d.4xlarge", "ml.c5d.9xlarge", "ml.c5d.18xlarge", "ml.p2.xlarge", "ml.p2.8xlarge", "ml.p2.16xlarge", "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", "ml.p3dn.24xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", "ml.r5.large", "ml.r5.xlarge", "ml.r5.2xlarge", "ml.r5.4xlarge", "ml.r5.8xlarge", "ml.r5.12xlarge", "ml.r5.16xlarge", "ml.r5.24xlarge", "ml.g5.xlarge", "ml.g5.2xlarge", "ml.g5.4xlarge", "ml.g5.8xlarge", "ml.g5.16xlarge", "ml.g5.12xlarge", "ml.g5.24xlarge", "ml.g5.48xlarge", "ml.inf1.xlarge", "ml.inf1.2xlarge", "ml.inf1.6xlarge", "ml.inf1.24xlarge", "ml.p4d.24xlarge", "ml.p4de.24xlarge", } } type JobType string // Enum values for JobType const ( JobTypeTraining JobType = "TRAINING" JobTypeInference JobType = "INFERENCE" JobTypeNotebookKernel JobType = "NOTEBOOK_KERNEL" ) // Values returns all known values for JobType. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (JobType) Values() []JobType { return []JobType{ "TRAINING", "INFERENCE", "NOTEBOOK_KERNEL", } } type JoinSource string // Enum values for JoinSource const ( JoinSourceInput JoinSource = "Input" JoinSourceNone JoinSource = "None" ) // Values returns all known values for JoinSource. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (JoinSource) Values() []JoinSource { return []JoinSource{ "Input", "None", } } type LabelingJobStatus string // Enum values for LabelingJobStatus const ( LabelingJobStatusInitializing LabelingJobStatus = "Initializing" LabelingJobStatusInProgress LabelingJobStatus = "InProgress" LabelingJobStatusCompleted LabelingJobStatus = "Completed" LabelingJobStatusFailed LabelingJobStatus = "Failed" LabelingJobStatusStopping LabelingJobStatus = "Stopping" LabelingJobStatusStopped LabelingJobStatus = "Stopped" ) // Values returns all known values for LabelingJobStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (LabelingJobStatus) Values() []LabelingJobStatus { return []LabelingJobStatus{ "Initializing", "InProgress", "Completed", "Failed", "Stopping", "Stopped", } } type LastUpdateStatusValue string // Enum values for LastUpdateStatusValue const ( LastUpdateStatusValueSuccessful LastUpdateStatusValue = "Successful" LastUpdateStatusValueFailed LastUpdateStatusValue = "Failed" LastUpdateStatusValueInProgress LastUpdateStatusValue = "InProgress" ) // Values returns all known values for LastUpdateStatusValue. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (LastUpdateStatusValue) Values() []LastUpdateStatusValue { return []LastUpdateStatusValue{ "Successful", "Failed", "InProgress", } } type LineageType string // Enum values for LineageType const ( LineageTypeTrialComponent LineageType = "TrialComponent" LineageTypeArtifact LineageType = "Artifact" LineageTypeContext LineageType = "Context" LineageTypeAction LineageType = "Action" ) // Values returns all known values for LineageType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (LineageType) Values() []LineageType { return []LineageType{ "TrialComponent", "Artifact", "Context", "Action", } } type ListCompilationJobsSortBy string // Enum values for ListCompilationJobsSortBy const ( ListCompilationJobsSortByName ListCompilationJobsSortBy = "Name" ListCompilationJobsSortByCreationTime ListCompilationJobsSortBy = "CreationTime" ListCompilationJobsSortByStatus ListCompilationJobsSortBy = "Status" ) // Values returns all known values for ListCompilationJobsSortBy. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ListCompilationJobsSortBy) Values() []ListCompilationJobsSortBy { return []ListCompilationJobsSortBy{ "Name", "CreationTime", "Status", } } type ListDeviceFleetsSortBy string // Enum values for ListDeviceFleetsSortBy const ( ListDeviceFleetsSortByName ListDeviceFleetsSortBy = "NAME" ListDeviceFleetsSortByCreationTime ListDeviceFleetsSortBy = "CREATION_TIME" ListDeviceFleetsSortByLastModifiedTime ListDeviceFleetsSortBy = "LAST_MODIFIED_TIME" ) // Values returns all known values for ListDeviceFleetsSortBy. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ListDeviceFleetsSortBy) Values() []ListDeviceFleetsSortBy { return []ListDeviceFleetsSortBy{ "NAME", "CREATION_TIME", "LAST_MODIFIED_TIME", } } type ListEdgeDeploymentPlansSortBy string // Enum values for ListEdgeDeploymentPlansSortBy const ( ListEdgeDeploymentPlansSortByName ListEdgeDeploymentPlansSortBy = "NAME" ListEdgeDeploymentPlansSortByDeviceFleetName ListEdgeDeploymentPlansSortBy = "DEVICE_FLEET_NAME" ListEdgeDeploymentPlansSortByCreationTime ListEdgeDeploymentPlansSortBy = "CREATION_TIME" ListEdgeDeploymentPlansSortByLastModifiedTime ListEdgeDeploymentPlansSortBy = "LAST_MODIFIED_TIME" ) // Values returns all known values for ListEdgeDeploymentPlansSortBy. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (ListEdgeDeploymentPlansSortBy) Values() []ListEdgeDeploymentPlansSortBy { return []ListEdgeDeploymentPlansSortBy{ "NAME", "DEVICE_FLEET_NAME", "CREATION_TIME", "LAST_MODIFIED_TIME", } } type ListEdgePackagingJobsSortBy string // Enum values for ListEdgePackagingJobsSortBy const ( ListEdgePackagingJobsSortByName ListEdgePackagingJobsSortBy = "NAME" ListEdgePackagingJobsSortByModelName ListEdgePackagingJobsSortBy = "MODEL_NAME" ListEdgePackagingJobsSortByCreationTime ListEdgePackagingJobsSortBy = "CREATION_TIME" ListEdgePackagingJobsSortByLastModifiedTime ListEdgePackagingJobsSortBy = "LAST_MODIFIED_TIME" ListEdgePackagingJobsSortByEdgePackagingJobStatus ListEdgePackagingJobsSortBy = "STATUS" ) // Values returns all known values for ListEdgePackagingJobsSortBy. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ListEdgePackagingJobsSortBy) Values() []ListEdgePackagingJobsSortBy { return []ListEdgePackagingJobsSortBy{ "NAME", "MODEL_NAME", "CREATION_TIME", "LAST_MODIFIED_TIME", "STATUS", } } type ListInferenceRecommendationsJobsSortBy string // Enum values for ListInferenceRecommendationsJobsSortBy const ( ListInferenceRecommendationsJobsSortByName ListInferenceRecommendationsJobsSortBy = "Name" ListInferenceRecommendationsJobsSortByCreationTime ListInferenceRecommendationsJobsSortBy = "CreationTime" ListInferenceRecommendationsJobsSortByStatus ListInferenceRecommendationsJobsSortBy = "Status" ) // Values returns all known values for ListInferenceRecommendationsJobsSortBy. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (ListInferenceRecommendationsJobsSortBy) Values() []ListInferenceRecommendationsJobsSortBy { return []ListInferenceRecommendationsJobsSortBy{ "Name", "CreationTime", "Status", } } type ListLabelingJobsForWorkteamSortByOptions string // Enum values for ListLabelingJobsForWorkteamSortByOptions const ( ListLabelingJobsForWorkteamSortByOptionsCreationTime ListLabelingJobsForWorkteamSortByOptions = "CreationTime" ) // Values returns all known values for ListLabelingJobsForWorkteamSortByOptions. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (ListLabelingJobsForWorkteamSortByOptions) Values() []ListLabelingJobsForWorkteamSortByOptions { return []ListLabelingJobsForWorkteamSortByOptions{ "CreationTime", } } type ListWorkforcesSortByOptions string // Enum values for ListWorkforcesSortByOptions const ( ListWorkforcesSortByOptionsName ListWorkforcesSortByOptions = "Name" ListWorkforcesSortByOptionsCreateDate ListWorkforcesSortByOptions = "CreateDate" ) // Values returns all known values for ListWorkforcesSortByOptions. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ListWorkforcesSortByOptions) Values() []ListWorkforcesSortByOptions { return []ListWorkforcesSortByOptions{ "Name", "CreateDate", } } type ListWorkteamsSortByOptions string // Enum values for ListWorkteamsSortByOptions const ( ListWorkteamsSortByOptionsName ListWorkteamsSortByOptions = "Name" ListWorkteamsSortByOptionsCreateDate ListWorkteamsSortByOptions = "CreateDate" ) // Values returns all known values for ListWorkteamsSortByOptions. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ListWorkteamsSortByOptions) Values() []ListWorkteamsSortByOptions { return []ListWorkteamsSortByOptions{ "Name", "CreateDate", } } type MetricSetSource string // Enum values for MetricSetSource const ( MetricSetSourceTrain MetricSetSource = "Train" MetricSetSourceValidation MetricSetSource = "Validation" MetricSetSourceTest MetricSetSource = "Test" ) // Values returns all known values for MetricSetSource. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MetricSetSource) Values() []MetricSetSource { return []MetricSetSource{ "Train", "Validation", "Test", } } type ModelApprovalStatus string // Enum values for ModelApprovalStatus const ( ModelApprovalStatusApproved ModelApprovalStatus = "Approved" ModelApprovalStatusRejected ModelApprovalStatus = "Rejected" ModelApprovalStatusPendingManualApproval ModelApprovalStatus = "PendingManualApproval" ) // Values returns all known values for ModelApprovalStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelApprovalStatus) Values() []ModelApprovalStatus { return []ModelApprovalStatus{ "Approved", "Rejected", "PendingManualApproval", } } type ModelCacheSetting string // Enum values for ModelCacheSetting const ( ModelCacheSettingEnabled ModelCacheSetting = "Enabled" ModelCacheSettingDisabled ModelCacheSetting = "Disabled" ) // Values returns all known values for ModelCacheSetting. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelCacheSetting) Values() []ModelCacheSetting { return []ModelCacheSetting{ "Enabled", "Disabled", } } type ModelCardExportJobSortBy string // Enum values for ModelCardExportJobSortBy const ( ModelCardExportJobSortByName ModelCardExportJobSortBy = "Name" ModelCardExportJobSortByCreationTime ModelCardExportJobSortBy = "CreationTime" ModelCardExportJobSortByStatus ModelCardExportJobSortBy = "Status" ) // Values returns all known values for ModelCardExportJobSortBy. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ModelCardExportJobSortBy) Values() []ModelCardExportJobSortBy { return []ModelCardExportJobSortBy{ "Name", "CreationTime", "Status", } } type ModelCardExportJobSortOrder string // Enum values for ModelCardExportJobSortOrder const ( ModelCardExportJobSortOrderAscending ModelCardExportJobSortOrder = "Ascending" ModelCardExportJobSortOrderDescending ModelCardExportJobSortOrder = "Descending" ) // Values returns all known values for ModelCardExportJobSortOrder. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ModelCardExportJobSortOrder) Values() []ModelCardExportJobSortOrder { return []ModelCardExportJobSortOrder{ "Ascending", "Descending", } } type ModelCardExportJobStatus string // Enum values for ModelCardExportJobStatus const ( ModelCardExportJobStatusInProgress ModelCardExportJobStatus = "InProgress" ModelCardExportJobStatusCompleted ModelCardExportJobStatus = "Completed" ModelCardExportJobStatusFailed ModelCardExportJobStatus = "Failed" ) // Values returns all known values for ModelCardExportJobStatus. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ModelCardExportJobStatus) Values() []ModelCardExportJobStatus { return []ModelCardExportJobStatus{ "InProgress", "Completed", "Failed", } } type ModelCardProcessingStatus string // Enum values for ModelCardProcessingStatus const ( ModelCardProcessingStatusDeleteInprogress ModelCardProcessingStatus = "DeleteInProgress" ModelCardProcessingStatusDeletePending ModelCardProcessingStatus = "DeletePending" ModelCardProcessingStatusContentDeleted ModelCardProcessingStatus = "ContentDeleted" ModelCardProcessingStatusExportjobsDeleted ModelCardProcessingStatus = "ExportJobsDeleted" ModelCardProcessingStatusDeleteCompleted ModelCardProcessingStatus = "DeleteCompleted" ModelCardProcessingStatusDeleteFailed ModelCardProcessingStatus = "DeleteFailed" ) // Values returns all known values for ModelCardProcessingStatus. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ModelCardProcessingStatus) Values() []ModelCardProcessingStatus { return []ModelCardProcessingStatus{ "DeleteInProgress", "DeletePending", "ContentDeleted", "ExportJobsDeleted", "DeleteCompleted", "DeleteFailed", } } type ModelCardSortBy string // Enum values for ModelCardSortBy const ( ModelCardSortByName ModelCardSortBy = "Name" ModelCardSortByCreationTime ModelCardSortBy = "CreationTime" ) // Values returns all known values for ModelCardSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelCardSortBy) Values() []ModelCardSortBy { return []ModelCardSortBy{ "Name", "CreationTime", } } type ModelCardSortOrder string // Enum values for ModelCardSortOrder const ( ModelCardSortOrderAscending ModelCardSortOrder = "Ascending" ModelCardSortOrderDescending ModelCardSortOrder = "Descending" ) // Values returns all known values for ModelCardSortOrder. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelCardSortOrder) Values() []ModelCardSortOrder { return []ModelCardSortOrder{ "Ascending", "Descending", } } type ModelCardStatus string // Enum values for ModelCardStatus const ( ModelCardStatusDraft ModelCardStatus = "Draft" ModelCardStatusPendingreview ModelCardStatus = "PendingReview" ModelCardStatusApproved ModelCardStatus = "Approved" ModelCardStatusArchived ModelCardStatus = "Archived" ) // Values returns all known values for ModelCardStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelCardStatus) Values() []ModelCardStatus { return []ModelCardStatus{ "Draft", "PendingReview", "Approved", "Archived", } } type ModelCardVersionSortBy string // Enum values for ModelCardVersionSortBy const ( ModelCardVersionSortByVersion ModelCardVersionSortBy = "Version" ) // Values returns all known values for ModelCardVersionSortBy. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelCardVersionSortBy) Values() []ModelCardVersionSortBy { return []ModelCardVersionSortBy{ "Version", } } type ModelCompressionType string // Enum values for ModelCompressionType const ( ModelCompressionTypeNone ModelCompressionType = "None" ModelCompressionTypeGzip ModelCompressionType = "Gzip" ) // Values returns all known values for ModelCompressionType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelCompressionType) Values() []ModelCompressionType { return []ModelCompressionType{ "None", "Gzip", } } type ModelInfrastructureType string // Enum values for ModelInfrastructureType const ( ModelInfrastructureTypeRealTimeInference ModelInfrastructureType = "RealTimeInference" ) // Values returns all known values for ModelInfrastructureType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelInfrastructureType) Values() []ModelInfrastructureType { return []ModelInfrastructureType{ "RealTimeInference", } } type ModelMetadataFilterType string // Enum values for ModelMetadataFilterType const ( ModelMetadataFilterTypeDomain ModelMetadataFilterType = "Domain" ModelMetadataFilterTypeFramework ModelMetadataFilterType = "Framework" ModelMetadataFilterTypeTask ModelMetadataFilterType = "Task" ModelMetadataFilterTypeFrameworkversion ModelMetadataFilterType = "FrameworkVersion" ) // Values returns all known values for ModelMetadataFilterType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelMetadataFilterType) Values() []ModelMetadataFilterType { return []ModelMetadataFilterType{ "Domain", "Framework", "Task", "FrameworkVersion", } } type ModelPackageGroupSortBy string // Enum values for ModelPackageGroupSortBy const ( ModelPackageGroupSortByName ModelPackageGroupSortBy = "Name" ModelPackageGroupSortByCreationTime ModelPackageGroupSortBy = "CreationTime" ) // Values returns all known values for ModelPackageGroupSortBy. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelPackageGroupSortBy) Values() []ModelPackageGroupSortBy { return []ModelPackageGroupSortBy{ "Name", "CreationTime", } } type ModelPackageGroupStatus string // Enum values for ModelPackageGroupStatus const ( ModelPackageGroupStatusPending ModelPackageGroupStatus = "Pending" ModelPackageGroupStatusInProgress ModelPackageGroupStatus = "InProgress" ModelPackageGroupStatusCompleted ModelPackageGroupStatus = "Completed" ModelPackageGroupStatusFailed ModelPackageGroupStatus = "Failed" ModelPackageGroupStatusDeleting ModelPackageGroupStatus = "Deleting" ModelPackageGroupStatusDeleteFailed ModelPackageGroupStatus = "DeleteFailed" ) // Values returns all known values for ModelPackageGroupStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelPackageGroupStatus) Values() []ModelPackageGroupStatus { return []ModelPackageGroupStatus{ "Pending", "InProgress", "Completed", "Failed", "Deleting", "DeleteFailed", } } type ModelPackageSortBy string // Enum values for ModelPackageSortBy const ( ModelPackageSortByName ModelPackageSortBy = "Name" ModelPackageSortByCreationTime ModelPackageSortBy = "CreationTime" ) // Values returns all known values for ModelPackageSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelPackageSortBy) Values() []ModelPackageSortBy { return []ModelPackageSortBy{ "Name", "CreationTime", } } type ModelPackageStatus string // Enum values for ModelPackageStatus const ( ModelPackageStatusPending ModelPackageStatus = "Pending" ModelPackageStatusInProgress ModelPackageStatus = "InProgress" ModelPackageStatusCompleted ModelPackageStatus = "Completed" ModelPackageStatusFailed ModelPackageStatus = "Failed" ModelPackageStatusDeleting ModelPackageStatus = "Deleting" ) // Values returns all known values for ModelPackageStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelPackageStatus) Values() []ModelPackageStatus { return []ModelPackageStatus{ "Pending", "InProgress", "Completed", "Failed", "Deleting", } } type ModelPackageType string // Enum values for ModelPackageType const ( ModelPackageTypeVersioned ModelPackageType = "Versioned" ModelPackageTypeUnversioned ModelPackageType = "Unversioned" ModelPackageTypeBoth ModelPackageType = "Both" ) // Values returns all known values for ModelPackageType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelPackageType) Values() []ModelPackageType { return []ModelPackageType{ "Versioned", "Unversioned", "Both", } } type ModelSortKey string // Enum values for ModelSortKey const ( ModelSortKeyName ModelSortKey = "Name" ModelSortKeyCreationTime ModelSortKey = "CreationTime" ) // Values returns all known values for ModelSortKey. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelSortKey) Values() []ModelSortKey { return []ModelSortKey{ "Name", "CreationTime", } } type ModelVariantAction string // Enum values for ModelVariantAction const ( ModelVariantActionRetain ModelVariantAction = "Retain" ModelVariantActionRemove ModelVariantAction = "Remove" ModelVariantActionPromote ModelVariantAction = "Promote" ) // Values returns all known values for ModelVariantAction. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelVariantAction) Values() []ModelVariantAction { return []ModelVariantAction{ "Retain", "Remove", "Promote", } } type ModelVariantStatus string // Enum values for ModelVariantStatus const ( ModelVariantStatusCreating ModelVariantStatus = "Creating" ModelVariantStatusUpdating ModelVariantStatus = "Updating" ModelVariantStatusInService ModelVariantStatus = "InService" ModelVariantStatusDeleting ModelVariantStatus = "Deleting" ModelVariantStatusDeleted ModelVariantStatus = "Deleted" ) // Values returns all known values for ModelVariantStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ModelVariantStatus) Values() []ModelVariantStatus { return []ModelVariantStatus{ "Creating", "Updating", "InService", "Deleting", "Deleted", } } type MonitoringAlertHistorySortKey string // Enum values for MonitoringAlertHistorySortKey const ( MonitoringAlertHistorySortKeyCreationTime MonitoringAlertHistorySortKey = "CreationTime" MonitoringAlertHistorySortKeyStatus MonitoringAlertHistorySortKey = "Status" ) // Values returns all known values for MonitoringAlertHistorySortKey. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (MonitoringAlertHistorySortKey) Values() []MonitoringAlertHistorySortKey { return []MonitoringAlertHistorySortKey{ "CreationTime", "Status", } } type MonitoringAlertStatus string // Enum values for MonitoringAlertStatus const ( MonitoringAlertStatusInAlert MonitoringAlertStatus = "InAlert" MonitoringAlertStatusOk MonitoringAlertStatus = "OK" ) // Values returns all known values for MonitoringAlertStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MonitoringAlertStatus) Values() []MonitoringAlertStatus { return []MonitoringAlertStatus{ "InAlert", "OK", } } type MonitoringExecutionSortKey string // Enum values for MonitoringExecutionSortKey const ( MonitoringExecutionSortKeyCreationTime MonitoringExecutionSortKey = "CreationTime" MonitoringExecutionSortKeyScheduledTime MonitoringExecutionSortKey = "ScheduledTime" MonitoringExecutionSortKeyStatus MonitoringExecutionSortKey = "Status" ) // Values returns all known values for MonitoringExecutionSortKey. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (MonitoringExecutionSortKey) Values() []MonitoringExecutionSortKey { return []MonitoringExecutionSortKey{ "CreationTime", "ScheduledTime", "Status", } } type MonitoringJobDefinitionSortKey string // Enum values for MonitoringJobDefinitionSortKey const ( MonitoringJobDefinitionSortKeyName MonitoringJobDefinitionSortKey = "Name" MonitoringJobDefinitionSortKeyCreationTime MonitoringJobDefinitionSortKey = "CreationTime" ) // Values returns all known values for MonitoringJobDefinitionSortKey. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (MonitoringJobDefinitionSortKey) Values() []MonitoringJobDefinitionSortKey { return []MonitoringJobDefinitionSortKey{ "Name", "CreationTime", } } type MonitoringProblemType string // Enum values for MonitoringProblemType const ( MonitoringProblemTypeBinaryClassification MonitoringProblemType = "BinaryClassification" MonitoringProblemTypeMulticlassClassification MonitoringProblemType = "MulticlassClassification" MonitoringProblemTypeRegression MonitoringProblemType = "Regression" ) // Values returns all known values for MonitoringProblemType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MonitoringProblemType) Values() []MonitoringProblemType { return []MonitoringProblemType{ "BinaryClassification", "MulticlassClassification", "Regression", } } type MonitoringScheduleSortKey string // Enum values for MonitoringScheduleSortKey const ( MonitoringScheduleSortKeyName MonitoringScheduleSortKey = "Name" MonitoringScheduleSortKeyCreationTime MonitoringScheduleSortKey = "CreationTime" MonitoringScheduleSortKeyStatus MonitoringScheduleSortKey = "Status" ) // Values returns all known values for MonitoringScheduleSortKey. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (MonitoringScheduleSortKey) Values() []MonitoringScheduleSortKey { return []MonitoringScheduleSortKey{ "Name", "CreationTime", "Status", } } type MonitoringType string // Enum values for MonitoringType const ( MonitoringTypeDataQuality MonitoringType = "DataQuality" MonitoringTypeModelQuality MonitoringType = "ModelQuality" MonitoringTypeModelBias MonitoringType = "ModelBias" MonitoringTypeModelExplainability MonitoringType = "ModelExplainability" ) // Values returns all known values for MonitoringType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MonitoringType) Values() []MonitoringType { return []MonitoringType{ "DataQuality", "ModelQuality", "ModelBias", "ModelExplainability", } } type NotebookInstanceAcceleratorType string // Enum values for NotebookInstanceAcceleratorType const ( NotebookInstanceAcceleratorTypeMlEia1Medium NotebookInstanceAcceleratorType = "ml.eia1.medium" NotebookInstanceAcceleratorTypeMlEia1Large NotebookInstanceAcceleratorType = "ml.eia1.large" NotebookInstanceAcceleratorTypeMlEia1Xlarge NotebookInstanceAcceleratorType = "ml.eia1.xlarge" NotebookInstanceAcceleratorTypeMlEia2Medium NotebookInstanceAcceleratorType = "ml.eia2.medium" NotebookInstanceAcceleratorTypeMlEia2Large NotebookInstanceAcceleratorType = "ml.eia2.large" NotebookInstanceAcceleratorTypeMlEia2Xlarge NotebookInstanceAcceleratorType = "ml.eia2.xlarge" ) // Values returns all known values for NotebookInstanceAcceleratorType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (NotebookInstanceAcceleratorType) Values() []NotebookInstanceAcceleratorType { return []NotebookInstanceAcceleratorType{ "ml.eia1.medium", "ml.eia1.large", "ml.eia1.xlarge", "ml.eia2.medium", "ml.eia2.large", "ml.eia2.xlarge", } } type NotebookInstanceLifecycleConfigSortKey string // Enum values for NotebookInstanceLifecycleConfigSortKey const ( NotebookInstanceLifecycleConfigSortKeyName NotebookInstanceLifecycleConfigSortKey = "Name" NotebookInstanceLifecycleConfigSortKeyCreationTime NotebookInstanceLifecycleConfigSortKey = "CreationTime" NotebookInstanceLifecycleConfigSortKeyLastModifiedTime NotebookInstanceLifecycleConfigSortKey = "LastModifiedTime" ) // Values returns all known values for NotebookInstanceLifecycleConfigSortKey. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (NotebookInstanceLifecycleConfigSortKey) Values() []NotebookInstanceLifecycleConfigSortKey { return []NotebookInstanceLifecycleConfigSortKey{ "Name", "CreationTime", "LastModifiedTime", } } type NotebookInstanceLifecycleConfigSortOrder string // Enum values for NotebookInstanceLifecycleConfigSortOrder const ( NotebookInstanceLifecycleConfigSortOrderAscending NotebookInstanceLifecycleConfigSortOrder = "Ascending" NotebookInstanceLifecycleConfigSortOrderDescending NotebookInstanceLifecycleConfigSortOrder = "Descending" ) // Values returns all known values for NotebookInstanceLifecycleConfigSortOrder. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (NotebookInstanceLifecycleConfigSortOrder) Values() []NotebookInstanceLifecycleConfigSortOrder { return []NotebookInstanceLifecycleConfigSortOrder{ "Ascending", "Descending", } } type NotebookInstanceSortKey string // Enum values for NotebookInstanceSortKey const ( NotebookInstanceSortKeyName NotebookInstanceSortKey = "Name" NotebookInstanceSortKeyCreationTime NotebookInstanceSortKey = "CreationTime" NotebookInstanceSortKeyStatus NotebookInstanceSortKey = "Status" ) // Values returns all known values for NotebookInstanceSortKey. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (NotebookInstanceSortKey) Values() []NotebookInstanceSortKey { return []NotebookInstanceSortKey{ "Name", "CreationTime", "Status", } } type NotebookInstanceSortOrder string // Enum values for NotebookInstanceSortOrder const ( NotebookInstanceSortOrderAscending NotebookInstanceSortOrder = "Ascending" NotebookInstanceSortOrderDescending NotebookInstanceSortOrder = "Descending" ) // Values returns all known values for NotebookInstanceSortOrder. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (NotebookInstanceSortOrder) Values() []NotebookInstanceSortOrder { return []NotebookInstanceSortOrder{ "Ascending", "Descending", } } type NotebookInstanceStatus string // Enum values for NotebookInstanceStatus const ( NotebookInstanceStatusPending NotebookInstanceStatus = "Pending" NotebookInstanceStatusInService NotebookInstanceStatus = "InService" NotebookInstanceStatusStopping NotebookInstanceStatus = "Stopping" NotebookInstanceStatusStopped NotebookInstanceStatus = "Stopped" NotebookInstanceStatusFailed NotebookInstanceStatus = "Failed" NotebookInstanceStatusDeleting NotebookInstanceStatus = "Deleting" NotebookInstanceStatusUpdating NotebookInstanceStatus = "Updating" ) // Values returns all known values for NotebookInstanceStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (NotebookInstanceStatus) Values() []NotebookInstanceStatus { return []NotebookInstanceStatus{ "Pending", "InService", "Stopping", "Stopped", "Failed", "Deleting", "Updating", } } type NotebookOutputOption string // Enum values for NotebookOutputOption const ( NotebookOutputOptionAllowed NotebookOutputOption = "Allowed" NotebookOutputOptionDisabled NotebookOutputOption = "Disabled" ) // Values returns all known values for NotebookOutputOption. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (NotebookOutputOption) Values() []NotebookOutputOption { return []NotebookOutputOption{ "Allowed", "Disabled", } } type ObjectiveStatus string // Enum values for ObjectiveStatus const ( ObjectiveStatusSucceeded ObjectiveStatus = "Succeeded" ObjectiveStatusPending ObjectiveStatus = "Pending" ObjectiveStatusFailed ObjectiveStatus = "Failed" ) // Values returns all known values for ObjectiveStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ObjectiveStatus) Values() []ObjectiveStatus { return []ObjectiveStatus{ "Succeeded", "Pending", "Failed", } } type OfflineStoreStatusValue string // Enum values for OfflineStoreStatusValue const ( OfflineStoreStatusValueActive OfflineStoreStatusValue = "Active" OfflineStoreStatusValueBlocked OfflineStoreStatusValue = "Blocked" OfflineStoreStatusValueDisabled OfflineStoreStatusValue = "Disabled" ) // Values returns all known values for OfflineStoreStatusValue. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (OfflineStoreStatusValue) Values() []OfflineStoreStatusValue { return []OfflineStoreStatusValue{ "Active", "Blocked", "Disabled", } } type Operator string // Enum values for Operator const ( OperatorEquals Operator = "Equals" OperatorNotEquals Operator = "NotEquals" OperatorGreaterThan Operator = "GreaterThan" OperatorGreaterThanOrEqualTo Operator = "GreaterThanOrEqualTo" OperatorLessThan Operator = "LessThan" OperatorLessThanOrEqualTo Operator = "LessThanOrEqualTo" OperatorContains Operator = "Contains" OperatorExists Operator = "Exists" OperatorNotExists Operator = "NotExists" OperatorIn Operator = "In" ) // Values returns all known values for Operator. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (Operator) Values() []Operator { return []Operator{ "Equals", "NotEquals", "GreaterThan", "GreaterThanOrEqualTo", "LessThan", "LessThanOrEqualTo", "Contains", "Exists", "NotExists", "In", } } type OrderKey string // Enum values for OrderKey const ( OrderKeyAscending OrderKey = "Ascending" OrderKeyDescending OrderKey = "Descending" ) // Values returns all known values for OrderKey. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (OrderKey) Values() []OrderKey { return []OrderKey{ "Ascending", "Descending", } } type OutputCompressionType string // Enum values for OutputCompressionType const ( OutputCompressionTypeGzip OutputCompressionType = "GZIP" OutputCompressionTypeNone OutputCompressionType = "NONE" ) // Values returns all known values for OutputCompressionType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (OutputCompressionType) Values() []OutputCompressionType { return []OutputCompressionType{ "GZIP", "NONE", } } type ParameterType string // Enum values for ParameterType const ( ParameterTypeInteger ParameterType = "Integer" ParameterTypeContinuous ParameterType = "Continuous" ParameterTypeCategorical ParameterType = "Categorical" ParameterTypeFreeText ParameterType = "FreeText" ) // Values returns all known values for ParameterType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ParameterType) Values() []ParameterType { return []ParameterType{ "Integer", "Continuous", "Categorical", "FreeText", } } type PipelineExecutionStatus string // Enum values for PipelineExecutionStatus const ( PipelineExecutionStatusExecuting PipelineExecutionStatus = "Executing" PipelineExecutionStatusStopping PipelineExecutionStatus = "Stopping" PipelineExecutionStatusStopped PipelineExecutionStatus = "Stopped" PipelineExecutionStatusFailed PipelineExecutionStatus = "Failed" PipelineExecutionStatusSucceeded PipelineExecutionStatus = "Succeeded" ) // Values returns all known values for PipelineExecutionStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (PipelineExecutionStatus) Values() []PipelineExecutionStatus { return []PipelineExecutionStatus{ "Executing", "Stopping", "Stopped", "Failed", "Succeeded", } } type PipelineStatus string // Enum values for PipelineStatus const ( PipelineStatusActive PipelineStatus = "Active" ) // Values returns all known values for PipelineStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (PipelineStatus) Values() []PipelineStatus { return []PipelineStatus{ "Active", } } type ProblemType string // Enum values for ProblemType const ( ProblemTypeBinaryClassification ProblemType = "BinaryClassification" ProblemTypeMulticlassClassification ProblemType = "MulticlassClassification" ProblemTypeRegression ProblemType = "Regression" ) // Values returns all known values for ProblemType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (ProblemType) Values() []ProblemType { return []ProblemType{ "BinaryClassification", "MulticlassClassification", "Regression", } } type ProcessingInstanceType string // Enum values for ProcessingInstanceType const ( ProcessingInstanceTypeMlT3Medium ProcessingInstanceType = "ml.t3.medium" ProcessingInstanceTypeMlT3Large ProcessingInstanceType = "ml.t3.large" ProcessingInstanceTypeMlT3Xlarge ProcessingInstanceType = "ml.t3.xlarge" ProcessingInstanceTypeMlT32xlarge ProcessingInstanceType = "ml.t3.2xlarge" ProcessingInstanceTypeMlM4Xlarge ProcessingInstanceType = "ml.m4.xlarge" ProcessingInstanceTypeMlM42xlarge ProcessingInstanceType = "ml.m4.2xlarge" ProcessingInstanceTypeMlM44xlarge ProcessingInstanceType = "ml.m4.4xlarge" ProcessingInstanceTypeMlM410xlarge ProcessingInstanceType = "ml.m4.10xlarge" ProcessingInstanceTypeMlM416xlarge ProcessingInstanceType = "ml.m4.16xlarge" ProcessingInstanceTypeMlC4Xlarge ProcessingInstanceType = "ml.c4.xlarge" ProcessingInstanceTypeMlC42xlarge ProcessingInstanceType = "ml.c4.2xlarge" ProcessingInstanceTypeMlC44xlarge ProcessingInstanceType = "ml.c4.4xlarge" ProcessingInstanceTypeMlC48xlarge ProcessingInstanceType = "ml.c4.8xlarge" ProcessingInstanceTypeMlP2Xlarge ProcessingInstanceType = "ml.p2.xlarge" ProcessingInstanceTypeMlP28xlarge ProcessingInstanceType = "ml.p2.8xlarge" ProcessingInstanceTypeMlP216xlarge ProcessingInstanceType = "ml.p2.16xlarge" ProcessingInstanceTypeMlP32xlarge ProcessingInstanceType = "ml.p3.2xlarge" ProcessingInstanceTypeMlP38xlarge ProcessingInstanceType = "ml.p3.8xlarge" ProcessingInstanceTypeMlP316xlarge ProcessingInstanceType = "ml.p3.16xlarge" ProcessingInstanceTypeMlC5Xlarge ProcessingInstanceType = "ml.c5.xlarge" ProcessingInstanceTypeMlC52xlarge ProcessingInstanceType = "ml.c5.2xlarge" ProcessingInstanceTypeMlC54xlarge ProcessingInstanceType = "ml.c5.4xlarge" ProcessingInstanceTypeMlC59xlarge ProcessingInstanceType = "ml.c5.9xlarge" ProcessingInstanceTypeMlC518xlarge ProcessingInstanceType = "ml.c5.18xlarge" ProcessingInstanceTypeMlM5Large ProcessingInstanceType = "ml.m5.large" ProcessingInstanceTypeMlM5Xlarge ProcessingInstanceType = "ml.m5.xlarge" ProcessingInstanceTypeMlM52xlarge ProcessingInstanceType = "ml.m5.2xlarge" ProcessingInstanceTypeMlM54xlarge ProcessingInstanceType = "ml.m5.4xlarge" ProcessingInstanceTypeMlM512xlarge ProcessingInstanceType = "ml.m5.12xlarge" ProcessingInstanceTypeMlM524xlarge ProcessingInstanceType = "ml.m5.24xlarge" ProcessingInstanceTypeMlR5Large ProcessingInstanceType = "ml.r5.large" ProcessingInstanceTypeMlR5Xlarge ProcessingInstanceType = "ml.r5.xlarge" ProcessingInstanceTypeMlR52xlarge ProcessingInstanceType = "ml.r5.2xlarge" ProcessingInstanceTypeMlR54xlarge ProcessingInstanceType = "ml.r5.4xlarge" ProcessingInstanceTypeMlR58xlarge ProcessingInstanceType = "ml.r5.8xlarge" ProcessingInstanceTypeMlR512xlarge ProcessingInstanceType = "ml.r5.12xlarge" ProcessingInstanceTypeMlR516xlarge ProcessingInstanceType = "ml.r5.16xlarge" ProcessingInstanceTypeMlR524xlarge ProcessingInstanceType = "ml.r5.24xlarge" ProcessingInstanceTypeMlG4dnXlarge ProcessingInstanceType = "ml.g4dn.xlarge" ProcessingInstanceTypeMlG4dn2xlarge ProcessingInstanceType = "ml.g4dn.2xlarge" ProcessingInstanceTypeMlG4dn4xlarge ProcessingInstanceType = "ml.g4dn.4xlarge" ProcessingInstanceTypeMlG4dn8xlarge ProcessingInstanceType = "ml.g4dn.8xlarge" ProcessingInstanceTypeMlG4dn12xlarge ProcessingInstanceType = "ml.g4dn.12xlarge" ProcessingInstanceTypeMlG4dn16xlarge ProcessingInstanceType = "ml.g4dn.16xlarge" ) // Values returns all known values for ProcessingInstanceType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProcessingInstanceType) Values() []ProcessingInstanceType { return []ProcessingInstanceType{ "ml.t3.medium", "ml.t3.large", "ml.t3.xlarge", "ml.t3.2xlarge", "ml.m4.xlarge", "ml.m4.2xlarge", "ml.m4.4xlarge", "ml.m4.10xlarge", "ml.m4.16xlarge", "ml.c4.xlarge", "ml.c4.2xlarge", "ml.c4.4xlarge", "ml.c4.8xlarge", "ml.p2.xlarge", "ml.p2.8xlarge", "ml.p2.16xlarge", "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", "ml.c5.xlarge", "ml.c5.2xlarge", "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.18xlarge", "ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge", "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", "ml.r5.large", "ml.r5.xlarge", "ml.r5.2xlarge", "ml.r5.4xlarge", "ml.r5.8xlarge", "ml.r5.12xlarge", "ml.r5.16xlarge", "ml.r5.24xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", } } type ProcessingJobStatus string // Enum values for ProcessingJobStatus const ( ProcessingJobStatusInProgress ProcessingJobStatus = "InProgress" ProcessingJobStatusCompleted ProcessingJobStatus = "Completed" ProcessingJobStatusFailed ProcessingJobStatus = "Failed" ProcessingJobStatusStopping ProcessingJobStatus = "Stopping" ProcessingJobStatusStopped ProcessingJobStatus = "Stopped" ) // Values returns all known values for ProcessingJobStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProcessingJobStatus) Values() []ProcessingJobStatus { return []ProcessingJobStatus{ "InProgress", "Completed", "Failed", "Stopping", "Stopped", } } type ProcessingS3CompressionType string // Enum values for ProcessingS3CompressionType const ( ProcessingS3CompressionTypeNone ProcessingS3CompressionType = "None" ProcessingS3CompressionTypeGzip ProcessingS3CompressionType = "Gzip" ) // Values returns all known values for ProcessingS3CompressionType. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (ProcessingS3CompressionType) Values() []ProcessingS3CompressionType { return []ProcessingS3CompressionType{ "None", "Gzip", } } type ProcessingS3DataDistributionType string // Enum values for ProcessingS3DataDistributionType const ( ProcessingS3DataDistributionTypeFullyreplicated ProcessingS3DataDistributionType = "FullyReplicated" ProcessingS3DataDistributionTypeShardedbys3key ProcessingS3DataDistributionType = "ShardedByS3Key" ) // Values returns all known values for ProcessingS3DataDistributionType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (ProcessingS3DataDistributionType) Values() []ProcessingS3DataDistributionType { return []ProcessingS3DataDistributionType{ "FullyReplicated", "ShardedByS3Key", } } type ProcessingS3DataType string // Enum values for ProcessingS3DataType const ( ProcessingS3DataTypeManifestFile ProcessingS3DataType = "ManifestFile" ProcessingS3DataTypeS3Prefix ProcessingS3DataType = "S3Prefix" ) // Values returns all known values for ProcessingS3DataType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProcessingS3DataType) Values() []ProcessingS3DataType { return []ProcessingS3DataType{ "ManifestFile", "S3Prefix", } } type ProcessingS3InputMode string // Enum values for ProcessingS3InputMode const ( ProcessingS3InputModePipe ProcessingS3InputMode = "Pipe" ProcessingS3InputModeFile ProcessingS3InputMode = "File" ) // Values returns all known values for ProcessingS3InputMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProcessingS3InputMode) Values() []ProcessingS3InputMode { return []ProcessingS3InputMode{ "Pipe", "File", } } type ProcessingS3UploadMode string // Enum values for ProcessingS3UploadMode const ( ProcessingS3UploadModeContinuous ProcessingS3UploadMode = "Continuous" ProcessingS3UploadModeEndOfJob ProcessingS3UploadMode = "EndOfJob" ) // Values returns all known values for ProcessingS3UploadMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProcessingS3UploadMode) Values() []ProcessingS3UploadMode { return []ProcessingS3UploadMode{ "Continuous", "EndOfJob", } } type Processor string // Enum values for Processor const ( ProcessorCpu Processor = "CPU" ProcessorGpu Processor = "GPU" ) // Values returns all known values for Processor. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Processor) Values() []Processor { return []Processor{ "CPU", "GPU", } } type ProductionVariantAcceleratorType string // Enum values for ProductionVariantAcceleratorType const ( ProductionVariantAcceleratorTypeMlEia1Medium ProductionVariantAcceleratorType = "ml.eia1.medium" ProductionVariantAcceleratorTypeMlEia1Large ProductionVariantAcceleratorType = "ml.eia1.large" ProductionVariantAcceleratorTypeMlEia1Xlarge ProductionVariantAcceleratorType = "ml.eia1.xlarge" ProductionVariantAcceleratorTypeMlEia2Medium ProductionVariantAcceleratorType = "ml.eia2.medium" ProductionVariantAcceleratorTypeMlEia2Large ProductionVariantAcceleratorType = "ml.eia2.large" ProductionVariantAcceleratorTypeMlEia2Xlarge ProductionVariantAcceleratorType = "ml.eia2.xlarge" ) // Values returns all known values for ProductionVariantAcceleratorType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (ProductionVariantAcceleratorType) Values() []ProductionVariantAcceleratorType { return []ProductionVariantAcceleratorType{ "ml.eia1.medium", "ml.eia1.large", "ml.eia1.xlarge", "ml.eia2.medium", "ml.eia2.large", "ml.eia2.xlarge", } } type ProductionVariantInstanceType string // Enum values for ProductionVariantInstanceType const ( ProductionVariantInstanceTypeMlT2Medium ProductionVariantInstanceType = "ml.t2.medium" ProductionVariantInstanceTypeMlT2Large ProductionVariantInstanceType = "ml.t2.large" ProductionVariantInstanceTypeMlT2Xlarge ProductionVariantInstanceType = "ml.t2.xlarge" ProductionVariantInstanceTypeMlT22xlarge ProductionVariantInstanceType = "ml.t2.2xlarge" ProductionVariantInstanceTypeMlM4Xlarge ProductionVariantInstanceType = "ml.m4.xlarge" ProductionVariantInstanceTypeMlM42xlarge ProductionVariantInstanceType = "ml.m4.2xlarge" ProductionVariantInstanceTypeMlM44xlarge ProductionVariantInstanceType = "ml.m4.4xlarge" ProductionVariantInstanceTypeMlM410xlarge ProductionVariantInstanceType = "ml.m4.10xlarge" ProductionVariantInstanceTypeMlM416xlarge ProductionVariantInstanceType = "ml.m4.16xlarge" ProductionVariantInstanceTypeMlM5Large ProductionVariantInstanceType = "ml.m5.large" ProductionVariantInstanceTypeMlM5Xlarge ProductionVariantInstanceType = "ml.m5.xlarge" ProductionVariantInstanceTypeMlM52xlarge ProductionVariantInstanceType = "ml.m5.2xlarge" ProductionVariantInstanceTypeMlM54xlarge ProductionVariantInstanceType = "ml.m5.4xlarge" ProductionVariantInstanceTypeMlM512xlarge ProductionVariantInstanceType = "ml.m5.12xlarge" ProductionVariantInstanceTypeMlM524xlarge ProductionVariantInstanceType = "ml.m5.24xlarge" ProductionVariantInstanceTypeMlM5dLarge ProductionVariantInstanceType = "ml.m5d.large" ProductionVariantInstanceTypeMlM5dXlarge ProductionVariantInstanceType = "ml.m5d.xlarge" ProductionVariantInstanceTypeMlM5d2xlarge ProductionVariantInstanceType = "ml.m5d.2xlarge" ProductionVariantInstanceTypeMlM5d4xlarge ProductionVariantInstanceType = "ml.m5d.4xlarge" ProductionVariantInstanceTypeMlM5d12xlarge ProductionVariantInstanceType = "ml.m5d.12xlarge" ProductionVariantInstanceTypeMlM5d24xlarge ProductionVariantInstanceType = "ml.m5d.24xlarge" ProductionVariantInstanceTypeMlC4Large ProductionVariantInstanceType = "ml.c4.large" ProductionVariantInstanceTypeMlC4Xlarge ProductionVariantInstanceType = "ml.c4.xlarge" ProductionVariantInstanceTypeMlC42xlarge ProductionVariantInstanceType = "ml.c4.2xlarge" ProductionVariantInstanceTypeMlC44xlarge ProductionVariantInstanceType = "ml.c4.4xlarge" ProductionVariantInstanceTypeMlC48xlarge ProductionVariantInstanceType = "ml.c4.8xlarge" ProductionVariantInstanceTypeMlP2Xlarge ProductionVariantInstanceType = "ml.p2.xlarge" ProductionVariantInstanceTypeMlP28xlarge ProductionVariantInstanceType = "ml.p2.8xlarge" ProductionVariantInstanceTypeMlP216xlarge ProductionVariantInstanceType = "ml.p2.16xlarge" ProductionVariantInstanceTypeMlP32xlarge ProductionVariantInstanceType = "ml.p3.2xlarge" ProductionVariantInstanceTypeMlP38xlarge ProductionVariantInstanceType = "ml.p3.8xlarge" ProductionVariantInstanceTypeMlP316xlarge ProductionVariantInstanceType = "ml.p3.16xlarge" ProductionVariantInstanceTypeMlC5Large ProductionVariantInstanceType = "ml.c5.large" ProductionVariantInstanceTypeMlC5Xlarge ProductionVariantInstanceType = "ml.c5.xlarge" ProductionVariantInstanceTypeMlC52xlarge ProductionVariantInstanceType = "ml.c5.2xlarge" ProductionVariantInstanceTypeMlC54xlarge ProductionVariantInstanceType = "ml.c5.4xlarge" ProductionVariantInstanceTypeMlC59xlarge ProductionVariantInstanceType = "ml.c5.9xlarge" ProductionVariantInstanceTypeMlC518xlarge ProductionVariantInstanceType = "ml.c5.18xlarge" ProductionVariantInstanceTypeMlC5dLarge ProductionVariantInstanceType = "ml.c5d.large" ProductionVariantInstanceTypeMlC5dXlarge ProductionVariantInstanceType = "ml.c5d.xlarge" ProductionVariantInstanceTypeMlC5d2xlarge ProductionVariantInstanceType = "ml.c5d.2xlarge" ProductionVariantInstanceTypeMlC5d4xlarge ProductionVariantInstanceType = "ml.c5d.4xlarge" ProductionVariantInstanceTypeMlC5d9xlarge ProductionVariantInstanceType = "ml.c5d.9xlarge" ProductionVariantInstanceTypeMlC5d18xlarge ProductionVariantInstanceType = "ml.c5d.18xlarge" ProductionVariantInstanceTypeMlG4dnXlarge ProductionVariantInstanceType = "ml.g4dn.xlarge" ProductionVariantInstanceTypeMlG4dn2xlarge ProductionVariantInstanceType = "ml.g4dn.2xlarge" ProductionVariantInstanceTypeMlG4dn4xlarge ProductionVariantInstanceType = "ml.g4dn.4xlarge" ProductionVariantInstanceTypeMlG4dn8xlarge ProductionVariantInstanceType = "ml.g4dn.8xlarge" ProductionVariantInstanceTypeMlG4dn12xlarge ProductionVariantInstanceType = "ml.g4dn.12xlarge" ProductionVariantInstanceTypeMlG4dn16xlarge ProductionVariantInstanceType = "ml.g4dn.16xlarge" ProductionVariantInstanceTypeMlR5Large ProductionVariantInstanceType = "ml.r5.large" ProductionVariantInstanceTypeMlR5Xlarge ProductionVariantInstanceType = "ml.r5.xlarge" ProductionVariantInstanceTypeMlR52xlarge ProductionVariantInstanceType = "ml.r5.2xlarge" ProductionVariantInstanceTypeMlR54xlarge ProductionVariantInstanceType = "ml.r5.4xlarge" ProductionVariantInstanceTypeMlR512xlarge ProductionVariantInstanceType = "ml.r5.12xlarge" ProductionVariantInstanceTypeMlR524xlarge ProductionVariantInstanceType = "ml.r5.24xlarge" ProductionVariantInstanceTypeMlR5dLarge ProductionVariantInstanceType = "ml.r5d.large" ProductionVariantInstanceTypeMlR5dXlarge ProductionVariantInstanceType = "ml.r5d.xlarge" ProductionVariantInstanceTypeMlR5d2xlarge ProductionVariantInstanceType = "ml.r5d.2xlarge" ProductionVariantInstanceTypeMlR5d4xlarge ProductionVariantInstanceType = "ml.r5d.4xlarge" ProductionVariantInstanceTypeMlR5d12xlarge ProductionVariantInstanceType = "ml.r5d.12xlarge" ProductionVariantInstanceTypeMlR5d24xlarge ProductionVariantInstanceType = "ml.r5d.24xlarge" ProductionVariantInstanceTypeMlInf1Xlarge ProductionVariantInstanceType = "ml.inf1.xlarge" ProductionVariantInstanceTypeMlInf12xlarge ProductionVariantInstanceType = "ml.inf1.2xlarge" ProductionVariantInstanceTypeMlInf16xlarge ProductionVariantInstanceType = "ml.inf1.6xlarge" ProductionVariantInstanceTypeMlInf124xlarge ProductionVariantInstanceType = "ml.inf1.24xlarge" ProductionVariantInstanceTypeMlC6iLarge ProductionVariantInstanceType = "ml.c6i.large" ProductionVariantInstanceTypeMlC6iXlarge ProductionVariantInstanceType = "ml.c6i.xlarge" ProductionVariantInstanceTypeMlC6i2xlarge ProductionVariantInstanceType = "ml.c6i.2xlarge" ProductionVariantInstanceTypeMlC6i4xlarge ProductionVariantInstanceType = "ml.c6i.4xlarge" ProductionVariantInstanceTypeMlC6i8xlarge ProductionVariantInstanceType = "ml.c6i.8xlarge" ProductionVariantInstanceTypeMlC6i12xlarge ProductionVariantInstanceType = "ml.c6i.12xlarge" ProductionVariantInstanceTypeMlC6i16xlarge ProductionVariantInstanceType = "ml.c6i.16xlarge" ProductionVariantInstanceTypeMlC6i24xlarge ProductionVariantInstanceType = "ml.c6i.24xlarge" ProductionVariantInstanceTypeMlC6i32xlarge ProductionVariantInstanceType = "ml.c6i.32xlarge" ProductionVariantInstanceTypeMlG5Xlarge ProductionVariantInstanceType = "ml.g5.xlarge" ProductionVariantInstanceTypeMlG52xlarge ProductionVariantInstanceType = "ml.g5.2xlarge" ProductionVariantInstanceTypeMlG54xlarge ProductionVariantInstanceType = "ml.g5.4xlarge" ProductionVariantInstanceTypeMlG58xlarge ProductionVariantInstanceType = "ml.g5.8xlarge" ProductionVariantInstanceTypeMlG512xlarge ProductionVariantInstanceType = "ml.g5.12xlarge" ProductionVariantInstanceTypeMlG516xlarge ProductionVariantInstanceType = "ml.g5.16xlarge" ProductionVariantInstanceTypeMlG524xlarge ProductionVariantInstanceType = "ml.g5.24xlarge" ProductionVariantInstanceTypeMlG548xlarge ProductionVariantInstanceType = "ml.g5.48xlarge" ProductionVariantInstanceTypeMlP4d24xlarge ProductionVariantInstanceType = "ml.p4d.24xlarge" ProductionVariantInstanceTypeMlC7gLarge ProductionVariantInstanceType = "ml.c7g.large" ProductionVariantInstanceTypeMlC7gXlarge ProductionVariantInstanceType = "ml.c7g.xlarge" ProductionVariantInstanceTypeMlC7g2xlarge ProductionVariantInstanceType = "ml.c7g.2xlarge" ProductionVariantInstanceTypeMlC7g4xlarge ProductionVariantInstanceType = "ml.c7g.4xlarge" ProductionVariantInstanceTypeMlC7g8xlarge ProductionVariantInstanceType = "ml.c7g.8xlarge" ProductionVariantInstanceTypeMlC7g12xlarge ProductionVariantInstanceType = "ml.c7g.12xlarge" ProductionVariantInstanceTypeMlC7g16xlarge ProductionVariantInstanceType = "ml.c7g.16xlarge" ProductionVariantInstanceTypeMlM6gLarge ProductionVariantInstanceType = "ml.m6g.large" ProductionVariantInstanceTypeMlM6gXlarge ProductionVariantInstanceType = "ml.m6g.xlarge" ProductionVariantInstanceTypeMlM6g2xlarge ProductionVariantInstanceType = "ml.m6g.2xlarge" ProductionVariantInstanceTypeMlM6g4xlarge ProductionVariantInstanceType = "ml.m6g.4xlarge" ProductionVariantInstanceTypeMlM6g8xlarge ProductionVariantInstanceType = "ml.m6g.8xlarge" ProductionVariantInstanceTypeMlM6g12xlarge ProductionVariantInstanceType = "ml.m6g.12xlarge" ProductionVariantInstanceTypeMlM6g16xlarge ProductionVariantInstanceType = "ml.m6g.16xlarge" ProductionVariantInstanceTypeMlM6gdLarge ProductionVariantInstanceType = "ml.m6gd.large" ProductionVariantInstanceTypeMlM6gdXlarge ProductionVariantInstanceType = "ml.m6gd.xlarge" ProductionVariantInstanceTypeMlM6gd2xlarge ProductionVariantInstanceType = "ml.m6gd.2xlarge" ProductionVariantInstanceTypeMlM6gd4xlarge ProductionVariantInstanceType = "ml.m6gd.4xlarge" ProductionVariantInstanceTypeMlM6gd8xlarge ProductionVariantInstanceType = "ml.m6gd.8xlarge" ProductionVariantInstanceTypeMlM6gd12xlarge ProductionVariantInstanceType = "ml.m6gd.12xlarge" ProductionVariantInstanceTypeMlM6gd16xlarge ProductionVariantInstanceType = "ml.m6gd.16xlarge" ProductionVariantInstanceTypeMlC6gLarge ProductionVariantInstanceType = "ml.c6g.large" ProductionVariantInstanceTypeMlC6gXlarge ProductionVariantInstanceType = "ml.c6g.xlarge" ProductionVariantInstanceTypeMlC6g2xlarge ProductionVariantInstanceType = "ml.c6g.2xlarge" ProductionVariantInstanceTypeMlC6g4xlarge ProductionVariantInstanceType = "ml.c6g.4xlarge" ProductionVariantInstanceTypeMlC6g8xlarge ProductionVariantInstanceType = "ml.c6g.8xlarge" ProductionVariantInstanceTypeMlC6g12xlarge ProductionVariantInstanceType = "ml.c6g.12xlarge" ProductionVariantInstanceTypeMlC6g16xlarge ProductionVariantInstanceType = "ml.c6g.16xlarge" ProductionVariantInstanceTypeMlC6gdLarge ProductionVariantInstanceType = "ml.c6gd.large" ProductionVariantInstanceTypeMlC6gdXlarge ProductionVariantInstanceType = "ml.c6gd.xlarge" ProductionVariantInstanceTypeMlC6gd2xlarge ProductionVariantInstanceType = "ml.c6gd.2xlarge" ProductionVariantInstanceTypeMlC6gd4xlarge ProductionVariantInstanceType = "ml.c6gd.4xlarge" ProductionVariantInstanceTypeMlC6gd8xlarge ProductionVariantInstanceType = "ml.c6gd.8xlarge" ProductionVariantInstanceTypeMlC6gd12xlarge ProductionVariantInstanceType = "ml.c6gd.12xlarge" ProductionVariantInstanceTypeMlC6gd16xlarge ProductionVariantInstanceType = "ml.c6gd.16xlarge" ProductionVariantInstanceTypeMlC6gnLarge ProductionVariantInstanceType = "ml.c6gn.large" ProductionVariantInstanceTypeMlC6gnXlarge ProductionVariantInstanceType = "ml.c6gn.xlarge" ProductionVariantInstanceTypeMlC6gn2xlarge ProductionVariantInstanceType = "ml.c6gn.2xlarge" ProductionVariantInstanceTypeMlC6gn4xlarge ProductionVariantInstanceType = "ml.c6gn.4xlarge" ProductionVariantInstanceTypeMlC6gn8xlarge ProductionVariantInstanceType = "ml.c6gn.8xlarge" ProductionVariantInstanceTypeMlC6gn12xlarge ProductionVariantInstanceType = "ml.c6gn.12xlarge" ProductionVariantInstanceTypeMlC6gn16xlarge ProductionVariantInstanceType = "ml.c6gn.16xlarge" ProductionVariantInstanceTypeMlR6gLarge ProductionVariantInstanceType = "ml.r6g.large" ProductionVariantInstanceTypeMlR6gXlarge ProductionVariantInstanceType = "ml.r6g.xlarge" ProductionVariantInstanceTypeMlR6g2xlarge ProductionVariantInstanceType = "ml.r6g.2xlarge" ProductionVariantInstanceTypeMlR6g4xlarge ProductionVariantInstanceType = "ml.r6g.4xlarge" ProductionVariantInstanceTypeMlR6g8xlarge ProductionVariantInstanceType = "ml.r6g.8xlarge" ProductionVariantInstanceTypeMlR6g12xlarge ProductionVariantInstanceType = "ml.r6g.12xlarge" ProductionVariantInstanceTypeMlR6g16xlarge ProductionVariantInstanceType = "ml.r6g.16xlarge" ProductionVariantInstanceTypeMlR6gdLarge ProductionVariantInstanceType = "ml.r6gd.large" ProductionVariantInstanceTypeMlR6gdXlarge ProductionVariantInstanceType = "ml.r6gd.xlarge" ProductionVariantInstanceTypeMlR6gd2xlarge ProductionVariantInstanceType = "ml.r6gd.2xlarge" ProductionVariantInstanceTypeMlR6gd4xlarge ProductionVariantInstanceType = "ml.r6gd.4xlarge" ProductionVariantInstanceTypeMlR6gd8xlarge ProductionVariantInstanceType = "ml.r6gd.8xlarge" ProductionVariantInstanceTypeMlR6gd12xlarge ProductionVariantInstanceType = "ml.r6gd.12xlarge" ProductionVariantInstanceTypeMlR6gd16xlarge ProductionVariantInstanceType = "ml.r6gd.16xlarge" ProductionVariantInstanceTypeMlP4de24xlarge ProductionVariantInstanceType = "ml.p4de.24xlarge" ProductionVariantInstanceTypeMlTrn12xlarge ProductionVariantInstanceType = "ml.trn1.2xlarge" ProductionVariantInstanceTypeMlTrn132xlarge ProductionVariantInstanceType = "ml.trn1.32xlarge" ProductionVariantInstanceTypeMlInf2Xlarge ProductionVariantInstanceType = "ml.inf2.xlarge" ProductionVariantInstanceTypeMlInf28xlarge ProductionVariantInstanceType = "ml.inf2.8xlarge" ProductionVariantInstanceTypeMlInf224xlarge ProductionVariantInstanceType = "ml.inf2.24xlarge" ProductionVariantInstanceTypeMlInf248xlarge ProductionVariantInstanceType = "ml.inf2.48xlarge" ) // Values returns all known values for ProductionVariantInstanceType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (ProductionVariantInstanceType) Values() []ProductionVariantInstanceType { return []ProductionVariantInstanceType{ "ml.t2.medium", "ml.t2.large", "ml.t2.xlarge", "ml.t2.2xlarge", "ml.m4.xlarge", "ml.m4.2xlarge", "ml.m4.4xlarge", "ml.m4.10xlarge", "ml.m4.16xlarge", "ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge", "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", "ml.m5d.large", "ml.m5d.xlarge", "ml.m5d.2xlarge", "ml.m5d.4xlarge", "ml.m5d.12xlarge", "ml.m5d.24xlarge", "ml.c4.large", "ml.c4.xlarge", "ml.c4.2xlarge", "ml.c4.4xlarge", "ml.c4.8xlarge", "ml.p2.xlarge", "ml.p2.8xlarge", "ml.p2.16xlarge", "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", "ml.c5.large", "ml.c5.xlarge", "ml.c5.2xlarge", "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.18xlarge", "ml.c5d.large", "ml.c5d.xlarge", "ml.c5d.2xlarge", "ml.c5d.4xlarge", "ml.c5d.9xlarge", "ml.c5d.18xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", "ml.r5.large", "ml.r5.xlarge", "ml.r5.2xlarge", "ml.r5.4xlarge", "ml.r5.12xlarge", "ml.r5.24xlarge", "ml.r5d.large", "ml.r5d.xlarge", "ml.r5d.2xlarge", "ml.r5d.4xlarge", "ml.r5d.12xlarge", "ml.r5d.24xlarge", "ml.inf1.xlarge", "ml.inf1.2xlarge", "ml.inf1.6xlarge", "ml.inf1.24xlarge", "ml.c6i.large", "ml.c6i.xlarge", "ml.c6i.2xlarge", "ml.c6i.4xlarge", "ml.c6i.8xlarge", "ml.c6i.12xlarge", "ml.c6i.16xlarge", "ml.c6i.24xlarge", "ml.c6i.32xlarge", "ml.g5.xlarge", "ml.g5.2xlarge", "ml.g5.4xlarge", "ml.g5.8xlarge", "ml.g5.12xlarge", "ml.g5.16xlarge", "ml.g5.24xlarge", "ml.g5.48xlarge", "ml.p4d.24xlarge", "ml.c7g.large", "ml.c7g.xlarge", "ml.c7g.2xlarge", "ml.c7g.4xlarge", "ml.c7g.8xlarge", "ml.c7g.12xlarge", "ml.c7g.16xlarge", "ml.m6g.large", "ml.m6g.xlarge", "ml.m6g.2xlarge", "ml.m6g.4xlarge", "ml.m6g.8xlarge", "ml.m6g.12xlarge", "ml.m6g.16xlarge", "ml.m6gd.large", "ml.m6gd.xlarge", "ml.m6gd.2xlarge", "ml.m6gd.4xlarge", "ml.m6gd.8xlarge", "ml.m6gd.12xlarge", "ml.m6gd.16xlarge", "ml.c6g.large", "ml.c6g.xlarge", "ml.c6g.2xlarge", "ml.c6g.4xlarge", "ml.c6g.8xlarge", "ml.c6g.12xlarge", "ml.c6g.16xlarge", "ml.c6gd.large", "ml.c6gd.xlarge", "ml.c6gd.2xlarge", "ml.c6gd.4xlarge", "ml.c6gd.8xlarge", "ml.c6gd.12xlarge", "ml.c6gd.16xlarge", "ml.c6gn.large", "ml.c6gn.xlarge", "ml.c6gn.2xlarge", "ml.c6gn.4xlarge", "ml.c6gn.8xlarge", "ml.c6gn.12xlarge", "ml.c6gn.16xlarge", "ml.r6g.large", "ml.r6g.xlarge", "ml.r6g.2xlarge", "ml.r6g.4xlarge", "ml.r6g.8xlarge", "ml.r6g.12xlarge", "ml.r6g.16xlarge", "ml.r6gd.large", "ml.r6gd.xlarge", "ml.r6gd.2xlarge", "ml.r6gd.4xlarge", "ml.r6gd.8xlarge", "ml.r6gd.12xlarge", "ml.r6gd.16xlarge", "ml.p4de.24xlarge", "ml.trn1.2xlarge", "ml.trn1.32xlarge", "ml.inf2.xlarge", "ml.inf2.8xlarge", "ml.inf2.24xlarge", "ml.inf2.48xlarge", } } type ProfilingStatus string // Enum values for ProfilingStatus const ( ProfilingStatusEnabled ProfilingStatus = "Enabled" ProfilingStatusDisabled ProfilingStatus = "Disabled" ) // Values returns all known values for ProfilingStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProfilingStatus) Values() []ProfilingStatus { return []ProfilingStatus{ "Enabled", "Disabled", } } type ProjectSortBy string // Enum values for ProjectSortBy const ( ProjectSortByName ProjectSortBy = "Name" ProjectSortByCreationTime ProjectSortBy = "CreationTime" ) // Values returns all known values for ProjectSortBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProjectSortBy) Values() []ProjectSortBy { return []ProjectSortBy{ "Name", "CreationTime", } } type ProjectSortOrder string // Enum values for ProjectSortOrder const ( ProjectSortOrderAscending ProjectSortOrder = "Ascending" ProjectSortOrderDescending ProjectSortOrder = "Descending" ) // Values returns all known values for ProjectSortOrder. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProjectSortOrder) Values() []ProjectSortOrder { return []ProjectSortOrder{ "Ascending", "Descending", } } type ProjectStatus string // Enum values for ProjectStatus const ( ProjectStatusPending ProjectStatus = "Pending" ProjectStatusCreateInProgress ProjectStatus = "CreateInProgress" ProjectStatusCreateCompleted ProjectStatus = "CreateCompleted" ProjectStatusCreateFailed ProjectStatus = "CreateFailed" ProjectStatusDeleteInProgress ProjectStatus = "DeleteInProgress" ProjectStatusDeleteFailed ProjectStatus = "DeleteFailed" ProjectStatusDeleteCompleted ProjectStatus = "DeleteCompleted" ProjectStatusUpdateInProgress ProjectStatus = "UpdateInProgress" ProjectStatusUpdateCompleted ProjectStatus = "UpdateCompleted" ProjectStatusUpdateFailed ProjectStatus = "UpdateFailed" ) // Values returns all known values for ProjectStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProjectStatus) Values() []ProjectStatus { return []ProjectStatus{ "Pending", "CreateInProgress", "CreateCompleted", "CreateFailed", "DeleteInProgress", "DeleteFailed", "DeleteCompleted", "UpdateInProgress", "UpdateCompleted", "UpdateFailed", } } type RecommendationJobStatus string // Enum values for RecommendationJobStatus const ( RecommendationJobStatusPending RecommendationJobStatus = "PENDING" RecommendationJobStatusInProgress RecommendationJobStatus = "IN_PROGRESS" RecommendationJobStatusCompleted RecommendationJobStatus = "COMPLETED" RecommendationJobStatusFailed RecommendationJobStatus = "FAILED" RecommendationJobStatusStopping RecommendationJobStatus = "STOPPING" RecommendationJobStatusStopped RecommendationJobStatus = "STOPPED" ) // Values returns all known values for RecommendationJobStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RecommendationJobStatus) Values() []RecommendationJobStatus { return []RecommendationJobStatus{ "PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "STOPPING", "STOPPED", } } type RecommendationJobType string // Enum values for RecommendationJobType const ( RecommendationJobTypeDefault RecommendationJobType = "Default" RecommendationJobTypeAdvanced RecommendationJobType = "Advanced" ) // Values returns all known values for RecommendationJobType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RecommendationJobType) Values() []RecommendationJobType { return []RecommendationJobType{ "Default", "Advanced", } } type RecommendationStatus string // Enum values for RecommendationStatus const ( RecommendationStatusInProgress RecommendationStatus = "IN_PROGRESS" RecommendationStatusCompleted RecommendationStatus = "COMPLETED" RecommendationStatusFailed RecommendationStatus = "FAILED" RecommendationStatusNotApplicable RecommendationStatus = "NOT_APPLICABLE" ) // Values returns all known values for RecommendationStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RecommendationStatus) Values() []RecommendationStatus { return []RecommendationStatus{ "IN_PROGRESS", "COMPLETED", "FAILED", "NOT_APPLICABLE", } } type RecommendationStepType string // Enum values for RecommendationStepType const ( RecommendationStepTypeBenchmark RecommendationStepType = "BENCHMARK" ) // Values returns all known values for RecommendationStepType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RecommendationStepType) Values() []RecommendationStepType { return []RecommendationStepType{ "BENCHMARK", } } type RecordWrapper string // Enum values for RecordWrapper const ( RecordWrapperNone RecordWrapper = "None" RecordWrapperRecordio RecordWrapper = "RecordIO" ) // Values returns all known values for RecordWrapper. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RecordWrapper) Values() []RecordWrapper { return []RecordWrapper{ "None", "RecordIO", } } type RedshiftResultCompressionType string // Enum values for RedshiftResultCompressionType const ( RedshiftResultCompressionTypeNone RedshiftResultCompressionType = "None" RedshiftResultCompressionTypeGzip RedshiftResultCompressionType = "GZIP" RedshiftResultCompressionTypeBzip2 RedshiftResultCompressionType = "BZIP2" RedshiftResultCompressionTypeZstd RedshiftResultCompressionType = "ZSTD" RedshiftResultCompressionTypeSnappy RedshiftResultCompressionType = "SNAPPY" ) // Values returns all known values for RedshiftResultCompressionType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (RedshiftResultCompressionType) Values() []RedshiftResultCompressionType { return []RedshiftResultCompressionType{ "None", "GZIP", "BZIP2", "ZSTD", "SNAPPY", } } type RedshiftResultFormat string // Enum values for RedshiftResultFormat const ( RedshiftResultFormatParquet RedshiftResultFormat = "PARQUET" RedshiftResultFormatCsv RedshiftResultFormat = "CSV" ) // Values returns all known values for RedshiftResultFormat. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RedshiftResultFormat) Values() []RedshiftResultFormat { return []RedshiftResultFormat{ "PARQUET", "CSV", } } type RepositoryAccessMode string // Enum values for RepositoryAccessMode const ( RepositoryAccessModePlatform RepositoryAccessMode = "Platform" RepositoryAccessModeVpc RepositoryAccessMode = "Vpc" ) // Values returns all known values for RepositoryAccessMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RepositoryAccessMode) Values() []RepositoryAccessMode { return []RepositoryAccessMode{ "Platform", "Vpc", } } type ResourceType string // Enum values for ResourceType const ( ResourceTypeTrainingJob ResourceType = "TrainingJob" ResourceTypeExperiment ResourceType = "Experiment" ResourceTypeExperimentTrial ResourceType = "ExperimentTrial" ResourceTypeExperimentTrialComponent ResourceType = "ExperimentTrialComponent" ResourceTypeEndpoint ResourceType = "Endpoint" ResourceTypeModelPackage ResourceType = "ModelPackage" ResourceTypeModelPackageGroup ResourceType = "ModelPackageGroup" ResourceTypePipeline ResourceType = "Pipeline" ResourceTypePipelineExecution ResourceType = "PipelineExecution" ResourceTypeFeatureGroup ResourceType = "FeatureGroup" ResourceTypeProject ResourceType = "Project" ResourceTypeFeatureMetadata ResourceType = "FeatureMetadata" ResourceTypeHyperParameterTuningJob ResourceType = "HyperParameterTuningJob" ResourceTypeModelCard ResourceType = "ModelCard" ResourceTypeModel ResourceType = "Model" ) // Values returns all known values for ResourceType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ResourceType) Values() []ResourceType { return []ResourceType{ "TrainingJob", "Experiment", "ExperimentTrial", "ExperimentTrialComponent", "Endpoint", "ModelPackage", "ModelPackageGroup", "Pipeline", "PipelineExecution", "FeatureGroup", "Project", "FeatureMetadata", "HyperParameterTuningJob", "ModelCard", "Model", } } type RetentionType string // Enum values for RetentionType const ( RetentionTypeRetain RetentionType = "Retain" RetentionTypeDelete RetentionType = "Delete" ) // Values returns all known values for RetentionType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RetentionType) Values() []RetentionType { return []RetentionType{ "Retain", "Delete", } } type RootAccess string // Enum values for RootAccess const ( RootAccessEnabled RootAccess = "Enabled" RootAccessDisabled RootAccess = "Disabled" ) // Values returns all known values for RootAccess. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (RootAccess) Values() []RootAccess { return []RootAccess{ "Enabled", "Disabled", } } type RStudioServerProAccessStatus string // Enum values for RStudioServerProAccessStatus const ( RStudioServerProAccessStatusEnabled RStudioServerProAccessStatus = "ENABLED" RStudioServerProAccessStatusDisabled RStudioServerProAccessStatus = "DISABLED" ) // Values returns all known values for RStudioServerProAccessStatus. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (RStudioServerProAccessStatus) Values() []RStudioServerProAccessStatus { return []RStudioServerProAccessStatus{ "ENABLED", "DISABLED", } } type RStudioServerProUserGroup string // Enum values for RStudioServerProUserGroup const ( RStudioServerProUserGroupAdmin RStudioServerProUserGroup = "R_STUDIO_ADMIN" RStudioServerProUserGroupUser RStudioServerProUserGroup = "R_STUDIO_USER" ) // Values returns all known values for RStudioServerProUserGroup. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (RStudioServerProUserGroup) Values() []RStudioServerProUserGroup { return []RStudioServerProUserGroup{ "R_STUDIO_ADMIN", "R_STUDIO_USER", } } type RuleEvaluationStatus string // Enum values for RuleEvaluationStatus const ( RuleEvaluationStatusInProgress RuleEvaluationStatus = "InProgress" RuleEvaluationStatusNoIssuesFound RuleEvaluationStatus = "NoIssuesFound" RuleEvaluationStatusIssuesFound RuleEvaluationStatus = "IssuesFound" RuleEvaluationStatusError RuleEvaluationStatus = "Error" RuleEvaluationStatusStopping RuleEvaluationStatus = "Stopping" RuleEvaluationStatusStopped RuleEvaluationStatus = "Stopped" ) // Values returns all known values for RuleEvaluationStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RuleEvaluationStatus) Values() []RuleEvaluationStatus { return []RuleEvaluationStatus{ "InProgress", "NoIssuesFound", "IssuesFound", "Error", "Stopping", "Stopped", } } type S3DataDistribution string // Enum values for S3DataDistribution const ( S3DataDistributionFullyReplicated S3DataDistribution = "FullyReplicated" S3DataDistributionShardedByS3Key S3DataDistribution = "ShardedByS3Key" ) // Values returns all known values for S3DataDistribution. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (S3DataDistribution) Values() []S3DataDistribution { return []S3DataDistribution{ "FullyReplicated", "ShardedByS3Key", } } type S3DataType string // Enum values for S3DataType const ( S3DataTypeManifestFile S3DataType = "ManifestFile" S3DataTypeS3Prefix S3DataType = "S3Prefix" S3DataTypeAugmentedManifestFile S3DataType = "AugmentedManifestFile" ) // Values returns all known values for S3DataType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (S3DataType) Values() []S3DataType { return []S3DataType{ "ManifestFile", "S3Prefix", "AugmentedManifestFile", } } type S3ModelDataType string // Enum values for S3ModelDataType const ( S3ModelDataTypeS3Prefix S3ModelDataType = "S3Prefix" S3ModelDataTypeS3Object S3ModelDataType = "S3Object" ) // Values returns all known values for S3ModelDataType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (S3ModelDataType) Values() []S3ModelDataType { return []S3ModelDataType{ "S3Prefix", "S3Object", } } type SagemakerServicecatalogStatus string // Enum values for SagemakerServicecatalogStatus const ( SagemakerServicecatalogStatusEnabled SagemakerServicecatalogStatus = "Enabled" SagemakerServicecatalogStatusDisabled SagemakerServicecatalogStatus = "Disabled" ) // Values returns all known values for SagemakerServicecatalogStatus. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (SagemakerServicecatalogStatus) Values() []SagemakerServicecatalogStatus { return []SagemakerServicecatalogStatus{ "Enabled", "Disabled", } } type ScheduleStatus string // Enum values for ScheduleStatus const ( ScheduleStatusPending ScheduleStatus = "Pending" ScheduleStatusFailed ScheduleStatus = "Failed" ScheduleStatusScheduled ScheduleStatus = "Scheduled" ScheduleStatusStopped ScheduleStatus = "Stopped" ) // Values returns all known values for ScheduleStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ScheduleStatus) Values() []ScheduleStatus { return []ScheduleStatus{ "Pending", "Failed", "Scheduled", "Stopped", } } type SearchSortOrder string // Enum values for SearchSortOrder const ( SearchSortOrderAscending SearchSortOrder = "Ascending" SearchSortOrderDescending SearchSortOrder = "Descending" ) // Values returns all known values for SearchSortOrder. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SearchSortOrder) Values() []SearchSortOrder { return []SearchSortOrder{ "Ascending", "Descending", } } type SecondaryStatus string // Enum values for SecondaryStatus const ( SecondaryStatusStarting SecondaryStatus = "Starting" SecondaryStatusLaunchingMlInstances SecondaryStatus = "LaunchingMLInstances" SecondaryStatusPreparingTrainingStack SecondaryStatus = "PreparingTrainingStack" SecondaryStatusDownloading SecondaryStatus = "Downloading" SecondaryStatusDownloadingTrainingImage SecondaryStatus = "DownloadingTrainingImage" SecondaryStatusTraining SecondaryStatus = "Training" SecondaryStatusUploading SecondaryStatus = "Uploading" SecondaryStatusStopping SecondaryStatus = "Stopping" SecondaryStatusStopped SecondaryStatus = "Stopped" SecondaryStatusMaxRuntimeExceeded SecondaryStatus = "MaxRuntimeExceeded" SecondaryStatusCompleted SecondaryStatus = "Completed" SecondaryStatusFailed SecondaryStatus = "Failed" SecondaryStatusInterrupted SecondaryStatus = "Interrupted" SecondaryStatusMaxWaitTimeExceeded SecondaryStatus = "MaxWaitTimeExceeded" SecondaryStatusUpdating SecondaryStatus = "Updating" SecondaryStatusRestarting SecondaryStatus = "Restarting" ) // Values returns all known values for SecondaryStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SecondaryStatus) Values() []SecondaryStatus { return []SecondaryStatus{ "Starting", "LaunchingMLInstances", "PreparingTrainingStack", "Downloading", "DownloadingTrainingImage", "Training", "Uploading", "Stopping", "Stopped", "MaxRuntimeExceeded", "Completed", "Failed", "Interrupted", "MaxWaitTimeExceeded", "Updating", "Restarting", } } type SortActionsBy string // Enum values for SortActionsBy const ( SortActionsByName SortActionsBy = "Name" SortActionsByCreationTime SortActionsBy = "CreationTime" ) // Values returns all known values for SortActionsBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortActionsBy) Values() []SortActionsBy { return []SortActionsBy{ "Name", "CreationTime", } } type SortArtifactsBy string // Enum values for SortArtifactsBy const ( SortArtifactsByCreationTime SortArtifactsBy = "CreationTime" ) // Values returns all known values for SortArtifactsBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortArtifactsBy) Values() []SortArtifactsBy { return []SortArtifactsBy{ "CreationTime", } } type SortAssociationsBy string // Enum values for SortAssociationsBy const ( SortAssociationsBySourceArn SortAssociationsBy = "SourceArn" SortAssociationsByDestinationArn SortAssociationsBy = "DestinationArn" SortAssociationsBySourceType SortAssociationsBy = "SourceType" SortAssociationsByDestinationType SortAssociationsBy = "DestinationType" SortAssociationsByCreationTime SortAssociationsBy = "CreationTime" ) // Values returns all known values for SortAssociationsBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortAssociationsBy) Values() []SortAssociationsBy { return []SortAssociationsBy{ "SourceArn", "DestinationArn", "SourceType", "DestinationType", "CreationTime", } } type SortBy string // Enum values for SortBy const ( SortByName SortBy = "Name" SortByCreationTime SortBy = "CreationTime" SortByStatus SortBy = "Status" ) // Values returns all known values for SortBy. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (SortBy) Values() []SortBy { return []SortBy{ "Name", "CreationTime", "Status", } } type SortContextsBy string // Enum values for SortContextsBy const ( SortContextsByName SortContextsBy = "Name" SortContextsByCreationTime SortContextsBy = "CreationTime" ) // Values returns all known values for SortContextsBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortContextsBy) Values() []SortContextsBy { return []SortContextsBy{ "Name", "CreationTime", } } type SortExperimentsBy string // Enum values for SortExperimentsBy const ( SortExperimentsByName SortExperimentsBy = "Name" SortExperimentsByCreationTime SortExperimentsBy = "CreationTime" ) // Values returns all known values for SortExperimentsBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortExperimentsBy) Values() []SortExperimentsBy { return []SortExperimentsBy{ "Name", "CreationTime", } } type SortInferenceExperimentsBy string // Enum values for SortInferenceExperimentsBy const ( SortInferenceExperimentsByName SortInferenceExperimentsBy = "Name" SortInferenceExperimentsByCreationTime SortInferenceExperimentsBy = "CreationTime" SortInferenceExperimentsByStatus SortInferenceExperimentsBy = "Status" ) // Values returns all known values for SortInferenceExperimentsBy. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (SortInferenceExperimentsBy) Values() []SortInferenceExperimentsBy { return []SortInferenceExperimentsBy{ "Name", "CreationTime", "Status", } } type SortLineageGroupsBy string // Enum values for SortLineageGroupsBy const ( SortLineageGroupsByName SortLineageGroupsBy = "Name" SortLineageGroupsByCreationTime SortLineageGroupsBy = "CreationTime" ) // Values returns all known values for SortLineageGroupsBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortLineageGroupsBy) Values() []SortLineageGroupsBy { return []SortLineageGroupsBy{ "Name", "CreationTime", } } type SortOrder string // Enum values for SortOrder const ( SortOrderAscending SortOrder = "Ascending" SortOrderDescending SortOrder = "Descending" ) // Values returns all known values for SortOrder. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (SortOrder) Values() []SortOrder { return []SortOrder{ "Ascending", "Descending", } } type SortPipelineExecutionsBy string // Enum values for SortPipelineExecutionsBy const ( SortPipelineExecutionsByCreationTime SortPipelineExecutionsBy = "CreationTime" SortPipelineExecutionsByPipelineExecutionArn SortPipelineExecutionsBy = "PipelineExecutionArn" ) // Values returns all known values for SortPipelineExecutionsBy. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (SortPipelineExecutionsBy) Values() []SortPipelineExecutionsBy { return []SortPipelineExecutionsBy{ "CreationTime", "PipelineExecutionArn", } } type SortPipelinesBy string // Enum values for SortPipelinesBy const ( SortPipelinesByName SortPipelinesBy = "Name" SortPipelinesByCreationTime SortPipelinesBy = "CreationTime" ) // Values returns all known values for SortPipelinesBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortPipelinesBy) Values() []SortPipelinesBy { return []SortPipelinesBy{ "Name", "CreationTime", } } type SortTrialComponentsBy string // Enum values for SortTrialComponentsBy const ( SortTrialComponentsByName SortTrialComponentsBy = "Name" SortTrialComponentsByCreationTime SortTrialComponentsBy = "CreationTime" ) // Values returns all known values for SortTrialComponentsBy. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortTrialComponentsBy) Values() []SortTrialComponentsBy { return []SortTrialComponentsBy{ "Name", "CreationTime", } } type SortTrialsBy string // Enum values for SortTrialsBy const ( SortTrialsByName SortTrialsBy = "Name" SortTrialsByCreationTime SortTrialsBy = "CreationTime" ) // Values returns all known values for SortTrialsBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SortTrialsBy) Values() []SortTrialsBy { return []SortTrialsBy{ "Name", "CreationTime", } } type SpaceSortKey string // Enum values for SpaceSortKey const ( SpaceSortKeyCreationTime SpaceSortKey = "CreationTime" SpaceSortKeyLastModifiedTime SpaceSortKey = "LastModifiedTime" ) // Values returns all known values for SpaceSortKey. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SpaceSortKey) Values() []SpaceSortKey { return []SpaceSortKey{ "CreationTime", "LastModifiedTime", } } type SpaceStatus string // Enum values for SpaceStatus const ( SpaceStatusDeleting SpaceStatus = "Deleting" SpaceStatusFailed SpaceStatus = "Failed" SpaceStatusInService SpaceStatus = "InService" SpaceStatusPending SpaceStatus = "Pending" SpaceStatusUpdating SpaceStatus = "Updating" SpaceStatusUpdateFailed SpaceStatus = "Update_Failed" SpaceStatusDeleteFailed SpaceStatus = "Delete_Failed" ) // Values returns all known values for SpaceStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (SpaceStatus) Values() []SpaceStatus { return []SpaceStatus{ "Deleting", "Failed", "InService", "Pending", "Updating", "Update_Failed", "Delete_Failed", } } type SplitType string // Enum values for SplitType const ( SplitTypeNone SplitType = "None" SplitTypeLine SplitType = "Line" SplitTypeRecordio SplitType = "RecordIO" SplitTypeTfrecord SplitType = "TFRecord" ) // Values returns all known values for SplitType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (SplitType) Values() []SplitType { return []SplitType{ "None", "Line", "RecordIO", "TFRecord", } } type StageStatus string // Enum values for StageStatus const ( StageStatusCreating StageStatus = "CREATING" StageStatusReadyToDeploy StageStatus = "READYTODEPLOY" StageStatusStarting StageStatus = "STARTING" StageStatusInProgress StageStatus = "INPROGRESS" StageStatusDeployed StageStatus = "DEPLOYED" StageStatusFailed StageStatus = "FAILED" StageStatusStopping StageStatus = "STOPPING" StageStatusStopped StageStatus = "STOPPED" ) // Values returns all known values for StageStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (StageStatus) Values() []StageStatus { return []StageStatus{ "CREATING", "READYTODEPLOY", "STARTING", "INPROGRESS", "DEPLOYED", "FAILED", "STOPPING", "STOPPED", } } type StepStatus string // Enum values for StepStatus const ( StepStatusStarting StepStatus = "Starting" StepStatusExecuting StepStatus = "Executing" StepStatusStopping StepStatus = "Stopping" StepStatusStopped StepStatus = "Stopped" StepStatusFailed StepStatus = "Failed" StepStatusSucceeded StepStatus = "Succeeded" ) // Values returns all known values for StepStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (StepStatus) Values() []StepStatus { return []StepStatus{ "Starting", "Executing", "Stopping", "Stopped", "Failed", "Succeeded", } } type StudioLifecycleConfigAppType string // Enum values for StudioLifecycleConfigAppType const ( StudioLifecycleConfigAppTypeJupyterServer StudioLifecycleConfigAppType = "JupyterServer" StudioLifecycleConfigAppTypeKernelGateway StudioLifecycleConfigAppType = "KernelGateway" ) // Values returns all known values for StudioLifecycleConfigAppType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (StudioLifecycleConfigAppType) Values() []StudioLifecycleConfigAppType { return []StudioLifecycleConfigAppType{ "JupyterServer", "KernelGateway", } } type StudioLifecycleConfigSortKey string // Enum values for StudioLifecycleConfigSortKey const ( StudioLifecycleConfigSortKeyCreationTime StudioLifecycleConfigSortKey = "CreationTime" StudioLifecycleConfigSortKeyLastModifiedTime StudioLifecycleConfigSortKey = "LastModifiedTime" StudioLifecycleConfigSortKeyName StudioLifecycleConfigSortKey = "Name" ) // Values returns all known values for StudioLifecycleConfigSortKey. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (StudioLifecycleConfigSortKey) Values() []StudioLifecycleConfigSortKey { return []StudioLifecycleConfigSortKey{ "CreationTime", "LastModifiedTime", "Name", } } type TableFormat string // Enum values for TableFormat const ( TableFormatGlue TableFormat = "Glue" TableFormatIceberg TableFormat = "Iceberg" ) // Values returns all known values for TableFormat. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (TableFormat) Values() []TableFormat { return []TableFormat{ "Glue", "Iceberg", } } type TargetDevice string // Enum values for TargetDevice const ( TargetDeviceLambda TargetDevice = "lambda" TargetDeviceMlM4 TargetDevice = "ml_m4" TargetDeviceMlM5 TargetDevice = "ml_m5" TargetDeviceMlC4 TargetDevice = "ml_c4" TargetDeviceMlC5 TargetDevice = "ml_c5" TargetDeviceMlP2 TargetDevice = "ml_p2" TargetDeviceMlP3 TargetDevice = "ml_p3" TargetDeviceMlG4dn TargetDevice = "ml_g4dn" TargetDeviceMlInf1 TargetDevice = "ml_inf1" TargetDeviceMlInf2 TargetDevice = "ml_inf2" TargetDeviceMlTrn1 TargetDevice = "ml_trn1" TargetDeviceMlEia2 TargetDevice = "ml_eia2" TargetDeviceJetsonTx1 TargetDevice = "jetson_tx1" TargetDeviceJetsonTx2 TargetDevice = "jetson_tx2" TargetDeviceJetsonNano TargetDevice = "jetson_nano" TargetDeviceJetsonXavier TargetDevice = "jetson_xavier" TargetDeviceRasp3b TargetDevice = "rasp3b" TargetDeviceImx8qm TargetDevice = "imx8qm" TargetDeviceDeeplens TargetDevice = "deeplens" TargetDeviceRk3399 TargetDevice = "rk3399" TargetDeviceRk3288 TargetDevice = "rk3288" TargetDeviceAisage TargetDevice = "aisage" TargetDeviceSbeC TargetDevice = "sbe_c" TargetDeviceQcs605 TargetDevice = "qcs605" TargetDeviceQcs603 TargetDevice = "qcs603" TargetDeviceSitaraAm57x TargetDevice = "sitara_am57x" TargetDeviceAmbaCv2 TargetDevice = "amba_cv2" TargetDeviceAmbaCv22 TargetDevice = "amba_cv22" TargetDeviceAmbaCv25 TargetDevice = "amba_cv25" TargetDeviceX86Win32 TargetDevice = "x86_win32" TargetDeviceX86Win64 TargetDevice = "x86_win64" TargetDeviceCoreml TargetDevice = "coreml" TargetDeviceJacintoTda4vm TargetDevice = "jacinto_tda4vm" TargetDeviceImx8mplus TargetDevice = "imx8mplus" ) // Values returns all known values for TargetDevice. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TargetDevice) Values() []TargetDevice { return []TargetDevice{ "lambda", "ml_m4", "ml_m5", "ml_c4", "ml_c5", "ml_p2", "ml_p3", "ml_g4dn", "ml_inf1", "ml_inf2", "ml_trn1", "ml_eia2", "jetson_tx1", "jetson_tx2", "jetson_nano", "jetson_xavier", "rasp3b", "imx8qm", "deeplens", "rk3399", "rk3288", "aisage", "sbe_c", "qcs605", "qcs603", "sitara_am57x", "amba_cv2", "amba_cv22", "amba_cv25", "x86_win32", "x86_win64", "coreml", "jacinto_tda4vm", "imx8mplus", } } type TargetPlatformAccelerator string // Enum values for TargetPlatformAccelerator const ( TargetPlatformAcceleratorIntelGraphics TargetPlatformAccelerator = "INTEL_GRAPHICS" TargetPlatformAcceleratorMali TargetPlatformAccelerator = "MALI" TargetPlatformAcceleratorNvidia TargetPlatformAccelerator = "NVIDIA" TargetPlatformAcceleratorNna TargetPlatformAccelerator = "NNA" ) // Values returns all known values for TargetPlatformAccelerator. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (TargetPlatformAccelerator) Values() []TargetPlatformAccelerator { return []TargetPlatformAccelerator{ "INTEL_GRAPHICS", "MALI", "NVIDIA", "NNA", } } type TargetPlatformArch string // Enum values for TargetPlatformArch const ( TargetPlatformArchX8664 TargetPlatformArch = "X86_64" TargetPlatformArchX86 TargetPlatformArch = "X86" TargetPlatformArchArm64 TargetPlatformArch = "ARM64" TargetPlatformArchArmEabi TargetPlatformArch = "ARM_EABI" TargetPlatformArchArmEabihf TargetPlatformArch = "ARM_EABIHF" ) // Values returns all known values for TargetPlatformArch. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TargetPlatformArch) Values() []TargetPlatformArch { return []TargetPlatformArch{ "X86_64", "X86", "ARM64", "ARM_EABI", "ARM_EABIHF", } } type TargetPlatformOs string // Enum values for TargetPlatformOs const ( TargetPlatformOsAndroid TargetPlatformOs = "ANDROID" TargetPlatformOsLinux TargetPlatformOs = "LINUX" ) // Values returns all known values for TargetPlatformOs. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TargetPlatformOs) Values() []TargetPlatformOs { return []TargetPlatformOs{ "ANDROID", "LINUX", } } type TrafficRoutingConfigType string // Enum values for TrafficRoutingConfigType const ( TrafficRoutingConfigTypeAllAtOnce TrafficRoutingConfigType = "ALL_AT_ONCE" TrafficRoutingConfigTypeCanary TrafficRoutingConfigType = "CANARY" TrafficRoutingConfigTypeLinear TrafficRoutingConfigType = "LINEAR" ) // Values returns all known values for TrafficRoutingConfigType. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (TrafficRoutingConfigType) Values() []TrafficRoutingConfigType { return []TrafficRoutingConfigType{ "ALL_AT_ONCE", "CANARY", "LINEAR", } } type TrafficType string // Enum values for TrafficType const ( TrafficTypePhases TrafficType = "PHASES" ) // Values returns all known values for TrafficType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (TrafficType) Values() []TrafficType { return []TrafficType{ "PHASES", } } type TrainingInputMode string // Enum values for TrainingInputMode const ( TrainingInputModePipe TrainingInputMode = "Pipe" TrainingInputModeFile TrainingInputMode = "File" TrainingInputModeFastfile TrainingInputMode = "FastFile" ) // Values returns all known values for TrainingInputMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TrainingInputMode) Values() []TrainingInputMode { return []TrainingInputMode{ "Pipe", "File", "FastFile", } } type TrainingInstanceType string // Enum values for TrainingInstanceType const ( TrainingInstanceTypeMlM4Xlarge TrainingInstanceType = "ml.m4.xlarge" TrainingInstanceTypeMlM42xlarge TrainingInstanceType = "ml.m4.2xlarge" TrainingInstanceTypeMlM44xlarge TrainingInstanceType = "ml.m4.4xlarge" TrainingInstanceTypeMlM410xlarge TrainingInstanceType = "ml.m4.10xlarge" TrainingInstanceTypeMlM416xlarge TrainingInstanceType = "ml.m4.16xlarge" TrainingInstanceTypeMlG4dnXlarge TrainingInstanceType = "ml.g4dn.xlarge" TrainingInstanceTypeMlG4dn2xlarge TrainingInstanceType = "ml.g4dn.2xlarge" TrainingInstanceTypeMlG4dn4xlarge TrainingInstanceType = "ml.g4dn.4xlarge" TrainingInstanceTypeMlG4dn8xlarge TrainingInstanceType = "ml.g4dn.8xlarge" TrainingInstanceTypeMlG4dn12xlarge TrainingInstanceType = "ml.g4dn.12xlarge" TrainingInstanceTypeMlG4dn16xlarge TrainingInstanceType = "ml.g4dn.16xlarge" TrainingInstanceTypeMlM5Large TrainingInstanceType = "ml.m5.large" TrainingInstanceTypeMlM5Xlarge TrainingInstanceType = "ml.m5.xlarge" TrainingInstanceTypeMlM52xlarge TrainingInstanceType = "ml.m5.2xlarge" TrainingInstanceTypeMlM54xlarge TrainingInstanceType = "ml.m5.4xlarge" TrainingInstanceTypeMlM512xlarge TrainingInstanceType = "ml.m5.12xlarge" TrainingInstanceTypeMlM524xlarge TrainingInstanceType = "ml.m5.24xlarge" TrainingInstanceTypeMlC4Xlarge TrainingInstanceType = "ml.c4.xlarge" TrainingInstanceTypeMlC42xlarge TrainingInstanceType = "ml.c4.2xlarge" TrainingInstanceTypeMlC44xlarge TrainingInstanceType = "ml.c4.4xlarge" TrainingInstanceTypeMlC48xlarge TrainingInstanceType = "ml.c4.8xlarge" TrainingInstanceTypeMlP2Xlarge TrainingInstanceType = "ml.p2.xlarge" TrainingInstanceTypeMlP28xlarge TrainingInstanceType = "ml.p2.8xlarge" TrainingInstanceTypeMlP216xlarge TrainingInstanceType = "ml.p2.16xlarge" TrainingInstanceTypeMlP32xlarge TrainingInstanceType = "ml.p3.2xlarge" TrainingInstanceTypeMlP38xlarge TrainingInstanceType = "ml.p3.8xlarge" TrainingInstanceTypeMlP316xlarge TrainingInstanceType = "ml.p3.16xlarge" TrainingInstanceTypeMlP3dn24xlarge TrainingInstanceType = "ml.p3dn.24xlarge" TrainingInstanceTypeMlP4d24xlarge TrainingInstanceType = "ml.p4d.24xlarge" TrainingInstanceTypeMlC5Xlarge TrainingInstanceType = "ml.c5.xlarge" TrainingInstanceTypeMlC52xlarge TrainingInstanceType = "ml.c5.2xlarge" TrainingInstanceTypeMlC54xlarge TrainingInstanceType = "ml.c5.4xlarge" TrainingInstanceTypeMlC59xlarge TrainingInstanceType = "ml.c5.9xlarge" TrainingInstanceTypeMlC518xlarge TrainingInstanceType = "ml.c5.18xlarge" TrainingInstanceTypeMlC5nXlarge TrainingInstanceType = "ml.c5n.xlarge" TrainingInstanceTypeMlC5n2xlarge TrainingInstanceType = "ml.c5n.2xlarge" TrainingInstanceTypeMlC5n4xlarge TrainingInstanceType = "ml.c5n.4xlarge" TrainingInstanceTypeMlC5n9xlarge TrainingInstanceType = "ml.c5n.9xlarge" TrainingInstanceTypeMlC5n18xlarge TrainingInstanceType = "ml.c5n.18xlarge" TrainingInstanceTypeMlG5Xlarge TrainingInstanceType = "ml.g5.xlarge" TrainingInstanceTypeMlG52xlarge TrainingInstanceType = "ml.g5.2xlarge" TrainingInstanceTypeMlG54xlarge TrainingInstanceType = "ml.g5.4xlarge" TrainingInstanceTypeMlG58xlarge TrainingInstanceType = "ml.g5.8xlarge" TrainingInstanceTypeMlG516xlarge TrainingInstanceType = "ml.g5.16xlarge" TrainingInstanceTypeMlG512xlarge TrainingInstanceType = "ml.g5.12xlarge" TrainingInstanceTypeMlG524xlarge TrainingInstanceType = "ml.g5.24xlarge" TrainingInstanceTypeMlG548xlarge TrainingInstanceType = "ml.g5.48xlarge" TrainingInstanceTypeMlTrn12xlarge TrainingInstanceType = "ml.trn1.2xlarge" TrainingInstanceTypeMlTrn132xlarge TrainingInstanceType = "ml.trn1.32xlarge" TrainingInstanceTypeMlTrn1n32xlarge TrainingInstanceType = "ml.trn1n.32xlarge" ) // Values returns all known values for TrainingInstanceType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TrainingInstanceType) Values() []TrainingInstanceType { return []TrainingInstanceType{ "ml.m4.xlarge", "ml.m4.2xlarge", "ml.m4.4xlarge", "ml.m4.10xlarge", "ml.m4.16xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", "ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge", "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", "ml.c4.xlarge", "ml.c4.2xlarge", "ml.c4.4xlarge", "ml.c4.8xlarge", "ml.p2.xlarge", "ml.p2.8xlarge", "ml.p2.16xlarge", "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", "ml.p3dn.24xlarge", "ml.p4d.24xlarge", "ml.c5.xlarge", "ml.c5.2xlarge", "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.18xlarge", "ml.c5n.xlarge", "ml.c5n.2xlarge", "ml.c5n.4xlarge", "ml.c5n.9xlarge", "ml.c5n.18xlarge", "ml.g5.xlarge", "ml.g5.2xlarge", "ml.g5.4xlarge", "ml.g5.8xlarge", "ml.g5.16xlarge", "ml.g5.12xlarge", "ml.g5.24xlarge", "ml.g5.48xlarge", "ml.trn1.2xlarge", "ml.trn1.32xlarge", "ml.trn1n.32xlarge", } } type TrainingJobEarlyStoppingType string // Enum values for TrainingJobEarlyStoppingType const ( TrainingJobEarlyStoppingTypeOff TrainingJobEarlyStoppingType = "Off" TrainingJobEarlyStoppingTypeAuto TrainingJobEarlyStoppingType = "Auto" ) // Values returns all known values for TrainingJobEarlyStoppingType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (TrainingJobEarlyStoppingType) Values() []TrainingJobEarlyStoppingType { return []TrainingJobEarlyStoppingType{ "Off", "Auto", } } type TrainingJobSortByOptions string // Enum values for TrainingJobSortByOptions const ( TrainingJobSortByOptionsName TrainingJobSortByOptions = "Name" TrainingJobSortByOptionsCreationTime TrainingJobSortByOptions = "CreationTime" TrainingJobSortByOptionsStatus TrainingJobSortByOptions = "Status" TrainingJobSortByOptionsFinalObjectiveMetricValue TrainingJobSortByOptions = "FinalObjectiveMetricValue" ) // Values returns all known values for TrainingJobSortByOptions. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (TrainingJobSortByOptions) Values() []TrainingJobSortByOptions { return []TrainingJobSortByOptions{ "Name", "CreationTime", "Status", "FinalObjectiveMetricValue", } } type TrainingJobStatus string // Enum values for TrainingJobStatus const ( TrainingJobStatusInProgress TrainingJobStatus = "InProgress" TrainingJobStatusCompleted TrainingJobStatus = "Completed" TrainingJobStatusFailed TrainingJobStatus = "Failed" TrainingJobStatusStopping TrainingJobStatus = "Stopping" TrainingJobStatusStopped TrainingJobStatus = "Stopped" ) // Values returns all known values for TrainingJobStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TrainingJobStatus) Values() []TrainingJobStatus { return []TrainingJobStatus{ "InProgress", "Completed", "Failed", "Stopping", "Stopped", } } type TrainingRepositoryAccessMode string // Enum values for TrainingRepositoryAccessMode const ( TrainingRepositoryAccessModePlatform TrainingRepositoryAccessMode = "Platform" TrainingRepositoryAccessModeVpc TrainingRepositoryAccessMode = "Vpc" ) // Values returns all known values for TrainingRepositoryAccessMode. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (TrainingRepositoryAccessMode) Values() []TrainingRepositoryAccessMode { return []TrainingRepositoryAccessMode{ "Platform", "Vpc", } } type TransformInstanceType string // Enum values for TransformInstanceType const ( TransformInstanceTypeMlM4Xlarge TransformInstanceType = "ml.m4.xlarge" TransformInstanceTypeMlM42xlarge TransformInstanceType = "ml.m4.2xlarge" TransformInstanceTypeMlM44xlarge TransformInstanceType = "ml.m4.4xlarge" TransformInstanceTypeMlM410xlarge TransformInstanceType = "ml.m4.10xlarge" TransformInstanceTypeMlM416xlarge TransformInstanceType = "ml.m4.16xlarge" TransformInstanceTypeMlC4Xlarge TransformInstanceType = "ml.c4.xlarge" TransformInstanceTypeMlC42xlarge TransformInstanceType = "ml.c4.2xlarge" TransformInstanceTypeMlC44xlarge TransformInstanceType = "ml.c4.4xlarge" TransformInstanceTypeMlC48xlarge TransformInstanceType = "ml.c4.8xlarge" TransformInstanceTypeMlP2Xlarge TransformInstanceType = "ml.p2.xlarge" TransformInstanceTypeMlP28xlarge TransformInstanceType = "ml.p2.8xlarge" TransformInstanceTypeMlP216xlarge TransformInstanceType = "ml.p2.16xlarge" TransformInstanceTypeMlP32xlarge TransformInstanceType = "ml.p3.2xlarge" TransformInstanceTypeMlP38xlarge TransformInstanceType = "ml.p3.8xlarge" TransformInstanceTypeMlP316xlarge TransformInstanceType = "ml.p3.16xlarge" TransformInstanceTypeMlC5Xlarge TransformInstanceType = "ml.c5.xlarge" TransformInstanceTypeMlC52xlarge TransformInstanceType = "ml.c5.2xlarge" TransformInstanceTypeMlC54xlarge TransformInstanceType = "ml.c5.4xlarge" TransformInstanceTypeMlC59xlarge TransformInstanceType = "ml.c5.9xlarge" TransformInstanceTypeMlC518xlarge TransformInstanceType = "ml.c5.18xlarge" TransformInstanceTypeMlM5Large TransformInstanceType = "ml.m5.large" TransformInstanceTypeMlM5Xlarge TransformInstanceType = "ml.m5.xlarge" TransformInstanceTypeMlM52xlarge TransformInstanceType = "ml.m5.2xlarge" TransformInstanceTypeMlM54xlarge TransformInstanceType = "ml.m5.4xlarge" TransformInstanceTypeMlM512xlarge TransformInstanceType = "ml.m5.12xlarge" TransformInstanceTypeMlM524xlarge TransformInstanceType = "ml.m5.24xlarge" TransformInstanceTypeMlG4dnXlarge TransformInstanceType = "ml.g4dn.xlarge" TransformInstanceTypeMlG4dn2xlarge TransformInstanceType = "ml.g4dn.2xlarge" TransformInstanceTypeMlG4dn4xlarge TransformInstanceType = "ml.g4dn.4xlarge" TransformInstanceTypeMlG4dn8xlarge TransformInstanceType = "ml.g4dn.8xlarge" TransformInstanceTypeMlG4dn12xlarge TransformInstanceType = "ml.g4dn.12xlarge" TransformInstanceTypeMlG4dn16xlarge TransformInstanceType = "ml.g4dn.16xlarge" ) // Values returns all known values for TransformInstanceType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TransformInstanceType) Values() []TransformInstanceType { return []TransformInstanceType{ "ml.m4.xlarge", "ml.m4.2xlarge", "ml.m4.4xlarge", "ml.m4.10xlarge", "ml.m4.16xlarge", "ml.c4.xlarge", "ml.c4.2xlarge", "ml.c4.4xlarge", "ml.c4.8xlarge", "ml.p2.xlarge", "ml.p2.8xlarge", "ml.p2.16xlarge", "ml.p3.2xlarge", "ml.p3.8xlarge", "ml.p3.16xlarge", "ml.c5.xlarge", "ml.c5.2xlarge", "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.18xlarge", "ml.m5.large", "ml.m5.xlarge", "ml.m5.2xlarge", "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", "ml.g4dn.8xlarge", "ml.g4dn.12xlarge", "ml.g4dn.16xlarge", } } type TransformJobStatus string // Enum values for TransformJobStatus const ( TransformJobStatusInProgress TransformJobStatus = "InProgress" TransformJobStatusCompleted TransformJobStatus = "Completed" TransformJobStatusFailed TransformJobStatus = "Failed" TransformJobStatusStopping TransformJobStatus = "Stopping" TransformJobStatusStopped TransformJobStatus = "Stopped" ) // Values returns all known values for TransformJobStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TransformJobStatus) Values() []TransformJobStatus { return []TransformJobStatus{ "InProgress", "Completed", "Failed", "Stopping", "Stopped", } } type TrialComponentPrimaryStatus string // Enum values for TrialComponentPrimaryStatus const ( TrialComponentPrimaryStatusInProgress TrialComponentPrimaryStatus = "InProgress" TrialComponentPrimaryStatusCompleted TrialComponentPrimaryStatus = "Completed" TrialComponentPrimaryStatusFailed TrialComponentPrimaryStatus = "Failed" TrialComponentPrimaryStatusStopping TrialComponentPrimaryStatus = "Stopping" TrialComponentPrimaryStatusStopped TrialComponentPrimaryStatus = "Stopped" ) // Values returns all known values for TrialComponentPrimaryStatus. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (TrialComponentPrimaryStatus) Values() []TrialComponentPrimaryStatus { return []TrialComponentPrimaryStatus{ "InProgress", "Completed", "Failed", "Stopping", "Stopped", } } type TtlDurationUnit string // Enum values for TtlDurationUnit const ( TtlDurationUnitSeconds TtlDurationUnit = "Seconds" TtlDurationUnitMinutes TtlDurationUnit = "Minutes" TtlDurationUnitHours TtlDurationUnit = "Hours" TtlDurationUnitDays TtlDurationUnit = "Days" TtlDurationUnitWeeks TtlDurationUnit = "Weeks" ) // Values returns all known values for TtlDurationUnit. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TtlDurationUnit) Values() []TtlDurationUnit { return []TtlDurationUnit{ "Seconds", "Minutes", "Hours", "Days", "Weeks", } } type UserProfileSortKey string // Enum values for UserProfileSortKey const ( UserProfileSortKeyCreationTime UserProfileSortKey = "CreationTime" UserProfileSortKeyLastModifiedTime UserProfileSortKey = "LastModifiedTime" ) // Values returns all known values for UserProfileSortKey. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (UserProfileSortKey) Values() []UserProfileSortKey { return []UserProfileSortKey{ "CreationTime", "LastModifiedTime", } } type UserProfileStatus string // Enum values for UserProfileStatus const ( UserProfileStatusDeleting UserProfileStatus = "Deleting" UserProfileStatusFailed UserProfileStatus = "Failed" UserProfileStatusInService UserProfileStatus = "InService" UserProfileStatusPending UserProfileStatus = "Pending" UserProfileStatusUpdating UserProfileStatus = "Updating" UserProfileStatusUpdateFailed UserProfileStatus = "Update_Failed" UserProfileStatusDeleteFailed UserProfileStatus = "Delete_Failed" ) // Values returns all known values for UserProfileStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (UserProfileStatus) Values() []UserProfileStatus { return []UserProfileStatus{ "Deleting", "Failed", "InService", "Pending", "Updating", "Update_Failed", "Delete_Failed", } } type VariantPropertyType string // Enum values for VariantPropertyType const ( VariantPropertyTypeDesiredInstanceCount VariantPropertyType = "DesiredInstanceCount" VariantPropertyTypeDesiredWeight VariantPropertyType = "DesiredWeight" VariantPropertyTypeDataCaptureConfig VariantPropertyType = "DataCaptureConfig" ) // Values returns all known values for VariantPropertyType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (VariantPropertyType) Values() []VariantPropertyType { return []VariantPropertyType{ "DesiredInstanceCount", "DesiredWeight", "DataCaptureConfig", } } type VariantStatus string // Enum values for VariantStatus const ( VariantStatusCreating VariantStatus = "Creating" VariantStatusUpdating VariantStatus = "Updating" VariantStatusDeleting VariantStatus = "Deleting" VariantStatusActivatingTraffic VariantStatus = "ActivatingTraffic" VariantStatusBaking VariantStatus = "Baking" ) // Values returns all known values for VariantStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (VariantStatus) Values() []VariantStatus { return []VariantStatus{ "Creating", "Updating", "Deleting", "ActivatingTraffic", "Baking", } } type VendorGuidance string // Enum values for VendorGuidance const ( VendorGuidanceNotProvided VendorGuidance = "NOT_PROVIDED" VendorGuidanceStable VendorGuidance = "STABLE" VendorGuidanceToBeArchived VendorGuidance = "TO_BE_ARCHIVED" VendorGuidanceArchived VendorGuidance = "ARCHIVED" ) // Values returns all known values for VendorGuidance. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (VendorGuidance) Values() []VendorGuidance { return []VendorGuidance{ "NOT_PROVIDED", "STABLE", "TO_BE_ARCHIVED", "ARCHIVED", } } type WarmPoolResourceStatus string // Enum values for WarmPoolResourceStatus const ( WarmPoolResourceStatusAvailable WarmPoolResourceStatus = "Available" WarmPoolResourceStatusTerminated WarmPoolResourceStatus = "Terminated" WarmPoolResourceStatusReused WarmPoolResourceStatus = "Reused" WarmPoolResourceStatusInuse WarmPoolResourceStatus = "InUse" ) // Values returns all known values for WarmPoolResourceStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (WarmPoolResourceStatus) Values() []WarmPoolResourceStatus { return []WarmPoolResourceStatus{ "Available", "Terminated", "Reused", "InUse", } } type WorkforceStatus string // Enum values for WorkforceStatus const ( WorkforceStatusInitializing WorkforceStatus = "Initializing" WorkforceStatusUpdating WorkforceStatus = "Updating" WorkforceStatusDeleting WorkforceStatus = "Deleting" WorkforceStatusFailed WorkforceStatus = "Failed" WorkforceStatusActive WorkforceStatus = "Active" ) // Values returns all known values for WorkforceStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (WorkforceStatus) Values() []WorkforceStatus { return []WorkforceStatus{ "Initializing", "Updating", "Deleting", "Failed", "Active", } }
6,075
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "fmt" smithy "github.com/aws/smithy-go" ) // There was a conflict when you attempted to modify a SageMaker entity such as an // Experiment or Artifact . type ConflictException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ConflictException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ConflictException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ConflictException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource being accessed is in use. type ResourceInUse struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ResourceInUse) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ResourceInUse) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ResourceInUse) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUse" } return *e.ErrorCodeOverride } func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You have exceeded an SageMaker resource limit. For example, you might have too // many training jobs created. type ResourceLimitExceeded struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ResourceLimitExceeded) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ResourceLimitExceeded) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ResourceLimitExceeded) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceeded" } return *e.ErrorCodeOverride } func (e *ResourceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Resource being access is not found. type ResourceNotFound struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ResourceNotFound) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ResourceNotFound) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ResourceNotFound) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride } func (e *ResourceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
115
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types_test import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" ) func ExampleAutoMLProblemTypeConfig_outputUsage() { var union types.AutoMLProblemTypeConfig // type switches can be used to check the union value switch v := union.(type) { case *types.AutoMLProblemTypeConfigMemberImageClassificationJobConfig: _ = v.Value // Value is types.ImageClassificationJobConfig case *types.AutoMLProblemTypeConfigMemberTabularJobConfig: _ = v.Value // Value is types.TabularJobConfig case *types.AutoMLProblemTypeConfigMemberTextClassificationJobConfig: _ = v.Value // Value is types.TextClassificationJobConfig case *types.AutoMLProblemTypeConfigMemberTimeSeriesForecastingJobConfig: _ = v.Value // Value is types.TimeSeriesForecastingJobConfig case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } } var _ *types.TextClassificationJobConfig var _ *types.TimeSeriesForecastingJobConfig var _ *types.ImageClassificationJobConfig var _ *types.TabularJobConfig func ExampleAutoMLProblemTypeResolvedAttributes_outputUsage() { var union types.AutoMLProblemTypeResolvedAttributes // type switches can be used to check the union value switch v := union.(type) { case *types.AutoMLProblemTypeResolvedAttributesMemberTabularResolvedAttributes: _ = v.Value // Value is types.TabularResolvedAttributes case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } } var _ *types.TabularResolvedAttributes func ExampleTrialComponentParameterValue_outputUsage() { var union types.TrialComponentParameterValue // type switches can be used to check the union value switch v := union.(type) { case *types.TrialComponentParameterValueMemberNumberValue: _ = v.Value // Value is float64 case *types.TrialComponentParameterValueMemberStringValue: _ = v.Value // Value is string case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } } var _ *string var _ *float64
79
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime import ( "context" "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" awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" smithy "github.com/aws/smithy-go" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "net" "net/http" "time" ) const ServiceID = "SageMaker A2I Runtime" const ServiceAPIVersion = "2019-11-07" // Client provides the API client to make operations call for Amazon Augmented AI // Runtime. type Client struct { options Options } // New returns an initialized Client based on the functional options. Provide // additional functional options to further configure the behavior of the client, // such as changing the client's endpoint or adding custom middleware behavior. func New(options Options, optFns ...func(*Options)) *Client { options = options.Copy() resolveDefaultLogger(&options) setResolvedDefaultsMode(&options) resolveRetryer(&options) resolveHTTPClient(&options) resolveHTTPSignerV4(&options) resolveDefaultEndpointConfiguration(&options) for _, fn := range optFns { fn(&options) } client := &Client{ options: options, } return client } type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // 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 // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // 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. 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 } // WithAPIOptions returns a functional option for setting the Client's APIOptions // option. func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { return func(o *Options) { o.APIOptions = append(o.APIOptions, optFns...) } } // WithEndpointResolver returns a functional option for setting the Client's // EndpointResolver option. func WithEndpointResolver(v EndpointResolver) func(*Options) { return func(o *Options) { o.EndpointResolver = v } } type HTTPClient interface { Do(*http.Request) (*http.Response, error) } // Copy creates a clone where the APIOptions list is deep copied. 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) { ctx = middleware.ClearStackValues(ctx) stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) options := c.options.Copy() for _, fn := range optFns { fn(&options) } finalizeRetryMaxAttemptOptions(&options, *c) finalizeClientEndpointResolverOptions(&options) for _, fn := range stackFns { if err := fn(stack, options); err != nil { return nil, metadata, err } } for _, fn := range options.APIOptions { if err := fn(stack); err != nil { return nil, metadata, err } } handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) result, metadata, err = handler.Handle(ctx, params) if err != nil { err = &smithy.OperationError{ ServiceID: ServiceID, OperationName: opID, Err: err, } } return result, metadata, err } type noSmithyDocumentSerde = smithydocument.NoSerde func resolveDefaultLogger(o *Options) { if o.Logger != nil { return } o.Logger = logging.Nop{} } 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, 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) return New(opts, optFns...) } func resolveHTTPClient(o *Options) { var buildable *awshttp.BuildableClient if o.HTTPClient != nil { var ok bool buildable, ok = o.HTTPClient.(*awshttp.BuildableClient) if !ok { return } } else { buildable = 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 } 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) { if cfg.Retryer == nil { return } 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 && cfg.EndpointResolverWithOptions == nil { return } o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver()) } func addClientUserAgent(stack *middleware.Stack) error { return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "sagemakera2iruntime", goModuleVersion)(stack) } func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ CredentialsProvider: o.Credentials, Signer: o.HTTPSignerV4, LogSigning: o.ClientLogMode.IsSigning(), }) return stack.Finalize.Add(mw, middleware.After) } type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error } func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } o.HTTPSignerV4 = newDefaultV4Signer(*o) } func newDefaultV4Signer(o Options) *v4.Signer { return v4.NewSigner(func(so *v4.SignerOptions) { so.Logger = o.Logger so.LogSigning = o.ClientLogMode.IsSigning() }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { mo := retry.AddRetryMiddlewaresOptions{ Retryer: o.Retryer, LogRetryAttempts: o.ClientLogMode.IsRetries(), } return retry.AddRetryMiddlewares(stack, mo) } // resolves dual-stack endpoint configuration func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { if len(cfg.ConfigSources) == 0 { return nil } value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) if err != nil { return err } if found { o.EndpointOptions.UseDualStackEndpoint = value } return nil } // resolves FIPS endpoint configuration func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { if len(cfg.ConfigSources) == 0 { return nil } value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) if err != nil { return err } if found { o.EndpointOptions.UseFIPSEndpoint = value } return nil } func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) } func addResponseErrorMiddleware(stack *middleware.Stack) error { return awshttp.AddResponseErrorMiddleware(stack) } func addRequestResponseLogging(stack *middleware.Stack, o Options) error { return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ LogRequest: o.ClientLogMode.IsRequest(), LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), LogResponse: o.ClientLogMode.IsResponse(), LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), }, middleware.After) }
435
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "io/ioutil" "net/http" "strings" "testing" ) func TestClient_resolveRetryOptions(t *testing.T) { nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) { return &http.Response{ StatusCode: 200, Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader("")), }, nil }) cases := map[string]struct { defaultsMode aws.DefaultsMode retryer aws.Retryer retryMaxAttempts int opRetryMaxAttempts *int retryMode aws.RetryMode expectClientRetryMode aws.RetryMode expectClientMaxAttempts int expectOpMaxAttempts int }{ "defaults": { defaultsMode: aws.DefaultsModeStandard, expectClientRetryMode: aws.RetryModeStandard, expectClientMaxAttempts: 3, expectOpMaxAttempts: 3, }, "custom default retry": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, "custom op max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(2), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 2, }, "custom op no change max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(10), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, "custom op 0 max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(0), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, } for name, c := range cases { t.Run(name, func(t *testing.T) { client := NewFromConfig(aws.Config{ DefaultsMode: c.defaultsMode, Retryer: func() func() aws.Retryer { if c.retryer == nil { return nil } return func() aws.Retryer { return c.retryer } }(), HTTPClient: nopClient, RetryMaxAttempts: c.retryMaxAttempts, RetryMode: c.retryMode, }) if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a { t.Errorf("expect %v retry mode, got %v", e, a) } if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a { t.Errorf("expect %v max attempts, got %v", e, a) } _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{}, []func(*Options){ func(o *Options) { if c.opRetryMaxAttempts == nil { return } o.RetryMaxAttempts = *c.opRetryMaxAttempts }, }, func(s *middleware.Stack, o Options) error { s.Initialize.Clear() s.Serialize.Clear() s.Build.Clear() s.Finalize.Clear() s.Deserialize.Clear() if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a { t.Errorf("expect %v op max attempts, got %v", e, a) } return nil }) if err != nil { t.Fatalf("expect no operation error, got %v", err) } }) } }
124
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime 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" ) // Deletes the specified human loop for a flow definition. If the human loop was // deleted, this operation will return a ResourceNotFoundException . func (c *Client) DeleteHumanLoop(ctx context.Context, params *DeleteHumanLoopInput, optFns ...func(*Options)) (*DeleteHumanLoopOutput, error) { if params == nil { params = &DeleteHumanLoopInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteHumanLoop", params, optFns, c.addOperationDeleteHumanLoopMiddlewares) if err != nil { return nil, err } out := result.(*DeleteHumanLoopOutput) out.ResultMetadata = metadata return out, nil } type DeleteHumanLoopInput struct { // The name of the human loop that you want to delete. // // This member is required. HumanLoopName *string noSmithyDocumentSerde } type DeleteHumanLoopOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteHumanLoopMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteHumanLoop{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteHumanLoop{}, 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 = addOpDeleteHumanLoopValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteHumanLoop(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opDeleteHumanLoop(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "DeleteHumanLoop", } }
121
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime 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/sagemakera2iruntime/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "time" ) // Returns information about the specified human loop. If the human loop was // deleted, this operation will return a ResourceNotFoundException error. func (c *Client) DescribeHumanLoop(ctx context.Context, params *DescribeHumanLoopInput, optFns ...func(*Options)) (*DescribeHumanLoopOutput, error) { if params == nil { params = &DescribeHumanLoopInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeHumanLoop", params, optFns, c.addOperationDescribeHumanLoopMiddlewares) if err != nil { return nil, err } out := result.(*DescribeHumanLoopOutput) out.ResultMetadata = metadata return out, nil } type DescribeHumanLoopInput struct { // The name of the human loop that you want information about. // // This member is required. HumanLoopName *string noSmithyDocumentSerde } type DescribeHumanLoopOutput struct { // The creation time when Amazon Augmented AI created the human loop. // // This member is required. CreationTime *time.Time // The Amazon Resource Name (ARN) of the flow definition. // // This member is required. FlowDefinitionArn *string // The Amazon Resource Name (ARN) of the human loop. // // This member is required. HumanLoopArn *string // The name of the human loop. The name must be lowercase, unique within the // Region in your account, and can have up to 63 characters. Valid characters: a-z, // 0-9, and - (hyphen). // // This member is required. HumanLoopName *string // The status of the human loop. // // This member is required. HumanLoopStatus types.HumanLoopStatus // A failure code that identifies the type of failure. Possible values: // ValidationError , Expired , InternalError FailureCode *string // The reason why a human loop failed. The failure reason is returned when the // status of the human loop is Failed . FailureReason *string // An object that contains information about the output of the human loop. HumanLoopOutput *types.HumanLoopOutput // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeHumanLoopMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeHumanLoop{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeHumanLoop{}, 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 = addOpDescribeHumanLoopValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeHumanLoop(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opDescribeHumanLoop(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "DescribeHumanLoop", } }
162
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime 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/sagemakera2iruntime/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "time" ) // Returns information about human loops, given the specified parameters. If a // human loop was deleted, it will not be included. func (c *Client) ListHumanLoops(ctx context.Context, params *ListHumanLoopsInput, optFns ...func(*Options)) (*ListHumanLoopsOutput, error) { if params == nil { params = &ListHumanLoopsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListHumanLoops", params, optFns, c.addOperationListHumanLoopsMiddlewares) if err != nil { return nil, err } out := result.(*ListHumanLoopsOutput) out.ResultMetadata = metadata return out, nil } type ListHumanLoopsInput struct { // The Amazon Resource Name (ARN) of a flow definition. // // This member is required. FlowDefinitionArn *string // (Optional) The timestamp of the date when you want the human loops to begin in // ISO 8601 format. For example, 2020-02-24 . CreationTimeAfter *time.Time // (Optional) The timestamp of the date before which you want the human loops to // begin in ISO 8601 format. For example, 2020-02-24 . CreationTimeBefore *time.Time // The total number of items to return. If the total number of available items is // more than the value specified in MaxResults , then a NextToken is returned in // the output. You can use this token to display the next page of results. MaxResults *int32 // A token to display the next page of results. NextToken *string // Optional. The order for displaying results. Valid values: Ascending and // Descending . SortOrder types.SortOrder noSmithyDocumentSerde } type ListHumanLoopsOutput struct { // An array of objects that contain information about the human loops. // // This member is required. HumanLoopSummaries []types.HumanLoopSummary // A token to display the next page of results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListHumanLoopsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListHumanLoops{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListHumanLoops{}, 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 = addOpListHumanLoopsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListHumanLoops(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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 } // ListHumanLoopsAPIClient is a client that implements the ListHumanLoops // operation. type ListHumanLoopsAPIClient interface { ListHumanLoops(context.Context, *ListHumanLoopsInput, ...func(*Options)) (*ListHumanLoopsOutput, error) } var _ ListHumanLoopsAPIClient = (*Client)(nil) // ListHumanLoopsPaginatorOptions is the paginator options for ListHumanLoops type ListHumanLoopsPaginatorOptions struct { // The total number of items to return. If the total number of available items is // more than the value specified in MaxResults , then a NextToken is returned in // the output. You can use this token to display the next page of results. 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 } // ListHumanLoopsPaginator is a paginator for ListHumanLoops type ListHumanLoopsPaginator struct { options ListHumanLoopsPaginatorOptions client ListHumanLoopsAPIClient params *ListHumanLoopsInput nextToken *string firstPage bool } // NewListHumanLoopsPaginator returns a new ListHumanLoopsPaginator func NewListHumanLoopsPaginator(client ListHumanLoopsAPIClient, params *ListHumanLoopsInput, optFns ...func(*ListHumanLoopsPaginatorOptions)) *ListHumanLoopsPaginator { if params == nil { params = &ListHumanLoopsInput{} } options := ListHumanLoopsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListHumanLoopsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListHumanLoopsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListHumanLoops page. func (p *ListHumanLoopsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListHumanLoopsOutput, 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.ListHumanLoops(ctx, &params, 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_opListHumanLoops(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "ListHumanLoops", } }
245
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime 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/sagemakera2iruntime/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Starts a human loop, provided that at least one activation condition is met. func (c *Client) StartHumanLoop(ctx context.Context, params *StartHumanLoopInput, optFns ...func(*Options)) (*StartHumanLoopOutput, error) { if params == nil { params = &StartHumanLoopInput{} } result, metadata, err := c.invokeOperation(ctx, "StartHumanLoop", params, optFns, c.addOperationStartHumanLoopMiddlewares) if err != nil { return nil, err } out := result.(*StartHumanLoopOutput) out.ResultMetadata = metadata return out, nil } type StartHumanLoopInput struct { // The Amazon Resource Name (ARN) of the flow definition associated with this // human loop. // // This member is required. FlowDefinitionArn *string // An object that contains information about the human loop. // // This member is required. HumanLoopInput *types.HumanLoopInput // The name of the human loop. // // This member is required. HumanLoopName *string // Attributes of the specified data. Use DataAttributes to specify if your data is // free of personally identifiable information and/or free of adult content. DataAttributes *types.HumanLoopDataAttributes noSmithyDocumentSerde } type StartHumanLoopOutput struct { // The Amazon Resource Name (ARN) of the human loop. HumanLoopArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartHumanLoopMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpStartHumanLoop{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartHumanLoop{}, 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 = addOpStartHumanLoopValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartHumanLoop(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStartHumanLoop(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StartHumanLoop", } }
140
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime 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" ) // Stops the specified human loop. func (c *Client) StopHumanLoop(ctx context.Context, params *StopHumanLoopInput, optFns ...func(*Options)) (*StopHumanLoopOutput, error) { if params == nil { params = &StopHumanLoopInput{} } result, metadata, err := c.invokeOperation(ctx, "StopHumanLoop", params, optFns, c.addOperationStopHumanLoopMiddlewares) if err != nil { return nil, err } out := result.(*StopHumanLoopOutput) out.ResultMetadata = metadata return out, nil } type StopHumanLoopInput struct { // The name of the human loop that you want to stop. // // This member is required. HumanLoopName *string noSmithyDocumentSerde } type StopHumanLoopOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopHumanLoopMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpStopHumanLoop{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStopHumanLoop{}, 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 = addOpStopHumanLoopValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopHumanLoop(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); 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_opStopHumanLoop(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "sagemaker", OperationName: "StopHumanLoop", } }
120
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime import ( "bytes" "context" "encoding/json" "fmt" "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" "github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime/types" smithy "github.com/aws/smithy-go" smithyio "github.com/aws/smithy-go/io" "github.com/aws/smithy-go/middleware" "github.com/aws/smithy-go/ptr" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" "io" "strings" ) type awsRestjson1_deserializeOpDeleteHumanLoop struct { } func (*awsRestjson1_deserializeOpDeleteHumanLoop) ID() string { return "OperationDeserializer" } func (m *awsRestjson1_deserializeOpDeleteHumanLoop) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { return out, metadata, err } response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } if response.StatusCode < 200 || response.StatusCode >= 300 { return out, metadata, awsRestjson1_deserializeOpErrorDeleteHumanLoop(response, &metadata) } output := &DeleteHumanLoopOutput{} out.Result = output return out, metadata, err } func awsRestjson1_deserializeOpErrorDeleteHumanLoop(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } errorBody := bytes.NewReader(errorBuffer.Bytes()) errorCode := "UnknownError" errorMessage := errorCode headerCode := response.Header.Get("X-Amzn-ErrorType") if len(headerCode) != 0 { errorCode = restjson.SanitizeErrorCode(headerCode) } var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) if len(headerCode) == 0 && len(jsonCode) != 0 { errorCode = restjson.SanitizeErrorCode(jsonCode) } if len(message) != 0 { errorMessage = message } switch { case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) default: genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, } return genericError } } type awsRestjson1_deserializeOpDescribeHumanLoop struct { } func (*awsRestjson1_deserializeOpDescribeHumanLoop) ID() string { return "OperationDeserializer" } func (m *awsRestjson1_deserializeOpDescribeHumanLoop) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { return out, metadata, err } response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } if response.StatusCode < 200 || response.StatusCode >= 300 { return out, metadata, awsRestjson1_deserializeOpErrorDescribeHumanLoop(response, &metadata) } output := &DescribeHumanLoopOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return out, metadata, err } err = awsRestjson1_deserializeOpDocumentDescribeHumanLoopOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } } return out, metadata, err } func awsRestjson1_deserializeOpErrorDescribeHumanLoop(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } errorBody := bytes.NewReader(errorBuffer.Bytes()) errorCode := "UnknownError" errorMessage := errorCode headerCode := response.Header.Get("X-Amzn-ErrorType") if len(headerCode) != 0 { errorCode = restjson.SanitizeErrorCode(headerCode) } var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) if len(headerCode) == 0 && len(jsonCode) != 0 { errorCode = restjson.SanitizeErrorCode(jsonCode) } if len(message) != 0 { errorMessage = message } switch { case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) default: genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, } return genericError } } func awsRestjson1_deserializeOpDocumentDescribeHumanLoopOutput(v **DescribeHumanLoopOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *DescribeHumanLoopOutput if *v == nil { sv = &DescribeHumanLoopOutput{} } else { sv = *v } for key, value := range shape { switch key { case "CreationTime": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } t, err := smithytime.ParseDateTime(jtv) if err != nil { return err } sv.CreationTime = ptr.Time(t) } case "FailureCode": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } sv.FailureCode = ptr.String(jtv) } case "FailureReason": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } sv.FailureReason = ptr.String(jtv) } case "FlowDefinitionArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FlowDefinitionArn to be of type string, got %T instead", value) } sv.FlowDefinitionArn = ptr.String(jtv) } case "HumanLoopArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) } sv.HumanLoopArn = ptr.String(jtv) } case "HumanLoopName": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopName to be of type string, got %T instead", value) } sv.HumanLoopName = ptr.String(jtv) } case "HumanLoopOutput": if err := awsRestjson1_deserializeDocumentHumanLoopOutput(&sv.HumanLoopOutput, value); err != nil { return err } case "HumanLoopStatus": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopStatus to be of type string, got %T instead", value) } sv.HumanLoopStatus = types.HumanLoopStatus(jtv) } default: _, _ = key, value } } *v = sv return nil } type awsRestjson1_deserializeOpListHumanLoops struct { } func (*awsRestjson1_deserializeOpListHumanLoops) ID() string { return "OperationDeserializer" } func (m *awsRestjson1_deserializeOpListHumanLoops) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { return out, metadata, err } response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } if response.StatusCode < 200 || response.StatusCode >= 300 { return out, metadata, awsRestjson1_deserializeOpErrorListHumanLoops(response, &metadata) } output := &ListHumanLoopsOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return out, metadata, err } err = awsRestjson1_deserializeOpDocumentListHumanLoopsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } } return out, metadata, err } func awsRestjson1_deserializeOpErrorListHumanLoops(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } errorBody := bytes.NewReader(errorBuffer.Bytes()) errorCode := "UnknownError" errorMessage := errorCode headerCode := response.Header.Get("X-Amzn-ErrorType") if len(headerCode) != 0 { errorCode = restjson.SanitizeErrorCode(headerCode) } var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) if len(headerCode) == 0 && len(jsonCode) != 0 { errorCode = restjson.SanitizeErrorCode(jsonCode) } if len(message) != 0 { errorMessage = message } switch { case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) default: genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, } return genericError } } func awsRestjson1_deserializeOpDocumentListHumanLoopsOutput(v **ListHumanLoopsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *ListHumanLoopsOutput if *v == nil { sv = &ListHumanLoopsOutput{} } else { sv = *v } for key, value := range shape { switch key { case "HumanLoopSummaries": if err := awsRestjson1_deserializeDocumentHumanLoopSummaries(&sv.HumanLoopSummaries, value); err != nil { return err } case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } type awsRestjson1_deserializeOpStartHumanLoop struct { } func (*awsRestjson1_deserializeOpStartHumanLoop) ID() string { return "OperationDeserializer" } func (m *awsRestjson1_deserializeOpStartHumanLoop) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { return out, metadata, err } response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } if response.StatusCode < 200 || response.StatusCode >= 300 { return out, metadata, awsRestjson1_deserializeOpErrorStartHumanLoop(response, &metadata) } output := &StartHumanLoopOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return out, metadata, err } err = awsRestjson1_deserializeOpDocumentStartHumanLoopOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } } return out, metadata, err } func awsRestjson1_deserializeOpErrorStartHumanLoop(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } errorBody := bytes.NewReader(errorBuffer.Bytes()) errorCode := "UnknownError" errorMessage := errorCode headerCode := response.Header.Get("X-Amzn-ErrorType") if len(headerCode) != 0 { errorCode = restjson.SanitizeErrorCode(headerCode) } var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) if len(headerCode) == 0 && len(jsonCode) != 0 { errorCode = restjson.SanitizeErrorCode(jsonCode) } if len(message) != 0 { errorMessage = message } switch { case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ServiceQuotaExceededException", errorCode): return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) default: genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, } return genericError } } func awsRestjson1_deserializeOpDocumentStartHumanLoopOutput(v **StartHumanLoopOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *StartHumanLoopOutput if *v == nil { sv = &StartHumanLoopOutput{} } else { sv = *v } for key, value := range shape { switch key { case "HumanLoopArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) } sv.HumanLoopArn = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } type awsRestjson1_deserializeOpStopHumanLoop struct { } func (*awsRestjson1_deserializeOpStopHumanLoop) ID() string { return "OperationDeserializer" } func (m *awsRestjson1_deserializeOpStopHumanLoop) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { return out, metadata, err } response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } if response.StatusCode < 200 || response.StatusCode >= 300 { return out, metadata, awsRestjson1_deserializeOpErrorStopHumanLoop(response, &metadata) } output := &StopHumanLoopOutput{} out.Result = output return out, metadata, err } func awsRestjson1_deserializeOpErrorStopHumanLoop(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} } errorBody := bytes.NewReader(errorBuffer.Bytes()) errorCode := "UnknownError" errorMessage := errorCode headerCode := response.Header.Get("X-Amzn-ErrorType") if len(headerCode) != 0 { errorCode = restjson.SanitizeErrorCode(headerCode) } var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) if len(headerCode) == 0 && len(jsonCode) != 0 { errorCode = restjson.SanitizeErrorCode(jsonCode) } if len(message) != 0 { errorMessage = message } switch { case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) default: genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, } return genericError } } func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ConflictException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } err := awsRestjson1_deserializeDocumentConflictException(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) return output } func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.InternalServerException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) return output } func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ResourceNotFoundException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) return output } func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ServiceQuotaExceededException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) return output } func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ThrottlingException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) return output } func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ValidationException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } err := awsRestjson1_deserializeDocumentValidationException(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return err } errorBody.Seek(0, io.SeekStart) return output } func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.ConflictException if *v == nil { sv = &types.ConflictException{} } else { sv = *v } for key, value := range shape { switch key { case "Message": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } sv.Message = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } func awsRestjson1_deserializeDocumentHumanLoopOutput(v **types.HumanLoopOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.HumanLoopOutput if *v == nil { sv = &types.HumanLoopOutput{} } else { sv = *v } for key, value := range shape { switch key { case "OutputS3Uri": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } sv.OutputS3Uri = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } func awsRestjson1_deserializeDocumentHumanLoopSummaries(v *[]types.HumanLoopSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var cv []types.HumanLoopSummary if *v == nil { cv = []types.HumanLoopSummary{} } else { cv = *v } for _, value := range shape { var col types.HumanLoopSummary destAddr := &col if err := awsRestjson1_deserializeDocumentHumanLoopSummary(&destAddr, value); err != nil { return err } col = *destAddr cv = append(cv, col) } *v = cv return nil } func awsRestjson1_deserializeDocumentHumanLoopSummary(v **types.HumanLoopSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.HumanLoopSummary if *v == nil { sv = &types.HumanLoopSummary{} } else { sv = *v } for key, value := range shape { switch key { case "CreationTime": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } t, err := smithytime.ParseDateTime(jtv) if err != nil { return err } sv.CreationTime = ptr.Time(t) } case "FailureReason": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } sv.FailureReason = ptr.String(jtv) } case "FlowDefinitionArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FlowDefinitionArn to be of type string, got %T instead", value) } sv.FlowDefinitionArn = ptr.String(jtv) } case "HumanLoopName": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopName to be of type string, got %T instead", value) } sv.HumanLoopName = ptr.String(jtv) } case "HumanLoopStatus": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopStatus to be of type string, got %T instead", value) } sv.HumanLoopStatus = types.HumanLoopStatus(jtv) } default: _, _ = key, value } } *v = sv return nil } func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.InternalServerException if *v == nil { sv = &types.InternalServerException{} } else { sv = *v } for key, value := range shape { switch key { case "Message": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } sv.Message = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.ResourceNotFoundException if *v == nil { sv = &types.ResourceNotFoundException{} } else { sv = *v } for key, value := range shape { switch key { case "Message": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } sv.Message = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.ServiceQuotaExceededException if *v == nil { sv = &types.ServiceQuotaExceededException{} } else { sv = *v } for key, value := range shape { switch key { case "Message": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } sv.Message = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.ThrottlingException if *v == nil { sv = &types.ThrottlingException{} } else { sv = *v } for key, value := range shape { switch key { case "Message": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } sv.Message = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil } func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } if value == nil { return nil } shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } var sv *types.ValidationException if *v == nil { sv = &types.ValidationException{} } else { sv = *v } for key, value := range shape { switch key { case "Message": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } sv.Message = ptr.String(jtv) } default: _, _ = key, value } } *v = sv return nil }
1,366
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. // Package sagemakera2iruntime provides the API client, operations, and parameter // types for Amazon Augmented AI Runtime. // // Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any // machine learning application. When an AI application can't evaluate data with a // high degree of confidence, human reviewers can take over. This human review is // called a human review workflow. To create and start a human review workflow, you // need three resources: a worker task template, a flow definition, and a human // loop. For information about these resources and prerequisites for using Amazon // A2I, see Get Started with Amazon Augmented AI (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html) // in the Amazon SageMaker Developer Guide. This API reference includes information // about API actions and data types that you can use to interact with Amazon A2I // programmatically. Use this guide to: // - Start a human loop with the StartHumanLoop operation when using Amazon A2I // with a custom task type. To learn more about the difference between custom and // built-in task types, see Use Task Types (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html) // . To learn how to start a human loop using this API, see Create and Start a // Human Loop for a Custom Task Type (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop) // in the Amazon SageMaker Developer Guide. // - Manage your human loops. You can list all human loops that you have // created, describe individual human loops, and stop and delete human loops. To // learn more, see Monitor and Manage Your Human Loop (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html) // in the Amazon SageMaker Developer Guide. // // Amazon A2I integrates APIs from various AWS services to create and start human // review workflows for those services. To learn how Amazon A2I uses these APIs, // see Use APIs in Amazon A2I (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html) // in the Amazon SageMaker Developer Guide. package sagemakera2iruntime
32
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime import ( "context" "errors" "fmt" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" internalendpoints "github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime/internal/endpoints" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "net/url" "strings" ) // EndpointResolverOptions is the service endpoint resolver options type EndpointResolverOptions = internalendpoints.Options // EndpointResolver interface for resolving service endpoints. type EndpointResolver interface { ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) } var _ EndpointResolver = &internalendpoints.Resolver{} // NewDefaultEndpointResolver constructs a new service endpoint resolver func NewDefaultEndpointResolver() *internalendpoints.Resolver { return internalendpoints.New() } // EndpointResolverFunc is a helper utility that wraps a function so it satisfies // the EndpointResolver interface. This is useful when you want to add additional // endpoint resolving logic, or stub out specific endpoints with custom values. type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { return fn(region, options) } func resolveDefaultEndpointConfiguration(o *Options) { if o.EndpointResolver != nil { return } o.EndpointResolver = NewDefaultEndpointResolver() } // EndpointResolverFromURL returns an EndpointResolver configured using the // provided endpoint url. By default, the resolved endpoint resolver uses the // client region as signing region, and the endpoint source is set to // EndpointSourceCustom.You can provide functional options to configure endpoint // values for the resolved endpoint. func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} for _, fn := range optFns { fn(&e) } return EndpointResolverFunc( func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { if len(e.SigningRegion) == 0 { e.SigningRegion = region } return e, nil }, ) } type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions } func (*ResolveEndpoint) ID() string { return "ResolveEndpoint" } func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } if m.Resolver == nil { return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") } eo := m.Options eo.Logger = middleware.GetLogger(ctx) var endpoint aws.Endpoint endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) if err != nil { return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) } req.URL, err = url.Parse(endpoint.URL) if err != nil { return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) } if len(awsmiddleware.GetSigningName(ctx)) == 0 { signingName := endpoint.SigningName if len(signingName) == 0 { signingName = "sagemaker" } ctx = awsmiddleware.SetSigningName(ctx, signingName) } ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) return next.HandleSerialize(ctx, in) } func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { return stack.Serialize.Insert(&ResolveEndpoint{ Resolver: o.EndpointResolver, Options: o.EndpointOptions, }, "OperationSerializer", middleware.Before) } func removeResolveEndpointMiddleware(stack *middleware.Stack) error { _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) return err } type wrappedEndpointResolver struct { awsResolver aws.EndpointResolverWithOptions resolver EndpointResolver } func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { if w.awsResolver == nil { goto fallback } endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options) if err == nil { return endpoint, nil } if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { return endpoint, err } fallback: if w.resolver == nil { return endpoint, fmt.Errorf("default endpoint resolver provided was nil") } return w.resolver.ResolveEndpoint(region, options) } type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { return a(service, region) } var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) // withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. // If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided // fallbackResolver for resolution. // // fallbackResolver must not be nil func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver { var resolver aws.EndpointResolverWithOptions if awsResolverWithOptions != nil { resolver = awsResolverWithOptions } else if awsResolver != nil { resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) } return &wrappedEndpointResolver{ awsResolver: resolver, resolver: fallbackResolver, } } func finalizeClientEndpointResolverOptions(options *Options) { options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() if len(options.EndpointOptions.ResolvedRegion) == 0 { const fipsInfix = "-fips-" const fipsPrefix = "fips-" const fipsSuffix = "-fips" if strings.Contains(options.Region, fipsInfix) || strings.Contains(options.Region, fipsPrefix) || strings.Contains(options.Region, fipsSuffix) { options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled } } }
201
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package sagemakera2iruntime // goModuleVersion is the tagged release for this module const goModuleVersion = "1.15.12"
7
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime
4
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime import ( "bytes" "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" ) type awsRestjson1_serializeOpDeleteHumanLoop struct { } func (*awsRestjson1_serializeOpDeleteHumanLoop) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteHumanLoop) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteHumanLoopInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/human-loops/{HumanLoopName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteHumanLoopInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteHumanLoopInput(v *DeleteHumanLoopInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.HumanLoopName == nil || len(*v.HumanLoopName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HumanLoopName must not be empty")} } if v.HumanLoopName != nil { if err := encoder.SetURI("HumanLoopName").String(*v.HumanLoopName); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeHumanLoop struct { } func (*awsRestjson1_serializeOpDescribeHumanLoop) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeHumanLoop) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeHumanLoopInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/human-loops/{HumanLoopName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeHumanLoopInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeHumanLoopInput(v *DescribeHumanLoopInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.HumanLoopName == nil || len(*v.HumanLoopName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HumanLoopName must not be empty")} } if v.HumanLoopName != nil { if err := encoder.SetURI("HumanLoopName").String(*v.HumanLoopName); err != nil { return err } } return nil } type awsRestjson1_serializeOpListHumanLoops struct { } func (*awsRestjson1_serializeOpListHumanLoops) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListHumanLoops) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListHumanLoopsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/human-loops") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListHumanLoopsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListHumanLoopsInput(v *ListHumanLoopsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.CreationTimeAfter != nil { encoder.SetQuery("CreationTimeAfter").String(smithytime.FormatDateTime(*v.CreationTimeAfter)) } if v.CreationTimeBefore != nil { encoder.SetQuery("CreationTimeBefore").String(smithytime.FormatDateTime(*v.CreationTimeBefore)) } if v.FlowDefinitionArn != nil { encoder.SetQuery("FlowDefinitionArn").String(*v.FlowDefinitionArn) } if v.MaxResults != nil { encoder.SetQuery("MaxResults").Integer(*v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("NextToken").String(*v.NextToken) } if len(v.SortOrder) > 0 { encoder.SetQuery("SortOrder").String(string(v.SortOrder)) } return nil } type awsRestjson1_serializeOpStartHumanLoop struct { } func (*awsRestjson1_serializeOpStartHumanLoop) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpStartHumanLoop) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*StartHumanLoopInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/human-loops") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentStartHumanLoopInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsStartHumanLoopInput(v *StartHumanLoopInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentStartHumanLoopInput(v *StartHumanLoopInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.DataAttributes != nil { ok := object.Key("DataAttributes") if err := awsRestjson1_serializeDocumentHumanLoopDataAttributes(v.DataAttributes, ok); err != nil { return err } } if v.FlowDefinitionArn != nil { ok := object.Key("FlowDefinitionArn") ok.String(*v.FlowDefinitionArn) } if v.HumanLoopInput != nil { ok := object.Key("HumanLoopInput") if err := awsRestjson1_serializeDocumentHumanLoopInput(v.HumanLoopInput, ok); err != nil { return err } } if v.HumanLoopName != nil { ok := object.Key("HumanLoopName") ok.String(*v.HumanLoopName) } return nil } type awsRestjson1_serializeOpStopHumanLoop struct { } func (*awsRestjson1_serializeOpStopHumanLoop) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpStopHumanLoop) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*StopHumanLoopInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/human-loops/stop") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentStopHumanLoopInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsStopHumanLoopInput(v *StopHumanLoopInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentStopHumanLoopInput(v *StopHumanLoopInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.HumanLoopName != nil { ok := object.Key("HumanLoopName") ok.String(*v.HumanLoopName) } return nil } func awsRestjson1_serializeDocumentContentClassifiers(v []types.ContentClassifier, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(string(v[i])) } return nil } func awsRestjson1_serializeDocumentHumanLoopDataAttributes(v *types.HumanLoopDataAttributes, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ContentClassifiers != nil { ok := object.Key("ContentClassifiers") if err := awsRestjson1_serializeDocumentContentClassifiers(v.ContentClassifiers, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentHumanLoopInput(v *types.HumanLoopInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InputContent != nil { ok := object.Key("InputContent") ok.String(*v.InputContent) } return nil }
398
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakera2iruntime import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) type validateOpDeleteHumanLoop struct { } func (*validateOpDeleteHumanLoop) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteHumanLoop) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteHumanLoopInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteHumanLoopInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDescribeHumanLoop struct { } func (*validateOpDescribeHumanLoop) ID() string { return "OperationInputValidation" } func (m *validateOpDescribeHumanLoop) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DescribeHumanLoopInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDescribeHumanLoopInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListHumanLoops struct { } func (*validateOpListHumanLoops) ID() string { return "OperationInputValidation" } func (m *validateOpListHumanLoops) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListHumanLoopsInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListHumanLoopsInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpStartHumanLoop struct { } func (*validateOpStartHumanLoop) ID() string { return "OperationInputValidation" } func (m *validateOpStartHumanLoop) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*StartHumanLoopInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpStartHumanLoopInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpStopHumanLoop struct { } func (*validateOpStopHumanLoop) ID() string { return "OperationInputValidation" } func (m *validateOpStopHumanLoop) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*StopHumanLoopInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpStopHumanLoopInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } func addOpDeleteHumanLoopValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteHumanLoop{}, middleware.After) } func addOpDescribeHumanLoopValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeHumanLoop{}, middleware.After) } func addOpListHumanLoopsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListHumanLoops{}, middleware.After) } func addOpStartHumanLoopValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartHumanLoop{}, middleware.After) } func addOpStopHumanLoopValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStopHumanLoop{}, middleware.After) } func validateHumanLoopDataAttributes(v *types.HumanLoopDataAttributes) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HumanLoopDataAttributes"} if v.ContentClassifiers == nil { invalidParams.Add(smithy.NewErrParamRequired("ContentClassifiers")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateHumanLoopInput(v *types.HumanLoopInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HumanLoopInput"} if v.InputContent == nil { invalidParams.Add(smithy.NewErrParamRequired("InputContent")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteHumanLoopInput(v *DeleteHumanLoopInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteHumanLoopInput"} if v.HumanLoopName == nil { invalidParams.Add(smithy.NewErrParamRequired("HumanLoopName")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDescribeHumanLoopInput(v *DescribeHumanLoopInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeHumanLoopInput"} if v.HumanLoopName == nil { invalidParams.Add(smithy.NewErrParamRequired("HumanLoopName")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListHumanLoopsInput(v *ListHumanLoopsInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListHumanLoopsInput"} if v.FlowDefinitionArn == nil { invalidParams.Add(smithy.NewErrParamRequired("FlowDefinitionArn")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpStartHumanLoopInput(v *StartHumanLoopInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StartHumanLoopInput"} if v.HumanLoopName == nil { invalidParams.Add(smithy.NewErrParamRequired("HumanLoopName")) } if v.FlowDefinitionArn == nil { invalidParams.Add(smithy.NewErrParamRequired("FlowDefinitionArn")) } if v.HumanLoopInput == nil { invalidParams.Add(smithy.NewErrParamRequired("HumanLoopInput")) } else if v.HumanLoopInput != nil { if err := validateHumanLoopInput(v.HumanLoopInput); err != nil { invalidParams.AddNested("HumanLoopInput", err.(smithy.InvalidParamsError)) } } if v.DataAttributes != nil { if err := validateHumanLoopDataAttributes(v.DataAttributes); err != nil { invalidParams.AddNested("DataAttributes", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpStopHumanLoopInput(v *StopHumanLoopInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StopHumanLoopInput"} if v.HumanLoopName == nil { invalidParams.Add(smithy.NewErrParamRequired("HumanLoopName")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } }
252
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "github.com/aws/aws-sdk-go-v2/aws" endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" "github.com/aws/smithy-go/logging" "regexp" ) // Options is the endpoint resolver configuration options type Options struct { // Logger is a logging implementation that log events should be sent to. Logger logging.Logger // LogDeprecated indicates that deprecated endpoints should be logged to the // provided logger. LogDeprecated bool // ResolvedRegion is used to override the region to be resolved, rather then the // using the value passed to the ResolveEndpoint method. This value is used by the // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative // name. You must not set this value directly in your application. ResolvedRegion string // DisableHTTPS informs the resolver to return an endpoint that does not use the // HTTPS scheme. DisableHTTPS bool // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. UseDualStackEndpoint aws.DualStackEndpointState // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. UseFIPSEndpoint aws.FIPSEndpointState } func (o Options) GetResolvedRegion() string { return o.ResolvedRegion } func (o Options) GetDisableHTTPS() bool { return o.DisableHTTPS } func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { return o.UseDualStackEndpoint } func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { return o.UseFIPSEndpoint } func transformToSharedOptions(options Options) endpoints.Options { return endpoints.Options{ Logger: options.Logger, LogDeprecated: options.LogDeprecated, ResolvedRegion: options.ResolvedRegion, DisableHTTPS: options.DisableHTTPS, UseDualStackEndpoint: options.UseDualStackEndpoint, UseFIPSEndpoint: options.UseFIPSEndpoint, } } // Resolver SageMaker A2I Runtime endpoint resolver type Resolver struct { partitions endpoints.Partitions } // ResolveEndpoint resolves the service endpoint for the given region and options func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { if len(region) == 0 { return endpoint, &aws.MissingRegionError{} } opt := transformToSharedOptions(options) return r.partitions.ResolveEndpoint(region, opt) } // New returns a new Resolver func New() *Resolver { return &Resolver{ partitions: defaultPartitions, } } var partitionRegexp = struct { Aws *regexp.Regexp AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp AwsIsoE *regexp.Regexp AwsIsoF *regexp.Regexp AwsUsGov *regexp.Regexp }{ Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } var defaultPartitions = endpoints.Partitions{ { ID: "aws", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "a2i-runtime.sagemaker.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "a2i-runtime.sagemaker.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, }, { ID: "aws-cn", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "a2i-runtime.sagemaker.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.amazonaws.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "a2i-runtime.sagemaker.{region}.amazonaws.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsCn, IsRegionalized: true, }, { ID: "aws-iso", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "a2i-runtime.sagemaker.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIso, IsRegionalized: true, }, { ID: "aws-iso-b", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "a2i-runtime.sagemaker.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, { ID: "aws-iso-e", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.cloud.adc-e.uk", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "a2i-runtime.sagemaker.{region}.cloud.adc-e.uk", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoE, IsRegionalized: true, }, { ID: "aws-iso-f", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.csp.hci.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "a2i-runtime.sagemaker.{region}.csp.hci.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoF, IsRegionalized: true, }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "a2i-runtime.sagemaker.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "a2i-runtime.sagemaker-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "a2i-runtime.sagemaker.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsUsGov, IsRegionalized: true, }, }
297
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "testing" ) func TestRegexCompile(t *testing.T) { _ = defaultPartitions }
12
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types type ContentClassifier string // Enum values for ContentClassifier const ( ContentClassifierFreeOfPersonallyIdentifiableInformation ContentClassifier = "FreeOfPersonallyIdentifiableInformation" ContentClassifierFreeOfAdultContent ContentClassifier = "FreeOfAdultContent" ) // Values returns all known values for ContentClassifier. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ContentClassifier) Values() []ContentClassifier { return []ContentClassifier{ "FreeOfPersonallyIdentifiableInformation", "FreeOfAdultContent", } } type HumanLoopStatus string // Enum values for HumanLoopStatus const ( HumanLoopStatusInProgress HumanLoopStatus = "InProgress" HumanLoopStatusFailed HumanLoopStatus = "Failed" HumanLoopStatusCompleted HumanLoopStatus = "Completed" HumanLoopStatusStopped HumanLoopStatus = "Stopped" HumanLoopStatusStopping HumanLoopStatus = "Stopping" ) // Values returns all known values for HumanLoopStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HumanLoopStatus) Values() []HumanLoopStatus { return []HumanLoopStatus{ "InProgress", "Failed", "Completed", "Stopped", "Stopping", } } type SortOrder string // Enum values for SortOrder const ( SortOrderAscending SortOrder = "Ascending" SortOrderDescending SortOrder = "Descending" ) // Values returns all known values for SortOrder. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (SortOrder) Values() []SortOrder { return []SortOrder{ "Ascending", "Descending", } }
64
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "fmt" smithy "github.com/aws/smithy-go" ) // Your request has the same name as another active human loop but has different // input data. You cannot start two human loops with the same name and different // input data. type ConflictException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ConflictException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ConflictException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ConflictException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // We couldn't process your request because of an issue with the server. Try again // later. type InternalServerException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *InternalServerException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *InternalServerException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *InternalServerException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride } func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // We couldn't find the requested resource. Check that your resources exists and // were created in the same AWS Region as your request, and try your request again. type ResourceNotFoundException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ResourceNotFoundException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded your service quota. Service quotas, also referred to as limits, // are the maximum number of service resources or operations for your AWS account. // For a list of Amazon A2I service quotes, see Amazon Augmented AI Service Quotes (https://docs.aws.amazon.com/general/latest/gr/a2i.html) // . Delete some resources or request an increase in your service quota. You can // request a quota increase using Service Quotas or the AWS Support Center. To // request an increase, see AWS Service Quotas (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the AWS General Reference. type ServiceQuotaExceededException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ServiceQuotaExceededException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride } func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You exceeded the maximum number of requests. type ThrottlingException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ThrottlingException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ThrottlingException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ThrottlingException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride } func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request isn't valid. Check the syntax and try again. type ValidationException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ValidationException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ValidationException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ValidationException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride } func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
175
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( smithydocument "github.com/aws/smithy-go/document" "time" ) // Attributes of the data specified by the customer. Use these to describe the // data to be labeled. type HumanLoopDataAttributes struct { // Declares that your content is free of personally identifiable information or // adult content. Amazon SageMaker can restrict the Amazon Mechanical Turk workers // who can view your task based on this information. // // This member is required. ContentClassifiers []ContentClassifier noSmithyDocumentSerde } // An object containing the human loop input in JSON format. type HumanLoopInput struct { // Serialized input from the human loop. The input must be a string representation // of a file in JSON format. // // This member is required. InputContent *string noSmithyDocumentSerde } // Information about where the human output will be stored. type HumanLoopOutput struct { // The location of the Amazon S3 object where Amazon Augmented AI stores your // human loop output. // // This member is required. OutputS3Uri *string noSmithyDocumentSerde } // Summary information about the human loop. type HumanLoopSummary struct { // When Amazon Augmented AI created the human loop. CreationTime *time.Time // The reason why the human loop failed. A failure reason is returned when the // status of the human loop is Failed . FailureReason *string // The Amazon Resource Name (ARN) of the flow definition used to configure the // human loop. FlowDefinitionArn *string // The name of the human loop. HumanLoopName *string // The status of the human loop. HumanLoopStatus HumanLoopStatus noSmithyDocumentSerde } type noSmithyDocumentSerde = smithydocument.NoSerde
72
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakeredge import ( "context" "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" awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" smithy "github.com/aws/smithy-go" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "net" "net/http" "time" ) const ServiceID = "Sagemaker Edge" const ServiceAPIVersion = "2020-09-23" // Client provides the API client to make operations call for Amazon Sagemaker // Edge Manager. type Client struct { options Options } // New returns an initialized Client based on the functional options. Provide // additional functional options to further configure the behavior of the client, // such as changing the client's endpoint or adding custom middleware behavior. func New(options Options, optFns ...func(*Options)) *Client { options = options.Copy() resolveDefaultLogger(&options) setResolvedDefaultsMode(&options) resolveRetryer(&options) resolveHTTPClient(&options) resolveHTTPSignerV4(&options) resolveDefaultEndpointConfiguration(&options) for _, fn := range optFns { fn(&options) } client := &Client{ options: options, } return client } type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // 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 // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // 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. 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 } // WithAPIOptions returns a functional option for setting the Client's APIOptions // option. func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { return func(o *Options) { o.APIOptions = append(o.APIOptions, optFns...) } } // WithEndpointResolver returns a functional option for setting the Client's // EndpointResolver option. func WithEndpointResolver(v EndpointResolver) func(*Options) { return func(o *Options) { o.EndpointResolver = v } } type HTTPClient interface { Do(*http.Request) (*http.Response, error) } // Copy creates a clone where the APIOptions list is deep copied. 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) { ctx = middleware.ClearStackValues(ctx) stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) options := c.options.Copy() for _, fn := range optFns { fn(&options) } finalizeRetryMaxAttemptOptions(&options, *c) finalizeClientEndpointResolverOptions(&options) for _, fn := range stackFns { if err := fn(stack, options); err != nil { return nil, metadata, err } } for _, fn := range options.APIOptions { if err := fn(stack); err != nil { return nil, metadata, err } } handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) result, metadata, err = handler.Handle(ctx, params) if err != nil { err = &smithy.OperationError{ ServiceID: ServiceID, OperationName: opID, Err: err, } } return result, metadata, err } type noSmithyDocumentSerde = smithydocument.NoSerde func resolveDefaultLogger(o *Options) { if o.Logger != nil { return } o.Logger = logging.Nop{} } 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, 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) return New(opts, optFns...) } func resolveHTTPClient(o *Options) { var buildable *awshttp.BuildableClient if o.HTTPClient != nil { var ok bool buildable, ok = o.HTTPClient.(*awshttp.BuildableClient) if !ok { return } } else { buildable = 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 } 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) { if cfg.Retryer == nil { return } 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 && cfg.EndpointResolverWithOptions == nil { return } o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver()) } func addClientUserAgent(stack *middleware.Stack) error { return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "sagemakeredge", goModuleVersion)(stack) } func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ CredentialsProvider: o.Credentials, Signer: o.HTTPSignerV4, LogSigning: o.ClientLogMode.IsSigning(), }) return stack.Finalize.Add(mw, middleware.After) } type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error } func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } o.HTTPSignerV4 = newDefaultV4Signer(*o) } func newDefaultV4Signer(o Options) *v4.Signer { return v4.NewSigner(func(so *v4.SignerOptions) { so.Logger = o.Logger so.LogSigning = o.ClientLogMode.IsSigning() }) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { mo := retry.AddRetryMiddlewaresOptions{ Retryer: o.Retryer, LogRetryAttempts: o.ClientLogMode.IsRetries(), } return retry.AddRetryMiddlewares(stack, mo) } // resolves dual-stack endpoint configuration func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { if len(cfg.ConfigSources) == 0 { return nil } value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) if err != nil { return err } if found { o.EndpointOptions.UseDualStackEndpoint = value } return nil } // resolves FIPS endpoint configuration func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { if len(cfg.ConfigSources) == 0 { return nil } value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) if err != nil { return err } if found { o.EndpointOptions.UseFIPSEndpoint = value } return nil } func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) } func addResponseErrorMiddleware(stack *middleware.Stack) error { return awshttp.AddResponseErrorMiddleware(stack) } func addRequestResponseLogging(stack *middleware.Stack, o Options) error { return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ LogRequest: o.ClientLogMode.IsRequest(), LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), LogResponse: o.ClientLogMode.IsResponse(), LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), }, middleware.After) }
435
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package sagemakeredge import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "io/ioutil" "net/http" "strings" "testing" ) func TestClient_resolveRetryOptions(t *testing.T) { nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) { return &http.Response{ StatusCode: 200, Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader("")), }, nil }) cases := map[string]struct { defaultsMode aws.DefaultsMode retryer aws.Retryer retryMaxAttempts int opRetryMaxAttempts *int retryMode aws.RetryMode expectClientRetryMode aws.RetryMode expectClientMaxAttempts int expectOpMaxAttempts int }{ "defaults": { defaultsMode: aws.DefaultsModeStandard, expectClientRetryMode: aws.RetryModeStandard, expectClientMaxAttempts: 3, expectOpMaxAttempts: 3, }, "custom default retry": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, "custom op max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(2), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 2, }, "custom op no change max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(10), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, "custom op 0 max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(0), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, } for name, c := range cases { t.Run(name, func(t *testing.T) { client := NewFromConfig(aws.Config{ DefaultsMode: c.defaultsMode, Retryer: func() func() aws.Retryer { if c.retryer == nil { return nil } return func() aws.Retryer { return c.retryer } }(), HTTPClient: nopClient, RetryMaxAttempts: c.retryMaxAttempts, RetryMode: c.retryMode, }) if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a { t.Errorf("expect %v retry mode, got %v", e, a) } if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a { t.Errorf("expect %v max attempts, got %v", e, a) } _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{}, []func(*Options){ func(o *Options) { if c.opRetryMaxAttempts == nil { return } o.RetryMaxAttempts = *c.opRetryMaxAttempts }, }, func(s *middleware.Stack, o Options) error { s.Initialize.Clear() s.Serialize.Clear() s.Build.Clear() s.Finalize.Clear() s.Deserialize.Clear() if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a { t.Errorf("expect %v op max attempts, got %v", e, a) } return nil }) if err != nil { t.Fatalf("expect no operation error, got %v", err) } }) } }
124