26764 lines
803 KiB
Go
26764 lines
803 KiB
Go
// Code generated by smithy-go-codegen DO NOT EDIT.
|
|
|
|
package sagemaker
|
|
|
|
import (
|
|
"bytes"
|
|
"context"
|
|
"fmt"
|
|
"github.com/aws/aws-sdk-go-v2/service/sagemaker/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"
|
|
"math"
|
|
"path"
|
|
)
|
|
|
|
type awsAwsjson11_serializeOpAddAssociation struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpAddAssociation) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpAddAssociation) 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.(*AddAssociationInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.AddAssociation")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentAddAssociationInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpAddTags struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpAddTags) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpAddTags) 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.(*AddTagsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.AddTags")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentAddTagsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpAssociateTrialComponent struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpAssociateTrialComponent) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpAssociateTrialComponent) 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.(*AssociateTrialComponentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.AssociateTrialComponent")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentAssociateTrialComponentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpBatchDescribeModelPackage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpBatchDescribeModelPackage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpBatchDescribeModelPackage) 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.(*BatchDescribeModelPackageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.BatchDescribeModelPackage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentBatchDescribeModelPackageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateAction struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateAction) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateAction) 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.(*CreateActionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateAction")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateActionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateAlgorithm struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateAlgorithm) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateAlgorithm) 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.(*CreateAlgorithmInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateAlgorithm")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateAlgorithmInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateApp struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateApp) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateApp) 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.(*CreateAppInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateApp")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateAppInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateAppImageConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateAppImageConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateAppImageConfig) 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.(*CreateAppImageConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateAppImageConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateAppImageConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateArtifact struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateArtifact) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateArtifact) 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.(*CreateArtifactInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateArtifact")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateArtifactInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateAutoMLJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateAutoMLJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateAutoMLJob) 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.(*CreateAutoMLJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateAutoMLJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateAutoMLJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateCodeRepository struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateCodeRepository) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateCodeRepository) 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.(*CreateCodeRepositoryInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateCodeRepository")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateCodeRepositoryInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateCompilationJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateCompilationJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateCompilationJob) 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.(*CreateCompilationJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateCompilationJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateCompilationJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateContext struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateContext) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateContext) 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.(*CreateContextInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateContext")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateContextInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateDataQualityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateDataQualityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateDataQualityJobDefinition) 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.(*CreateDataQualityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateDataQualityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateDataQualityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateDeviceFleet struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateDeviceFleet) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateDeviceFleet) 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.(*CreateDeviceFleetInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateDeviceFleet")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateDeviceFleetInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateDomain struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateDomain) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateDomain) 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.(*CreateDomainInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateDomain")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateDomainInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateEdgePackagingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateEdgePackagingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateEdgePackagingJob) 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.(*CreateEdgePackagingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateEdgePackagingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateEdgePackagingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateEndpoint struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateEndpoint) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateEndpoint) 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.(*CreateEndpointInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateEndpoint")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateEndpointInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateEndpointConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateEndpointConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateEndpointConfig) 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.(*CreateEndpointConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateEndpointConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateEndpointConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateExperiment struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateExperiment) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateExperiment) 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.(*CreateExperimentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateExperiment")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateExperimentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateFeatureGroup struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateFeatureGroup) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateFeatureGroup) 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.(*CreateFeatureGroupInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateFeatureGroup")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateFeatureGroupInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateFlowDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateFlowDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateFlowDefinition) 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.(*CreateFlowDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateFlowDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateFlowDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateHumanTaskUi struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateHumanTaskUi) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateHumanTaskUi) 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.(*CreateHumanTaskUiInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateHumanTaskUi")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateHumanTaskUiInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateHyperParameterTuningJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateHyperParameterTuningJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateHyperParameterTuningJob) 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.(*CreateHyperParameterTuningJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateHyperParameterTuningJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateHyperParameterTuningJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateImage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateImage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateImage) 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.(*CreateImageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateImage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateImageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateImageVersion struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateImageVersion) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateImageVersion) 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.(*CreateImageVersionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateImageVersion")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateImageVersionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateLabelingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateLabelingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateLabelingJob) 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.(*CreateLabelingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateLabelingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateLabelingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateModel struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateModel) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateModel) 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.(*CreateModelInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModel")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateModelInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateModelBiasJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateModelBiasJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateModelBiasJobDefinition) 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.(*CreateModelBiasJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelBiasJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateModelBiasJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) 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.(*CreateModelExplainabilityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelExplainabilityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateModelExplainabilityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateModelPackage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateModelPackage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateModelPackage) 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.(*CreateModelPackageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelPackage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateModelPackageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateModelPackageGroup struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateModelPackageGroup) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateModelPackageGroup) 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.(*CreateModelPackageGroupInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelPackageGroup")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateModelPackageGroupInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateModelQualityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateModelQualityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateModelQualityJobDefinition) 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.(*CreateModelQualityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelQualityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateModelQualityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateMonitoringSchedule struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateMonitoringSchedule) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateMonitoringSchedule) 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.(*CreateMonitoringScheduleInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateMonitoringSchedule")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateMonitoringScheduleInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateNotebookInstance struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateNotebookInstance) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateNotebookInstance) 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.(*CreateNotebookInstanceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateNotebookInstance")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateNotebookInstanceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateNotebookInstanceLifecycleConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateNotebookInstanceLifecycleConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateNotebookInstanceLifecycleConfig) 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.(*CreateNotebookInstanceLifecycleConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateNotebookInstanceLifecycleConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateNotebookInstanceLifecycleConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreatePipeline struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreatePipeline) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreatePipeline) 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.(*CreatePipelineInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreatePipeline")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreatePipelineInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreatePresignedDomainUrl struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreatePresignedDomainUrl) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreatePresignedDomainUrl) 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.(*CreatePresignedDomainUrlInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreatePresignedDomainUrl")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreatePresignedDomainUrlInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreatePresignedNotebookInstanceUrl struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreatePresignedNotebookInstanceUrl) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreatePresignedNotebookInstanceUrl) 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.(*CreatePresignedNotebookInstanceUrlInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreatePresignedNotebookInstanceUrl")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreatePresignedNotebookInstanceUrlInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateProcessingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateProcessingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateProcessingJob) 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.(*CreateProcessingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateProcessingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateProcessingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateProject struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateProject) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateProject) 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.(*CreateProjectInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateProject")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateProjectInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateStudioLifecycleConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateStudioLifecycleConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateStudioLifecycleConfig) 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.(*CreateStudioLifecycleConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateStudioLifecycleConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateStudioLifecycleConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateTrainingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateTrainingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateTrainingJob) 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.(*CreateTrainingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateTrainingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateTrainingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateTransformJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateTransformJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateTransformJob) 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.(*CreateTransformJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateTransformJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateTransformJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateTrial struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateTrial) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateTrial) 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.(*CreateTrialInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateTrial")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateTrialInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateTrialComponent struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateTrialComponent) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateTrialComponent) 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.(*CreateTrialComponentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateTrialComponent")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateTrialComponentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateUserProfile struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateUserProfile) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateUserProfile) 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.(*CreateUserProfileInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateUserProfile")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateUserProfileInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateWorkforce struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateWorkforce) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateWorkforce) 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.(*CreateWorkforceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateWorkforce")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateWorkforceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateWorkteam struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateWorkteam) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateWorkteam) 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.(*CreateWorkteamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateWorkteam")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateWorkteamInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteAction struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteAction) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteAction) 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.(*DeleteActionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteAction")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteActionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteAlgorithm struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteAlgorithm) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteAlgorithm) 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.(*DeleteAlgorithmInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteAlgorithm")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteAlgorithmInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteApp struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteApp) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteApp) 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.(*DeleteAppInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteApp")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteAppInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteAppImageConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteAppImageConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteAppImageConfig) 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.(*DeleteAppImageConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteAppImageConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteAppImageConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteArtifact struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteArtifact) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteArtifact) 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.(*DeleteArtifactInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteArtifact")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteArtifactInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteAssociation struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteAssociation) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteAssociation) 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.(*DeleteAssociationInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteAssociation")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteAssociationInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteCodeRepository struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteCodeRepository) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteCodeRepository) 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.(*DeleteCodeRepositoryInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteCodeRepository")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteCodeRepositoryInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteContext struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteContext) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteContext) 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.(*DeleteContextInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteContext")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteContextInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteDataQualityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteDataQualityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteDataQualityJobDefinition) 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.(*DeleteDataQualityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteDataQualityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteDataQualityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteDeviceFleet struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteDeviceFleet) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteDeviceFleet) 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.(*DeleteDeviceFleetInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteDeviceFleet")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteDeviceFleetInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteDomain struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteDomain) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteDomain) 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.(*DeleteDomainInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteDomain")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteDomainInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteEndpoint struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteEndpoint) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteEndpoint) 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.(*DeleteEndpointInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteEndpoint")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteEndpointInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteEndpointConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteEndpointConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteEndpointConfig) 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.(*DeleteEndpointConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteEndpointConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteEndpointConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteExperiment struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteExperiment) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteExperiment) 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.(*DeleteExperimentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteExperiment")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteExperimentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteFeatureGroup struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteFeatureGroup) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteFeatureGroup) 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.(*DeleteFeatureGroupInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteFeatureGroup")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteFeatureGroupInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteFlowDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteFlowDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteFlowDefinition) 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.(*DeleteFlowDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteFlowDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteFlowDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteHumanTaskUi struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteHumanTaskUi) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteHumanTaskUi) 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.(*DeleteHumanTaskUiInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteHumanTaskUi")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteHumanTaskUiInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteImage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteImage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteImage) 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.(*DeleteImageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteImage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteImageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteImageVersion struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteImageVersion) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteImageVersion) 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.(*DeleteImageVersionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteImageVersion")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteImageVersionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteModel struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteModel) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteModel) 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.(*DeleteModelInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteModel")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteModelInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteModelBiasJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteModelBiasJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteModelBiasJobDefinition) 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.(*DeleteModelBiasJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteModelBiasJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteModelBiasJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteModelExplainabilityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteModelExplainabilityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteModelExplainabilityJobDefinition) 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.(*DeleteModelExplainabilityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteModelExplainabilityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteModelExplainabilityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteModelPackage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteModelPackage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteModelPackage) 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.(*DeleteModelPackageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteModelPackage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteModelPackageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteModelPackageGroup struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteModelPackageGroup) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteModelPackageGroup) 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.(*DeleteModelPackageGroupInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteModelPackageGroup")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteModelPackageGroupInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteModelPackageGroupPolicy struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteModelPackageGroupPolicy) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteModelPackageGroupPolicy) 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.(*DeleteModelPackageGroupPolicyInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteModelPackageGroupPolicy")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteModelPackageGroupPolicyInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteModelQualityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteModelQualityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteModelQualityJobDefinition) 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.(*DeleteModelQualityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteModelQualityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteModelQualityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteMonitoringSchedule struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteMonitoringSchedule) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteMonitoringSchedule) 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.(*DeleteMonitoringScheduleInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteMonitoringSchedule")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteMonitoringScheduleInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteNotebookInstance struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteNotebookInstance) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteNotebookInstance) 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.(*DeleteNotebookInstanceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteNotebookInstance")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteNotebookInstanceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteNotebookInstanceLifecycleConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteNotebookInstanceLifecycleConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteNotebookInstanceLifecycleConfig) 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.(*DeleteNotebookInstanceLifecycleConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteNotebookInstanceLifecycleConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteNotebookInstanceLifecycleConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeletePipeline struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeletePipeline) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeletePipeline) 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.(*DeletePipelineInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeletePipeline")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeletePipelineInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteProject struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteProject) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteProject) 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.(*DeleteProjectInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteProject")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteProjectInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteStudioLifecycleConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteStudioLifecycleConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteStudioLifecycleConfig) 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.(*DeleteStudioLifecycleConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteStudioLifecycleConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteStudioLifecycleConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteTags struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteTags) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteTags) 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.(*DeleteTagsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteTags")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteTagsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteTrial struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteTrial) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteTrial) 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.(*DeleteTrialInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteTrial")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteTrialInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteTrialComponent struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteTrialComponent) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteTrialComponent) 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.(*DeleteTrialComponentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteTrialComponent")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteTrialComponentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteUserProfile struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteUserProfile) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteUserProfile) 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.(*DeleteUserProfileInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteUserProfile")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteUserProfileInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteWorkforce struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteWorkforce) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteWorkforce) 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.(*DeleteWorkforceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteWorkforce")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteWorkforceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteWorkteam struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteWorkteam) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteWorkteam) 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.(*DeleteWorkteamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteWorkteam")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteWorkteamInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeregisterDevices struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeregisterDevices) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeregisterDevices) 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.(*DeregisterDevicesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeregisterDevices")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeregisterDevicesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeAction struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeAction) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeAction) 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.(*DescribeActionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeAction")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeActionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeAlgorithm struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeAlgorithm) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeAlgorithm) 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.(*DescribeAlgorithmInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeAlgorithm")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeAlgorithmInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeApp struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeApp) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeApp) 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.(*DescribeAppInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeApp")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeAppInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeAppImageConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeAppImageConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeAppImageConfig) 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.(*DescribeAppImageConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeAppImageConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeAppImageConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeArtifact struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeArtifact) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeArtifact) 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.(*DescribeArtifactInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeArtifact")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeArtifactInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeAutoMLJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeAutoMLJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeAutoMLJob) 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.(*DescribeAutoMLJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeAutoMLJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeAutoMLJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeCodeRepository struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeCodeRepository) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeCodeRepository) 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.(*DescribeCodeRepositoryInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeCodeRepository")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeCodeRepositoryInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeCompilationJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeCompilationJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeCompilationJob) 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.(*DescribeCompilationJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeCompilationJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeCompilationJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeContext struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeContext) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeContext) 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.(*DescribeContextInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeContext")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeContextInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeDataQualityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeDataQualityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeDataQualityJobDefinition) 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.(*DescribeDataQualityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeDataQualityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeDataQualityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeDevice struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeDevice) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeDevice) 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.(*DescribeDeviceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeDevice")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeDeviceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeDeviceFleet struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeDeviceFleet) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeDeviceFleet) 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.(*DescribeDeviceFleetInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeDeviceFleet")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeDeviceFleetInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeDomain struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeDomain) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeDomain) 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.(*DescribeDomainInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeDomain")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeDomainInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeEdgePackagingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeEdgePackagingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeEdgePackagingJob) 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.(*DescribeEdgePackagingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeEdgePackagingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeEdgePackagingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeEndpoint struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeEndpoint) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeEndpoint) 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.(*DescribeEndpointInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeEndpoint")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeEndpointInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeEndpointConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeEndpointConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeEndpointConfig) 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.(*DescribeEndpointConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeEndpointConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeEndpointConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeExperiment struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeExperiment) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeExperiment) 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.(*DescribeExperimentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeExperiment")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeExperimentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeFeatureGroup struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeFeatureGroup) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeFeatureGroup) 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.(*DescribeFeatureGroupInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeFeatureGroup")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeFeatureGroupInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeFlowDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeFlowDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeFlowDefinition) 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.(*DescribeFlowDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeFlowDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeFlowDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeHumanTaskUi struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeHumanTaskUi) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeHumanTaskUi) 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.(*DescribeHumanTaskUiInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeHumanTaskUi")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeHumanTaskUiInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeHyperParameterTuningJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeHyperParameterTuningJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeHyperParameterTuningJob) 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.(*DescribeHyperParameterTuningJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeHyperParameterTuningJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeHyperParameterTuningJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeImage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeImage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeImage) 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.(*DescribeImageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeImage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeImageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeImageVersion struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeImageVersion) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeImageVersion) 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.(*DescribeImageVersionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeImageVersion")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeImageVersionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeLabelingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeLabelingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeLabelingJob) 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.(*DescribeLabelingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeLabelingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeLabelingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeModel struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeModel) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeModel) 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.(*DescribeModelInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeModel")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeModelInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeModelBiasJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeModelBiasJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeModelBiasJobDefinition) 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.(*DescribeModelBiasJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeModelBiasJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeModelBiasJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeModelExplainabilityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeModelExplainabilityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeModelExplainabilityJobDefinition) 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.(*DescribeModelExplainabilityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeModelExplainabilityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeModelExplainabilityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeModelPackage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeModelPackage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeModelPackage) 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.(*DescribeModelPackageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeModelPackage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeModelPackageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeModelPackageGroup struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeModelPackageGroup) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeModelPackageGroup) 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.(*DescribeModelPackageGroupInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeModelPackageGroup")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeModelPackageGroupInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeModelQualityJobDefinition struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeModelQualityJobDefinition) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeModelQualityJobDefinition) 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.(*DescribeModelQualityJobDefinitionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeModelQualityJobDefinition")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeModelQualityJobDefinitionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeMonitoringSchedule struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeMonitoringSchedule) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeMonitoringSchedule) 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.(*DescribeMonitoringScheduleInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeMonitoringSchedule")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeMonitoringScheduleInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeNotebookInstance struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeNotebookInstance) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeNotebookInstance) 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.(*DescribeNotebookInstanceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeNotebookInstance")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeNotebookInstanceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeNotebookInstanceLifecycleConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeNotebookInstanceLifecycleConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeNotebookInstanceLifecycleConfig) 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.(*DescribeNotebookInstanceLifecycleConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeNotebookInstanceLifecycleConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeNotebookInstanceLifecycleConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribePipeline struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribePipeline) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribePipeline) 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.(*DescribePipelineInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribePipeline")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribePipelineInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribePipelineDefinitionForExecution struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribePipelineDefinitionForExecution) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribePipelineDefinitionForExecution) 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.(*DescribePipelineDefinitionForExecutionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribePipelineDefinitionForExecution")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribePipelineDefinitionForExecutionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribePipelineExecution struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribePipelineExecution) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribePipelineExecution) 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.(*DescribePipelineExecutionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribePipelineExecution")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribePipelineExecutionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeProcessingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeProcessingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeProcessingJob) 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.(*DescribeProcessingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeProcessingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeProcessingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeProject struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeProject) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeProject) 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.(*DescribeProjectInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeProject")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeProjectInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeStudioLifecycleConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeStudioLifecycleConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeStudioLifecycleConfig) 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.(*DescribeStudioLifecycleConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeStudioLifecycleConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeStudioLifecycleConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeSubscribedWorkteam struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeSubscribedWorkteam) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeSubscribedWorkteam) 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.(*DescribeSubscribedWorkteamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeSubscribedWorkteam")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeSubscribedWorkteamInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeTrainingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeTrainingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeTrainingJob) 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.(*DescribeTrainingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeTrainingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeTrainingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeTransformJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeTransformJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeTransformJob) 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.(*DescribeTransformJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeTransformJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeTransformJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeTrial struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeTrial) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeTrial) 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.(*DescribeTrialInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeTrial")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeTrialInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeTrialComponent struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeTrialComponent) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeTrialComponent) 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.(*DescribeTrialComponentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeTrialComponent")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeTrialComponentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeUserProfile struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeUserProfile) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeUserProfile) 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.(*DescribeUserProfileInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeUserProfile")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeUserProfileInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeWorkforce struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeWorkforce) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeWorkforce) 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.(*DescribeWorkforceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeWorkforce")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeWorkforceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeWorkteam struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeWorkteam) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeWorkteam) 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.(*DescribeWorkteamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeWorkteam")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeWorkteamInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDisableSagemakerServicecatalogPortfolio struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDisableSagemakerServicecatalogPortfolio) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDisableSagemakerServicecatalogPortfolio) 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.(*DisableSagemakerServicecatalogPortfolioInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DisableSagemakerServicecatalogPortfolio")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDisableSagemakerServicecatalogPortfolioInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDisassociateTrialComponent struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDisassociateTrialComponent) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDisassociateTrialComponent) 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.(*DisassociateTrialComponentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DisassociateTrialComponent")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDisassociateTrialComponentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpEnableSagemakerServicecatalogPortfolio struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpEnableSagemakerServicecatalogPortfolio) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpEnableSagemakerServicecatalogPortfolio) 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.(*EnableSagemakerServicecatalogPortfolioInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.EnableSagemakerServicecatalogPortfolio")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentEnableSagemakerServicecatalogPortfolioInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpGetDeviceFleetReport struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpGetDeviceFleetReport) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpGetDeviceFleetReport) 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.(*GetDeviceFleetReportInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.GetDeviceFleetReport")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentGetDeviceFleetReportInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpGetModelPackageGroupPolicy struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpGetModelPackageGroupPolicy) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpGetModelPackageGroupPolicy) 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.(*GetModelPackageGroupPolicyInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.GetModelPackageGroupPolicy")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentGetModelPackageGroupPolicyInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpGetSagemakerServicecatalogPortfolioStatus struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpGetSagemakerServicecatalogPortfolioStatus) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpGetSagemakerServicecatalogPortfolioStatus) 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.(*GetSagemakerServicecatalogPortfolioStatusInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.GetSagemakerServicecatalogPortfolioStatus")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentGetSagemakerServicecatalogPortfolioStatusInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpGetSearchSuggestions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpGetSearchSuggestions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpGetSearchSuggestions) 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.(*GetSearchSuggestionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.GetSearchSuggestions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentGetSearchSuggestionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListActions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListActions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListActions) 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.(*ListActionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListActions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListActionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListAlgorithms struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListAlgorithms) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListAlgorithms) 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.(*ListAlgorithmsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListAlgorithms")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListAlgorithmsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListAppImageConfigs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListAppImageConfigs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListAppImageConfigs) 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.(*ListAppImageConfigsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListAppImageConfigs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListAppImageConfigsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListApps struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListApps) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListApps) 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.(*ListAppsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListApps")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListAppsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListArtifacts struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListArtifacts) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListArtifacts) 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.(*ListArtifactsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListArtifacts")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListArtifactsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListAssociations struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListAssociations) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListAssociations) 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.(*ListAssociationsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListAssociations")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListAssociationsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListAutoMLJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListAutoMLJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListAutoMLJobs) 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.(*ListAutoMLJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListAutoMLJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListAutoMLJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListCandidatesForAutoMLJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListCandidatesForAutoMLJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListCandidatesForAutoMLJob) 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.(*ListCandidatesForAutoMLJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListCandidatesForAutoMLJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListCandidatesForAutoMLJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListCodeRepositories struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListCodeRepositories) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListCodeRepositories) 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.(*ListCodeRepositoriesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListCodeRepositories")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListCodeRepositoriesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListCompilationJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListCompilationJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListCompilationJobs) 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.(*ListCompilationJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListCompilationJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListCompilationJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListContexts struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListContexts) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListContexts) 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.(*ListContextsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListContexts")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListContextsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListDataQualityJobDefinitions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListDataQualityJobDefinitions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListDataQualityJobDefinitions) 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.(*ListDataQualityJobDefinitionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListDataQualityJobDefinitions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListDataQualityJobDefinitionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListDeviceFleets struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListDeviceFleets) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListDeviceFleets) 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.(*ListDeviceFleetsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListDeviceFleets")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListDeviceFleetsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListDevices struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListDevices) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListDevices) 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.(*ListDevicesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListDevices")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListDevicesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListDomains struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListDomains) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListDomains) 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.(*ListDomainsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListDomains")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListDomainsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListEdgePackagingJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListEdgePackagingJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListEdgePackagingJobs) 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.(*ListEdgePackagingJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListEdgePackagingJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListEdgePackagingJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListEndpointConfigs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListEndpointConfigs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListEndpointConfigs) 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.(*ListEndpointConfigsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListEndpointConfigs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListEndpointConfigsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListEndpoints struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListEndpoints) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListEndpoints) 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.(*ListEndpointsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListEndpoints")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListEndpointsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListExperiments struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListExperiments) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListExperiments) 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.(*ListExperimentsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListExperiments")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListExperimentsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListFeatureGroups struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListFeatureGroups) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListFeatureGroups) 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.(*ListFeatureGroupsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListFeatureGroups")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListFeatureGroupsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListFlowDefinitions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListFlowDefinitions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListFlowDefinitions) 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.(*ListFlowDefinitionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListFlowDefinitions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListFlowDefinitionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListHumanTaskUis struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListHumanTaskUis) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListHumanTaskUis) 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.(*ListHumanTaskUisInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListHumanTaskUis")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListHumanTaskUisInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListHyperParameterTuningJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListHyperParameterTuningJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListHyperParameterTuningJobs) 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.(*ListHyperParameterTuningJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListHyperParameterTuningJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListHyperParameterTuningJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListImages struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListImages) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListImages) 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.(*ListImagesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListImages")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListImagesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListImageVersions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListImageVersions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListImageVersions) 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.(*ListImageVersionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListImageVersions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListImageVersionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListLabelingJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListLabelingJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListLabelingJobs) 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.(*ListLabelingJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListLabelingJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListLabelingJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListLabelingJobsForWorkteam struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListLabelingJobsForWorkteam) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListLabelingJobsForWorkteam) 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.(*ListLabelingJobsForWorkteamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListLabelingJobsForWorkteam")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListLabelingJobsForWorkteamInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListModelBiasJobDefinitions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListModelBiasJobDefinitions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListModelBiasJobDefinitions) 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.(*ListModelBiasJobDefinitionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelBiasJobDefinitions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListModelBiasJobDefinitionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) 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.(*ListModelExplainabilityJobDefinitionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelExplainabilityJobDefinitions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListModelExplainabilityJobDefinitionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListModelPackageGroups struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListModelPackageGroups) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListModelPackageGroups) 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.(*ListModelPackageGroupsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelPackageGroups")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListModelPackageGroupsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListModelPackages struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListModelPackages) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListModelPackages) 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.(*ListModelPackagesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelPackages")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListModelPackagesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListModelQualityJobDefinitions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListModelQualityJobDefinitions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListModelQualityJobDefinitions) 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.(*ListModelQualityJobDefinitionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelQualityJobDefinitions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListModelQualityJobDefinitionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListModels struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListModels) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListModels) 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.(*ListModelsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModels")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListModelsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListMonitoringExecutions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListMonitoringExecutions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListMonitoringExecutions) 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.(*ListMonitoringExecutionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListMonitoringExecutions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListMonitoringExecutionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListMonitoringSchedules struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListMonitoringSchedules) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListMonitoringSchedules) 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.(*ListMonitoringSchedulesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListMonitoringSchedules")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListMonitoringSchedulesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListNotebookInstanceLifecycleConfigs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListNotebookInstanceLifecycleConfigs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListNotebookInstanceLifecycleConfigs) 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.(*ListNotebookInstanceLifecycleConfigsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListNotebookInstanceLifecycleConfigs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListNotebookInstanceLifecycleConfigsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListNotebookInstances struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListNotebookInstances) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListNotebookInstances) 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.(*ListNotebookInstancesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListNotebookInstances")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListNotebookInstancesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListPipelineExecutions struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListPipelineExecutions) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListPipelineExecutions) 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.(*ListPipelineExecutionsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListPipelineExecutions")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListPipelineExecutionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListPipelineExecutionSteps struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListPipelineExecutionSteps) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListPipelineExecutionSteps) 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.(*ListPipelineExecutionStepsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListPipelineExecutionSteps")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListPipelineExecutionStepsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListPipelineParametersForExecution struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListPipelineParametersForExecution) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListPipelineParametersForExecution) 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.(*ListPipelineParametersForExecutionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListPipelineParametersForExecution")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListPipelineParametersForExecutionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListPipelines struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListPipelines) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListPipelines) 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.(*ListPipelinesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListPipelines")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListPipelinesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListProcessingJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListProcessingJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListProcessingJobs) 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.(*ListProcessingJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListProcessingJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListProcessingJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListProjects struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListProjects) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListProjects) 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.(*ListProjectsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListProjects")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListProjectsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListStudioLifecycleConfigs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListStudioLifecycleConfigs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListStudioLifecycleConfigs) 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.(*ListStudioLifecycleConfigsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListStudioLifecycleConfigs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListStudioLifecycleConfigsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListSubscribedWorkteams struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListSubscribedWorkteams) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListSubscribedWorkteams) 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.(*ListSubscribedWorkteamsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListSubscribedWorkteams")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListSubscribedWorkteamsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListTags struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListTags) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListTags) 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.(*ListTagsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListTags")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListTagsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListTrainingJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListTrainingJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListTrainingJobs) 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.(*ListTrainingJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListTrainingJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListTrainingJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListTrainingJobsForHyperParameterTuningJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListTrainingJobsForHyperParameterTuningJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListTrainingJobsForHyperParameterTuningJob) 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.(*ListTrainingJobsForHyperParameterTuningJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListTrainingJobsForHyperParameterTuningJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListTrainingJobsForHyperParameterTuningJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListTransformJobs struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListTransformJobs) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListTransformJobs) 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.(*ListTransformJobsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListTransformJobs")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListTransformJobsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListTrialComponents struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListTrialComponents) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListTrialComponents) 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.(*ListTrialComponentsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListTrialComponents")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListTrialComponentsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListTrials struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListTrials) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListTrials) 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.(*ListTrialsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListTrials")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListTrialsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListUserProfiles struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListUserProfiles) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListUserProfiles) 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.(*ListUserProfilesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListUserProfiles")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListUserProfilesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListWorkforces struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListWorkforces) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListWorkforces) 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.(*ListWorkforcesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListWorkforces")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListWorkforcesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListWorkteams struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListWorkteams) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListWorkteams) 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.(*ListWorkteamsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListWorkteams")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListWorkteamsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpPutModelPackageGroupPolicy struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpPutModelPackageGroupPolicy) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpPutModelPackageGroupPolicy) 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.(*PutModelPackageGroupPolicyInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.PutModelPackageGroupPolicy")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentPutModelPackageGroupPolicyInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpRegisterDevices struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpRegisterDevices) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpRegisterDevices) 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.(*RegisterDevicesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.RegisterDevices")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentRegisterDevicesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpRenderUiTemplate struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpRenderUiTemplate) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpRenderUiTemplate) 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.(*RenderUiTemplateInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.RenderUiTemplate")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentRenderUiTemplateInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpRetryPipelineExecution struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpRetryPipelineExecution) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpRetryPipelineExecution) 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.(*RetryPipelineExecutionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.RetryPipelineExecution")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentRetryPipelineExecutionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpSearch struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpSearch) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpSearch) 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.(*SearchInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.Search")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentSearchInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpSendPipelineExecutionStepFailure struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpSendPipelineExecutionStepFailure) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpSendPipelineExecutionStepFailure) 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.(*SendPipelineExecutionStepFailureInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.SendPipelineExecutionStepFailure")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentSendPipelineExecutionStepFailureInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpSendPipelineExecutionStepSuccess struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpSendPipelineExecutionStepSuccess) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpSendPipelineExecutionStepSuccess) 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.(*SendPipelineExecutionStepSuccessInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.SendPipelineExecutionStepSuccess")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentSendPipelineExecutionStepSuccessInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStartMonitoringSchedule struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStartMonitoringSchedule) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStartMonitoringSchedule) 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.(*StartMonitoringScheduleInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StartMonitoringSchedule")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStartMonitoringScheduleInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStartNotebookInstance struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStartNotebookInstance) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStartNotebookInstance) 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.(*StartNotebookInstanceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StartNotebookInstance")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStartNotebookInstanceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStartPipelineExecution struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStartPipelineExecution) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStartPipelineExecution) 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.(*StartPipelineExecutionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StartPipelineExecution")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStartPipelineExecutionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopAutoMLJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopAutoMLJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopAutoMLJob) 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.(*StopAutoMLJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopAutoMLJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopAutoMLJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopCompilationJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopCompilationJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopCompilationJob) 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.(*StopCompilationJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopCompilationJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopCompilationJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopEdgePackagingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopEdgePackagingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopEdgePackagingJob) 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.(*StopEdgePackagingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopEdgePackagingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopEdgePackagingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopHyperParameterTuningJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopHyperParameterTuningJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopHyperParameterTuningJob) 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.(*StopHyperParameterTuningJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopHyperParameterTuningJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopHyperParameterTuningJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopLabelingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopLabelingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopLabelingJob) 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.(*StopLabelingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopLabelingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopLabelingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopMonitoringSchedule struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopMonitoringSchedule) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopMonitoringSchedule) 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.(*StopMonitoringScheduleInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopMonitoringSchedule")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopMonitoringScheduleInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopNotebookInstance struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopNotebookInstance) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopNotebookInstance) 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.(*StopNotebookInstanceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopNotebookInstance")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopNotebookInstanceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopPipelineExecution struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopPipelineExecution) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopPipelineExecution) 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.(*StopPipelineExecutionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopPipelineExecution")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopPipelineExecutionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopProcessingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopProcessingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopProcessingJob) 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.(*StopProcessingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopProcessingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopProcessingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopTrainingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopTrainingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopTrainingJob) 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.(*StopTrainingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopTrainingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopTrainingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopTransformJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopTransformJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopTransformJob) 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.(*StopTransformJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopTransformJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopTransformJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateAction struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateAction) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateAction) 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.(*UpdateActionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateAction")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateActionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateAppImageConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateAppImageConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateAppImageConfig) 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.(*UpdateAppImageConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateAppImageConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateAppImageConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateArtifact struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateArtifact) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateArtifact) 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.(*UpdateArtifactInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateArtifact")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateArtifactInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateCodeRepository struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateCodeRepository) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateCodeRepository) 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.(*UpdateCodeRepositoryInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateCodeRepository")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateCodeRepositoryInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateContext struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateContext) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateContext) 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.(*UpdateContextInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateContext")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateContextInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateDeviceFleet struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateDeviceFleet) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateDeviceFleet) 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.(*UpdateDeviceFleetInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateDeviceFleet")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateDeviceFleetInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateDevices struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateDevices) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateDevices) 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.(*UpdateDevicesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateDevices")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateDevicesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateDomain struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateDomain) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateDomain) 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.(*UpdateDomainInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateDomain")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateDomainInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateEndpoint struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateEndpoint) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateEndpoint) 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.(*UpdateEndpointInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateEndpoint")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateEndpointInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateEndpointWeightsAndCapacities struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateEndpointWeightsAndCapacities) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateEndpointWeightsAndCapacities) 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.(*UpdateEndpointWeightsAndCapacitiesInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateEndpointWeightsAndCapacities")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateEndpointWeightsAndCapacitiesInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateExperiment struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateExperiment) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateExperiment) 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.(*UpdateExperimentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateExperiment")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateExperimentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateImage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateImage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateImage) 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.(*UpdateImageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateImage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateImageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateModelPackage struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateModelPackage) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateModelPackage) 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.(*UpdateModelPackageInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateModelPackage")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateModelPackageInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateMonitoringSchedule struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateMonitoringSchedule) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateMonitoringSchedule) 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.(*UpdateMonitoringScheduleInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateMonitoringSchedule")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateMonitoringScheduleInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateNotebookInstance struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateNotebookInstance) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateNotebookInstance) 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.(*UpdateNotebookInstanceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateNotebookInstance")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateNotebookInstanceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateNotebookInstanceLifecycleConfig struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateNotebookInstanceLifecycleConfig) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateNotebookInstanceLifecycleConfig) 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.(*UpdateNotebookInstanceLifecycleConfigInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateNotebookInstanceLifecycleConfig")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateNotebookInstanceLifecycleConfigInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdatePipeline struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdatePipeline) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdatePipeline) 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.(*UpdatePipelineInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdatePipeline")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdatePipelineInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdatePipelineExecution struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdatePipelineExecution) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdatePipelineExecution) 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.(*UpdatePipelineExecutionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdatePipelineExecution")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdatePipelineExecutionInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateProject struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateProject) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateProject) 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.(*UpdateProjectInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateProject")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateProjectInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateTrainingJob struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateTrainingJob) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateTrainingJob) 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.(*UpdateTrainingJobInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateTrainingJob")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateTrainingJobInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateTrial struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateTrial) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateTrial) 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.(*UpdateTrialInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateTrial")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateTrialInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateTrialComponent struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateTrialComponent) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateTrialComponent) 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.(*UpdateTrialComponentInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateTrialComponent")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateTrialComponentInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateUserProfile struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateUserProfile) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateUserProfile) 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.(*UpdateUserProfileInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateUserProfile")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateUserProfileInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateWorkforce struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateWorkforce) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateWorkforce) 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.(*UpdateWorkforceInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateWorkforce")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateWorkforceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateWorkteam struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateWorkteam) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateWorkteam) 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.(*UpdateWorkteamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateWorkteam")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateWorkteamInput(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 = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
func awsAwsjson11_serializeDocumentActionSource(v *types.ActionSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SourceId != nil {
|
|
ok := object.Key("SourceId")
|
|
ok.String(*v.SourceId)
|
|
}
|
|
|
|
if v.SourceType != nil {
|
|
ok := object.Key("SourceType")
|
|
ok.String(*v.SourceType)
|
|
}
|
|
|
|
if v.SourceUri != nil {
|
|
ok := object.Key("SourceUri")
|
|
ok.String(*v.SourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAdditionalCodeRepositoryNamesOrUrls(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAlarm(v *types.Alarm, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlarmName != nil {
|
|
ok := object.Key("AlarmName")
|
|
ok.String(*v.AlarmName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAlarmList(v []types.Alarm, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentAlarm(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAlgorithmSpecification(v *types.AlgorithmSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmName != nil {
|
|
ok := object.Key("AlgorithmName")
|
|
ok.String(*v.AlgorithmName)
|
|
}
|
|
|
|
if v.EnableSageMakerMetricsTimeSeries {
|
|
ok := object.Key("EnableSageMakerMetricsTimeSeries")
|
|
ok.Boolean(v.EnableSageMakerMetricsTimeSeries)
|
|
}
|
|
|
|
if v.MetricDefinitions != nil {
|
|
ok := object.Key("MetricDefinitions")
|
|
if err := awsAwsjson11_serializeDocumentMetricDefinitionList(v.MetricDefinitions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingImage != nil {
|
|
ok := object.Key("TrainingImage")
|
|
ok.String(*v.TrainingImage)
|
|
}
|
|
|
|
if len(v.TrainingInputMode) > 0 {
|
|
ok := object.Key("TrainingInputMode")
|
|
ok.String(string(v.TrainingInputMode))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAlgorithmValidationProfile(v *types.AlgorithmValidationProfile, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProfileName != nil {
|
|
ok := object.Key("ProfileName")
|
|
ok.String(*v.ProfileName)
|
|
}
|
|
|
|
if v.TrainingJobDefinition != nil {
|
|
ok := object.Key("TrainingJobDefinition")
|
|
if err := awsAwsjson11_serializeDocumentTrainingJobDefinition(v.TrainingJobDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TransformJobDefinition != nil {
|
|
ok := object.Key("TransformJobDefinition")
|
|
if err := awsAwsjson11_serializeDocumentTransformJobDefinition(v.TransformJobDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAlgorithmValidationProfiles(v []types.AlgorithmValidationProfile, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentAlgorithmValidationProfile(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAlgorithmValidationSpecification(v *types.AlgorithmValidationSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ValidationProfiles != nil {
|
|
ok := object.Key("ValidationProfiles")
|
|
if err := awsAwsjson11_serializeDocumentAlgorithmValidationProfiles(v.ValidationProfiles, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ValidationRole != nil {
|
|
ok := object.Key("ValidationRole")
|
|
ok.String(*v.ValidationRole)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAnnotationConsolidationConfig(v *types.AnnotationConsolidationConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AnnotationConsolidationLambdaArn != nil {
|
|
ok := object.Key("AnnotationConsolidationLambdaArn")
|
|
ok.String(*v.AnnotationConsolidationLambdaArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAppSpecification(v *types.AppSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContainerArguments != nil {
|
|
ok := object.Key("ContainerArguments")
|
|
if err := awsAwsjson11_serializeDocumentContainerArguments(v.ContainerArguments, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ContainerEntrypoint != nil {
|
|
ok := object.Key("ContainerEntrypoint")
|
|
if err := awsAwsjson11_serializeDocumentContainerEntrypoint(v.ContainerEntrypoint, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ImageUri != nil {
|
|
ok := object.Key("ImageUri")
|
|
ok.String(*v.ImageUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentArtifactSource(v *types.ArtifactSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SourceTypes != nil {
|
|
ok := object.Key("SourceTypes")
|
|
if err := awsAwsjson11_serializeDocumentArtifactSourceTypes(v.SourceTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SourceUri != nil {
|
|
ok := object.Key("SourceUri")
|
|
ok.String(*v.SourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentArtifactSourceType(v *types.ArtifactSourceType, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.SourceIdType) > 0 {
|
|
ok := object.Key("SourceIdType")
|
|
ok.String(string(v.SourceIdType))
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.String(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentArtifactSourceTypes(v []types.ArtifactSourceType, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentArtifactSourceType(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAsyncInferenceClientConfig(v *types.AsyncInferenceClientConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxConcurrentInvocationsPerInstance != nil {
|
|
ok := object.Key("MaxConcurrentInvocationsPerInstance")
|
|
ok.Integer(*v.MaxConcurrentInvocationsPerInstance)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAsyncInferenceConfig(v *types.AsyncInferenceConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientConfig != nil {
|
|
ok := object.Key("ClientConfig")
|
|
if err := awsAwsjson11_serializeDocumentAsyncInferenceClientConfig(v.ClientConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputConfig != nil {
|
|
ok := object.Key("OutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentAsyncInferenceOutputConfig(v.OutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAsyncInferenceNotificationConfig(v *types.AsyncInferenceNotificationConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ErrorTopic != nil {
|
|
ok := object.Key("ErrorTopic")
|
|
ok.String(*v.ErrorTopic)
|
|
}
|
|
|
|
if v.SuccessTopic != nil {
|
|
ok := object.Key("SuccessTopic")
|
|
ok.String(*v.SuccessTopic)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAsyncInferenceOutputConfig(v *types.AsyncInferenceOutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.NotificationConfig != nil {
|
|
ok := object.Key("NotificationConfig")
|
|
if err := awsAwsjson11_serializeDocumentAsyncInferenceNotificationConfig(v.NotificationConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAthenaDatasetDefinition(v *types.AthenaDatasetDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Catalog != nil {
|
|
ok := object.Key("Catalog")
|
|
ok.String(*v.Catalog)
|
|
}
|
|
|
|
if v.Database != nil {
|
|
ok := object.Key("Database")
|
|
ok.String(*v.Database)
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if len(v.OutputCompression) > 0 {
|
|
ok := object.Key("OutputCompression")
|
|
ok.String(string(v.OutputCompression))
|
|
}
|
|
|
|
if len(v.OutputFormat) > 0 {
|
|
ok := object.Key("OutputFormat")
|
|
ok.String(string(v.OutputFormat))
|
|
}
|
|
|
|
if v.OutputS3Uri != nil {
|
|
ok := object.Key("OutputS3Uri")
|
|
ok.String(*v.OutputS3Uri)
|
|
}
|
|
|
|
if v.QueryString != nil {
|
|
ok := object.Key("QueryString")
|
|
ok.String(*v.QueryString)
|
|
}
|
|
|
|
if v.WorkGroup != nil {
|
|
ok := object.Key("WorkGroup")
|
|
ok.String(*v.WorkGroup)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAttributeNames(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLChannel(v *types.AutoMLChannel, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.CompressionType) > 0 {
|
|
ok := object.Key("CompressionType")
|
|
ok.String(string(v.CompressionType))
|
|
}
|
|
|
|
if v.DataSource != nil {
|
|
ok := object.Key("DataSource")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLDataSource(v.DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TargetAttributeName != nil {
|
|
ok := object.Key("TargetAttributeName")
|
|
ok.String(*v.TargetAttributeName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLDataSource(v *types.AutoMLDataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.S3DataSource != nil {
|
|
ok := object.Key("S3DataSource")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLS3DataSource(v.S3DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLInputDataConfig(v []types.AutoMLChannel, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentAutoMLChannel(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLJobCompletionCriteria(v *types.AutoMLJobCompletionCriteria, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxAutoMLJobRuntimeInSeconds != nil {
|
|
ok := object.Key("MaxAutoMLJobRuntimeInSeconds")
|
|
ok.Integer(*v.MaxAutoMLJobRuntimeInSeconds)
|
|
}
|
|
|
|
if v.MaxCandidates != nil {
|
|
ok := object.Key("MaxCandidates")
|
|
ok.Integer(*v.MaxCandidates)
|
|
}
|
|
|
|
if v.MaxRuntimePerTrainingJobInSeconds != nil {
|
|
ok := object.Key("MaxRuntimePerTrainingJobInSeconds")
|
|
ok.Integer(*v.MaxRuntimePerTrainingJobInSeconds)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLJobConfig(v *types.AutoMLJobConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CompletionCriteria != nil {
|
|
ok := object.Key("CompletionCriteria")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLJobCompletionCriteria(v.CompletionCriteria, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SecurityConfig != nil {
|
|
ok := object.Key("SecurityConfig")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLSecurityConfig(v.SecurityConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLJobObjective(v *types.AutoMLJobObjective, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.MetricName) > 0 {
|
|
ok := object.Key("MetricName")
|
|
ok.String(string(v.MetricName))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLOutputDataConfig(v *types.AutoMLOutputDataConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLS3DataSource(v *types.AutoMLS3DataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.S3DataType) > 0 {
|
|
ok := object.Key("S3DataType")
|
|
ok.String(string(v.S3DataType))
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoMLSecurityConfig(v *types.AutoMLSecurityConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EnableInterContainerTrafficEncryption {
|
|
ok := object.Key("EnableInterContainerTrafficEncryption")
|
|
ok.Boolean(v.EnableInterContainerTrafficEncryption)
|
|
}
|
|
|
|
if v.VolumeKmsKeyId != nil {
|
|
ok := object.Key("VolumeKmsKeyId")
|
|
ok.String(*v.VolumeKmsKeyId)
|
|
}
|
|
|
|
if v.VpcConfig != nil {
|
|
ok := object.Key("VpcConfig")
|
|
if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentAutoRollbackConfig(v *types.AutoRollbackConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Alarms != nil {
|
|
ok := object.Key("Alarms")
|
|
if err := awsAwsjson11_serializeDocumentAlarmList(v.Alarms, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentBias(v *types.Bias, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Report != nil {
|
|
ok := object.Key("Report")
|
|
if err := awsAwsjson11_serializeDocumentMetricsSource(v.Report, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentBlueGreenUpdatePolicy(v *types.BlueGreenUpdatePolicy, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaximumExecutionTimeoutInSeconds != nil {
|
|
ok := object.Key("MaximumExecutionTimeoutInSeconds")
|
|
ok.Integer(*v.MaximumExecutionTimeoutInSeconds)
|
|
}
|
|
|
|
if v.TerminationWaitInSeconds != nil {
|
|
ok := object.Key("TerminationWaitInSeconds")
|
|
ok.Integer(*v.TerminationWaitInSeconds)
|
|
}
|
|
|
|
if v.TrafficRoutingConfiguration != nil {
|
|
ok := object.Key("TrafficRoutingConfiguration")
|
|
if err := awsAwsjson11_serializeDocumentTrafficRoutingConfig(v.TrafficRoutingConfiguration, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCapacitySize(v *types.CapacitySize, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.Type) > 0 {
|
|
ok := object.Key("Type")
|
|
ok.String(string(v.Type))
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.Integer(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCaptureContentTypeHeader(v *types.CaptureContentTypeHeader, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CsvContentTypes != nil {
|
|
ok := object.Key("CsvContentTypes")
|
|
if err := awsAwsjson11_serializeDocumentCsvContentTypes(v.CsvContentTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.JsonContentTypes != nil {
|
|
ok := object.Key("JsonContentTypes")
|
|
if err := awsAwsjson11_serializeDocumentJsonContentTypes(v.JsonContentTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCaptureOption(v *types.CaptureOption, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.CaptureMode) > 0 {
|
|
ok := object.Key("CaptureMode")
|
|
ok.String(string(v.CaptureMode))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCaptureOptionList(v []types.CaptureOption, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentCaptureOption(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCategoricalParameterRange(v *types.CategoricalParameterRange, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if v.Values != nil {
|
|
ok := object.Key("Values")
|
|
if err := awsAwsjson11_serializeDocumentParameterValues(v.Values, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCategoricalParameterRanges(v []types.CategoricalParameterRange, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentCategoricalParameterRange(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCategoricalParameterRangeSpecification(v *types.CategoricalParameterRangeSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Values != nil {
|
|
ok := object.Key("Values")
|
|
if err := awsAwsjson11_serializeDocumentParameterValues(v.Values, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentChannel(v *types.Channel, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ChannelName != nil {
|
|
ok := object.Key("ChannelName")
|
|
ok.String(*v.ChannelName)
|
|
}
|
|
|
|
if len(v.CompressionType) > 0 {
|
|
ok := object.Key("CompressionType")
|
|
ok.String(string(v.CompressionType))
|
|
}
|
|
|
|
if v.ContentType != nil {
|
|
ok := object.Key("ContentType")
|
|
ok.String(*v.ContentType)
|
|
}
|
|
|
|
if v.DataSource != nil {
|
|
ok := object.Key("DataSource")
|
|
if err := awsAwsjson11_serializeDocumentDataSource(v.DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.InputMode) > 0 {
|
|
ok := object.Key("InputMode")
|
|
ok.String(string(v.InputMode))
|
|
}
|
|
|
|
if len(v.RecordWrapperType) > 0 {
|
|
ok := object.Key("RecordWrapperType")
|
|
ok.String(string(v.RecordWrapperType))
|
|
}
|
|
|
|
if v.ShuffleConfig != nil {
|
|
ok := object.Key("ShuffleConfig")
|
|
if err := awsAwsjson11_serializeDocumentShuffleConfig(v.ShuffleConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentChannelSpecification(v *types.ChannelSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.IsRequired {
|
|
ok := object.Key("IsRequired")
|
|
ok.Boolean(v.IsRequired)
|
|
}
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if v.SupportedCompressionTypes != nil {
|
|
ok := object.Key("SupportedCompressionTypes")
|
|
if err := awsAwsjson11_serializeDocumentCompressionTypes(v.SupportedCompressionTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedContentTypes != nil {
|
|
ok := object.Key("SupportedContentTypes")
|
|
if err := awsAwsjson11_serializeDocumentContentTypes(v.SupportedContentTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedInputModes != nil {
|
|
ok := object.Key("SupportedInputModes")
|
|
if err := awsAwsjson11_serializeDocumentInputModes(v.SupportedInputModes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentChannelSpecifications(v []types.ChannelSpecification, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentChannelSpecification(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCheckpointConfig(v *types.CheckpointConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCidrs(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCognitoConfig(v *types.CognitoConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientId != nil {
|
|
ok := object.Key("ClientId")
|
|
ok.String(*v.ClientId)
|
|
}
|
|
|
|
if v.UserPool != nil {
|
|
ok := object.Key("UserPool")
|
|
ok.String(*v.UserPool)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCognitoMemberDefinition(v *types.CognitoMemberDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientId != nil {
|
|
ok := object.Key("ClientId")
|
|
ok.String(*v.ClientId)
|
|
}
|
|
|
|
if v.UserGroup != nil {
|
|
ok := object.Key("UserGroup")
|
|
ok.String(*v.UserGroup)
|
|
}
|
|
|
|
if v.UserPool != nil {
|
|
ok := object.Key("UserPool")
|
|
ok.String(*v.UserPool)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCollectionConfiguration(v *types.CollectionConfiguration, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CollectionName != nil {
|
|
ok := object.Key("CollectionName")
|
|
ok.String(*v.CollectionName)
|
|
}
|
|
|
|
if v.CollectionParameters != nil {
|
|
ok := object.Key("CollectionParameters")
|
|
if err := awsAwsjson11_serializeDocumentCollectionParameters(v.CollectionParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCollectionConfigurations(v []types.CollectionConfiguration, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentCollectionConfiguration(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCollectionParameters(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCompressionTypes(v []types.CompressionType, 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 awsAwsjson11_serializeDocumentContainerArguments(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentContainerDefinition(v *types.ContainerDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContainerHostname != nil {
|
|
ok := object.Key("ContainerHostname")
|
|
ok.String(*v.ContainerHostname)
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Image != nil {
|
|
ok := object.Key("Image")
|
|
ok.String(*v.Image)
|
|
}
|
|
|
|
if v.ImageConfig != nil {
|
|
ok := object.Key("ImageConfig")
|
|
if err := awsAwsjson11_serializeDocumentImageConfig(v.ImageConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.Mode) > 0 {
|
|
ok := object.Key("Mode")
|
|
ok.String(string(v.Mode))
|
|
}
|
|
|
|
if v.ModelDataUrl != nil {
|
|
ok := object.Key("ModelDataUrl")
|
|
ok.String(*v.ModelDataUrl)
|
|
}
|
|
|
|
if v.ModelPackageName != nil {
|
|
ok := object.Key("ModelPackageName")
|
|
ok.String(*v.ModelPackageName)
|
|
}
|
|
|
|
if v.MultiModelConfig != nil {
|
|
ok := object.Key("MultiModelConfig")
|
|
if err := awsAwsjson11_serializeDocumentMultiModelConfig(v.MultiModelConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentContainerDefinitionList(v []types.ContainerDefinition, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentContainerDefinition(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentContainerEntrypoint(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_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 awsAwsjson11_serializeDocumentContentTypes(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentContextSource(v *types.ContextSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SourceId != nil {
|
|
ok := object.Key("SourceId")
|
|
ok.String(*v.SourceId)
|
|
}
|
|
|
|
if v.SourceType != nil {
|
|
ok := object.Key("SourceType")
|
|
ok.String(*v.SourceType)
|
|
}
|
|
|
|
if v.SourceUri != nil {
|
|
ok := object.Key("SourceUri")
|
|
ok.String(*v.SourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentContinuousParameterRange(v *types.ContinuousParameterRange, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxValue != nil {
|
|
ok := object.Key("MaxValue")
|
|
ok.String(*v.MaxValue)
|
|
}
|
|
|
|
if v.MinValue != nil {
|
|
ok := object.Key("MinValue")
|
|
ok.String(*v.MinValue)
|
|
}
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if len(v.ScalingType) > 0 {
|
|
ok := object.Key("ScalingType")
|
|
ok.String(string(v.ScalingType))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentContinuousParameterRanges(v []types.ContinuousParameterRange, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentContinuousParameterRange(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentContinuousParameterRangeSpecification(v *types.ContinuousParameterRangeSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxValue != nil {
|
|
ok := object.Key("MaxValue")
|
|
ok.String(*v.MaxValue)
|
|
}
|
|
|
|
if v.MinValue != nil {
|
|
ok := object.Key("MinValue")
|
|
ok.String(*v.MinValue)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCsvContentTypes(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCustomerMetadataKeyList(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCustomerMetadataMap(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCustomImage(v *types.CustomImage, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppImageConfigName != nil {
|
|
ok := object.Key("AppImageConfigName")
|
|
ok.String(*v.AppImageConfigName)
|
|
}
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
if v.ImageVersionNumber != nil {
|
|
ok := object.Key("ImageVersionNumber")
|
|
ok.Integer(*v.ImageVersionNumber)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentCustomImages(v []types.CustomImage, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentCustomImage(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDataCaptureConfig(v *types.DataCaptureConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CaptureContentTypeHeader != nil {
|
|
ok := object.Key("CaptureContentTypeHeader")
|
|
if err := awsAwsjson11_serializeDocumentCaptureContentTypeHeader(v.CaptureContentTypeHeader, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.CaptureOptions != nil {
|
|
ok := object.Key("CaptureOptions")
|
|
if err := awsAwsjson11_serializeDocumentCaptureOptionList(v.CaptureOptions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DestinationS3Uri != nil {
|
|
ok := object.Key("DestinationS3Uri")
|
|
ok.String(*v.DestinationS3Uri)
|
|
}
|
|
|
|
if v.EnableCapture {
|
|
ok := object.Key("EnableCapture")
|
|
ok.Boolean(v.EnableCapture)
|
|
}
|
|
|
|
if v.InitialSamplingPercentage != nil {
|
|
ok := object.Key("InitialSamplingPercentage")
|
|
ok.Integer(*v.InitialSamplingPercentage)
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDataCatalogConfig(v *types.DataCatalogConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Catalog != nil {
|
|
ok := object.Key("Catalog")
|
|
ok.String(*v.Catalog)
|
|
}
|
|
|
|
if v.Database != nil {
|
|
ok := object.Key("Database")
|
|
ok.String(*v.Database)
|
|
}
|
|
|
|
if v.TableName != nil {
|
|
ok := object.Key("TableName")
|
|
ok.String(*v.TableName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDataProcessing(v *types.DataProcessing, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.InputFilter != nil {
|
|
ok := object.Key("InputFilter")
|
|
ok.String(*v.InputFilter)
|
|
}
|
|
|
|
if len(v.JoinSource) > 0 {
|
|
ok := object.Key("JoinSource")
|
|
ok.String(string(v.JoinSource))
|
|
}
|
|
|
|
if v.OutputFilter != nil {
|
|
ok := object.Key("OutputFilter")
|
|
ok.String(*v.OutputFilter)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDataQualityAppSpecification(v *types.DataQualityAppSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContainerArguments != nil {
|
|
ok := object.Key("ContainerArguments")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringContainerArguments(v.ContainerArguments, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ContainerEntrypoint != nil {
|
|
ok := object.Key("ContainerEntrypoint")
|
|
if err := awsAwsjson11_serializeDocumentContainerEntrypoint(v.ContainerEntrypoint, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ImageUri != nil {
|
|
ok := object.Key("ImageUri")
|
|
ok.String(*v.ImageUri)
|
|
}
|
|
|
|
if v.PostAnalyticsProcessorSourceUri != nil {
|
|
ok := object.Key("PostAnalyticsProcessorSourceUri")
|
|
ok.String(*v.PostAnalyticsProcessorSourceUri)
|
|
}
|
|
|
|
if v.RecordPreprocessorSourceUri != nil {
|
|
ok := object.Key("RecordPreprocessorSourceUri")
|
|
ok.String(*v.RecordPreprocessorSourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDataQualityBaselineConfig(v *types.DataQualityBaselineConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.BaseliningJobName != nil {
|
|
ok := object.Key("BaseliningJobName")
|
|
ok.String(*v.BaseliningJobName)
|
|
}
|
|
|
|
if v.ConstraintsResource != nil {
|
|
ok := object.Key("ConstraintsResource")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringConstraintsResource(v.ConstraintsResource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StatisticsResource != nil {
|
|
ok := object.Key("StatisticsResource")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringStatisticsResource(v.StatisticsResource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDataQualityJobInput(v *types.DataQualityJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointInput != nil {
|
|
ok := object.Key("EndpointInput")
|
|
if err := awsAwsjson11_serializeDocumentEndpointInput(v.EndpointInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDatasetDefinition(v *types.DatasetDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AthenaDatasetDefinition != nil {
|
|
ok := object.Key("AthenaDatasetDefinition")
|
|
if err := awsAwsjson11_serializeDocumentAthenaDatasetDefinition(v.AthenaDatasetDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.DataDistributionType) > 0 {
|
|
ok := object.Key("DataDistributionType")
|
|
ok.String(string(v.DataDistributionType))
|
|
}
|
|
|
|
if len(v.InputMode) > 0 {
|
|
ok := object.Key("InputMode")
|
|
ok.String(string(v.InputMode))
|
|
}
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if v.RedshiftDatasetDefinition != nil {
|
|
ok := object.Key("RedshiftDatasetDefinition")
|
|
if err := awsAwsjson11_serializeDocumentRedshiftDatasetDefinition(v.RedshiftDatasetDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDataSource(v *types.DataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FileSystemDataSource != nil {
|
|
ok := object.Key("FileSystemDataSource")
|
|
if err := awsAwsjson11_serializeDocumentFileSystemDataSource(v.FileSystemDataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.S3DataSource != nil {
|
|
ok := object.Key("S3DataSource")
|
|
if err := awsAwsjson11_serializeDocumentS3DataSource(v.S3DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDebugHookConfig(v *types.DebugHookConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CollectionConfigurations != nil {
|
|
ok := object.Key("CollectionConfigurations")
|
|
if err := awsAwsjson11_serializeDocumentCollectionConfigurations(v.CollectionConfigurations, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.HookParameters != nil {
|
|
ok := object.Key("HookParameters")
|
|
if err := awsAwsjson11_serializeDocumentHookParameters(v.HookParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDebugRuleConfiguration(v *types.DebugRuleConfiguration, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if v.RuleConfigurationName != nil {
|
|
ok := object.Key("RuleConfigurationName")
|
|
ok.String(*v.RuleConfigurationName)
|
|
}
|
|
|
|
if v.RuleEvaluatorImage != nil {
|
|
ok := object.Key("RuleEvaluatorImage")
|
|
ok.String(*v.RuleEvaluatorImage)
|
|
}
|
|
|
|
if v.RuleParameters != nil {
|
|
ok := object.Key("RuleParameters")
|
|
if err := awsAwsjson11_serializeDocumentRuleParameters(v.RuleParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
if v.VolumeSizeInGB != 0 {
|
|
ok := object.Key("VolumeSizeInGB")
|
|
ok.Integer(v.VolumeSizeInGB)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDebugRuleConfigurations(v []types.DebugRuleConfiguration, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentDebugRuleConfiguration(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDeploymentConfig(v *types.DeploymentConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AutoRollbackConfiguration != nil {
|
|
ok := object.Key("AutoRollbackConfiguration")
|
|
if err := awsAwsjson11_serializeDocumentAutoRollbackConfig(v.AutoRollbackConfiguration, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.BlueGreenUpdatePolicy != nil {
|
|
ok := object.Key("BlueGreenUpdatePolicy")
|
|
if err := awsAwsjson11_serializeDocumentBlueGreenUpdatePolicy(v.BlueGreenUpdatePolicy, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDesiredWeightAndCapacity(v *types.DesiredWeightAndCapacity, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DesiredInstanceCount != nil {
|
|
ok := object.Key("DesiredInstanceCount")
|
|
ok.Integer(*v.DesiredInstanceCount)
|
|
}
|
|
|
|
if v.DesiredWeight != nil {
|
|
ok := object.Key("DesiredWeight")
|
|
switch {
|
|
case math.IsNaN(float64(*v.DesiredWeight)):
|
|
ok.String("NaN")
|
|
|
|
case math.IsInf(float64(*v.DesiredWeight), 1):
|
|
ok.String("Infinity")
|
|
|
|
case math.IsInf(float64(*v.DesiredWeight), -1):
|
|
ok.String("-Infinity")
|
|
|
|
default:
|
|
ok.Float(*v.DesiredWeight)
|
|
|
|
}
|
|
}
|
|
|
|
if v.VariantName != nil {
|
|
ok := object.Key("VariantName")
|
|
ok.String(*v.VariantName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDesiredWeightAndCapacityList(v []types.DesiredWeightAndCapacity, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentDesiredWeightAndCapacity(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDevice(v *types.Device, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.DeviceName != nil {
|
|
ok := object.Key("DeviceName")
|
|
ok.String(*v.DeviceName)
|
|
}
|
|
|
|
if v.IotThingName != nil {
|
|
ok := object.Key("IotThingName")
|
|
ok.String(*v.IotThingName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDeviceNames(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDevices(v []types.Device, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentDevice(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDomainSecurityGroupIds(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDomainSettings(v *types.DomainSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.RStudioServerProDomainSettings != nil {
|
|
ok := object.Key("RStudioServerProDomainSettings")
|
|
if err := awsAwsjson11_serializeDocumentRStudioServerProDomainSettings(v.RStudioServerProDomainSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SecurityGroupIds != nil {
|
|
ok := object.Key("SecurityGroupIds")
|
|
if err := awsAwsjson11_serializeDocumentDomainSecurityGroupIds(v.SecurityGroupIds, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentDomainSettingsForUpdate(v *types.DomainSettingsForUpdate, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.RStudioServerProDomainSettingsForUpdate != nil {
|
|
ok := object.Key("RStudioServerProDomainSettingsForUpdate")
|
|
if err := awsAwsjson11_serializeDocumentRStudioServerProDomainSettingsForUpdate(v.RStudioServerProDomainSettingsForUpdate, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentEdgeOutputConfig(v *types.EdgeOutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.PresetDeploymentConfig != nil {
|
|
ok := object.Key("PresetDeploymentConfig")
|
|
ok.String(*v.PresetDeploymentConfig)
|
|
}
|
|
|
|
if len(v.PresetDeploymentType) > 0 {
|
|
ok := object.Key("PresetDeploymentType")
|
|
ok.String(string(v.PresetDeploymentType))
|
|
}
|
|
|
|
if v.S3OutputLocation != nil {
|
|
ok := object.Key("S3OutputLocation")
|
|
ok.String(*v.S3OutputLocation)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentEndpointInput(v *types.EndpointInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.EndTimeOffset != nil {
|
|
ok := object.Key("EndTimeOffset")
|
|
ok.String(*v.EndTimeOffset)
|
|
}
|
|
|
|
if v.FeaturesAttribute != nil {
|
|
ok := object.Key("FeaturesAttribute")
|
|
ok.String(*v.FeaturesAttribute)
|
|
}
|
|
|
|
if v.InferenceAttribute != nil {
|
|
ok := object.Key("InferenceAttribute")
|
|
ok.String(*v.InferenceAttribute)
|
|
}
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if v.ProbabilityAttribute != nil {
|
|
ok := object.Key("ProbabilityAttribute")
|
|
ok.String(*v.ProbabilityAttribute)
|
|
}
|
|
|
|
if v.ProbabilityThresholdAttribute != nil {
|
|
ok := object.Key("ProbabilityThresholdAttribute")
|
|
switch {
|
|
case math.IsNaN(*v.ProbabilityThresholdAttribute):
|
|
ok.String("NaN")
|
|
|
|
case math.IsInf(*v.ProbabilityThresholdAttribute, 1):
|
|
ok.String("Infinity")
|
|
|
|
case math.IsInf(*v.ProbabilityThresholdAttribute, -1):
|
|
ok.String("-Infinity")
|
|
|
|
default:
|
|
ok.Double(*v.ProbabilityThresholdAttribute)
|
|
|
|
}
|
|
}
|
|
|
|
if len(v.S3DataDistributionType) > 0 {
|
|
ok := object.Key("S3DataDistributionType")
|
|
ok.String(string(v.S3DataDistributionType))
|
|
}
|
|
|
|
if len(v.S3InputMode) > 0 {
|
|
ok := object.Key("S3InputMode")
|
|
ok.String(string(v.S3InputMode))
|
|
}
|
|
|
|
if v.StartTimeOffset != nil {
|
|
ok := object.Key("StartTimeOffset")
|
|
ok.String(*v.StartTimeOffset)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentEnvironmentMap(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentExperimentConfig(v *types.ExperimentConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
if v.TrialComponentDisplayName != nil {
|
|
ok := object.Key("TrialComponentDisplayName")
|
|
ok.String(*v.TrialComponentDisplayName)
|
|
}
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentExplainability(v *types.Explainability, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Report != nil {
|
|
ok := object.Key("Report")
|
|
if err := awsAwsjson11_serializeDocumentMetricsSource(v.Report, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFeatureDefinition(v *types.FeatureDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FeatureName != nil {
|
|
ok := object.Key("FeatureName")
|
|
ok.String(*v.FeatureName)
|
|
}
|
|
|
|
if len(v.FeatureType) > 0 {
|
|
ok := object.Key("FeatureType")
|
|
ok.String(string(v.FeatureType))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFeatureDefinitions(v []types.FeatureDefinition, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentFeatureDefinition(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFileSystemConfig(v *types.FileSystemConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DefaultGid != 0 {
|
|
ok := object.Key("DefaultGid")
|
|
ok.Integer(v.DefaultGid)
|
|
}
|
|
|
|
if v.DefaultUid != 0 {
|
|
ok := object.Key("DefaultUid")
|
|
ok.Integer(v.DefaultUid)
|
|
}
|
|
|
|
if v.MountPath != nil {
|
|
ok := object.Key("MountPath")
|
|
ok.String(*v.MountPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFileSystemDataSource(v *types.FileSystemDataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DirectoryPath != nil {
|
|
ok := object.Key("DirectoryPath")
|
|
ok.String(*v.DirectoryPath)
|
|
}
|
|
|
|
if len(v.FileSystemAccessMode) > 0 {
|
|
ok := object.Key("FileSystemAccessMode")
|
|
ok.String(string(v.FileSystemAccessMode))
|
|
}
|
|
|
|
if v.FileSystemId != nil {
|
|
ok := object.Key("FileSystemId")
|
|
ok.String(*v.FileSystemId)
|
|
}
|
|
|
|
if len(v.FileSystemType) > 0 {
|
|
ok := object.Key("FileSystemType")
|
|
ok.String(string(v.FileSystemType))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if len(v.Operator) > 0 {
|
|
ok := object.Key("Operator")
|
|
ok.String(string(v.Operator))
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.String(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFlowDefinitionOutputConfig(v *types.FlowDefinitionOutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentFlowDefinitionTaskKeywords(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentGitConfig(v *types.GitConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Branch != nil {
|
|
ok := object.Key("Branch")
|
|
ok.String(*v.Branch)
|
|
}
|
|
|
|
if v.RepositoryUrl != nil {
|
|
ok := object.Key("RepositoryUrl")
|
|
ok.String(*v.RepositoryUrl)
|
|
}
|
|
|
|
if v.SecretArn != nil {
|
|
ok := object.Key("SecretArn")
|
|
ok.String(*v.SecretArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentGitConfigForUpdate(v *types.GitConfigForUpdate, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SecretArn != nil {
|
|
ok := object.Key("SecretArn")
|
|
ok.String(*v.SecretArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentGroups(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHookParameters(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHumanLoopActivationConditionsConfig(v *types.HumanLoopActivationConditionsConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanLoopActivationConditions != nil {
|
|
ok := object.Key("HumanLoopActivationConditions")
|
|
ok.String(*v.HumanLoopActivationConditions)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHumanLoopActivationConfig(v *types.HumanLoopActivationConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanLoopActivationConditionsConfig != nil {
|
|
ok := object.Key("HumanLoopActivationConditionsConfig")
|
|
if err := awsAwsjson11_serializeDocumentHumanLoopActivationConditionsConfig(v.HumanLoopActivationConditionsConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHumanLoopConfig(v *types.HumanLoopConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanTaskUiArn != nil {
|
|
ok := object.Key("HumanTaskUiArn")
|
|
ok.String(*v.HumanTaskUiArn)
|
|
}
|
|
|
|
if v.PublicWorkforceTaskPrice != nil {
|
|
ok := object.Key("PublicWorkforceTaskPrice")
|
|
if err := awsAwsjson11_serializeDocumentPublicWorkforceTaskPrice(v.PublicWorkforceTaskPrice, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TaskAvailabilityLifetimeInSeconds != nil {
|
|
ok := object.Key("TaskAvailabilityLifetimeInSeconds")
|
|
ok.Integer(*v.TaskAvailabilityLifetimeInSeconds)
|
|
}
|
|
|
|
if v.TaskCount != nil {
|
|
ok := object.Key("TaskCount")
|
|
ok.Integer(*v.TaskCount)
|
|
}
|
|
|
|
if v.TaskDescription != nil {
|
|
ok := object.Key("TaskDescription")
|
|
ok.String(*v.TaskDescription)
|
|
}
|
|
|
|
if v.TaskKeywords != nil {
|
|
ok := object.Key("TaskKeywords")
|
|
if err := awsAwsjson11_serializeDocumentFlowDefinitionTaskKeywords(v.TaskKeywords, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TaskTimeLimitInSeconds != nil {
|
|
ok := object.Key("TaskTimeLimitInSeconds")
|
|
ok.Integer(*v.TaskTimeLimitInSeconds)
|
|
}
|
|
|
|
if v.TaskTitle != nil {
|
|
ok := object.Key("TaskTitle")
|
|
ok.String(*v.TaskTitle)
|
|
}
|
|
|
|
if v.WorkteamArn != nil {
|
|
ok := object.Key("WorkteamArn")
|
|
ok.String(*v.WorkteamArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHumanLoopRequestSource(v *types.HumanLoopRequestSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.AwsManagedHumanLoopRequestSource) > 0 {
|
|
ok := object.Key("AwsManagedHumanLoopRequestSource")
|
|
ok.String(string(v.AwsManagedHumanLoopRequestSource))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHumanTaskConfig(v *types.HumanTaskConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AnnotationConsolidationConfig != nil {
|
|
ok := object.Key("AnnotationConsolidationConfig")
|
|
if err := awsAwsjson11_serializeDocumentAnnotationConsolidationConfig(v.AnnotationConsolidationConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MaxConcurrentTaskCount != nil {
|
|
ok := object.Key("MaxConcurrentTaskCount")
|
|
ok.Integer(*v.MaxConcurrentTaskCount)
|
|
}
|
|
|
|
if v.NumberOfHumanWorkersPerDataObject != nil {
|
|
ok := object.Key("NumberOfHumanWorkersPerDataObject")
|
|
ok.Integer(*v.NumberOfHumanWorkersPerDataObject)
|
|
}
|
|
|
|
if v.PreHumanTaskLambdaArn != nil {
|
|
ok := object.Key("PreHumanTaskLambdaArn")
|
|
ok.String(*v.PreHumanTaskLambdaArn)
|
|
}
|
|
|
|
if v.PublicWorkforceTaskPrice != nil {
|
|
ok := object.Key("PublicWorkforceTaskPrice")
|
|
if err := awsAwsjson11_serializeDocumentPublicWorkforceTaskPrice(v.PublicWorkforceTaskPrice, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TaskAvailabilityLifetimeInSeconds != nil {
|
|
ok := object.Key("TaskAvailabilityLifetimeInSeconds")
|
|
ok.Integer(*v.TaskAvailabilityLifetimeInSeconds)
|
|
}
|
|
|
|
if v.TaskDescription != nil {
|
|
ok := object.Key("TaskDescription")
|
|
ok.String(*v.TaskDescription)
|
|
}
|
|
|
|
if v.TaskKeywords != nil {
|
|
ok := object.Key("TaskKeywords")
|
|
if err := awsAwsjson11_serializeDocumentTaskKeywords(v.TaskKeywords, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TaskTimeLimitInSeconds != nil {
|
|
ok := object.Key("TaskTimeLimitInSeconds")
|
|
ok.Integer(*v.TaskTimeLimitInSeconds)
|
|
}
|
|
|
|
if v.TaskTitle != nil {
|
|
ok := object.Key("TaskTitle")
|
|
ok.String(*v.TaskTitle)
|
|
}
|
|
|
|
if v.UiConfig != nil {
|
|
ok := object.Key("UiConfig")
|
|
if err := awsAwsjson11_serializeDocumentUiConfig(v.UiConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.WorkteamArn != nil {
|
|
ok := object.Key("WorkteamArn")
|
|
ok.String(*v.WorkteamArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterAlgorithmSpecification(v *types.HyperParameterAlgorithmSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmName != nil {
|
|
ok := object.Key("AlgorithmName")
|
|
ok.String(*v.AlgorithmName)
|
|
}
|
|
|
|
if v.MetricDefinitions != nil {
|
|
ok := object.Key("MetricDefinitions")
|
|
if err := awsAwsjson11_serializeDocumentMetricDefinitionList(v.MetricDefinitions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingImage != nil {
|
|
ok := object.Key("TrainingImage")
|
|
ok.String(*v.TrainingImage)
|
|
}
|
|
|
|
if len(v.TrainingInputMode) > 0 {
|
|
ok := object.Key("TrainingInputMode")
|
|
ok.String(string(v.TrainingInputMode))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameters(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterSpecification(v *types.HyperParameterSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DefaultValue != nil {
|
|
ok := object.Key("DefaultValue")
|
|
ok.String(*v.DefaultValue)
|
|
}
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.IsRequired {
|
|
ok := object.Key("IsRequired")
|
|
ok.Boolean(v.IsRequired)
|
|
}
|
|
|
|
if v.IsTunable {
|
|
ok := object.Key("IsTunable")
|
|
ok.Boolean(v.IsTunable)
|
|
}
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if v.Range != nil {
|
|
ok := object.Key("Range")
|
|
if err := awsAwsjson11_serializeDocumentParameterRange(v.Range, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.Type) > 0 {
|
|
ok := object.Key("Type")
|
|
ok.String(string(v.Type))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterSpecifications(v []types.HyperParameterSpecification, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterSpecification(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinition(v *types.HyperParameterTrainingJobDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmSpecification != nil {
|
|
ok := object.Key("AlgorithmSpecification")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterAlgorithmSpecification(v.AlgorithmSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.CheckpointConfig != nil {
|
|
ok := object.Key("CheckpointConfig")
|
|
if err := awsAwsjson11_serializeDocumentCheckpointConfig(v.CheckpointConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DefinitionName != nil {
|
|
ok := object.Key("DefinitionName")
|
|
ok.String(*v.DefinitionName)
|
|
}
|
|
|
|
if v.EnableInterContainerTrafficEncryption {
|
|
ok := object.Key("EnableInterContainerTrafficEncryption")
|
|
ok.Boolean(v.EnableInterContainerTrafficEncryption)
|
|
}
|
|
|
|
if v.EnableManagedSpotTraining {
|
|
ok := object.Key("EnableManagedSpotTraining")
|
|
ok.Boolean(v.EnableManagedSpotTraining)
|
|
}
|
|
|
|
if v.EnableNetworkIsolation {
|
|
ok := object.Key("EnableNetworkIsolation")
|
|
ok.Boolean(v.EnableNetworkIsolation)
|
|
}
|
|
|
|
if v.HyperParameterRanges != nil {
|
|
ok := object.Key("HyperParameterRanges")
|
|
if err := awsAwsjson11_serializeDocumentParameterRanges(v.HyperParameterRanges, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InputDataConfig != nil {
|
|
ok := object.Key("InputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentInputDataConfig(v.InputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputDataConfig != nil {
|
|
ok := object.Key("OutputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentOutputDataConfig(v.OutputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ResourceConfig != nil {
|
|
ok := object.Key("ResourceConfig")
|
|
if err := awsAwsjson11_serializeDocumentResourceConfig(v.ResourceConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RetryStrategy != nil {
|
|
ok := object.Key("RetryStrategy")
|
|
if err := awsAwsjson11_serializeDocumentRetryStrategy(v.RetryStrategy, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StaticHyperParameters != nil {
|
|
ok := object.Key("StaticHyperParameters")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameters(v.StaticHyperParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TuningObjective != nil {
|
|
ok := object.Key("TuningObjective")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobObjective(v.TuningObjective, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.VpcConfig != nil {
|
|
ok := object.Key("VpcConfig")
|
|
if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinitions(v []types.HyperParameterTrainingJobDefinition, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinition(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterTuningJobConfig(v *types.HyperParameterTuningJobConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HyperParameterTuningJobObjective != nil {
|
|
ok := object.Key("HyperParameterTuningJobObjective")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobObjective(v.HyperParameterTuningJobObjective, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ParameterRanges != nil {
|
|
ok := object.Key("ParameterRanges")
|
|
if err := awsAwsjson11_serializeDocumentParameterRanges(v.ParameterRanges, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ResourceLimits != nil {
|
|
ok := object.Key("ResourceLimits")
|
|
if err := awsAwsjson11_serializeDocumentResourceLimits(v.ResourceLimits, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.Strategy) > 0 {
|
|
ok := object.Key("Strategy")
|
|
ok.String(string(v.Strategy))
|
|
}
|
|
|
|
if len(v.TrainingJobEarlyStoppingType) > 0 {
|
|
ok := object.Key("TrainingJobEarlyStoppingType")
|
|
ok.String(string(v.TrainingJobEarlyStoppingType))
|
|
}
|
|
|
|
if v.TuningJobCompletionCriteria != nil {
|
|
ok := object.Key("TuningJobCompletionCriteria")
|
|
if err := awsAwsjson11_serializeDocumentTuningJobCompletionCriteria(v.TuningJobCompletionCriteria, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterTuningJobObjective(v *types.HyperParameterTuningJobObjective, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MetricName != nil {
|
|
ok := object.Key("MetricName")
|
|
ok.String(*v.MetricName)
|
|
}
|
|
|
|
if len(v.Type) > 0 {
|
|
ok := object.Key("Type")
|
|
ok.String(string(v.Type))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterTuningJobObjectives(v []types.HyperParameterTuningJobObjective, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobObjective(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentHyperParameterTuningJobWarmStartConfig(v *types.HyperParameterTuningJobWarmStartConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ParentHyperParameterTuningJobs != nil {
|
|
ok := object.Key("ParentHyperParameterTuningJobs")
|
|
if err := awsAwsjson11_serializeDocumentParentHyperParameterTuningJobs(v.ParentHyperParameterTuningJobs, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.WarmStartType) > 0 {
|
|
ok := object.Key("WarmStartType")
|
|
ok.String(string(v.WarmStartType))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentImageConfig(v *types.ImageConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.RepositoryAccessMode) > 0 {
|
|
ok := object.Key("RepositoryAccessMode")
|
|
ok.String(string(v.RepositoryAccessMode))
|
|
}
|
|
|
|
if v.RepositoryAuthConfig != nil {
|
|
ok := object.Key("RepositoryAuthConfig")
|
|
if err := awsAwsjson11_serializeDocumentRepositoryAuthConfig(v.RepositoryAuthConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentImageDeletePropertyList(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentInferenceExecutionConfig(v *types.InferenceExecutionConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.Mode) > 0 {
|
|
ok := object.Key("Mode")
|
|
ok.String(string(v.Mode))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentInferenceSpecification(v *types.InferenceSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Containers != nil {
|
|
ok := object.Key("Containers")
|
|
if err := awsAwsjson11_serializeDocumentModelPackageContainerDefinitionList(v.Containers, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedContentTypes != nil {
|
|
ok := object.Key("SupportedContentTypes")
|
|
if err := awsAwsjson11_serializeDocumentContentTypes(v.SupportedContentTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedRealtimeInferenceInstanceTypes != nil {
|
|
ok := object.Key("SupportedRealtimeInferenceInstanceTypes")
|
|
if err := awsAwsjson11_serializeDocumentRealtimeInferenceInstanceTypes(v.SupportedRealtimeInferenceInstanceTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedResponseMIMETypes != nil {
|
|
ok := object.Key("SupportedResponseMIMETypes")
|
|
if err := awsAwsjson11_serializeDocumentResponseMIMETypes(v.SupportedResponseMIMETypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedTransformInstanceTypes != nil {
|
|
ok := object.Key("SupportedTransformInstanceTypes")
|
|
if err := awsAwsjson11_serializeDocumentTransformInstanceTypes(v.SupportedTransformInstanceTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentInputConfig(v *types.InputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DataInputConfig != nil {
|
|
ok := object.Key("DataInputConfig")
|
|
ok.String(*v.DataInputConfig)
|
|
}
|
|
|
|
if len(v.Framework) > 0 {
|
|
ok := object.Key("Framework")
|
|
ok.String(string(v.Framework))
|
|
}
|
|
|
|
if v.FrameworkVersion != nil {
|
|
ok := object.Key("FrameworkVersion")
|
|
ok.String(*v.FrameworkVersion)
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentInputDataConfig(v []types.Channel, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentChannel(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentInputModes(v []types.TrainingInputMode, 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 awsAwsjson11_serializeDocumentIntegerParameterRange(v *types.IntegerParameterRange, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxValue != nil {
|
|
ok := object.Key("MaxValue")
|
|
ok.String(*v.MaxValue)
|
|
}
|
|
|
|
if v.MinValue != nil {
|
|
ok := object.Key("MinValue")
|
|
ok.String(*v.MinValue)
|
|
}
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if len(v.ScalingType) > 0 {
|
|
ok := object.Key("ScalingType")
|
|
ok.String(string(v.ScalingType))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentIntegerParameterRanges(v []types.IntegerParameterRange, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentIntegerParameterRange(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentIntegerParameterRangeSpecification(v *types.IntegerParameterRangeSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxValue != nil {
|
|
ok := object.Key("MaxValue")
|
|
ok.String(*v.MaxValue)
|
|
}
|
|
|
|
if v.MinValue != nil {
|
|
ok := object.Key("MinValue")
|
|
ok.String(*v.MinValue)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentJsonContentTypes(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentJupyterServerAppSettings(v *types.JupyterServerAppSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DefaultResourceSpec != nil {
|
|
ok := object.Key("DefaultResourceSpec")
|
|
if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.LifecycleConfigArns != nil {
|
|
ok := object.Key("LifecycleConfigArns")
|
|
if err := awsAwsjson11_serializeDocumentLifecycleConfigArns(v.LifecycleConfigArns, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentKernelGatewayAppSettings(v *types.KernelGatewayAppSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CustomImages != nil {
|
|
ok := object.Key("CustomImages")
|
|
if err := awsAwsjson11_serializeDocumentCustomImages(v.CustomImages, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DefaultResourceSpec != nil {
|
|
ok := object.Key("DefaultResourceSpec")
|
|
if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.LifecycleConfigArns != nil {
|
|
ok := object.Key("LifecycleConfigArns")
|
|
if err := awsAwsjson11_serializeDocumentLifecycleConfigArns(v.LifecycleConfigArns, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentKernelGatewayImageConfig(v *types.KernelGatewayImageConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FileSystemConfig != nil {
|
|
ok := object.Key("FileSystemConfig")
|
|
if err := awsAwsjson11_serializeDocumentFileSystemConfig(v.FileSystemConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.KernelSpecs != nil {
|
|
ok := object.Key("KernelSpecs")
|
|
if err := awsAwsjson11_serializeDocumentKernelSpecs(v.KernelSpecs, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentKernelSpec(v *types.KernelSpec, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentKernelSpecs(v []types.KernelSpec, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentKernelSpec(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobAlgorithmsConfig(v *types.LabelingJobAlgorithmsConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.InitialActiveLearningModelArn != nil {
|
|
ok := object.Key("InitialActiveLearningModelArn")
|
|
ok.String(*v.InitialActiveLearningModelArn)
|
|
}
|
|
|
|
if v.LabelingJobAlgorithmSpecificationArn != nil {
|
|
ok := object.Key("LabelingJobAlgorithmSpecificationArn")
|
|
ok.String(*v.LabelingJobAlgorithmSpecificationArn)
|
|
}
|
|
|
|
if v.LabelingJobResourceConfig != nil {
|
|
ok := object.Key("LabelingJobResourceConfig")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobResourceConfig(v.LabelingJobResourceConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobDataAttributes(v *types.LabelingJobDataAttributes, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContentClassifiers != nil {
|
|
ok := object.Key("ContentClassifiers")
|
|
if err := awsAwsjson11_serializeDocumentContentClassifiers(v.ContentClassifiers, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobDataSource(v *types.LabelingJobDataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.S3DataSource != nil {
|
|
ok := object.Key("S3DataSource")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobS3DataSource(v.S3DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SnsDataSource != nil {
|
|
ok := object.Key("SnsDataSource")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobSnsDataSource(v.SnsDataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobInputConfig(v *types.LabelingJobInputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DataAttributes != nil {
|
|
ok := object.Key("DataAttributes")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobDataAttributes(v.DataAttributes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DataSource != nil {
|
|
ok := object.Key("DataSource")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobDataSource(v.DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobOutputConfig(v *types.LabelingJobOutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
if v.SnsTopicArn != nil {
|
|
ok := object.Key("SnsTopicArn")
|
|
ok.String(*v.SnsTopicArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobResourceConfig(v *types.LabelingJobResourceConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.VolumeKmsKeyId != nil {
|
|
ok := object.Key("VolumeKmsKeyId")
|
|
ok.String(*v.VolumeKmsKeyId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobS3DataSource(v *types.LabelingJobS3DataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ManifestS3Uri != nil {
|
|
ok := object.Key("ManifestS3Uri")
|
|
ok.String(*v.ManifestS3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobSnsDataSource(v *types.LabelingJobSnsDataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SnsTopicArn != nil {
|
|
ok := object.Key("SnsTopicArn")
|
|
ok.String(*v.SnsTopicArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLabelingJobStoppingConditions(v *types.LabelingJobStoppingConditions, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxHumanLabeledObjectCount != nil {
|
|
ok := object.Key("MaxHumanLabeledObjectCount")
|
|
ok.Integer(*v.MaxHumanLabeledObjectCount)
|
|
}
|
|
|
|
if v.MaxPercentageOfInputDatasetLabeled != nil {
|
|
ok := object.Key("MaxPercentageOfInputDatasetLabeled")
|
|
ok.Integer(*v.MaxPercentageOfInputDatasetLabeled)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLifecycleConfigArns(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentLineageEntityParameters(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentListLineageEntityParameterKey(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentListTrialComponentKey256(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMemberDefinition(v *types.MemberDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CognitoMemberDefinition != nil {
|
|
ok := object.Key("CognitoMemberDefinition")
|
|
if err := awsAwsjson11_serializeDocumentCognitoMemberDefinition(v.CognitoMemberDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OidcMemberDefinition != nil {
|
|
ok := object.Key("OidcMemberDefinition")
|
|
if err := awsAwsjson11_serializeDocumentOidcMemberDefinition(v.OidcMemberDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMemberDefinitions(v []types.MemberDefinition, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentMemberDefinition(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMetadataProperties(v *types.MetadataProperties, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CommitId != nil {
|
|
ok := object.Key("CommitId")
|
|
ok.String(*v.CommitId)
|
|
}
|
|
|
|
if v.GeneratedBy != nil {
|
|
ok := object.Key("GeneratedBy")
|
|
ok.String(*v.GeneratedBy)
|
|
}
|
|
|
|
if v.ProjectId != nil {
|
|
ok := object.Key("ProjectId")
|
|
ok.String(*v.ProjectId)
|
|
}
|
|
|
|
if v.Repository != nil {
|
|
ok := object.Key("Repository")
|
|
ok.String(*v.Repository)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMetricDefinition(v *types.MetricDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if v.Regex != nil {
|
|
ok := object.Key("Regex")
|
|
ok.String(*v.Regex)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMetricDefinitionList(v []types.MetricDefinition, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentMetricDefinition(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMetricsSource(v *types.MetricsSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContentDigest != nil {
|
|
ok := object.Key("ContentDigest")
|
|
ok.String(*v.ContentDigest)
|
|
}
|
|
|
|
if v.ContentType != nil {
|
|
ok := object.Key("ContentType")
|
|
ok.String(*v.ContentType)
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelBiasAppSpecification(v *types.ModelBiasAppSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ConfigUri != nil {
|
|
ok := object.Key("ConfigUri")
|
|
ok.String(*v.ConfigUri)
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ImageUri != nil {
|
|
ok := object.Key("ImageUri")
|
|
ok.String(*v.ImageUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelBiasBaselineConfig(v *types.ModelBiasBaselineConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.BaseliningJobName != nil {
|
|
ok := object.Key("BaseliningJobName")
|
|
ok.String(*v.BaseliningJobName)
|
|
}
|
|
|
|
if v.ConstraintsResource != nil {
|
|
ok := object.Key("ConstraintsResource")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringConstraintsResource(v.ConstraintsResource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelBiasJobInput(v *types.ModelBiasJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointInput != nil {
|
|
ok := object.Key("EndpointInput")
|
|
if err := awsAwsjson11_serializeDocumentEndpointInput(v.EndpointInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.GroundTruthS3Input != nil {
|
|
ok := object.Key("GroundTruthS3Input")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringGroundTruthS3Input(v.GroundTruthS3Input, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelClientConfig(v *types.ModelClientConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.InvocationsMaxRetries != nil {
|
|
ok := object.Key("InvocationsMaxRetries")
|
|
ok.Integer(*v.InvocationsMaxRetries)
|
|
}
|
|
|
|
if v.InvocationsTimeoutInSeconds != nil {
|
|
ok := object.Key("InvocationsTimeoutInSeconds")
|
|
ok.Integer(*v.InvocationsTimeoutInSeconds)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelDataQuality(v *types.ModelDataQuality, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Constraints != nil {
|
|
ok := object.Key("Constraints")
|
|
if err := awsAwsjson11_serializeDocumentMetricsSource(v.Constraints, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Statistics != nil {
|
|
ok := object.Key("Statistics")
|
|
if err := awsAwsjson11_serializeDocumentMetricsSource(v.Statistics, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelDeployConfig(v *types.ModelDeployConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AutoGenerateEndpointName {
|
|
ok := object.Key("AutoGenerateEndpointName")
|
|
ok.Boolean(v.AutoGenerateEndpointName)
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelExplainabilityAppSpecification(v *types.ModelExplainabilityAppSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ConfigUri != nil {
|
|
ok := object.Key("ConfigUri")
|
|
ok.String(*v.ConfigUri)
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ImageUri != nil {
|
|
ok := object.Key("ImageUri")
|
|
ok.String(*v.ImageUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelExplainabilityBaselineConfig(v *types.ModelExplainabilityBaselineConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.BaseliningJobName != nil {
|
|
ok := object.Key("BaseliningJobName")
|
|
ok.String(*v.BaseliningJobName)
|
|
}
|
|
|
|
if v.ConstraintsResource != nil {
|
|
ok := object.Key("ConstraintsResource")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringConstraintsResource(v.ConstraintsResource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelExplainabilityJobInput(v *types.ModelExplainabilityJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointInput != nil {
|
|
ok := object.Key("EndpointInput")
|
|
if err := awsAwsjson11_serializeDocumentEndpointInput(v.EndpointInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelMetrics(v *types.ModelMetrics, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Bias != nil {
|
|
ok := object.Key("Bias")
|
|
if err := awsAwsjson11_serializeDocumentBias(v.Bias, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Explainability != nil {
|
|
ok := object.Key("Explainability")
|
|
if err := awsAwsjson11_serializeDocumentExplainability(v.Explainability, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelDataQuality != nil {
|
|
ok := object.Key("ModelDataQuality")
|
|
if err := awsAwsjson11_serializeDocumentModelDataQuality(v.ModelDataQuality, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelQuality != nil {
|
|
ok := object.Key("ModelQuality")
|
|
if err := awsAwsjson11_serializeDocumentModelQuality(v.ModelQuality, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelPackageArnList(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelPackageContainerDefinition(v *types.ModelPackageContainerDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContainerHostname != nil {
|
|
ok := object.Key("ContainerHostname")
|
|
ok.String(*v.ContainerHostname)
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Image != nil {
|
|
ok := object.Key("Image")
|
|
ok.String(*v.Image)
|
|
}
|
|
|
|
if v.ImageDigest != nil {
|
|
ok := object.Key("ImageDigest")
|
|
ok.String(*v.ImageDigest)
|
|
}
|
|
|
|
if v.ModelDataUrl != nil {
|
|
ok := object.Key("ModelDataUrl")
|
|
ok.String(*v.ModelDataUrl)
|
|
}
|
|
|
|
if v.ProductId != nil {
|
|
ok := object.Key("ProductId")
|
|
ok.String(*v.ProductId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelPackageContainerDefinitionList(v []types.ModelPackageContainerDefinition, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentModelPackageContainerDefinition(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelPackageValidationProfile(v *types.ModelPackageValidationProfile, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProfileName != nil {
|
|
ok := object.Key("ProfileName")
|
|
ok.String(*v.ProfileName)
|
|
}
|
|
|
|
if v.TransformJobDefinition != nil {
|
|
ok := object.Key("TransformJobDefinition")
|
|
if err := awsAwsjson11_serializeDocumentTransformJobDefinition(v.TransformJobDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelPackageValidationProfiles(v []types.ModelPackageValidationProfile, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentModelPackageValidationProfile(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelPackageValidationSpecification(v *types.ModelPackageValidationSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ValidationProfiles != nil {
|
|
ok := object.Key("ValidationProfiles")
|
|
if err := awsAwsjson11_serializeDocumentModelPackageValidationProfiles(v.ValidationProfiles, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ValidationRole != nil {
|
|
ok := object.Key("ValidationRole")
|
|
ok.String(*v.ValidationRole)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelQuality(v *types.ModelQuality, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Constraints != nil {
|
|
ok := object.Key("Constraints")
|
|
if err := awsAwsjson11_serializeDocumentMetricsSource(v.Constraints, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Statistics != nil {
|
|
ok := object.Key("Statistics")
|
|
if err := awsAwsjson11_serializeDocumentMetricsSource(v.Statistics, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelQualityAppSpecification(v *types.ModelQualityAppSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContainerArguments != nil {
|
|
ok := object.Key("ContainerArguments")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringContainerArguments(v.ContainerArguments, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ContainerEntrypoint != nil {
|
|
ok := object.Key("ContainerEntrypoint")
|
|
if err := awsAwsjson11_serializeDocumentContainerEntrypoint(v.ContainerEntrypoint, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ImageUri != nil {
|
|
ok := object.Key("ImageUri")
|
|
ok.String(*v.ImageUri)
|
|
}
|
|
|
|
if v.PostAnalyticsProcessorSourceUri != nil {
|
|
ok := object.Key("PostAnalyticsProcessorSourceUri")
|
|
ok.String(*v.PostAnalyticsProcessorSourceUri)
|
|
}
|
|
|
|
if len(v.ProblemType) > 0 {
|
|
ok := object.Key("ProblemType")
|
|
ok.String(string(v.ProblemType))
|
|
}
|
|
|
|
if v.RecordPreprocessorSourceUri != nil {
|
|
ok := object.Key("RecordPreprocessorSourceUri")
|
|
ok.String(*v.RecordPreprocessorSourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelQualityBaselineConfig(v *types.ModelQualityBaselineConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.BaseliningJobName != nil {
|
|
ok := object.Key("BaseliningJobName")
|
|
ok.String(*v.BaseliningJobName)
|
|
}
|
|
|
|
if v.ConstraintsResource != nil {
|
|
ok := object.Key("ConstraintsResource")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringConstraintsResource(v.ConstraintsResource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentModelQualityJobInput(v *types.ModelQualityJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointInput != nil {
|
|
ok := object.Key("EndpointInput")
|
|
if err := awsAwsjson11_serializeDocumentEndpointInput(v.EndpointInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.GroundTruthS3Input != nil {
|
|
ok := object.Key("GroundTruthS3Input")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringGroundTruthS3Input(v.GroundTruthS3Input, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringAppSpecification(v *types.MonitoringAppSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContainerArguments != nil {
|
|
ok := object.Key("ContainerArguments")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringContainerArguments(v.ContainerArguments, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ContainerEntrypoint != nil {
|
|
ok := object.Key("ContainerEntrypoint")
|
|
if err := awsAwsjson11_serializeDocumentContainerEntrypoint(v.ContainerEntrypoint, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ImageUri != nil {
|
|
ok := object.Key("ImageUri")
|
|
ok.String(*v.ImageUri)
|
|
}
|
|
|
|
if v.PostAnalyticsProcessorSourceUri != nil {
|
|
ok := object.Key("PostAnalyticsProcessorSourceUri")
|
|
ok.String(*v.PostAnalyticsProcessorSourceUri)
|
|
}
|
|
|
|
if v.RecordPreprocessorSourceUri != nil {
|
|
ok := object.Key("RecordPreprocessorSourceUri")
|
|
ok.String(*v.RecordPreprocessorSourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringBaselineConfig(v *types.MonitoringBaselineConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.BaseliningJobName != nil {
|
|
ok := object.Key("BaseliningJobName")
|
|
ok.String(*v.BaseliningJobName)
|
|
}
|
|
|
|
if v.ConstraintsResource != nil {
|
|
ok := object.Key("ConstraintsResource")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringConstraintsResource(v.ConstraintsResource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StatisticsResource != nil {
|
|
ok := object.Key("StatisticsResource")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringStatisticsResource(v.StatisticsResource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringClusterConfig(v *types.MonitoringClusterConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.InstanceCount != nil {
|
|
ok := object.Key("InstanceCount")
|
|
ok.Integer(*v.InstanceCount)
|
|
}
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.VolumeKmsKeyId != nil {
|
|
ok := object.Key("VolumeKmsKeyId")
|
|
ok.String(*v.VolumeKmsKeyId)
|
|
}
|
|
|
|
if v.VolumeSizeInGB != nil {
|
|
ok := object.Key("VolumeSizeInGB")
|
|
ok.Integer(*v.VolumeSizeInGB)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringConstraintsResource(v *types.MonitoringConstraintsResource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringContainerArguments(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringGroundTruthS3Input(v *types.MonitoringGroundTruthS3Input, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringInput(v *types.MonitoringInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointInput != nil {
|
|
ok := object.Key("EndpointInput")
|
|
if err := awsAwsjson11_serializeDocumentEndpointInput(v.EndpointInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringInputs(v []types.MonitoringInput, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentMonitoringInput(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringJobDefinition(v *types.MonitoringJobDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.BaselineConfig != nil {
|
|
ok := object.Key("BaselineConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringBaselineConfig(v.BaselineConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MonitoringAppSpecification != nil {
|
|
ok := object.Key("MonitoringAppSpecification")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringAppSpecification(v.MonitoringAppSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MonitoringInputs != nil {
|
|
ok := object.Key("MonitoringInputs")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringInputs(v.MonitoringInputs, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MonitoringOutputConfig != nil {
|
|
ok := object.Key("MonitoringOutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringOutputConfig(v.MonitoringOutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MonitoringResources != nil {
|
|
ok := object.Key("MonitoringResources")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringResources(v.MonitoringResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NetworkConfig != nil {
|
|
ok := object.Key("NetworkConfig")
|
|
if err := awsAwsjson11_serializeDocumentNetworkConfig(v.NetworkConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringNetworkConfig(v *types.MonitoringNetworkConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EnableInterContainerTrafficEncryption {
|
|
ok := object.Key("EnableInterContainerTrafficEncryption")
|
|
ok.Boolean(v.EnableInterContainerTrafficEncryption)
|
|
}
|
|
|
|
if v.EnableNetworkIsolation {
|
|
ok := object.Key("EnableNetworkIsolation")
|
|
ok.Boolean(v.EnableNetworkIsolation)
|
|
}
|
|
|
|
if v.VpcConfig != nil {
|
|
ok := object.Key("VpcConfig")
|
|
if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringOutput(v *types.MonitoringOutput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.S3Output != nil {
|
|
ok := object.Key("S3Output")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringS3Output(v.S3Output, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringOutputConfig(v *types.MonitoringOutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.MonitoringOutputs != nil {
|
|
ok := object.Key("MonitoringOutputs")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringOutputs(v.MonitoringOutputs, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringOutputs(v []types.MonitoringOutput, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentMonitoringOutput(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringResources(v *types.MonitoringResources, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClusterConfig != nil {
|
|
ok := object.Key("ClusterConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringClusterConfig(v.ClusterConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringS3Output(v *types.MonitoringS3Output, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if len(v.S3UploadMode) > 0 {
|
|
ok := object.Key("S3UploadMode")
|
|
ok.String(string(v.S3UploadMode))
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringScheduleConfig(v *types.MonitoringScheduleConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MonitoringJobDefinition != nil {
|
|
ok := object.Key("MonitoringJobDefinition")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringJobDefinition(v.MonitoringJobDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MonitoringJobDefinitionName != nil {
|
|
ok := object.Key("MonitoringJobDefinitionName")
|
|
ok.String(*v.MonitoringJobDefinitionName)
|
|
}
|
|
|
|
if len(v.MonitoringType) > 0 {
|
|
ok := object.Key("MonitoringType")
|
|
ok.String(string(v.MonitoringType))
|
|
}
|
|
|
|
if v.ScheduleConfig != nil {
|
|
ok := object.Key("ScheduleConfig")
|
|
if err := awsAwsjson11_serializeDocumentScheduleConfig(v.ScheduleConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringStatisticsResource(v *types.MonitoringStatisticsResource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMonitoringStoppingCondition(v *types.MonitoringStoppingCondition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
{
|
|
ok := object.Key("MaxRuntimeInSeconds")
|
|
ok.Integer(v.MaxRuntimeInSeconds)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentMultiModelConfig(v *types.MultiModelConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.ModelCacheSetting) > 0 {
|
|
ok := object.Key("ModelCacheSetting")
|
|
ok.String(string(v.ModelCacheSetting))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNeoVpcConfig(v *types.NeoVpcConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SecurityGroupIds != nil {
|
|
ok := object.Key("SecurityGroupIds")
|
|
if err := awsAwsjson11_serializeDocumentNeoVpcSecurityGroupIds(v.SecurityGroupIds, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Subnets != nil {
|
|
ok := object.Key("Subnets")
|
|
if err := awsAwsjson11_serializeDocumentNeoVpcSubnets(v.Subnets, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNeoVpcSecurityGroupIds(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNeoVpcSubnets(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNestedFilters(v *types.NestedFilters, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Filters != nil {
|
|
ok := object.Key("Filters")
|
|
if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NestedPropertyName != nil {
|
|
ok := object.Key("NestedPropertyName")
|
|
ok.String(*v.NestedPropertyName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNestedFiltersList(v []types.NestedFilters, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentNestedFilters(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNetworkConfig(v *types.NetworkConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EnableInterContainerTrafficEncryption {
|
|
ok := object.Key("EnableInterContainerTrafficEncryption")
|
|
ok.Boolean(v.EnableInterContainerTrafficEncryption)
|
|
}
|
|
|
|
if v.EnableNetworkIsolation {
|
|
ok := object.Key("EnableNetworkIsolation")
|
|
ok.Boolean(v.EnableNetworkIsolation)
|
|
}
|
|
|
|
if v.VpcConfig != nil {
|
|
ok := object.Key("VpcConfig")
|
|
if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNotebookInstanceAcceleratorTypes(v []types.NotebookInstanceAcceleratorType, 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 awsAwsjson11_serializeDocumentNotebookInstanceLifecycleConfigList(v []types.NotebookInstanceLifecycleHook, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentNotebookInstanceLifecycleHook(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNotebookInstanceLifecycleHook(v *types.NotebookInstanceLifecycleHook, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Content != nil {
|
|
ok := object.Key("Content")
|
|
ok.String(*v.Content)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentNotificationConfiguration(v *types.NotificationConfiguration, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotificationTopicArn != nil {
|
|
ok := object.Key("NotificationTopicArn")
|
|
ok.String(*v.NotificationTopicArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOfflineStoreConfig(v *types.OfflineStoreConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DataCatalogConfig != nil {
|
|
ok := object.Key("DataCatalogConfig")
|
|
if err := awsAwsjson11_serializeDocumentDataCatalogConfig(v.DataCatalogConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DisableGlueTableCreation {
|
|
ok := object.Key("DisableGlueTableCreation")
|
|
ok.Boolean(v.DisableGlueTableCreation)
|
|
}
|
|
|
|
if v.S3StorageConfig != nil {
|
|
ok := object.Key("S3StorageConfig")
|
|
if err := awsAwsjson11_serializeDocumentS3StorageConfig(v.S3StorageConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOidcConfig(v *types.OidcConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AuthorizationEndpoint != nil {
|
|
ok := object.Key("AuthorizationEndpoint")
|
|
ok.String(*v.AuthorizationEndpoint)
|
|
}
|
|
|
|
if v.ClientId != nil {
|
|
ok := object.Key("ClientId")
|
|
ok.String(*v.ClientId)
|
|
}
|
|
|
|
if v.ClientSecret != nil {
|
|
ok := object.Key("ClientSecret")
|
|
ok.String(*v.ClientSecret)
|
|
}
|
|
|
|
if v.Issuer != nil {
|
|
ok := object.Key("Issuer")
|
|
ok.String(*v.Issuer)
|
|
}
|
|
|
|
if v.JwksUri != nil {
|
|
ok := object.Key("JwksUri")
|
|
ok.String(*v.JwksUri)
|
|
}
|
|
|
|
if v.LogoutEndpoint != nil {
|
|
ok := object.Key("LogoutEndpoint")
|
|
ok.String(*v.LogoutEndpoint)
|
|
}
|
|
|
|
if v.TokenEndpoint != nil {
|
|
ok := object.Key("TokenEndpoint")
|
|
ok.String(*v.TokenEndpoint)
|
|
}
|
|
|
|
if v.UserInfoEndpoint != nil {
|
|
ok := object.Key("UserInfoEndpoint")
|
|
ok.String(*v.UserInfoEndpoint)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOidcMemberDefinition(v *types.OidcMemberDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Groups != nil {
|
|
ok := object.Key("Groups")
|
|
if err := awsAwsjson11_serializeDocumentGroups(v.Groups, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOnlineStoreConfig(v *types.OnlineStoreConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EnableOnlineStore {
|
|
ok := object.Key("EnableOnlineStore")
|
|
ok.Boolean(v.EnableOnlineStore)
|
|
}
|
|
|
|
if v.SecurityConfig != nil {
|
|
ok := object.Key("SecurityConfig")
|
|
if err := awsAwsjson11_serializeDocumentOnlineStoreSecurityConfig(v.SecurityConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOnlineStoreSecurityConfig(v *types.OnlineStoreSecurityConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOutputConfig(v *types.OutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CompilerOptions != nil {
|
|
ok := object.Key("CompilerOptions")
|
|
ok.String(*v.CompilerOptions)
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.S3OutputLocation != nil {
|
|
ok := object.Key("S3OutputLocation")
|
|
ok.String(*v.S3OutputLocation)
|
|
}
|
|
|
|
if len(v.TargetDevice) > 0 {
|
|
ok := object.Key("TargetDevice")
|
|
ok.String(string(v.TargetDevice))
|
|
}
|
|
|
|
if v.TargetPlatform != nil {
|
|
ok := object.Key("TargetPlatform")
|
|
if err := awsAwsjson11_serializeDocumentTargetPlatform(v.TargetPlatform, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOutputDataConfig(v *types.OutputDataConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOutputParameter(v *types.OutputParameter, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.String(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentOutputParameterList(v []types.OutputParameter, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentOutputParameter(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentParameter(v *types.Parameter, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Name != nil {
|
|
ok := object.Key("Name")
|
|
ok.String(*v.Name)
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.String(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentParameterList(v []types.Parameter, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentParameter(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentParameterRange(v *types.ParameterRange, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CategoricalParameterRangeSpecification != nil {
|
|
ok := object.Key("CategoricalParameterRangeSpecification")
|
|
if err := awsAwsjson11_serializeDocumentCategoricalParameterRangeSpecification(v.CategoricalParameterRangeSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ContinuousParameterRangeSpecification != nil {
|
|
ok := object.Key("ContinuousParameterRangeSpecification")
|
|
if err := awsAwsjson11_serializeDocumentContinuousParameterRangeSpecification(v.ContinuousParameterRangeSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.IntegerParameterRangeSpecification != nil {
|
|
ok := object.Key("IntegerParameterRangeSpecification")
|
|
if err := awsAwsjson11_serializeDocumentIntegerParameterRangeSpecification(v.IntegerParameterRangeSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentParameterRanges(v *types.ParameterRanges, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CategoricalParameterRanges != nil {
|
|
ok := object.Key("CategoricalParameterRanges")
|
|
if err := awsAwsjson11_serializeDocumentCategoricalParameterRanges(v.CategoricalParameterRanges, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ContinuousParameterRanges != nil {
|
|
ok := object.Key("ContinuousParameterRanges")
|
|
if err := awsAwsjson11_serializeDocumentContinuousParameterRanges(v.ContinuousParameterRanges, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.IntegerParameterRanges != nil {
|
|
ok := object.Key("IntegerParameterRanges")
|
|
if err := awsAwsjson11_serializeDocumentIntegerParameterRanges(v.IntegerParameterRanges, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentParameterValues(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentParentHyperParameterTuningJob(v *types.ParentHyperParameterTuningJob, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HyperParameterTuningJobName != nil {
|
|
ok := object.Key("HyperParameterTuningJobName")
|
|
ok.String(*v.HyperParameterTuningJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentParentHyperParameterTuningJobs(v []types.ParentHyperParameterTuningJob, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentParentHyperParameterTuningJob(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingClusterConfig(v *types.ProcessingClusterConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.InstanceCount != nil {
|
|
ok := object.Key("InstanceCount")
|
|
ok.Integer(*v.InstanceCount)
|
|
}
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.VolumeKmsKeyId != nil {
|
|
ok := object.Key("VolumeKmsKeyId")
|
|
ok.String(*v.VolumeKmsKeyId)
|
|
}
|
|
|
|
if v.VolumeSizeInGB != nil {
|
|
ok := object.Key("VolumeSizeInGB")
|
|
ok.Integer(*v.VolumeSizeInGB)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingEnvironmentMap(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingFeatureStoreOutput(v *types.ProcessingFeatureStoreOutput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FeatureGroupName != nil {
|
|
ok := object.Key("FeatureGroupName")
|
|
ok.String(*v.FeatureGroupName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingInput(v *types.ProcessingInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppManaged {
|
|
ok := object.Key("AppManaged")
|
|
ok.Boolean(v.AppManaged)
|
|
}
|
|
|
|
if v.DatasetDefinition != nil {
|
|
ok := object.Key("DatasetDefinition")
|
|
if err := awsAwsjson11_serializeDocumentDatasetDefinition(v.DatasetDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InputName != nil {
|
|
ok := object.Key("InputName")
|
|
ok.String(*v.InputName)
|
|
}
|
|
|
|
if v.S3Input != nil {
|
|
ok := object.Key("S3Input")
|
|
if err := awsAwsjson11_serializeDocumentProcessingS3Input(v.S3Input, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingInputs(v []types.ProcessingInput, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentProcessingInput(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingOutput(v *types.ProcessingOutput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppManaged {
|
|
ok := object.Key("AppManaged")
|
|
ok.Boolean(v.AppManaged)
|
|
}
|
|
|
|
if v.FeatureStoreOutput != nil {
|
|
ok := object.Key("FeatureStoreOutput")
|
|
if err := awsAwsjson11_serializeDocumentProcessingFeatureStoreOutput(v.FeatureStoreOutput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputName != nil {
|
|
ok := object.Key("OutputName")
|
|
ok.String(*v.OutputName)
|
|
}
|
|
|
|
if v.S3Output != nil {
|
|
ok := object.Key("S3Output")
|
|
if err := awsAwsjson11_serializeDocumentProcessingS3Output(v.S3Output, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingOutputConfig(v *types.ProcessingOutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.Outputs != nil {
|
|
ok := object.Key("Outputs")
|
|
if err := awsAwsjson11_serializeDocumentProcessingOutputs(v.Outputs, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingOutputs(v []types.ProcessingOutput, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentProcessingOutput(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingResources(v *types.ProcessingResources, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClusterConfig != nil {
|
|
ok := object.Key("ClusterConfig")
|
|
if err := awsAwsjson11_serializeDocumentProcessingClusterConfig(v.ClusterConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingS3Input(v *types.ProcessingS3Input, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if len(v.S3CompressionType) > 0 {
|
|
ok := object.Key("S3CompressionType")
|
|
ok.String(string(v.S3CompressionType))
|
|
}
|
|
|
|
if len(v.S3DataDistributionType) > 0 {
|
|
ok := object.Key("S3DataDistributionType")
|
|
ok.String(string(v.S3DataDistributionType))
|
|
}
|
|
|
|
if len(v.S3DataType) > 0 {
|
|
ok := object.Key("S3DataType")
|
|
ok.String(string(v.S3DataType))
|
|
}
|
|
|
|
if len(v.S3InputMode) > 0 {
|
|
ok := object.Key("S3InputMode")
|
|
ok.String(string(v.S3InputMode))
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingS3Output(v *types.ProcessingS3Output, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if len(v.S3UploadMode) > 0 {
|
|
ok := object.Key("S3UploadMode")
|
|
ok.String(string(v.S3UploadMode))
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProcessingStoppingCondition(v *types.ProcessingStoppingCondition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
{
|
|
ok := object.Key("MaxRuntimeInSeconds")
|
|
ok.Integer(v.MaxRuntimeInSeconds)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProductionVariant(v *types.ProductionVariant, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.AcceleratorType) > 0 {
|
|
ok := object.Key("AcceleratorType")
|
|
ok.String(string(v.AcceleratorType))
|
|
}
|
|
|
|
if v.CoreDumpConfig != nil {
|
|
ok := object.Key("CoreDumpConfig")
|
|
if err := awsAwsjson11_serializeDocumentProductionVariantCoreDumpConfig(v.CoreDumpConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InitialInstanceCount != nil {
|
|
ok := object.Key("InitialInstanceCount")
|
|
ok.Integer(*v.InitialInstanceCount)
|
|
}
|
|
|
|
if v.InitialVariantWeight != nil {
|
|
ok := object.Key("InitialVariantWeight")
|
|
switch {
|
|
case math.IsNaN(float64(*v.InitialVariantWeight)):
|
|
ok.String("NaN")
|
|
|
|
case math.IsInf(float64(*v.InitialVariantWeight), 1):
|
|
ok.String("Infinity")
|
|
|
|
case math.IsInf(float64(*v.InitialVariantWeight), -1):
|
|
ok.String("-Infinity")
|
|
|
|
default:
|
|
ok.Float(*v.InitialVariantWeight)
|
|
|
|
}
|
|
}
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.ModelName != nil {
|
|
ok := object.Key("ModelName")
|
|
ok.String(*v.ModelName)
|
|
}
|
|
|
|
if v.VariantName != nil {
|
|
ok := object.Key("VariantName")
|
|
ok.String(*v.VariantName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProductionVariantCoreDumpConfig(v *types.ProductionVariantCoreDumpConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DestinationS3Uri != nil {
|
|
ok := object.Key("DestinationS3Uri")
|
|
ok.String(*v.DestinationS3Uri)
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProductionVariantList(v []types.ProductionVariant, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentProductionVariant(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProfilerConfig(v *types.ProfilerConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProfilingIntervalInMilliseconds != nil {
|
|
ok := object.Key("ProfilingIntervalInMilliseconds")
|
|
ok.Long(*v.ProfilingIntervalInMilliseconds)
|
|
}
|
|
|
|
if v.ProfilingParameters != nil {
|
|
ok := object.Key("ProfilingParameters")
|
|
if err := awsAwsjson11_serializeDocumentProfilingParameters(v.ProfilingParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProfilerConfigForUpdate(v *types.ProfilerConfigForUpdate, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DisableProfiler {
|
|
ok := object.Key("DisableProfiler")
|
|
ok.Boolean(v.DisableProfiler)
|
|
}
|
|
|
|
if v.ProfilingIntervalInMilliseconds != nil {
|
|
ok := object.Key("ProfilingIntervalInMilliseconds")
|
|
ok.Long(*v.ProfilingIntervalInMilliseconds)
|
|
}
|
|
|
|
if v.ProfilingParameters != nil {
|
|
ok := object.Key("ProfilingParameters")
|
|
if err := awsAwsjson11_serializeDocumentProfilingParameters(v.ProfilingParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProfilerRuleConfiguration(v *types.ProfilerRuleConfiguration, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if v.RuleConfigurationName != nil {
|
|
ok := object.Key("RuleConfigurationName")
|
|
ok.String(*v.RuleConfigurationName)
|
|
}
|
|
|
|
if v.RuleEvaluatorImage != nil {
|
|
ok := object.Key("RuleEvaluatorImage")
|
|
ok.String(*v.RuleEvaluatorImage)
|
|
}
|
|
|
|
if v.RuleParameters != nil {
|
|
ok := object.Key("RuleParameters")
|
|
if err := awsAwsjson11_serializeDocumentRuleParameters(v.RuleParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
if v.VolumeSizeInGB != 0 {
|
|
ok := object.Key("VolumeSizeInGB")
|
|
ok.Integer(v.VolumeSizeInGB)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProfilerRuleConfigurations(v []types.ProfilerRuleConfiguration, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentProfilerRuleConfiguration(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProfilingParameters(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentPropertyNameQuery(v *types.PropertyNameQuery, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PropertyNameHint != nil {
|
|
ok := object.Key("PropertyNameHint")
|
|
ok.String(*v.PropertyNameHint)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProvisioningParameter(v *types.ProvisioningParameter, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Key != nil {
|
|
ok := object.Key("Key")
|
|
ok.String(*v.Key)
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.String(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentProvisioningParameters(v []types.ProvisioningParameter, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentProvisioningParameter(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentPublicWorkforceTaskPrice(v *types.PublicWorkforceTaskPrice, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AmountInUsd != nil {
|
|
ok := object.Key("AmountInUsd")
|
|
if err := awsAwsjson11_serializeDocumentUSD(v.AmountInUsd, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRealtimeInferenceInstanceTypes(v []types.ProductionVariantInstanceType, 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 awsAwsjson11_serializeDocumentRedshiftDatasetDefinition(v *types.RedshiftDatasetDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClusterId != nil {
|
|
ok := object.Key("ClusterId")
|
|
ok.String(*v.ClusterId)
|
|
}
|
|
|
|
if v.ClusterRoleArn != nil {
|
|
ok := object.Key("ClusterRoleArn")
|
|
ok.String(*v.ClusterRoleArn)
|
|
}
|
|
|
|
if v.Database != nil {
|
|
ok := object.Key("Database")
|
|
ok.String(*v.Database)
|
|
}
|
|
|
|
if v.DbUser != nil {
|
|
ok := object.Key("DbUser")
|
|
ok.String(*v.DbUser)
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if len(v.OutputCompression) > 0 {
|
|
ok := object.Key("OutputCompression")
|
|
ok.String(string(v.OutputCompression))
|
|
}
|
|
|
|
if len(v.OutputFormat) > 0 {
|
|
ok := object.Key("OutputFormat")
|
|
ok.String(string(v.OutputFormat))
|
|
}
|
|
|
|
if v.OutputS3Uri != nil {
|
|
ok := object.Key("OutputS3Uri")
|
|
ok.String(*v.OutputS3Uri)
|
|
}
|
|
|
|
if v.QueryString != nil {
|
|
ok := object.Key("QueryString")
|
|
ok.String(*v.QueryString)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRenderableTask(v *types.RenderableTask, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Input != nil {
|
|
ok := object.Key("Input")
|
|
ok.String(*v.Input)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRepositoryAuthConfig(v *types.RepositoryAuthConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.RepositoryCredentialsProviderArn != nil {
|
|
ok := object.Key("RepositoryCredentialsProviderArn")
|
|
ok.String(*v.RepositoryCredentialsProviderArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentResourceConfig(v *types.ResourceConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
{
|
|
ok := object.Key("InstanceCount")
|
|
ok.Integer(v.InstanceCount)
|
|
}
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.VolumeKmsKeyId != nil {
|
|
ok := object.Key("VolumeKmsKeyId")
|
|
ok.String(*v.VolumeKmsKeyId)
|
|
}
|
|
|
|
{
|
|
ok := object.Key("VolumeSizeInGB")
|
|
ok.Integer(v.VolumeSizeInGB)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentResourceLimits(v *types.ResourceLimits, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
{
|
|
ok := object.Key("MaxNumberOfTrainingJobs")
|
|
ok.Integer(v.MaxNumberOfTrainingJobs)
|
|
}
|
|
|
|
{
|
|
ok := object.Key("MaxParallelTrainingJobs")
|
|
ok.Integer(v.MaxParallelTrainingJobs)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentResourceSpec(v *types.ResourceSpec, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.LifecycleConfigArn != nil {
|
|
ok := object.Key("LifecycleConfigArn")
|
|
ok.String(*v.LifecycleConfigArn)
|
|
}
|
|
|
|
if v.SageMakerImageArn != nil {
|
|
ok := object.Key("SageMakerImageArn")
|
|
ok.String(*v.SageMakerImageArn)
|
|
}
|
|
|
|
if v.SageMakerImageVersionArn != nil {
|
|
ok := object.Key("SageMakerImageVersionArn")
|
|
ok.String(*v.SageMakerImageVersionArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentResponseMIMETypes(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRetentionPolicy(v *types.RetentionPolicy, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.HomeEfsFileSystem) > 0 {
|
|
ok := object.Key("HomeEfsFileSystem")
|
|
ok.String(string(v.HomeEfsFileSystem))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRetryStrategy(v *types.RetryStrategy, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
{
|
|
ok := object.Key("MaximumRetryAttempts")
|
|
ok.Integer(v.MaximumRetryAttempts)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRSessionAppSettings(v *types.RSessionAppSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRStudioServerProAppSettings(v *types.RStudioServerProAppSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.AccessStatus) > 0 {
|
|
ok := object.Key("AccessStatus")
|
|
ok.String(string(v.AccessStatus))
|
|
}
|
|
|
|
if len(v.UserGroup) > 0 {
|
|
ok := object.Key("UserGroup")
|
|
ok.String(string(v.UserGroup))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRStudioServerProDomainSettings(v *types.RStudioServerProDomainSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DefaultResourceSpec != nil {
|
|
ok := object.Key("DefaultResourceSpec")
|
|
if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DomainExecutionRoleArn != nil {
|
|
ok := object.Key("DomainExecutionRoleArn")
|
|
ok.String(*v.DomainExecutionRoleArn)
|
|
}
|
|
|
|
if v.RStudioConnectUrl != nil {
|
|
ok := object.Key("RStudioConnectUrl")
|
|
ok.String(*v.RStudioConnectUrl)
|
|
}
|
|
|
|
if v.RStudioPackageManagerUrl != nil {
|
|
ok := object.Key("RStudioPackageManagerUrl")
|
|
ok.String(*v.RStudioPackageManagerUrl)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRStudioServerProDomainSettingsForUpdate(v *types.RStudioServerProDomainSettingsForUpdate, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DefaultResourceSpec != nil {
|
|
ok := object.Key("DefaultResourceSpec")
|
|
if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DomainExecutionRoleArn != nil {
|
|
ok := object.Key("DomainExecutionRoleArn")
|
|
ok.String(*v.DomainExecutionRoleArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentRuleParameters(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentS3DataSource(v *types.S3DataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AttributeNames != nil {
|
|
ok := object.Key("AttributeNames")
|
|
if err := awsAwsjson11_serializeDocumentAttributeNames(v.AttributeNames, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.S3DataDistributionType) > 0 {
|
|
ok := object.Key("S3DataDistributionType")
|
|
ok.String(string(v.S3DataDistributionType))
|
|
}
|
|
|
|
if len(v.S3DataType) > 0 {
|
|
ok := object.Key("S3DataType")
|
|
ok.String(string(v.S3DataType))
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentS3StorageConfig(v *types.S3StorageConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.ResolvedOutputS3Uri != nil {
|
|
ok := object.Key("ResolvedOutputS3Uri")
|
|
ok.String(*v.ResolvedOutputS3Uri)
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentScheduleConfig(v *types.ScheduleConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ScheduleExpression != nil {
|
|
ok := object.Key("ScheduleExpression")
|
|
ok.String(*v.ScheduleExpression)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSearchExpression(v *types.SearchExpression, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Filters != nil {
|
|
ok := object.Key("Filters")
|
|
if err := awsAwsjson11_serializeDocumentFilterList(v.Filters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NestedFilters != nil {
|
|
ok := object.Key("NestedFilters")
|
|
if err := awsAwsjson11_serializeDocumentNestedFiltersList(v.NestedFilters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.Operator) > 0 {
|
|
ok := object.Key("Operator")
|
|
ok.String(string(v.Operator))
|
|
}
|
|
|
|
if v.SubExpressions != nil {
|
|
ok := object.Key("SubExpressions")
|
|
if err := awsAwsjson11_serializeDocumentSearchExpressionList(v.SubExpressions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSearchExpressionList(v []types.SearchExpression, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentSearchExpression(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentServiceCatalogProvisioningDetails(v *types.ServiceCatalogProvisioningDetails, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PathId != nil {
|
|
ok := object.Key("PathId")
|
|
ok.String(*v.PathId)
|
|
}
|
|
|
|
if v.ProductId != nil {
|
|
ok := object.Key("ProductId")
|
|
ok.String(*v.ProductId)
|
|
}
|
|
|
|
if v.ProvisioningArtifactId != nil {
|
|
ok := object.Key("ProvisioningArtifactId")
|
|
ok.String(*v.ProvisioningArtifactId)
|
|
}
|
|
|
|
if v.ProvisioningParameters != nil {
|
|
ok := object.Key("ProvisioningParameters")
|
|
if err := awsAwsjson11_serializeDocumentProvisioningParameters(v.ProvisioningParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentServiceCatalogProvisioningUpdateDetails(v *types.ServiceCatalogProvisioningUpdateDetails, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProvisioningArtifactId != nil {
|
|
ok := object.Key("ProvisioningArtifactId")
|
|
ok.String(*v.ProvisioningArtifactId)
|
|
}
|
|
|
|
if v.ProvisioningParameters != nil {
|
|
ok := object.Key("ProvisioningParameters")
|
|
if err := awsAwsjson11_serializeDocumentProvisioningParameters(v.ProvisioningParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSharingSettings(v *types.SharingSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.NotebookOutputOption) > 0 {
|
|
ok := object.Key("NotebookOutputOption")
|
|
ok.String(string(v.NotebookOutputOption))
|
|
}
|
|
|
|
if v.S3KmsKeyId != nil {
|
|
ok := object.Key("S3KmsKeyId")
|
|
ok.String(*v.S3KmsKeyId)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentShuffleConfig(v *types.ShuffleConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
{
|
|
ok := object.Key("Seed")
|
|
ok.Long(v.Seed)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSourceAlgorithm(v *types.SourceAlgorithm, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmName != nil {
|
|
ok := object.Key("AlgorithmName")
|
|
ok.String(*v.AlgorithmName)
|
|
}
|
|
|
|
if v.ModelDataUrl != nil {
|
|
ok := object.Key("ModelDataUrl")
|
|
ok.String(*v.ModelDataUrl)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSourceAlgorithmList(v []types.SourceAlgorithm, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentSourceAlgorithm(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSourceAlgorithmSpecification(v *types.SourceAlgorithmSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SourceAlgorithms != nil {
|
|
ok := object.Key("SourceAlgorithms")
|
|
if err := awsAwsjson11_serializeDocumentSourceAlgorithmList(v.SourceAlgorithms, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSourceIpConfig(v *types.SourceIpConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Cidrs != nil {
|
|
ok := object.Key("Cidrs")
|
|
if err := awsAwsjson11_serializeDocumentCidrs(v.Cidrs, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentStoppingCondition(v *types.StoppingCondition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxRuntimeInSeconds != 0 {
|
|
ok := object.Key("MaxRuntimeInSeconds")
|
|
ok.Integer(v.MaxRuntimeInSeconds)
|
|
}
|
|
|
|
if v.MaxWaitTimeInSeconds != nil {
|
|
ok := object.Key("MaxWaitTimeInSeconds")
|
|
ok.Integer(*v.MaxWaitTimeInSeconds)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSubnets(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentSuggestionQuery(v *types.SuggestionQuery, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PropertyNameQuery != nil {
|
|
ok := object.Key("PropertyNameQuery")
|
|
if err := awsAwsjson11_serializeDocumentPropertyNameQuery(v.PropertyNameQuery, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Key != nil {
|
|
ok := object.Key("Key")
|
|
ok.String(*v.Key)
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.String(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTargetPlatform(v *types.TargetPlatform, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.Accelerator) > 0 {
|
|
ok := object.Key("Accelerator")
|
|
ok.String(string(v.Accelerator))
|
|
}
|
|
|
|
if len(v.Arch) > 0 {
|
|
ok := object.Key("Arch")
|
|
ok.String(string(v.Arch))
|
|
}
|
|
|
|
if len(v.Os) > 0 {
|
|
ok := object.Key("Os")
|
|
ok.String(string(v.Os))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTaskKeywords(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTensorBoardAppSettings(v *types.TensorBoardAppSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DefaultResourceSpec != nil {
|
|
ok := object.Key("DefaultResourceSpec")
|
|
if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTensorBoardOutputConfig(v *types.TensorBoardOutputConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.LocalPath != nil {
|
|
ok := object.Key("LocalPath")
|
|
ok.String(*v.LocalPath)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrafficRoutingConfig(v *types.TrafficRoutingConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CanarySize != nil {
|
|
ok := object.Key("CanarySize")
|
|
if err := awsAwsjson11_serializeDocumentCapacitySize(v.CanarySize, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.LinearStepSize != nil {
|
|
ok := object.Key("LinearStepSize")
|
|
if err := awsAwsjson11_serializeDocumentCapacitySize(v.LinearStepSize, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.Type) > 0 {
|
|
ok := object.Key("Type")
|
|
ok.String(string(v.Type))
|
|
}
|
|
|
|
if v.WaitIntervalInSeconds != nil {
|
|
ok := object.Key("WaitIntervalInSeconds")
|
|
ok.Integer(*v.WaitIntervalInSeconds)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrainingEnvironmentMap(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrainingInstanceTypes(v []types.TrainingInstanceType, 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 awsAwsjson11_serializeDocumentTrainingJobDefinition(v *types.TrainingJobDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HyperParameters != nil {
|
|
ok := object.Key("HyperParameters")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameters(v.HyperParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InputDataConfig != nil {
|
|
ok := object.Key("InputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentInputDataConfig(v.InputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputDataConfig != nil {
|
|
ok := object.Key("OutputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentOutputDataConfig(v.OutputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ResourceConfig != nil {
|
|
ok := object.Key("ResourceConfig")
|
|
if err := awsAwsjson11_serializeDocumentResourceConfig(v.ResourceConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.TrainingInputMode) > 0 {
|
|
ok := object.Key("TrainingInputMode")
|
|
ok.String(string(v.TrainingInputMode))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrainingSpecification(v *types.TrainingSpecification, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MetricDefinitions != nil {
|
|
ok := object.Key("MetricDefinitions")
|
|
if err := awsAwsjson11_serializeDocumentMetricDefinitionList(v.MetricDefinitions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedHyperParameters != nil {
|
|
ok := object.Key("SupportedHyperParameters")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterSpecifications(v.SupportedHyperParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedTrainingInstanceTypes != nil {
|
|
ok := object.Key("SupportedTrainingInstanceTypes")
|
|
if err := awsAwsjson11_serializeDocumentTrainingInstanceTypes(v.SupportedTrainingInstanceTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportedTuningJobObjectiveMetrics != nil {
|
|
ok := object.Key("SupportedTuningJobObjectiveMetrics")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobObjectives(v.SupportedTuningJobObjectiveMetrics, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SupportsDistributedTraining {
|
|
ok := object.Key("SupportsDistributedTraining")
|
|
ok.Boolean(v.SupportsDistributedTraining)
|
|
}
|
|
|
|
if v.TrainingChannels != nil {
|
|
ok := object.Key("TrainingChannels")
|
|
if err := awsAwsjson11_serializeDocumentChannelSpecifications(v.TrainingChannels, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingImage != nil {
|
|
ok := object.Key("TrainingImage")
|
|
ok.String(*v.TrainingImage)
|
|
}
|
|
|
|
if v.TrainingImageDigest != nil {
|
|
ok := object.Key("TrainingImageDigest")
|
|
ok.String(*v.TrainingImageDigest)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTransformDataSource(v *types.TransformDataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.S3DataSource != nil {
|
|
ok := object.Key("S3DataSource")
|
|
if err := awsAwsjson11_serializeDocumentTransformS3DataSource(v.S3DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTransformEnvironmentMap(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTransformInput(v *types.TransformInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.CompressionType) > 0 {
|
|
ok := object.Key("CompressionType")
|
|
ok.String(string(v.CompressionType))
|
|
}
|
|
|
|
if v.ContentType != nil {
|
|
ok := object.Key("ContentType")
|
|
ok.String(*v.ContentType)
|
|
}
|
|
|
|
if v.DataSource != nil {
|
|
ok := object.Key("DataSource")
|
|
if err := awsAwsjson11_serializeDocumentTransformDataSource(v.DataSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.SplitType) > 0 {
|
|
ok := object.Key("SplitType")
|
|
ok.String(string(v.SplitType))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTransformInstanceTypes(v []types.TransformInstanceType, 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 awsAwsjson11_serializeDocumentTransformJobDefinition(v *types.TransformJobDefinition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.BatchStrategy) > 0 {
|
|
ok := object.Key("BatchStrategy")
|
|
ok.String(string(v.BatchStrategy))
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentTransformEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MaxConcurrentTransforms != nil {
|
|
ok := object.Key("MaxConcurrentTransforms")
|
|
ok.Integer(*v.MaxConcurrentTransforms)
|
|
}
|
|
|
|
if v.MaxPayloadInMB != nil {
|
|
ok := object.Key("MaxPayloadInMB")
|
|
ok.Integer(*v.MaxPayloadInMB)
|
|
}
|
|
|
|
if v.TransformInput != nil {
|
|
ok := object.Key("TransformInput")
|
|
if err := awsAwsjson11_serializeDocumentTransformInput(v.TransformInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TransformOutput != nil {
|
|
ok := object.Key("TransformOutput")
|
|
if err := awsAwsjson11_serializeDocumentTransformOutput(v.TransformOutput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TransformResources != nil {
|
|
ok := object.Key("TransformResources")
|
|
if err := awsAwsjson11_serializeDocumentTransformResources(v.TransformResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTransformOutput(v *types.TransformOutput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Accept != nil {
|
|
ok := object.Key("Accept")
|
|
ok.String(*v.Accept)
|
|
}
|
|
|
|
if len(v.AssembleWith) > 0 {
|
|
ok := object.Key("AssembleWith")
|
|
ok.String(string(v.AssembleWith))
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.S3OutputPath != nil {
|
|
ok := object.Key("S3OutputPath")
|
|
ok.String(*v.S3OutputPath)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTransformResources(v *types.TransformResources, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.InstanceCount != nil {
|
|
ok := object.Key("InstanceCount")
|
|
ok.Integer(*v.InstanceCount)
|
|
}
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.VolumeKmsKeyId != nil {
|
|
ok := object.Key("VolumeKmsKeyId")
|
|
ok.String(*v.VolumeKmsKeyId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTransformS3DataSource(v *types.TransformS3DataSource, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.S3DataType) > 0 {
|
|
ok := object.Key("S3DataType")
|
|
ok.String(string(v.S3DataType))
|
|
}
|
|
|
|
if v.S3Uri != nil {
|
|
ok := object.Key("S3Uri")
|
|
ok.String(*v.S3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrialComponentArtifact(v *types.TrialComponentArtifact, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MediaType != nil {
|
|
ok := object.Key("MediaType")
|
|
ok.String(*v.MediaType)
|
|
}
|
|
|
|
if v.Value != nil {
|
|
ok := object.Key("Value")
|
|
ok.String(*v.Value)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrialComponentArtifacts(v map[string]types.TrialComponentArtifact, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
mapVar := v[key]
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentArtifact(&mapVar, om); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrialComponentParameters(v map[string]types.TrialComponentParameterValue, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
if vv := v[key]; vv == nil {
|
|
continue
|
|
}
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentParameterValue(v[key], om); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrialComponentParameterValue(v types.TrialComponentParameterValue, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
switch uv := v.(type) {
|
|
case *types.TrialComponentParameterValueMemberNumberValue:
|
|
av := object.Key("NumberValue")
|
|
switch {
|
|
case math.IsNaN(uv.Value):
|
|
av.String("NaN")
|
|
|
|
case math.IsInf(uv.Value, 1):
|
|
av.String("Infinity")
|
|
|
|
case math.IsInf(uv.Value, -1):
|
|
av.String("-Infinity")
|
|
|
|
default:
|
|
av.Double(uv.Value)
|
|
|
|
}
|
|
|
|
case *types.TrialComponentParameterValueMemberStringValue:
|
|
av := object.Key("StringValue")
|
|
av.String(uv.Value)
|
|
|
|
default:
|
|
return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
|
|
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTrialComponentStatus(v *types.TrialComponentStatus, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Message != nil {
|
|
ok := object.Key("Message")
|
|
ok.String(*v.Message)
|
|
}
|
|
|
|
if len(v.PrimaryStatus) > 0 {
|
|
ok := object.Key("PrimaryStatus")
|
|
ok.String(string(v.PrimaryStatus))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTuningJobCompletionCriteria(v *types.TuningJobCompletionCriteria, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TargetObjectiveMetricValue != nil {
|
|
ok := object.Key("TargetObjectiveMetricValue")
|
|
switch {
|
|
case math.IsNaN(float64(*v.TargetObjectiveMetricValue)):
|
|
ok.String("NaN")
|
|
|
|
case math.IsInf(float64(*v.TargetObjectiveMetricValue), 1):
|
|
ok.String("Infinity")
|
|
|
|
case math.IsInf(float64(*v.TargetObjectiveMetricValue), -1):
|
|
ok.String("-Infinity")
|
|
|
|
default:
|
|
ok.Float(*v.TargetObjectiveMetricValue)
|
|
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentUiConfig(v *types.UiConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanTaskUiArn != nil {
|
|
ok := object.Key("HumanTaskUiArn")
|
|
ok.String(*v.HumanTaskUiArn)
|
|
}
|
|
|
|
if v.UiTemplateS3Uri != nil {
|
|
ok := object.Key("UiTemplateS3Uri")
|
|
ok.String(*v.UiTemplateS3Uri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentUiTemplate(v *types.UiTemplate, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Content != nil {
|
|
ok := object.Key("Content")
|
|
ok.String(*v.Content)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentUSD(v *types.USD, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Cents != 0 {
|
|
ok := object.Key("Cents")
|
|
ok.Integer(v.Cents)
|
|
}
|
|
|
|
if v.Dollars != 0 {
|
|
ok := object.Key("Dollars")
|
|
ok.Integer(v.Dollars)
|
|
}
|
|
|
|
if v.TenthFractionsOfACent != 0 {
|
|
ok := object.Key("TenthFractionsOfACent")
|
|
ok.Integer(v.TenthFractionsOfACent)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentUserSettings(v *types.UserSettings, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExecutionRole != nil {
|
|
ok := object.Key("ExecutionRole")
|
|
ok.String(*v.ExecutionRole)
|
|
}
|
|
|
|
if v.JupyterServerAppSettings != nil {
|
|
ok := object.Key("JupyterServerAppSettings")
|
|
if err := awsAwsjson11_serializeDocumentJupyterServerAppSettings(v.JupyterServerAppSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.KernelGatewayAppSettings != nil {
|
|
ok := object.Key("KernelGatewayAppSettings")
|
|
if err := awsAwsjson11_serializeDocumentKernelGatewayAppSettings(v.KernelGatewayAppSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RSessionAppSettings != nil {
|
|
ok := object.Key("RSessionAppSettings")
|
|
if err := awsAwsjson11_serializeDocumentRSessionAppSettings(v.RSessionAppSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RStudioServerProAppSettings != nil {
|
|
ok := object.Key("RStudioServerProAppSettings")
|
|
if err := awsAwsjson11_serializeDocumentRStudioServerProAppSettings(v.RStudioServerProAppSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SecurityGroups != nil {
|
|
ok := object.Key("SecurityGroups")
|
|
if err := awsAwsjson11_serializeDocumentSecurityGroupIds(v.SecurityGroups, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SharingSettings != nil {
|
|
ok := object.Key("SharingSettings")
|
|
if err := awsAwsjson11_serializeDocumentSharingSettings(v.SharingSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TensorBoardAppSettings != nil {
|
|
ok := object.Key("TensorBoardAppSettings")
|
|
if err := awsAwsjson11_serializeDocumentTensorBoardAppSettings(v.TensorBoardAppSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentVariantProperty(v *types.VariantProperty, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.VariantPropertyType) > 0 {
|
|
ok := object.Key("VariantPropertyType")
|
|
ok.String(string(v.VariantPropertyType))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentVariantPropertyList(v []types.VariantProperty, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentVariantProperty(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentVpcConfig(v *types.VpcConfig, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SecurityGroupIds != nil {
|
|
ok := object.Key("SecurityGroupIds")
|
|
if err := awsAwsjson11_serializeDocumentVpcSecurityGroupIds(v.SecurityGroupIds, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Subnets != nil {
|
|
ok := object.Key("Subnets")
|
|
if err := awsAwsjson11_serializeDocumentSubnets(v.Subnets, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentVpcSecurityGroupIds(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentAddAssociationInput(v *AddAssociationInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.AssociationType) > 0 {
|
|
ok := object.Key("AssociationType")
|
|
ok.String(string(v.AssociationType))
|
|
}
|
|
|
|
if v.DestinationArn != nil {
|
|
ok := object.Key("DestinationArn")
|
|
ok.String(*v.DestinationArn)
|
|
}
|
|
|
|
if v.SourceArn != nil {
|
|
ok := object.Key("SourceArn")
|
|
ok.String(*v.SourceArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentAddTagsInput(v *AddTagsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ResourceArn != nil {
|
|
ok := object.Key("ResourceArn")
|
|
ok.String(*v.ResourceArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentAssociateTrialComponentInput(v *AssociateTrialComponentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrialComponentName != nil {
|
|
ok := object.Key("TrialComponentName")
|
|
ok.String(*v.TrialComponentName)
|
|
}
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentBatchDescribeModelPackageInput(v *BatchDescribeModelPackageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageArnList != nil {
|
|
ok := object.Key("ModelPackageArnList")
|
|
if err := awsAwsjson11_serializeDocumentModelPackageArnList(v.ModelPackageArnList, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateActionInput(v *CreateActionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ActionName != nil {
|
|
ok := object.Key("ActionName")
|
|
ok.String(*v.ActionName)
|
|
}
|
|
|
|
if v.ActionType != nil {
|
|
ok := object.Key("ActionType")
|
|
ok.String(*v.ActionType)
|
|
}
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.MetadataProperties != nil {
|
|
ok := object.Key("MetadataProperties")
|
|
if err := awsAwsjson11_serializeDocumentMetadataProperties(v.MetadataProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Properties != nil {
|
|
ok := object.Key("Properties")
|
|
if err := awsAwsjson11_serializeDocumentLineageEntityParameters(v.Properties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Source != nil {
|
|
ok := object.Key("Source")
|
|
if err := awsAwsjson11_serializeDocumentActionSource(v.Source, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.Status) > 0 {
|
|
ok := object.Key("Status")
|
|
ok.String(string(v.Status))
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateAlgorithmInput(v *CreateAlgorithmInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmDescription != nil {
|
|
ok := object.Key("AlgorithmDescription")
|
|
ok.String(*v.AlgorithmDescription)
|
|
}
|
|
|
|
if v.AlgorithmName != nil {
|
|
ok := object.Key("AlgorithmName")
|
|
ok.String(*v.AlgorithmName)
|
|
}
|
|
|
|
if v.CertifyForMarketplace {
|
|
ok := object.Key("CertifyForMarketplace")
|
|
ok.Boolean(v.CertifyForMarketplace)
|
|
}
|
|
|
|
if v.InferenceSpecification != nil {
|
|
ok := object.Key("InferenceSpecification")
|
|
if err := awsAwsjson11_serializeDocumentInferenceSpecification(v.InferenceSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingSpecification != nil {
|
|
ok := object.Key("TrainingSpecification")
|
|
if err := awsAwsjson11_serializeDocumentTrainingSpecification(v.TrainingSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ValidationSpecification != nil {
|
|
ok := object.Key("ValidationSpecification")
|
|
if err := awsAwsjson11_serializeDocumentAlgorithmValidationSpecification(v.ValidationSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateAppImageConfigInput(v *CreateAppImageConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppImageConfigName != nil {
|
|
ok := object.Key("AppImageConfigName")
|
|
ok.String(*v.AppImageConfigName)
|
|
}
|
|
|
|
if v.KernelGatewayImageConfig != nil {
|
|
ok := object.Key("KernelGatewayImageConfig")
|
|
if err := awsAwsjson11_serializeDocumentKernelGatewayImageConfig(v.KernelGatewayImageConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateAppInput(v *CreateAppInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppName != nil {
|
|
ok := object.Key("AppName")
|
|
ok.String(*v.AppName)
|
|
}
|
|
|
|
if len(v.AppType) > 0 {
|
|
ok := object.Key("AppType")
|
|
ok.String(string(v.AppType))
|
|
}
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.ResourceSpec != nil {
|
|
ok := object.Key("ResourceSpec")
|
|
if err := awsAwsjson11_serializeDocumentResourceSpec(v.ResourceSpec, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateArtifactInput(v *CreateArtifactInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ArtifactName != nil {
|
|
ok := object.Key("ArtifactName")
|
|
ok.String(*v.ArtifactName)
|
|
}
|
|
|
|
if v.ArtifactType != nil {
|
|
ok := object.Key("ArtifactType")
|
|
ok.String(*v.ArtifactType)
|
|
}
|
|
|
|
if v.MetadataProperties != nil {
|
|
ok := object.Key("MetadataProperties")
|
|
if err := awsAwsjson11_serializeDocumentMetadataProperties(v.MetadataProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Properties != nil {
|
|
ok := object.Key("Properties")
|
|
if err := awsAwsjson11_serializeDocumentLineageEntityParameters(v.Properties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Source != nil {
|
|
ok := object.Key("Source")
|
|
if err := awsAwsjson11_serializeDocumentArtifactSource(v.Source, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateAutoMLJobInput(v *CreateAutoMLJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AutoMLJobConfig != nil {
|
|
ok := object.Key("AutoMLJobConfig")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLJobConfig(v.AutoMLJobConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.AutoMLJobName != nil {
|
|
ok := object.Key("AutoMLJobName")
|
|
ok.String(*v.AutoMLJobName)
|
|
}
|
|
|
|
if v.AutoMLJobObjective != nil {
|
|
ok := object.Key("AutoMLJobObjective")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLJobObjective(v.AutoMLJobObjective, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.GenerateCandidateDefinitionsOnly {
|
|
ok := object.Key("GenerateCandidateDefinitionsOnly")
|
|
ok.Boolean(v.GenerateCandidateDefinitionsOnly)
|
|
}
|
|
|
|
if v.InputDataConfig != nil {
|
|
ok := object.Key("InputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLInputDataConfig(v.InputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelDeployConfig != nil {
|
|
ok := object.Key("ModelDeployConfig")
|
|
if err := awsAwsjson11_serializeDocumentModelDeployConfig(v.ModelDeployConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputDataConfig != nil {
|
|
ok := object.Key("OutputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentAutoMLOutputDataConfig(v.OutputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.ProblemType) > 0 {
|
|
ok := object.Key("ProblemType")
|
|
ok.String(string(v.ProblemType))
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateCodeRepositoryInput(v *CreateCodeRepositoryInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CodeRepositoryName != nil {
|
|
ok := object.Key("CodeRepositoryName")
|
|
ok.String(*v.CodeRepositoryName)
|
|
}
|
|
|
|
if v.GitConfig != nil {
|
|
ok := object.Key("GitConfig")
|
|
if err := awsAwsjson11_serializeDocumentGitConfig(v.GitConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateCompilationJobInput(v *CreateCompilationJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CompilationJobName != nil {
|
|
ok := object.Key("CompilationJobName")
|
|
ok.String(*v.CompilationJobName)
|
|
}
|
|
|
|
if v.InputConfig != nil {
|
|
ok := object.Key("InputConfig")
|
|
if err := awsAwsjson11_serializeDocumentInputConfig(v.InputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputConfig != nil {
|
|
ok := object.Key("OutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentOutputConfig(v.OutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.VpcConfig != nil {
|
|
ok := object.Key("VpcConfig")
|
|
if err := awsAwsjson11_serializeDocumentNeoVpcConfig(v.VpcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateContextInput(v *CreateContextInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContextName != nil {
|
|
ok := object.Key("ContextName")
|
|
ok.String(*v.ContextName)
|
|
}
|
|
|
|
if v.ContextType != nil {
|
|
ok := object.Key("ContextType")
|
|
ok.String(*v.ContextType)
|
|
}
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.Properties != nil {
|
|
ok := object.Key("Properties")
|
|
if err := awsAwsjson11_serializeDocumentLineageEntityParameters(v.Properties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Source != nil {
|
|
ok := object.Key("Source")
|
|
if err := awsAwsjson11_serializeDocumentContextSource(v.Source, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateDataQualityJobDefinitionInput(v *CreateDataQualityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DataQualityAppSpecification != nil {
|
|
ok := object.Key("DataQualityAppSpecification")
|
|
if err := awsAwsjson11_serializeDocumentDataQualityAppSpecification(v.DataQualityAppSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DataQualityBaselineConfig != nil {
|
|
ok := object.Key("DataQualityBaselineConfig")
|
|
if err := awsAwsjson11_serializeDocumentDataQualityBaselineConfig(v.DataQualityBaselineConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DataQualityJobInput != nil {
|
|
ok := object.Key("DataQualityJobInput")
|
|
if err := awsAwsjson11_serializeDocumentDataQualityJobInput(v.DataQualityJobInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DataQualityJobOutputConfig != nil {
|
|
ok := object.Key("DataQualityJobOutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringOutputConfig(v.DataQualityJobOutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
if v.JobResources != nil {
|
|
ok := object.Key("JobResources")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringResources(v.JobResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NetworkConfig != nil {
|
|
ok := object.Key("NetworkConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringNetworkConfig(v.NetworkConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateDeviceFleetInput(v *CreateDeviceFleetInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
if v.EnableIotRoleAlias != nil {
|
|
ok := object.Key("EnableIotRoleAlias")
|
|
ok.Boolean(*v.EnableIotRoleAlias)
|
|
}
|
|
|
|
if v.OutputConfig != nil {
|
|
ok := object.Key("OutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentEdgeOutputConfig(v.OutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateDomainInput(v *CreateDomainInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.AppNetworkAccessType) > 0 {
|
|
ok := object.Key("AppNetworkAccessType")
|
|
ok.String(string(v.AppNetworkAccessType))
|
|
}
|
|
|
|
if len(v.AppSecurityGroupManagement) > 0 {
|
|
ok := object.Key("AppSecurityGroupManagement")
|
|
ok.String(string(v.AppSecurityGroupManagement))
|
|
}
|
|
|
|
if len(v.AuthMode) > 0 {
|
|
ok := object.Key("AuthMode")
|
|
ok.String(string(v.AuthMode))
|
|
}
|
|
|
|
if v.DefaultUserSettings != nil {
|
|
ok := object.Key("DefaultUserSettings")
|
|
if err := awsAwsjson11_serializeDocumentUserSettings(v.DefaultUserSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DomainName != nil {
|
|
ok := object.Key("DomainName")
|
|
ok.String(*v.DomainName)
|
|
}
|
|
|
|
if v.DomainSettings != nil {
|
|
ok := object.Key("DomainSettings")
|
|
if err := awsAwsjson11_serializeDocumentDomainSettings(v.DomainSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.HomeEfsFileSystemKmsKeyId != nil {
|
|
ok := object.Key("HomeEfsFileSystemKmsKeyId")
|
|
ok.String(*v.HomeEfsFileSystemKmsKeyId)
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.SubnetIds != nil {
|
|
ok := object.Key("SubnetIds")
|
|
if err := awsAwsjson11_serializeDocumentSubnets(v.SubnetIds, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.VpcId != nil {
|
|
ok := object.Key("VpcId")
|
|
ok.String(*v.VpcId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateEdgePackagingJobInput(v *CreateEdgePackagingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CompilationJobName != nil {
|
|
ok := object.Key("CompilationJobName")
|
|
ok.String(*v.CompilationJobName)
|
|
}
|
|
|
|
if v.EdgePackagingJobName != nil {
|
|
ok := object.Key("EdgePackagingJobName")
|
|
ok.String(*v.EdgePackagingJobName)
|
|
}
|
|
|
|
if v.ModelName != nil {
|
|
ok := object.Key("ModelName")
|
|
ok.String(*v.ModelName)
|
|
}
|
|
|
|
if v.ModelVersion != nil {
|
|
ok := object.Key("ModelVersion")
|
|
ok.String(*v.ModelVersion)
|
|
}
|
|
|
|
if v.OutputConfig != nil {
|
|
ok := object.Key("OutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentEdgeOutputConfig(v.OutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ResourceKey != nil {
|
|
ok := object.Key("ResourceKey")
|
|
ok.String(*v.ResourceKey)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateEndpointConfigInput(v *CreateEndpointConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AsyncInferenceConfig != nil {
|
|
ok := object.Key("AsyncInferenceConfig")
|
|
if err := awsAwsjson11_serializeDocumentAsyncInferenceConfig(v.AsyncInferenceConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DataCaptureConfig != nil {
|
|
ok := object.Key("DataCaptureConfig")
|
|
if err := awsAwsjson11_serializeDocumentDataCaptureConfig(v.DataCaptureConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.EndpointConfigName != nil {
|
|
ok := object.Key("EndpointConfigName")
|
|
ok.String(*v.EndpointConfigName)
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.ProductionVariants != nil {
|
|
ok := object.Key("ProductionVariants")
|
|
if err := awsAwsjson11_serializeDocumentProductionVariantList(v.ProductionVariants, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateEndpointInput(v *CreateEndpointInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeploymentConfig != nil {
|
|
ok := object.Key("DeploymentConfig")
|
|
if err := awsAwsjson11_serializeDocumentDeploymentConfig(v.DeploymentConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.EndpointConfigName != nil {
|
|
ok := object.Key("EndpointConfigName")
|
|
ok.String(*v.EndpointConfigName)
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateExperimentInput(v *CreateExperimentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateFeatureGroupInput(v *CreateFeatureGroupInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.EventTimeFeatureName != nil {
|
|
ok := object.Key("EventTimeFeatureName")
|
|
ok.String(*v.EventTimeFeatureName)
|
|
}
|
|
|
|
if v.FeatureDefinitions != nil {
|
|
ok := object.Key("FeatureDefinitions")
|
|
if err := awsAwsjson11_serializeDocumentFeatureDefinitions(v.FeatureDefinitions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.FeatureGroupName != nil {
|
|
ok := object.Key("FeatureGroupName")
|
|
ok.String(*v.FeatureGroupName)
|
|
}
|
|
|
|
if v.OfflineStoreConfig != nil {
|
|
ok := object.Key("OfflineStoreConfig")
|
|
if err := awsAwsjson11_serializeDocumentOfflineStoreConfig(v.OfflineStoreConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OnlineStoreConfig != nil {
|
|
ok := object.Key("OnlineStoreConfig")
|
|
if err := awsAwsjson11_serializeDocumentOnlineStoreConfig(v.OnlineStoreConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RecordIdentifierFeatureName != nil {
|
|
ok := object.Key("RecordIdentifierFeatureName")
|
|
ok.String(*v.RecordIdentifierFeatureName)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateFlowDefinitionInput(v *CreateFlowDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FlowDefinitionName != nil {
|
|
ok := object.Key("FlowDefinitionName")
|
|
ok.String(*v.FlowDefinitionName)
|
|
}
|
|
|
|
if v.HumanLoopActivationConfig != nil {
|
|
ok := object.Key("HumanLoopActivationConfig")
|
|
if err := awsAwsjson11_serializeDocumentHumanLoopActivationConfig(v.HumanLoopActivationConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.HumanLoopConfig != nil {
|
|
ok := object.Key("HumanLoopConfig")
|
|
if err := awsAwsjson11_serializeDocumentHumanLoopConfig(v.HumanLoopConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.HumanLoopRequestSource != nil {
|
|
ok := object.Key("HumanLoopRequestSource")
|
|
if err := awsAwsjson11_serializeDocumentHumanLoopRequestSource(v.HumanLoopRequestSource, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputConfig != nil {
|
|
ok := object.Key("OutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentFlowDefinitionOutputConfig(v.OutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateHumanTaskUiInput(v *CreateHumanTaskUiInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanTaskUiName != nil {
|
|
ok := object.Key("HumanTaskUiName")
|
|
ok.String(*v.HumanTaskUiName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.UiTemplate != nil {
|
|
ok := object.Key("UiTemplate")
|
|
if err := awsAwsjson11_serializeDocumentUiTemplate(v.UiTemplate, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateHyperParameterTuningJobInput(v *CreateHyperParameterTuningJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HyperParameterTuningJobConfig != nil {
|
|
ok := object.Key("HyperParameterTuningJobConfig")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobConfig(v.HyperParameterTuningJobConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.HyperParameterTuningJobName != nil {
|
|
ok := object.Key("HyperParameterTuningJobName")
|
|
ok.String(*v.HyperParameterTuningJobName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingJobDefinition != nil {
|
|
ok := object.Key("TrainingJobDefinition")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinition(v.TrainingJobDefinition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingJobDefinitions != nil {
|
|
ok := object.Key("TrainingJobDefinitions")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinitions(v.TrainingJobDefinitions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.WarmStartConfig != nil {
|
|
ok := object.Key("WarmStartConfig")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobWarmStartConfig(v.WarmStartConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateImageInput(v *CreateImageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateImageVersionInput(v *CreateImageVersionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.BaseImage != nil {
|
|
ok := object.Key("BaseImage")
|
|
ok.String(*v.BaseImage)
|
|
}
|
|
|
|
if v.ClientToken != nil {
|
|
ok := object.Key("ClientToken")
|
|
ok.String(*v.ClientToken)
|
|
}
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateLabelingJobInput(v *CreateLabelingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanTaskConfig != nil {
|
|
ok := object.Key("HumanTaskConfig")
|
|
if err := awsAwsjson11_serializeDocumentHumanTaskConfig(v.HumanTaskConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InputConfig != nil {
|
|
ok := object.Key("InputConfig")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobInputConfig(v.InputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.LabelAttributeName != nil {
|
|
ok := object.Key("LabelAttributeName")
|
|
ok.String(*v.LabelAttributeName)
|
|
}
|
|
|
|
if v.LabelCategoryConfigS3Uri != nil {
|
|
ok := object.Key("LabelCategoryConfigS3Uri")
|
|
ok.String(*v.LabelCategoryConfigS3Uri)
|
|
}
|
|
|
|
if v.LabelingJobAlgorithmsConfig != nil {
|
|
ok := object.Key("LabelingJobAlgorithmsConfig")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobAlgorithmsConfig(v.LabelingJobAlgorithmsConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.LabelingJobName != nil {
|
|
ok := object.Key("LabelingJobName")
|
|
ok.String(*v.LabelingJobName)
|
|
}
|
|
|
|
if v.OutputConfig != nil {
|
|
ok := object.Key("OutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobOutputConfig(v.OutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingConditions != nil {
|
|
ok := object.Key("StoppingConditions")
|
|
if err := awsAwsjson11_serializeDocumentLabelingJobStoppingConditions(v.StoppingConditions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateModelBiasJobDefinitionInput(v *CreateModelBiasJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
if v.JobResources != nil {
|
|
ok := object.Key("JobResources")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringResources(v.JobResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelBiasAppSpecification != nil {
|
|
ok := object.Key("ModelBiasAppSpecification")
|
|
if err := awsAwsjson11_serializeDocumentModelBiasAppSpecification(v.ModelBiasAppSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelBiasBaselineConfig != nil {
|
|
ok := object.Key("ModelBiasBaselineConfig")
|
|
if err := awsAwsjson11_serializeDocumentModelBiasBaselineConfig(v.ModelBiasBaselineConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelBiasJobInput != nil {
|
|
ok := object.Key("ModelBiasJobInput")
|
|
if err := awsAwsjson11_serializeDocumentModelBiasJobInput(v.ModelBiasJobInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelBiasJobOutputConfig != nil {
|
|
ok := object.Key("ModelBiasJobOutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringOutputConfig(v.ModelBiasJobOutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NetworkConfig != nil {
|
|
ok := object.Key("NetworkConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringNetworkConfig(v.NetworkConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateModelExplainabilityJobDefinitionInput(v *CreateModelExplainabilityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
if v.JobResources != nil {
|
|
ok := object.Key("JobResources")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringResources(v.JobResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelExplainabilityAppSpecification != nil {
|
|
ok := object.Key("ModelExplainabilityAppSpecification")
|
|
if err := awsAwsjson11_serializeDocumentModelExplainabilityAppSpecification(v.ModelExplainabilityAppSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelExplainabilityBaselineConfig != nil {
|
|
ok := object.Key("ModelExplainabilityBaselineConfig")
|
|
if err := awsAwsjson11_serializeDocumentModelExplainabilityBaselineConfig(v.ModelExplainabilityBaselineConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelExplainabilityJobInput != nil {
|
|
ok := object.Key("ModelExplainabilityJobInput")
|
|
if err := awsAwsjson11_serializeDocumentModelExplainabilityJobInput(v.ModelExplainabilityJobInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelExplainabilityJobOutputConfig != nil {
|
|
ok := object.Key("ModelExplainabilityJobOutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringOutputConfig(v.ModelExplainabilityJobOutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NetworkConfig != nil {
|
|
ok := object.Key("NetworkConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringNetworkConfig(v.NetworkConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateModelInput(v *CreateModelInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Containers != nil {
|
|
ok := object.Key("Containers")
|
|
if err := awsAwsjson11_serializeDocumentContainerDefinitionList(v.Containers, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.EnableNetworkIsolation {
|
|
ok := object.Key("EnableNetworkIsolation")
|
|
ok.Boolean(v.EnableNetworkIsolation)
|
|
}
|
|
|
|
if v.ExecutionRoleArn != nil {
|
|
ok := object.Key("ExecutionRoleArn")
|
|
ok.String(*v.ExecutionRoleArn)
|
|
}
|
|
|
|
if v.InferenceExecutionConfig != nil {
|
|
ok := object.Key("InferenceExecutionConfig")
|
|
if err := awsAwsjson11_serializeDocumentInferenceExecutionConfig(v.InferenceExecutionConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelName != nil {
|
|
ok := object.Key("ModelName")
|
|
ok.String(*v.ModelName)
|
|
}
|
|
|
|
if v.PrimaryContainer != nil {
|
|
ok := object.Key("PrimaryContainer")
|
|
if err := awsAwsjson11_serializeDocumentContainerDefinition(v.PrimaryContainer, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.VpcConfig != nil {
|
|
ok := object.Key("VpcConfig")
|
|
if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateModelPackageGroupInput(v *CreateModelPackageGroupInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageGroupDescription != nil {
|
|
ok := object.Key("ModelPackageGroupDescription")
|
|
ok.String(*v.ModelPackageGroupDescription)
|
|
}
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateModelPackageInput(v *CreateModelPackageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CertifyForMarketplace {
|
|
ok := object.Key("CertifyForMarketplace")
|
|
ok.Boolean(v.CertifyForMarketplace)
|
|
}
|
|
|
|
if v.ClientToken != nil {
|
|
ok := object.Key("ClientToken")
|
|
ok.String(*v.ClientToken)
|
|
}
|
|
|
|
if v.CustomerMetadataProperties != nil {
|
|
ok := object.Key("CustomerMetadataProperties")
|
|
if err := awsAwsjson11_serializeDocumentCustomerMetadataMap(v.CustomerMetadataProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InferenceSpecification != nil {
|
|
ok := object.Key("InferenceSpecification")
|
|
if err := awsAwsjson11_serializeDocumentInferenceSpecification(v.InferenceSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MetadataProperties != nil {
|
|
ok := object.Key("MetadataProperties")
|
|
if err := awsAwsjson11_serializeDocumentMetadataProperties(v.MetadataProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.ModelApprovalStatus) > 0 {
|
|
ok := object.Key("ModelApprovalStatus")
|
|
ok.String(string(v.ModelApprovalStatus))
|
|
}
|
|
|
|
if v.ModelMetrics != nil {
|
|
ok := object.Key("ModelMetrics")
|
|
if err := awsAwsjson11_serializeDocumentModelMetrics(v.ModelMetrics, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelPackageDescription != nil {
|
|
ok := object.Key("ModelPackageDescription")
|
|
ok.String(*v.ModelPackageDescription)
|
|
}
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
if v.ModelPackageName != nil {
|
|
ok := object.Key("ModelPackageName")
|
|
ok.String(*v.ModelPackageName)
|
|
}
|
|
|
|
if v.SourceAlgorithmSpecification != nil {
|
|
ok := object.Key("SourceAlgorithmSpecification")
|
|
if err := awsAwsjson11_serializeDocumentSourceAlgorithmSpecification(v.SourceAlgorithmSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ValidationSpecification != nil {
|
|
ok := object.Key("ValidationSpecification")
|
|
if err := awsAwsjson11_serializeDocumentModelPackageValidationSpecification(v.ValidationSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateModelQualityJobDefinitionInput(v *CreateModelQualityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
if v.JobResources != nil {
|
|
ok := object.Key("JobResources")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringResources(v.JobResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelQualityAppSpecification != nil {
|
|
ok := object.Key("ModelQualityAppSpecification")
|
|
if err := awsAwsjson11_serializeDocumentModelQualityAppSpecification(v.ModelQualityAppSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelQualityBaselineConfig != nil {
|
|
ok := object.Key("ModelQualityBaselineConfig")
|
|
if err := awsAwsjson11_serializeDocumentModelQualityBaselineConfig(v.ModelQualityBaselineConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelQualityJobInput != nil {
|
|
ok := object.Key("ModelQualityJobInput")
|
|
if err := awsAwsjson11_serializeDocumentModelQualityJobInput(v.ModelQualityJobInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelQualityJobOutputConfig != nil {
|
|
ok := object.Key("ModelQualityJobOutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringOutputConfig(v.ModelQualityJobOutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NetworkConfig != nil {
|
|
ok := object.Key("NetworkConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringNetworkConfig(v.NetworkConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateMonitoringScheduleInput(v *CreateMonitoringScheduleInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MonitoringScheduleConfig != nil {
|
|
ok := object.Key("MonitoringScheduleConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringScheduleConfig(v.MonitoringScheduleConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MonitoringScheduleName != nil {
|
|
ok := object.Key("MonitoringScheduleName")
|
|
ok.String(*v.MonitoringScheduleName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateNotebookInstanceInput(v *CreateNotebookInstanceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AcceleratorTypes != nil {
|
|
ok := object.Key("AcceleratorTypes")
|
|
if err := awsAwsjson11_serializeDocumentNotebookInstanceAcceleratorTypes(v.AcceleratorTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.AdditionalCodeRepositories != nil {
|
|
ok := object.Key("AdditionalCodeRepositories")
|
|
if err := awsAwsjson11_serializeDocumentAdditionalCodeRepositoryNamesOrUrls(v.AdditionalCodeRepositories, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DefaultCodeRepository != nil {
|
|
ok := object.Key("DefaultCodeRepository")
|
|
ok.String(*v.DefaultCodeRepository)
|
|
}
|
|
|
|
if len(v.DirectInternetAccess) > 0 {
|
|
ok := object.Key("DirectInternetAccess")
|
|
ok.String(string(v.DirectInternetAccess))
|
|
}
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.KmsKeyId != nil {
|
|
ok := object.Key("KmsKeyId")
|
|
ok.String(*v.KmsKeyId)
|
|
}
|
|
|
|
if v.LifecycleConfigName != nil {
|
|
ok := object.Key("LifecycleConfigName")
|
|
ok.String(*v.LifecycleConfigName)
|
|
}
|
|
|
|
if v.NotebookInstanceName != nil {
|
|
ok := object.Key("NotebookInstanceName")
|
|
ok.String(*v.NotebookInstanceName)
|
|
}
|
|
|
|
if v.PlatformIdentifier != nil {
|
|
ok := object.Key("PlatformIdentifier")
|
|
ok.String(*v.PlatformIdentifier)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if len(v.RootAccess) > 0 {
|
|
ok := object.Key("RootAccess")
|
|
ok.String(string(v.RootAccess))
|
|
}
|
|
|
|
if v.SecurityGroupIds != nil {
|
|
ok := object.Key("SecurityGroupIds")
|
|
if err := awsAwsjson11_serializeDocumentSecurityGroupIds(v.SecurityGroupIds, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SubnetId != nil {
|
|
ok := object.Key("SubnetId")
|
|
ok.String(*v.SubnetId)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.VolumeSizeInGB != nil {
|
|
ok := object.Key("VolumeSizeInGB")
|
|
ok.Integer(*v.VolumeSizeInGB)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateNotebookInstanceLifecycleConfigInput(v *CreateNotebookInstanceLifecycleConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceLifecycleConfigName != nil {
|
|
ok := object.Key("NotebookInstanceLifecycleConfigName")
|
|
ok.String(*v.NotebookInstanceLifecycleConfigName)
|
|
}
|
|
|
|
if v.OnCreate != nil {
|
|
ok := object.Key("OnCreate")
|
|
if err := awsAwsjson11_serializeDocumentNotebookInstanceLifecycleConfigList(v.OnCreate, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OnStart != nil {
|
|
ok := object.Key("OnStart")
|
|
if err := awsAwsjson11_serializeDocumentNotebookInstanceLifecycleConfigList(v.OnStart, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreatePipelineInput(v *CreatePipelineInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientRequestToken != nil {
|
|
ok := object.Key("ClientRequestToken")
|
|
ok.String(*v.ClientRequestToken)
|
|
}
|
|
|
|
if v.PipelineDefinition != nil {
|
|
ok := object.Key("PipelineDefinition")
|
|
ok.String(*v.PipelineDefinition)
|
|
}
|
|
|
|
if v.PipelineDescription != nil {
|
|
ok := object.Key("PipelineDescription")
|
|
ok.String(*v.PipelineDescription)
|
|
}
|
|
|
|
if v.PipelineDisplayName != nil {
|
|
ok := object.Key("PipelineDisplayName")
|
|
ok.String(*v.PipelineDisplayName)
|
|
}
|
|
|
|
if v.PipelineName != nil {
|
|
ok := object.Key("PipelineName")
|
|
ok.String(*v.PipelineName)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreatePresignedDomainUrlInput(v *CreatePresignedDomainUrlInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.ExpiresInSeconds != nil {
|
|
ok := object.Key("ExpiresInSeconds")
|
|
ok.Integer(*v.ExpiresInSeconds)
|
|
}
|
|
|
|
if v.SessionExpirationDurationInSeconds != nil {
|
|
ok := object.Key("SessionExpirationDurationInSeconds")
|
|
ok.Integer(*v.SessionExpirationDurationInSeconds)
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreatePresignedNotebookInstanceUrlInput(v *CreatePresignedNotebookInstanceUrlInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceName != nil {
|
|
ok := object.Key("NotebookInstanceName")
|
|
ok.String(*v.NotebookInstanceName)
|
|
}
|
|
|
|
if v.SessionExpirationDurationInSeconds != nil {
|
|
ok := object.Key("SessionExpirationDurationInSeconds")
|
|
ok.Integer(*v.SessionExpirationDurationInSeconds)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateProcessingJobInput(v *CreateProcessingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppSpecification != nil {
|
|
ok := object.Key("AppSpecification")
|
|
if err := awsAwsjson11_serializeDocumentAppSpecification(v.AppSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentProcessingEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ExperimentConfig != nil {
|
|
ok := object.Key("ExperimentConfig")
|
|
if err := awsAwsjson11_serializeDocumentExperimentConfig(v.ExperimentConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NetworkConfig != nil {
|
|
ok := object.Key("NetworkConfig")
|
|
if err := awsAwsjson11_serializeDocumentNetworkConfig(v.NetworkConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ProcessingInputs != nil {
|
|
ok := object.Key("ProcessingInputs")
|
|
if err := awsAwsjson11_serializeDocumentProcessingInputs(v.ProcessingInputs, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ProcessingJobName != nil {
|
|
ok := object.Key("ProcessingJobName")
|
|
ok.String(*v.ProcessingJobName)
|
|
}
|
|
|
|
if v.ProcessingOutputConfig != nil {
|
|
ok := object.Key("ProcessingOutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentProcessingOutputConfig(v.ProcessingOutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ProcessingResources != nil {
|
|
ok := object.Key("ProcessingResources")
|
|
if err := awsAwsjson11_serializeDocumentProcessingResources(v.ProcessingResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentProcessingStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateProjectInput(v *CreateProjectInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProjectDescription != nil {
|
|
ok := object.Key("ProjectDescription")
|
|
ok.String(*v.ProjectDescription)
|
|
}
|
|
|
|
if v.ProjectName != nil {
|
|
ok := object.Key("ProjectName")
|
|
ok.String(*v.ProjectName)
|
|
}
|
|
|
|
if v.ServiceCatalogProvisioningDetails != nil {
|
|
ok := object.Key("ServiceCatalogProvisioningDetails")
|
|
if err := awsAwsjson11_serializeDocumentServiceCatalogProvisioningDetails(v.ServiceCatalogProvisioningDetails, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateStudioLifecycleConfigInput(v *CreateStudioLifecycleConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.StudioLifecycleConfigAppType) > 0 {
|
|
ok := object.Key("StudioLifecycleConfigAppType")
|
|
ok.String(string(v.StudioLifecycleConfigAppType))
|
|
}
|
|
|
|
if v.StudioLifecycleConfigContent != nil {
|
|
ok := object.Key("StudioLifecycleConfigContent")
|
|
ok.String(*v.StudioLifecycleConfigContent)
|
|
}
|
|
|
|
if v.StudioLifecycleConfigName != nil {
|
|
ok := object.Key("StudioLifecycleConfigName")
|
|
ok.String(*v.StudioLifecycleConfigName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateTrainingJobInput(v *CreateTrainingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmSpecification != nil {
|
|
ok := object.Key("AlgorithmSpecification")
|
|
if err := awsAwsjson11_serializeDocumentAlgorithmSpecification(v.AlgorithmSpecification, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.CheckpointConfig != nil {
|
|
ok := object.Key("CheckpointConfig")
|
|
if err := awsAwsjson11_serializeDocumentCheckpointConfig(v.CheckpointConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DebugHookConfig != nil {
|
|
ok := object.Key("DebugHookConfig")
|
|
if err := awsAwsjson11_serializeDocumentDebugHookConfig(v.DebugHookConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DebugRuleConfigurations != nil {
|
|
ok := object.Key("DebugRuleConfigurations")
|
|
if err := awsAwsjson11_serializeDocumentDebugRuleConfigurations(v.DebugRuleConfigurations, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.EnableInterContainerTrafficEncryption {
|
|
ok := object.Key("EnableInterContainerTrafficEncryption")
|
|
ok.Boolean(v.EnableInterContainerTrafficEncryption)
|
|
}
|
|
|
|
if v.EnableManagedSpotTraining {
|
|
ok := object.Key("EnableManagedSpotTraining")
|
|
ok.Boolean(v.EnableManagedSpotTraining)
|
|
}
|
|
|
|
if v.EnableNetworkIsolation {
|
|
ok := object.Key("EnableNetworkIsolation")
|
|
ok.Boolean(v.EnableNetworkIsolation)
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentTrainingEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ExperimentConfig != nil {
|
|
ok := object.Key("ExperimentConfig")
|
|
if err := awsAwsjson11_serializeDocumentExperimentConfig(v.ExperimentConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.HyperParameters != nil {
|
|
ok := object.Key("HyperParameters")
|
|
if err := awsAwsjson11_serializeDocumentHyperParameters(v.HyperParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InputDataConfig != nil {
|
|
ok := object.Key("InputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentInputDataConfig(v.InputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputDataConfig != nil {
|
|
ok := object.Key("OutputDataConfig")
|
|
if err := awsAwsjson11_serializeDocumentOutputDataConfig(v.OutputDataConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ProfilerConfig != nil {
|
|
ok := object.Key("ProfilerConfig")
|
|
if err := awsAwsjson11_serializeDocumentProfilerConfig(v.ProfilerConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ProfilerRuleConfigurations != nil {
|
|
ok := object.Key("ProfilerRuleConfigurations")
|
|
if err := awsAwsjson11_serializeDocumentProfilerRuleConfigurations(v.ProfilerRuleConfigurations, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ResourceConfig != nil {
|
|
ok := object.Key("ResourceConfig")
|
|
if err := awsAwsjson11_serializeDocumentResourceConfig(v.ResourceConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RetryStrategy != nil {
|
|
ok := object.Key("RetryStrategy")
|
|
if err := awsAwsjson11_serializeDocumentRetryStrategy(v.RetryStrategy, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.StoppingCondition != nil {
|
|
ok := object.Key("StoppingCondition")
|
|
if err := awsAwsjson11_serializeDocumentStoppingCondition(v.StoppingCondition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TensorBoardOutputConfig != nil {
|
|
ok := object.Key("TensorBoardOutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentTensorBoardOutputConfig(v.TensorBoardOutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingJobName != nil {
|
|
ok := object.Key("TrainingJobName")
|
|
ok.String(*v.TrainingJobName)
|
|
}
|
|
|
|
if v.VpcConfig != nil {
|
|
ok := object.Key("VpcConfig")
|
|
if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateTransformJobInput(v *CreateTransformJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.BatchStrategy) > 0 {
|
|
ok := object.Key("BatchStrategy")
|
|
ok.String(string(v.BatchStrategy))
|
|
}
|
|
|
|
if v.DataProcessing != nil {
|
|
ok := object.Key("DataProcessing")
|
|
if err := awsAwsjson11_serializeDocumentDataProcessing(v.DataProcessing, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Environment != nil {
|
|
ok := object.Key("Environment")
|
|
if err := awsAwsjson11_serializeDocumentTransformEnvironmentMap(v.Environment, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ExperimentConfig != nil {
|
|
ok := object.Key("ExperimentConfig")
|
|
if err := awsAwsjson11_serializeDocumentExperimentConfig(v.ExperimentConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MaxConcurrentTransforms != nil {
|
|
ok := object.Key("MaxConcurrentTransforms")
|
|
ok.Integer(*v.MaxConcurrentTransforms)
|
|
}
|
|
|
|
if v.MaxPayloadInMB != nil {
|
|
ok := object.Key("MaxPayloadInMB")
|
|
ok.Integer(*v.MaxPayloadInMB)
|
|
}
|
|
|
|
if v.ModelClientConfig != nil {
|
|
ok := object.Key("ModelClientConfig")
|
|
if err := awsAwsjson11_serializeDocumentModelClientConfig(v.ModelClientConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ModelName != nil {
|
|
ok := object.Key("ModelName")
|
|
ok.String(*v.ModelName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TransformInput != nil {
|
|
ok := object.Key("TransformInput")
|
|
if err := awsAwsjson11_serializeDocumentTransformInput(v.TransformInput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TransformJobName != nil {
|
|
ok := object.Key("TransformJobName")
|
|
ok.String(*v.TransformJobName)
|
|
}
|
|
|
|
if v.TransformOutput != nil {
|
|
ok := object.Key("TransformOutput")
|
|
if err := awsAwsjson11_serializeDocumentTransformOutput(v.TransformOutput, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TransformResources != nil {
|
|
ok := object.Key("TransformResources")
|
|
if err := awsAwsjson11_serializeDocumentTransformResources(v.TransformResources, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateTrialComponentInput(v *CreateTrialComponentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.EndTime != nil {
|
|
ok := object.Key("EndTime")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.EndTime))
|
|
}
|
|
|
|
if v.InputArtifacts != nil {
|
|
ok := object.Key("InputArtifacts")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentArtifacts(v.InputArtifacts, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MetadataProperties != nil {
|
|
ok := object.Key("MetadataProperties")
|
|
if err := awsAwsjson11_serializeDocumentMetadataProperties(v.MetadataProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputArtifacts != nil {
|
|
ok := object.Key("OutputArtifacts")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentArtifacts(v.OutputArtifacts, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Parameters != nil {
|
|
ok := object.Key("Parameters")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentParameters(v.Parameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StartTime != nil {
|
|
ok := object.Key("StartTime")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.StartTime))
|
|
}
|
|
|
|
if v.Status != nil {
|
|
ok := object.Key("Status")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentStatus(v.Status, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrialComponentName != nil {
|
|
ok := object.Key("TrialComponentName")
|
|
ok.String(*v.TrialComponentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateTrialInput(v *CreateTrialInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
if v.MetadataProperties != nil {
|
|
ok := object.Key("MetadataProperties")
|
|
if err := awsAwsjson11_serializeDocumentMetadataProperties(v.MetadataProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateUserProfileInput(v *CreateUserProfileInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.SingleSignOnUserIdentifier != nil {
|
|
ok := object.Key("SingleSignOnUserIdentifier")
|
|
ok.String(*v.SingleSignOnUserIdentifier)
|
|
}
|
|
|
|
if v.SingleSignOnUserValue != nil {
|
|
ok := object.Key("SingleSignOnUserValue")
|
|
ok.String(*v.SingleSignOnUserValue)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
if v.UserSettings != nil {
|
|
ok := object.Key("UserSettings")
|
|
if err := awsAwsjson11_serializeDocumentUserSettings(v.UserSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateWorkforceInput(v *CreateWorkforceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CognitoConfig != nil {
|
|
ok := object.Key("CognitoConfig")
|
|
if err := awsAwsjson11_serializeDocumentCognitoConfig(v.CognitoConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OidcConfig != nil {
|
|
ok := object.Key("OidcConfig")
|
|
if err := awsAwsjson11_serializeDocumentOidcConfig(v.OidcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SourceIpConfig != nil {
|
|
ok := object.Key("SourceIpConfig")
|
|
if err := awsAwsjson11_serializeDocumentSourceIpConfig(v.SourceIpConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.WorkforceName != nil {
|
|
ok := object.Key("WorkforceName")
|
|
ok.String(*v.WorkforceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateWorkteamInput(v *CreateWorkteamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.MemberDefinitions != nil {
|
|
ok := object.Key("MemberDefinitions")
|
|
if err := awsAwsjson11_serializeDocumentMemberDefinitions(v.MemberDefinitions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NotificationConfiguration != nil {
|
|
ok := object.Key("NotificationConfiguration")
|
|
if err := awsAwsjson11_serializeDocumentNotificationConfiguration(v.NotificationConfiguration, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.WorkforceName != nil {
|
|
ok := object.Key("WorkforceName")
|
|
ok.String(*v.WorkforceName)
|
|
}
|
|
|
|
if v.WorkteamName != nil {
|
|
ok := object.Key("WorkteamName")
|
|
ok.String(*v.WorkteamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteActionInput(v *DeleteActionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ActionName != nil {
|
|
ok := object.Key("ActionName")
|
|
ok.String(*v.ActionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteAlgorithmInput(v *DeleteAlgorithmInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmName != nil {
|
|
ok := object.Key("AlgorithmName")
|
|
ok.String(*v.AlgorithmName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteAppImageConfigInput(v *DeleteAppImageConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppImageConfigName != nil {
|
|
ok := object.Key("AppImageConfigName")
|
|
ok.String(*v.AppImageConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteAppInput(v *DeleteAppInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppName != nil {
|
|
ok := object.Key("AppName")
|
|
ok.String(*v.AppName)
|
|
}
|
|
|
|
if len(v.AppType) > 0 {
|
|
ok := object.Key("AppType")
|
|
ok.String(string(v.AppType))
|
|
}
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteArtifactInput(v *DeleteArtifactInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ArtifactArn != nil {
|
|
ok := object.Key("ArtifactArn")
|
|
ok.String(*v.ArtifactArn)
|
|
}
|
|
|
|
if v.Source != nil {
|
|
ok := object.Key("Source")
|
|
if err := awsAwsjson11_serializeDocumentArtifactSource(v.Source, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteAssociationInput(v *DeleteAssociationInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DestinationArn != nil {
|
|
ok := object.Key("DestinationArn")
|
|
ok.String(*v.DestinationArn)
|
|
}
|
|
|
|
if v.SourceArn != nil {
|
|
ok := object.Key("SourceArn")
|
|
ok.String(*v.SourceArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteCodeRepositoryInput(v *DeleteCodeRepositoryInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CodeRepositoryName != nil {
|
|
ok := object.Key("CodeRepositoryName")
|
|
ok.String(*v.CodeRepositoryName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteContextInput(v *DeleteContextInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContextName != nil {
|
|
ok := object.Key("ContextName")
|
|
ok.String(*v.ContextName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteDataQualityJobDefinitionInput(v *DeleteDataQualityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteDeviceFleetInput(v *DeleteDeviceFleetInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteDomainInput(v *DeleteDomainInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.RetentionPolicy != nil {
|
|
ok := object.Key("RetentionPolicy")
|
|
if err := awsAwsjson11_serializeDocumentRetentionPolicy(v.RetentionPolicy, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteEndpointConfigInput(v *DeleteEndpointConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointConfigName != nil {
|
|
ok := object.Key("EndpointConfigName")
|
|
ok.String(*v.EndpointConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteEndpointInput(v *DeleteEndpointInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteExperimentInput(v *DeleteExperimentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteFeatureGroupInput(v *DeleteFeatureGroupInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FeatureGroupName != nil {
|
|
ok := object.Key("FeatureGroupName")
|
|
ok.String(*v.FeatureGroupName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteFlowDefinitionInput(v *DeleteFlowDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FlowDefinitionName != nil {
|
|
ok := object.Key("FlowDefinitionName")
|
|
ok.String(*v.FlowDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteHumanTaskUiInput(v *DeleteHumanTaskUiInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanTaskUiName != nil {
|
|
ok := object.Key("HumanTaskUiName")
|
|
ok.String(*v.HumanTaskUiName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteImageInput(v *DeleteImageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteImageVersionInput(v *DeleteImageVersionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
if v.Version != nil {
|
|
ok := object.Key("Version")
|
|
ok.Integer(*v.Version)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteModelBiasJobDefinitionInput(v *DeleteModelBiasJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteModelExplainabilityJobDefinitionInput(v *DeleteModelExplainabilityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteModelInput(v *DeleteModelInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelName != nil {
|
|
ok := object.Key("ModelName")
|
|
ok.String(*v.ModelName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteModelPackageGroupInput(v *DeleteModelPackageGroupInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteModelPackageGroupPolicyInput(v *DeleteModelPackageGroupPolicyInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteModelPackageInput(v *DeleteModelPackageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageName != nil {
|
|
ok := object.Key("ModelPackageName")
|
|
ok.String(*v.ModelPackageName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteModelQualityJobDefinitionInput(v *DeleteModelQualityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteMonitoringScheduleInput(v *DeleteMonitoringScheduleInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MonitoringScheduleName != nil {
|
|
ok := object.Key("MonitoringScheduleName")
|
|
ok.String(*v.MonitoringScheduleName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteNotebookInstanceInput(v *DeleteNotebookInstanceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceName != nil {
|
|
ok := object.Key("NotebookInstanceName")
|
|
ok.String(*v.NotebookInstanceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteNotebookInstanceLifecycleConfigInput(v *DeleteNotebookInstanceLifecycleConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceLifecycleConfigName != nil {
|
|
ok := object.Key("NotebookInstanceLifecycleConfigName")
|
|
ok.String(*v.NotebookInstanceLifecycleConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeletePipelineInput(v *DeletePipelineInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientRequestToken != nil {
|
|
ok := object.Key("ClientRequestToken")
|
|
ok.String(*v.ClientRequestToken)
|
|
}
|
|
|
|
if v.PipelineName != nil {
|
|
ok := object.Key("PipelineName")
|
|
ok.String(*v.PipelineName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteProjectInput(v *DeleteProjectInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProjectName != nil {
|
|
ok := object.Key("ProjectName")
|
|
ok.String(*v.ProjectName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteStudioLifecycleConfigInput(v *DeleteStudioLifecycleConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.StudioLifecycleConfigName != nil {
|
|
ok := object.Key("StudioLifecycleConfigName")
|
|
ok.String(*v.StudioLifecycleConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteTagsInput(v *DeleteTagsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ResourceArn != nil {
|
|
ok := object.Key("ResourceArn")
|
|
ok.String(*v.ResourceArn)
|
|
}
|
|
|
|
if v.TagKeys != nil {
|
|
ok := object.Key("TagKeys")
|
|
if err := awsAwsjson11_serializeDocumentTagKeyList(v.TagKeys, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteTrialComponentInput(v *DeleteTrialComponentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrialComponentName != nil {
|
|
ok := object.Key("TrialComponentName")
|
|
ok.String(*v.TrialComponentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteTrialInput(v *DeleteTrialInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteUserProfileInput(v *DeleteUserProfileInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteWorkforceInput(v *DeleteWorkforceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.WorkforceName != nil {
|
|
ok := object.Key("WorkforceName")
|
|
ok.String(*v.WorkforceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteWorkteamInput(v *DeleteWorkteamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.WorkteamName != nil {
|
|
ok := object.Key("WorkteamName")
|
|
ok.String(*v.WorkteamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeregisterDevicesInput(v *DeregisterDevicesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
if v.DeviceNames != nil {
|
|
ok := object.Key("DeviceNames")
|
|
if err := awsAwsjson11_serializeDocumentDeviceNames(v.DeviceNames, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeActionInput(v *DescribeActionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ActionName != nil {
|
|
ok := object.Key("ActionName")
|
|
ok.String(*v.ActionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeAlgorithmInput(v *DescribeAlgorithmInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AlgorithmName != nil {
|
|
ok := object.Key("AlgorithmName")
|
|
ok.String(*v.AlgorithmName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeAppImageConfigInput(v *DescribeAppImageConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppImageConfigName != nil {
|
|
ok := object.Key("AppImageConfigName")
|
|
ok.String(*v.AppImageConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeAppInput(v *DescribeAppInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppName != nil {
|
|
ok := object.Key("AppName")
|
|
ok.String(*v.AppName)
|
|
}
|
|
|
|
if len(v.AppType) > 0 {
|
|
ok := object.Key("AppType")
|
|
ok.String(string(v.AppType))
|
|
}
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeArtifactInput(v *DescribeArtifactInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ArtifactArn != nil {
|
|
ok := object.Key("ArtifactArn")
|
|
ok.String(*v.ArtifactArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeAutoMLJobInput(v *DescribeAutoMLJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AutoMLJobName != nil {
|
|
ok := object.Key("AutoMLJobName")
|
|
ok.String(*v.AutoMLJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeCodeRepositoryInput(v *DescribeCodeRepositoryInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CodeRepositoryName != nil {
|
|
ok := object.Key("CodeRepositoryName")
|
|
ok.String(*v.CodeRepositoryName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeCompilationJobInput(v *DescribeCompilationJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CompilationJobName != nil {
|
|
ok := object.Key("CompilationJobName")
|
|
ok.String(*v.CompilationJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeContextInput(v *DescribeContextInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContextName != nil {
|
|
ok := object.Key("ContextName")
|
|
ok.String(*v.ContextName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeDataQualityJobDefinitionInput(v *DescribeDataQualityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeDeviceFleetInput(v *DescribeDeviceFleetInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeDeviceInput(v *DescribeDeviceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
if v.DeviceName != nil {
|
|
ok := object.Key("DeviceName")
|
|
ok.String(*v.DeviceName)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeDomainInput(v *DescribeDomainInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeEdgePackagingJobInput(v *DescribeEdgePackagingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EdgePackagingJobName != nil {
|
|
ok := object.Key("EdgePackagingJobName")
|
|
ok.String(*v.EdgePackagingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeEndpointConfigInput(v *DescribeEndpointConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointConfigName != nil {
|
|
ok := object.Key("EndpointConfigName")
|
|
ok.String(*v.EndpointConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeEndpointInput(v *DescribeEndpointInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeExperimentInput(v *DescribeExperimentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeFeatureGroupInput(v *DescribeFeatureGroupInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FeatureGroupName != nil {
|
|
ok := object.Key("FeatureGroupName")
|
|
ok.String(*v.FeatureGroupName)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeFlowDefinitionInput(v *DescribeFlowDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.FlowDefinitionName != nil {
|
|
ok := object.Key("FlowDefinitionName")
|
|
ok.String(*v.FlowDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeHumanTaskUiInput(v *DescribeHumanTaskUiInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanTaskUiName != nil {
|
|
ok := object.Key("HumanTaskUiName")
|
|
ok.String(*v.HumanTaskUiName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeHyperParameterTuningJobInput(v *DescribeHyperParameterTuningJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HyperParameterTuningJobName != nil {
|
|
ok := object.Key("HyperParameterTuningJobName")
|
|
ok.String(*v.HyperParameterTuningJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeImageInput(v *DescribeImageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeImageVersionInput(v *DescribeImageVersionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
if v.Version != nil {
|
|
ok := object.Key("Version")
|
|
ok.Integer(*v.Version)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeLabelingJobInput(v *DescribeLabelingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.LabelingJobName != nil {
|
|
ok := object.Key("LabelingJobName")
|
|
ok.String(*v.LabelingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeModelBiasJobDefinitionInput(v *DescribeModelBiasJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeModelExplainabilityJobDefinitionInput(v *DescribeModelExplainabilityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeModelInput(v *DescribeModelInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelName != nil {
|
|
ok := object.Key("ModelName")
|
|
ok.String(*v.ModelName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeModelPackageGroupInput(v *DescribeModelPackageGroupInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeModelPackageInput(v *DescribeModelPackageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageName != nil {
|
|
ok := object.Key("ModelPackageName")
|
|
ok.String(*v.ModelPackageName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeModelQualityJobDefinitionInput(v *DescribeModelQualityJobDefinitionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.JobDefinitionName != nil {
|
|
ok := object.Key("JobDefinitionName")
|
|
ok.String(*v.JobDefinitionName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeMonitoringScheduleInput(v *DescribeMonitoringScheduleInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MonitoringScheduleName != nil {
|
|
ok := object.Key("MonitoringScheduleName")
|
|
ok.String(*v.MonitoringScheduleName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeNotebookInstanceInput(v *DescribeNotebookInstanceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceName != nil {
|
|
ok := object.Key("NotebookInstanceName")
|
|
ok.String(*v.NotebookInstanceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeNotebookInstanceLifecycleConfigInput(v *DescribeNotebookInstanceLifecycleConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceLifecycleConfigName != nil {
|
|
ok := object.Key("NotebookInstanceLifecycleConfigName")
|
|
ok.String(*v.NotebookInstanceLifecycleConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribePipelineDefinitionForExecutionInput(v *DescribePipelineDefinitionForExecutionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PipelineExecutionArn != nil {
|
|
ok := object.Key("PipelineExecutionArn")
|
|
ok.String(*v.PipelineExecutionArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribePipelineExecutionInput(v *DescribePipelineExecutionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PipelineExecutionArn != nil {
|
|
ok := object.Key("PipelineExecutionArn")
|
|
ok.String(*v.PipelineExecutionArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribePipelineInput(v *DescribePipelineInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PipelineName != nil {
|
|
ok := object.Key("PipelineName")
|
|
ok.String(*v.PipelineName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeProcessingJobInput(v *DescribeProcessingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProcessingJobName != nil {
|
|
ok := object.Key("ProcessingJobName")
|
|
ok.String(*v.ProcessingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeProjectInput(v *DescribeProjectInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProjectName != nil {
|
|
ok := object.Key("ProjectName")
|
|
ok.String(*v.ProjectName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeStudioLifecycleConfigInput(v *DescribeStudioLifecycleConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.StudioLifecycleConfigName != nil {
|
|
ok := object.Key("StudioLifecycleConfigName")
|
|
ok.String(*v.StudioLifecycleConfigName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeSubscribedWorkteamInput(v *DescribeSubscribedWorkteamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.WorkteamArn != nil {
|
|
ok := object.Key("WorkteamArn")
|
|
ok.String(*v.WorkteamArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeTrainingJobInput(v *DescribeTrainingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrainingJobName != nil {
|
|
ok := object.Key("TrainingJobName")
|
|
ok.String(*v.TrainingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeTransformJobInput(v *DescribeTransformJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TransformJobName != nil {
|
|
ok := object.Key("TransformJobName")
|
|
ok.String(*v.TransformJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeTrialComponentInput(v *DescribeTrialComponentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrialComponentName != nil {
|
|
ok := object.Key("TrialComponentName")
|
|
ok.String(*v.TrialComponentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeTrialInput(v *DescribeTrialInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeUserProfileInput(v *DescribeUserProfileInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeWorkforceInput(v *DescribeWorkforceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.WorkforceName != nil {
|
|
ok := object.Key("WorkforceName")
|
|
ok.String(*v.WorkforceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeWorkteamInput(v *DescribeWorkteamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.WorkteamName != nil {
|
|
ok := object.Key("WorkteamName")
|
|
ok.String(*v.WorkteamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDisableSagemakerServicecatalogPortfolioInput(v *DisableSagemakerServicecatalogPortfolioInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDisassociateTrialComponentInput(v *DisassociateTrialComponentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrialComponentName != nil {
|
|
ok := object.Key("TrialComponentName")
|
|
ok.String(*v.TrialComponentName)
|
|
}
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentEnableSagemakerServicecatalogPortfolioInput(v *EnableSagemakerServicecatalogPortfolioInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentGetDeviceFleetReportInput(v *GetDeviceFleetReportInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentGetModelPackageGroupPolicyInput(v *GetModelPackageGroupPolicyInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentGetSagemakerServicecatalogPortfolioStatusInput(v *GetSagemakerServicecatalogPortfolioStatusInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentGetSearchSuggestionsInput(v *GetSearchSuggestionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.Resource) > 0 {
|
|
ok := object.Key("Resource")
|
|
ok.String(string(v.Resource))
|
|
}
|
|
|
|
if v.SuggestionQuery != nil {
|
|
ok := object.Key("SuggestionQuery")
|
|
if err := awsAwsjson11_serializeDocumentSuggestionQuery(v.SuggestionQuery, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListActionsInput(v *ListActionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ActionType != nil {
|
|
ok := object.Key("ActionType")
|
|
ok.String(*v.ActionType)
|
|
}
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.SourceUri != nil {
|
|
ok := object.Key("SourceUri")
|
|
ok.String(*v.SourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListAlgorithmsInput(v *ListAlgorithmsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListAppImageConfigsInput(v *ListAppImageConfigsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.ModifiedTimeAfter != nil {
|
|
ok := object.Key("ModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.ModifiedTimeAfter))
|
|
}
|
|
|
|
if v.ModifiedTimeBefore != nil {
|
|
ok := object.Key("ModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.ModifiedTimeBefore))
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListAppsInput(v *ListAppsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainIdEquals != nil {
|
|
ok := object.Key("DomainIdEquals")
|
|
ok.String(*v.DomainIdEquals)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.UserProfileNameEquals != nil {
|
|
ok := object.Key("UserProfileNameEquals")
|
|
ok.String(*v.UserProfileNameEquals)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListArtifactsInput(v *ListArtifactsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ArtifactType != nil {
|
|
ok := object.Key("ArtifactType")
|
|
ok.String(*v.ArtifactType)
|
|
}
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.SourceUri != nil {
|
|
ok := object.Key("SourceUri")
|
|
ok.String(*v.SourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListAssociationsInput(v *ListAssociationsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.AssociationType) > 0 {
|
|
ok := object.Key("AssociationType")
|
|
ok.String(string(v.AssociationType))
|
|
}
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.DestinationArn != nil {
|
|
ok := object.Key("DestinationArn")
|
|
ok.String(*v.DestinationArn)
|
|
}
|
|
|
|
if v.DestinationType != nil {
|
|
ok := object.Key("DestinationType")
|
|
ok.String(*v.DestinationType)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.SourceArn != nil {
|
|
ok := object.Key("SourceArn")
|
|
ok.String(*v.SourceArn)
|
|
}
|
|
|
|
if v.SourceType != nil {
|
|
ok := object.Key("SourceType")
|
|
ok.String(*v.SourceType)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListAutoMLJobsInput(v *ListAutoMLJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != 0 {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListCandidatesForAutoMLJobInput(v *ListCandidatesForAutoMLJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AutoMLJobName != nil {
|
|
ok := object.Key("AutoMLJobName")
|
|
ok.String(*v.AutoMLJobName)
|
|
}
|
|
|
|
if v.CandidateNameEquals != nil {
|
|
ok := object.Key("CandidateNameEquals")
|
|
ok.String(*v.CandidateNameEquals)
|
|
}
|
|
|
|
if v.MaxResults != 0 {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListCodeRepositoriesInput(v *ListCodeRepositoriesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListCompilationJobsInput(v *ListCompilationJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListContextsInput(v *ListContextsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContextType != nil {
|
|
ok := object.Key("ContextType")
|
|
ok.String(*v.ContextType)
|
|
}
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.SourceUri != nil {
|
|
ok := object.Key("SourceUri")
|
|
ok.String(*v.SourceUri)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListDataQualityJobDefinitionsInput(v *ListDataQualityJobDefinitionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListDeviceFleetsInput(v *ListDeviceFleetsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != 0 {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListDevicesInput(v *ListDevicesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
if v.LatestHeartbeatAfter != nil {
|
|
ok := object.Key("LatestHeartbeatAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LatestHeartbeatAfter))
|
|
}
|
|
|
|
if v.MaxResults != 0 {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(v.MaxResults)
|
|
}
|
|
|
|
if v.ModelName != nil {
|
|
ok := object.Key("ModelName")
|
|
ok.String(*v.ModelName)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListDomainsInput(v *ListDomainsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListEdgePackagingJobsInput(v *ListEdgePackagingJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != 0 {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(v.MaxResults)
|
|
}
|
|
|
|
if v.ModelNameContains != nil {
|
|
ok := object.Key("ModelNameContains")
|
|
ok.String(*v.ModelNameContains)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListEndpointConfigsInput(v *ListEndpointConfigsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListEndpointsInput(v *ListEndpointsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListExperimentsInput(v *ListExperimentsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListFeatureGroupsInput(v *ListFeatureGroupsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if len(v.FeatureGroupStatusEquals) > 0 {
|
|
ok := object.Key("FeatureGroupStatusEquals")
|
|
ok.String(string(v.FeatureGroupStatusEquals))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.OfflineStoreStatusEquals) > 0 {
|
|
ok := object.Key("OfflineStoreStatusEquals")
|
|
ok.String(string(v.OfflineStoreStatusEquals))
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListFlowDefinitionsInput(v *ListFlowDefinitionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListHumanTaskUisInput(v *ListHumanTaskUisInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListHyperParameterTuningJobsInput(v *ListHyperParameterTuningJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListImagesInput(v *ListImagesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListImageVersionsInput(v *ListImageVersionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListLabelingJobsForWorkteamInput(v *ListLabelingJobsForWorkteamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.JobReferenceCodeContains != nil {
|
|
ok := object.Key("JobReferenceCodeContains")
|
|
ok.String(*v.JobReferenceCodeContains)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.WorkteamArn != nil {
|
|
ok := object.Key("WorkteamArn")
|
|
ok.String(*v.WorkteamArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListLabelingJobsInput(v *ListLabelingJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListModelBiasJobDefinitionsInput(v *ListModelBiasJobDefinitionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListModelExplainabilityJobDefinitionsInput(v *ListModelExplainabilityJobDefinitionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListModelPackageGroupsInput(v *ListModelPackageGroupsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListModelPackagesInput(v *ListModelPackagesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if len(v.ModelApprovalStatus) > 0 {
|
|
ok := object.Key("ModelApprovalStatus")
|
|
ok.String(string(v.ModelApprovalStatus))
|
|
}
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
if len(v.ModelPackageType) > 0 {
|
|
ok := object.Key("ModelPackageType")
|
|
ok.String(string(v.ModelPackageType))
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListModelQualityJobDefinitionsInput(v *ListModelQualityJobDefinitionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListModelsInput(v *ListModelsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListMonitoringExecutionsInput(v *ListMonitoringExecutionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.MonitoringJobDefinitionName != nil {
|
|
ok := object.Key("MonitoringJobDefinitionName")
|
|
ok.String(*v.MonitoringJobDefinitionName)
|
|
}
|
|
|
|
if v.MonitoringScheduleName != nil {
|
|
ok := object.Key("MonitoringScheduleName")
|
|
ok.String(*v.MonitoringScheduleName)
|
|
}
|
|
|
|
if len(v.MonitoringTypeEquals) > 0 {
|
|
ok := object.Key("MonitoringTypeEquals")
|
|
ok.String(string(v.MonitoringTypeEquals))
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.ScheduledTimeAfter != nil {
|
|
ok := object.Key("ScheduledTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.ScheduledTimeAfter))
|
|
}
|
|
|
|
if v.ScheduledTimeBefore != nil {
|
|
ok := object.Key("ScheduledTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.ScheduledTimeBefore))
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListMonitoringSchedulesInput(v *ListMonitoringSchedulesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.MonitoringJobDefinitionName != nil {
|
|
ok := object.Key("MonitoringJobDefinitionName")
|
|
ok.String(*v.MonitoringJobDefinitionName)
|
|
}
|
|
|
|
if len(v.MonitoringTypeEquals) > 0 {
|
|
ok := object.Key("MonitoringTypeEquals")
|
|
ok.String(string(v.MonitoringTypeEquals))
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListNotebookInstanceLifecycleConfigsInput(v *ListNotebookInstanceLifecycleConfigsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListNotebookInstancesInput(v *ListNotebookInstancesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AdditionalCodeRepositoryEquals != nil {
|
|
ok := object.Key("AdditionalCodeRepositoryEquals")
|
|
ok.String(*v.AdditionalCodeRepositoryEquals)
|
|
}
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.DefaultCodeRepositoryContains != nil {
|
|
ok := object.Key("DefaultCodeRepositoryContains")
|
|
ok.String(*v.DefaultCodeRepositoryContains)
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.NotebookInstanceLifecycleConfigNameContains != nil {
|
|
ok := object.Key("NotebookInstanceLifecycleConfigNameContains")
|
|
ok.String(*v.NotebookInstanceLifecycleConfigNameContains)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListPipelineExecutionsInput(v *ListPipelineExecutionsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.PipelineName != nil {
|
|
ok := object.Key("PipelineName")
|
|
ok.String(*v.PipelineName)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListPipelineExecutionStepsInput(v *ListPipelineExecutionStepsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.PipelineExecutionArn != nil {
|
|
ok := object.Key("PipelineExecutionArn")
|
|
ok.String(*v.PipelineExecutionArn)
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListPipelineParametersForExecutionInput(v *ListPipelineParametersForExecutionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.PipelineExecutionArn != nil {
|
|
ok := object.Key("PipelineExecutionArn")
|
|
ok.String(*v.PipelineExecutionArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListPipelinesInput(v *ListPipelinesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.PipelineNamePrefix != nil {
|
|
ok := object.Key("PipelineNamePrefix")
|
|
ok.String(*v.PipelineNamePrefix)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListProcessingJobsInput(v *ListProcessingJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListProjectsInput(v *ListProjectsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListStudioLifecycleConfigsInput(v *ListStudioLifecycleConfigsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.AppTypeEquals) > 0 {
|
|
ok := object.Key("AppTypeEquals")
|
|
ok.String(string(v.AppTypeEquals))
|
|
}
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.ModifiedTimeAfter != nil {
|
|
ok := object.Key("ModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.ModifiedTimeAfter))
|
|
}
|
|
|
|
if v.ModifiedTimeBefore != nil {
|
|
ok := object.Key("ModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.ModifiedTimeBefore))
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListSubscribedWorkteamsInput(v *ListSubscribedWorkteamsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListTagsInput(v *ListTagsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.ResourceArn != nil {
|
|
ok := object.Key("ResourceArn")
|
|
ok.String(*v.ResourceArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListTrainingJobsForHyperParameterTuningJobInput(v *ListTrainingJobsForHyperParameterTuningJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HyperParameterTuningJobName != nil {
|
|
ok := object.Key("HyperParameterTuningJobName")
|
|
ok.String(*v.HyperParameterTuningJobName)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListTrainingJobsInput(v *ListTrainingJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListTransformJobsInput(v *ListTransformJobsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreationTimeAfter != nil {
|
|
ok := object.Key("CreationTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter))
|
|
}
|
|
|
|
if v.CreationTimeBefore != nil {
|
|
ok := object.Key("CreationTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore))
|
|
}
|
|
|
|
if v.LastModifiedTimeAfter != nil {
|
|
ok := object.Key("LastModifiedTimeAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter))
|
|
}
|
|
|
|
if v.LastModifiedTimeBefore != nil {
|
|
ok := object.Key("LastModifiedTimeBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore))
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if len(v.StatusEquals) > 0 {
|
|
ok := object.Key("StatusEquals")
|
|
ok.String(string(v.StatusEquals))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListTrialComponentsInput(v *ListTrialComponentsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.SourceArn != nil {
|
|
ok := object.Key("SourceArn")
|
|
ok.String(*v.SourceArn)
|
|
}
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListTrialsInput(v *ListTrialsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CreatedAfter != nil {
|
|
ok := object.Key("CreatedAfter")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter))
|
|
}
|
|
|
|
if v.CreatedBefore != nil {
|
|
ok := object.Key("CreatedBefore")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore))
|
|
}
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.TrialComponentName != nil {
|
|
ok := object.Key("TrialComponentName")
|
|
ok.String(*v.TrialComponentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListUserProfilesInput(v *ListUserProfilesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainIdEquals != nil {
|
|
ok := object.Key("DomainIdEquals")
|
|
ok.String(*v.DomainIdEquals)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
if v.UserProfileNameContains != nil {
|
|
ok := object.Key("UserProfileNameContains")
|
|
ok.String(*v.UserProfileNameContains)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListWorkforcesInput(v *ListWorkforcesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListWorkteamsInput(v *ListWorkteamsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NameContains != nil {
|
|
ok := object.Key("NameContains")
|
|
ok.String(*v.NameContains)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.SortBy) > 0 {
|
|
ok := object.Key("SortBy")
|
|
ok.String(string(v.SortBy))
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentPutModelPackageGroupPolicyInput(v *PutModelPackageGroupPolicyInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ModelPackageGroupName != nil {
|
|
ok := object.Key("ModelPackageGroupName")
|
|
ok.String(*v.ModelPackageGroupName)
|
|
}
|
|
|
|
if v.ResourcePolicy != nil {
|
|
ok := object.Key("ResourcePolicy")
|
|
ok.String(*v.ResourcePolicy)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentRegisterDevicesInput(v *RegisterDevicesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
if v.Devices != nil {
|
|
ok := object.Key("Devices")
|
|
if err := awsAwsjson11_serializeDocumentDevices(v.Devices, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentRenderUiTemplateInput(v *RenderUiTemplateInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HumanTaskUiArn != nil {
|
|
ok := object.Key("HumanTaskUiArn")
|
|
ok.String(*v.HumanTaskUiArn)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if v.Task != nil {
|
|
ok := object.Key("Task")
|
|
if err := awsAwsjson11_serializeDocumentRenderableTask(v.Task, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.UiTemplate != nil {
|
|
ok := object.Key("UiTemplate")
|
|
if err := awsAwsjson11_serializeDocumentUiTemplate(v.UiTemplate, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentRetryPipelineExecutionInput(v *RetryPipelineExecutionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientRequestToken != nil {
|
|
ok := object.Key("ClientRequestToken")
|
|
ok.String(*v.ClientRequestToken)
|
|
}
|
|
|
|
if v.PipelineExecutionArn != nil {
|
|
ok := object.Key("PipelineExecutionArn")
|
|
ok.String(*v.PipelineExecutionArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentSearchInput(v *SearchInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if len(v.Resource) > 0 {
|
|
ok := object.Key("Resource")
|
|
ok.String(string(v.Resource))
|
|
}
|
|
|
|
if v.SearchExpression != nil {
|
|
ok := object.Key("SearchExpression")
|
|
if err := awsAwsjson11_serializeDocumentSearchExpression(v.SearchExpression, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SortBy != nil {
|
|
ok := object.Key("SortBy")
|
|
ok.String(*v.SortBy)
|
|
}
|
|
|
|
if len(v.SortOrder) > 0 {
|
|
ok := object.Key("SortOrder")
|
|
ok.String(string(v.SortOrder))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentSendPipelineExecutionStepFailureInput(v *SendPipelineExecutionStepFailureInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CallbackToken != nil {
|
|
ok := object.Key("CallbackToken")
|
|
ok.String(*v.CallbackToken)
|
|
}
|
|
|
|
if v.ClientRequestToken != nil {
|
|
ok := object.Key("ClientRequestToken")
|
|
ok.String(*v.ClientRequestToken)
|
|
}
|
|
|
|
if v.FailureReason != nil {
|
|
ok := object.Key("FailureReason")
|
|
ok.String(*v.FailureReason)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentSendPipelineExecutionStepSuccessInput(v *SendPipelineExecutionStepSuccessInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CallbackToken != nil {
|
|
ok := object.Key("CallbackToken")
|
|
ok.String(*v.CallbackToken)
|
|
}
|
|
|
|
if v.ClientRequestToken != nil {
|
|
ok := object.Key("ClientRequestToken")
|
|
ok.String(*v.ClientRequestToken)
|
|
}
|
|
|
|
if v.OutputParameters != nil {
|
|
ok := object.Key("OutputParameters")
|
|
if err := awsAwsjson11_serializeDocumentOutputParameterList(v.OutputParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStartMonitoringScheduleInput(v *StartMonitoringScheduleInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MonitoringScheduleName != nil {
|
|
ok := object.Key("MonitoringScheduleName")
|
|
ok.String(*v.MonitoringScheduleName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStartNotebookInstanceInput(v *StartNotebookInstanceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceName != nil {
|
|
ok := object.Key("NotebookInstanceName")
|
|
ok.String(*v.NotebookInstanceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStartPipelineExecutionInput(v *StartPipelineExecutionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientRequestToken != nil {
|
|
ok := object.Key("ClientRequestToken")
|
|
ok.String(*v.ClientRequestToken)
|
|
}
|
|
|
|
if v.PipelineExecutionDescription != nil {
|
|
ok := object.Key("PipelineExecutionDescription")
|
|
ok.String(*v.PipelineExecutionDescription)
|
|
}
|
|
|
|
if v.PipelineExecutionDisplayName != nil {
|
|
ok := object.Key("PipelineExecutionDisplayName")
|
|
ok.String(*v.PipelineExecutionDisplayName)
|
|
}
|
|
|
|
if v.PipelineName != nil {
|
|
ok := object.Key("PipelineName")
|
|
ok.String(*v.PipelineName)
|
|
}
|
|
|
|
if v.PipelineParameters != nil {
|
|
ok := object.Key("PipelineParameters")
|
|
if err := awsAwsjson11_serializeDocumentParameterList(v.PipelineParameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopAutoMLJobInput(v *StopAutoMLJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AutoMLJobName != nil {
|
|
ok := object.Key("AutoMLJobName")
|
|
ok.String(*v.AutoMLJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopCompilationJobInput(v *StopCompilationJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CompilationJobName != nil {
|
|
ok := object.Key("CompilationJobName")
|
|
ok.String(*v.CompilationJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopEdgePackagingJobInput(v *StopEdgePackagingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EdgePackagingJobName != nil {
|
|
ok := object.Key("EdgePackagingJobName")
|
|
ok.String(*v.EdgePackagingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopHyperParameterTuningJobInput(v *StopHyperParameterTuningJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.HyperParameterTuningJobName != nil {
|
|
ok := object.Key("HyperParameterTuningJobName")
|
|
ok.String(*v.HyperParameterTuningJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopLabelingJobInput(v *StopLabelingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.LabelingJobName != nil {
|
|
ok := object.Key("LabelingJobName")
|
|
ok.String(*v.LabelingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopMonitoringScheduleInput(v *StopMonitoringScheduleInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MonitoringScheduleName != nil {
|
|
ok := object.Key("MonitoringScheduleName")
|
|
ok.String(*v.MonitoringScheduleName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopNotebookInstanceInput(v *StopNotebookInstanceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceName != nil {
|
|
ok := object.Key("NotebookInstanceName")
|
|
ok.String(*v.NotebookInstanceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopPipelineExecutionInput(v *StopPipelineExecutionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ClientRequestToken != nil {
|
|
ok := object.Key("ClientRequestToken")
|
|
ok.String(*v.ClientRequestToken)
|
|
}
|
|
|
|
if v.PipelineExecutionArn != nil {
|
|
ok := object.Key("PipelineExecutionArn")
|
|
ok.String(*v.PipelineExecutionArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopProcessingJobInput(v *StopProcessingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProcessingJobName != nil {
|
|
ok := object.Key("ProcessingJobName")
|
|
ok.String(*v.ProcessingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopTrainingJobInput(v *StopTrainingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TrainingJobName != nil {
|
|
ok := object.Key("TrainingJobName")
|
|
ok.String(*v.TrainingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopTransformJobInput(v *StopTransformJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.TransformJobName != nil {
|
|
ok := object.Key("TransformJobName")
|
|
ok.String(*v.TransformJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateActionInput(v *UpdateActionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ActionName != nil {
|
|
ok := object.Key("ActionName")
|
|
ok.String(*v.ActionName)
|
|
}
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.Properties != nil {
|
|
ok := object.Key("Properties")
|
|
if err := awsAwsjson11_serializeDocumentLineageEntityParameters(v.Properties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.PropertiesToRemove != nil {
|
|
ok := object.Key("PropertiesToRemove")
|
|
if err := awsAwsjson11_serializeDocumentListLineageEntityParameterKey(v.PropertiesToRemove, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.Status) > 0 {
|
|
ok := object.Key("Status")
|
|
ok.String(string(v.Status))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateAppImageConfigInput(v *UpdateAppImageConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AppImageConfigName != nil {
|
|
ok := object.Key("AppImageConfigName")
|
|
ok.String(*v.AppImageConfigName)
|
|
}
|
|
|
|
if v.KernelGatewayImageConfig != nil {
|
|
ok := object.Key("KernelGatewayImageConfig")
|
|
if err := awsAwsjson11_serializeDocumentKernelGatewayImageConfig(v.KernelGatewayImageConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateArtifactInput(v *UpdateArtifactInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ArtifactArn != nil {
|
|
ok := object.Key("ArtifactArn")
|
|
ok.String(*v.ArtifactArn)
|
|
}
|
|
|
|
if v.ArtifactName != nil {
|
|
ok := object.Key("ArtifactName")
|
|
ok.String(*v.ArtifactName)
|
|
}
|
|
|
|
if v.Properties != nil {
|
|
ok := object.Key("Properties")
|
|
if err := awsAwsjson11_serializeDocumentLineageEntityParameters(v.Properties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.PropertiesToRemove != nil {
|
|
ok := object.Key("PropertiesToRemove")
|
|
if err := awsAwsjson11_serializeDocumentListLineageEntityParameterKey(v.PropertiesToRemove, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateCodeRepositoryInput(v *UpdateCodeRepositoryInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.CodeRepositoryName != nil {
|
|
ok := object.Key("CodeRepositoryName")
|
|
ok.String(*v.CodeRepositoryName)
|
|
}
|
|
|
|
if v.GitConfig != nil {
|
|
ok := object.Key("GitConfig")
|
|
if err := awsAwsjson11_serializeDocumentGitConfigForUpdate(v.GitConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateContextInput(v *UpdateContextInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ContextName != nil {
|
|
ok := object.Key("ContextName")
|
|
ok.String(*v.ContextName)
|
|
}
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.Properties != nil {
|
|
ok := object.Key("Properties")
|
|
if err := awsAwsjson11_serializeDocumentLineageEntityParameters(v.Properties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.PropertiesToRemove != nil {
|
|
ok := object.Key("PropertiesToRemove")
|
|
if err := awsAwsjson11_serializeDocumentListLineageEntityParameterKey(v.PropertiesToRemove, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateDeviceFleetInput(v *UpdateDeviceFleetInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
if v.EnableIotRoleAlias != nil {
|
|
ok := object.Key("EnableIotRoleAlias")
|
|
ok.Boolean(*v.EnableIotRoleAlias)
|
|
}
|
|
|
|
if v.OutputConfig != nil {
|
|
ok := object.Key("OutputConfig")
|
|
if err := awsAwsjson11_serializeDocumentEdgeOutputConfig(v.OutputConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateDevicesInput(v *UpdateDevicesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeviceFleetName != nil {
|
|
ok := object.Key("DeviceFleetName")
|
|
ok.String(*v.DeviceFleetName)
|
|
}
|
|
|
|
if v.Devices != nil {
|
|
ok := object.Key("Devices")
|
|
if err := awsAwsjson11_serializeDocumentDevices(v.Devices, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateDomainInput(v *UpdateDomainInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DefaultUserSettings != nil {
|
|
ok := object.Key("DefaultUserSettings")
|
|
if err := awsAwsjson11_serializeDocumentUserSettings(v.DefaultUserSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.DomainSettingsForUpdate != nil {
|
|
ok := object.Key("DomainSettingsForUpdate")
|
|
if err := awsAwsjson11_serializeDocumentDomainSettingsForUpdate(v.DomainSettingsForUpdate, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateEndpointInput(v *UpdateEndpointInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeploymentConfig != nil {
|
|
ok := object.Key("DeploymentConfig")
|
|
if err := awsAwsjson11_serializeDocumentDeploymentConfig(v.DeploymentConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.EndpointConfigName != nil {
|
|
ok := object.Key("EndpointConfigName")
|
|
ok.String(*v.EndpointConfigName)
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
if v.ExcludeRetainedVariantProperties != nil {
|
|
ok := object.Key("ExcludeRetainedVariantProperties")
|
|
if err := awsAwsjson11_serializeDocumentVariantPropertyList(v.ExcludeRetainedVariantProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.RetainAllVariantProperties {
|
|
ok := object.Key("RetainAllVariantProperties")
|
|
ok.Boolean(v.RetainAllVariantProperties)
|
|
}
|
|
|
|
if v.RetainDeploymentConfig {
|
|
ok := object.Key("RetainDeploymentConfig")
|
|
ok.Boolean(v.RetainDeploymentConfig)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateEndpointWeightsAndCapacitiesInput(v *UpdateEndpointWeightsAndCapacitiesInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DesiredWeightsAndCapacities != nil {
|
|
ok := object.Key("DesiredWeightsAndCapacities")
|
|
if err := awsAwsjson11_serializeDocumentDesiredWeightAndCapacityList(v.DesiredWeightsAndCapacities, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.EndpointName != nil {
|
|
ok := object.Key("EndpointName")
|
|
ok.String(*v.EndpointName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateExperimentInput(v *UpdateExperimentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.ExperimentName != nil {
|
|
ok := object.Key("ExperimentName")
|
|
ok.String(*v.ExperimentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateImageInput(v *UpdateImageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DeleteProperties != nil {
|
|
ok := object.Key("DeleteProperties")
|
|
if err := awsAwsjson11_serializeDocumentImageDeletePropertyList(v.DeleteProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.ImageName != nil {
|
|
ok := object.Key("ImageName")
|
|
ok.String(*v.ImageName)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateModelPackageInput(v *UpdateModelPackageInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ApprovalDescription != nil {
|
|
ok := object.Key("ApprovalDescription")
|
|
ok.String(*v.ApprovalDescription)
|
|
}
|
|
|
|
if v.CustomerMetadataProperties != nil {
|
|
ok := object.Key("CustomerMetadataProperties")
|
|
if err := awsAwsjson11_serializeDocumentCustomerMetadataMap(v.CustomerMetadataProperties, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.CustomerMetadataPropertiesToRemove != nil {
|
|
ok := object.Key("CustomerMetadataPropertiesToRemove")
|
|
if err := awsAwsjson11_serializeDocumentCustomerMetadataKeyList(v.CustomerMetadataPropertiesToRemove, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if len(v.ModelApprovalStatus) > 0 {
|
|
ok := object.Key("ModelApprovalStatus")
|
|
ok.String(string(v.ModelApprovalStatus))
|
|
}
|
|
|
|
if v.ModelPackageArn != nil {
|
|
ok := object.Key("ModelPackageArn")
|
|
ok.String(*v.ModelPackageArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateMonitoringScheduleInput(v *UpdateMonitoringScheduleInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MonitoringScheduleConfig != nil {
|
|
ok := object.Key("MonitoringScheduleConfig")
|
|
if err := awsAwsjson11_serializeDocumentMonitoringScheduleConfig(v.MonitoringScheduleConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.MonitoringScheduleName != nil {
|
|
ok := object.Key("MonitoringScheduleName")
|
|
ok.String(*v.MonitoringScheduleName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateNotebookInstanceInput(v *UpdateNotebookInstanceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AcceleratorTypes != nil {
|
|
ok := object.Key("AcceleratorTypes")
|
|
if err := awsAwsjson11_serializeDocumentNotebookInstanceAcceleratorTypes(v.AcceleratorTypes, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.AdditionalCodeRepositories != nil {
|
|
ok := object.Key("AdditionalCodeRepositories")
|
|
if err := awsAwsjson11_serializeDocumentAdditionalCodeRepositoryNamesOrUrls(v.AdditionalCodeRepositories, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.DefaultCodeRepository != nil {
|
|
ok := object.Key("DefaultCodeRepository")
|
|
ok.String(*v.DefaultCodeRepository)
|
|
}
|
|
|
|
if v.DisassociateAcceleratorTypes {
|
|
ok := object.Key("DisassociateAcceleratorTypes")
|
|
ok.Boolean(v.DisassociateAcceleratorTypes)
|
|
}
|
|
|
|
if v.DisassociateAdditionalCodeRepositories {
|
|
ok := object.Key("DisassociateAdditionalCodeRepositories")
|
|
ok.Boolean(v.DisassociateAdditionalCodeRepositories)
|
|
}
|
|
|
|
if v.DisassociateDefaultCodeRepository {
|
|
ok := object.Key("DisassociateDefaultCodeRepository")
|
|
ok.Boolean(v.DisassociateDefaultCodeRepository)
|
|
}
|
|
|
|
if v.DisassociateLifecycleConfig {
|
|
ok := object.Key("DisassociateLifecycleConfig")
|
|
ok.Boolean(v.DisassociateLifecycleConfig)
|
|
}
|
|
|
|
if len(v.InstanceType) > 0 {
|
|
ok := object.Key("InstanceType")
|
|
ok.String(string(v.InstanceType))
|
|
}
|
|
|
|
if v.LifecycleConfigName != nil {
|
|
ok := object.Key("LifecycleConfigName")
|
|
ok.String(*v.LifecycleConfigName)
|
|
}
|
|
|
|
if v.NotebookInstanceName != nil {
|
|
ok := object.Key("NotebookInstanceName")
|
|
ok.String(*v.NotebookInstanceName)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
if len(v.RootAccess) > 0 {
|
|
ok := object.Key("RootAccess")
|
|
ok.String(string(v.RootAccess))
|
|
}
|
|
|
|
if v.VolumeSizeInGB != nil {
|
|
ok := object.Key("VolumeSizeInGB")
|
|
ok.Integer(*v.VolumeSizeInGB)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateNotebookInstanceLifecycleConfigInput(v *UpdateNotebookInstanceLifecycleConfigInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NotebookInstanceLifecycleConfigName != nil {
|
|
ok := object.Key("NotebookInstanceLifecycleConfigName")
|
|
ok.String(*v.NotebookInstanceLifecycleConfigName)
|
|
}
|
|
|
|
if v.OnCreate != nil {
|
|
ok := object.Key("OnCreate")
|
|
if err := awsAwsjson11_serializeDocumentNotebookInstanceLifecycleConfigList(v.OnCreate, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OnStart != nil {
|
|
ok := object.Key("OnStart")
|
|
if err := awsAwsjson11_serializeDocumentNotebookInstanceLifecycleConfigList(v.OnStart, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdatePipelineExecutionInput(v *UpdatePipelineExecutionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PipelineExecutionArn != nil {
|
|
ok := object.Key("PipelineExecutionArn")
|
|
ok.String(*v.PipelineExecutionArn)
|
|
}
|
|
|
|
if v.PipelineExecutionDescription != nil {
|
|
ok := object.Key("PipelineExecutionDescription")
|
|
ok.String(*v.PipelineExecutionDescription)
|
|
}
|
|
|
|
if v.PipelineExecutionDisplayName != nil {
|
|
ok := object.Key("PipelineExecutionDisplayName")
|
|
ok.String(*v.PipelineExecutionDisplayName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdatePipelineInput(v *UpdatePipelineInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.PipelineDefinition != nil {
|
|
ok := object.Key("PipelineDefinition")
|
|
ok.String(*v.PipelineDefinition)
|
|
}
|
|
|
|
if v.PipelineDescription != nil {
|
|
ok := object.Key("PipelineDescription")
|
|
ok.String(*v.PipelineDescription)
|
|
}
|
|
|
|
if v.PipelineDisplayName != nil {
|
|
ok := object.Key("PipelineDisplayName")
|
|
ok.String(*v.PipelineDisplayName)
|
|
}
|
|
|
|
if v.PipelineName != nil {
|
|
ok := object.Key("PipelineName")
|
|
ok.String(*v.PipelineName)
|
|
}
|
|
|
|
if v.RoleArn != nil {
|
|
ok := object.Key("RoleArn")
|
|
ok.String(*v.RoleArn)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateProjectInput(v *UpdateProjectInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProjectDescription != nil {
|
|
ok := object.Key("ProjectDescription")
|
|
ok.String(*v.ProjectDescription)
|
|
}
|
|
|
|
if v.ProjectName != nil {
|
|
ok := object.Key("ProjectName")
|
|
ok.String(*v.ProjectName)
|
|
}
|
|
|
|
if v.ServiceCatalogProvisioningUpdateDetails != nil {
|
|
ok := object.Key("ServiceCatalogProvisioningUpdateDetails")
|
|
if err := awsAwsjson11_serializeDocumentServiceCatalogProvisioningUpdateDetails(v.ServiceCatalogProvisioningUpdateDetails, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateTrainingJobInput(v *UpdateTrainingJobInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ProfilerConfig != nil {
|
|
ok := object.Key("ProfilerConfig")
|
|
if err := awsAwsjson11_serializeDocumentProfilerConfigForUpdate(v.ProfilerConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ProfilerRuleConfigurations != nil {
|
|
ok := object.Key("ProfilerRuleConfigurations")
|
|
if err := awsAwsjson11_serializeDocumentProfilerRuleConfigurations(v.ProfilerRuleConfigurations, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrainingJobName != nil {
|
|
ok := object.Key("TrainingJobName")
|
|
ok.String(*v.TrainingJobName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateTrialComponentInput(v *UpdateTrialComponentInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.EndTime != nil {
|
|
ok := object.Key("EndTime")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.EndTime))
|
|
}
|
|
|
|
if v.InputArtifacts != nil {
|
|
ok := object.Key("InputArtifacts")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentArtifacts(v.InputArtifacts, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.InputArtifactsToRemove != nil {
|
|
ok := object.Key("InputArtifactsToRemove")
|
|
if err := awsAwsjson11_serializeDocumentListTrialComponentKey256(v.InputArtifactsToRemove, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputArtifacts != nil {
|
|
ok := object.Key("OutputArtifacts")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentArtifacts(v.OutputArtifacts, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.OutputArtifactsToRemove != nil {
|
|
ok := object.Key("OutputArtifactsToRemove")
|
|
if err := awsAwsjson11_serializeDocumentListTrialComponentKey256(v.OutputArtifactsToRemove, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.Parameters != nil {
|
|
ok := object.Key("Parameters")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentParameters(v.Parameters, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.ParametersToRemove != nil {
|
|
ok := object.Key("ParametersToRemove")
|
|
if err := awsAwsjson11_serializeDocumentListTrialComponentKey256(v.ParametersToRemove, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StartTime != nil {
|
|
ok := object.Key("StartTime")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.StartTime))
|
|
}
|
|
|
|
if v.Status != nil {
|
|
ok := object.Key("Status")
|
|
if err := awsAwsjson11_serializeDocumentTrialComponentStatus(v.Status, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.TrialComponentName != nil {
|
|
ok := object.Key("TrialComponentName")
|
|
ok.String(*v.TrialComponentName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateTrialInput(v *UpdateTrialInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DisplayName != nil {
|
|
ok := object.Key("DisplayName")
|
|
ok.String(*v.DisplayName)
|
|
}
|
|
|
|
if v.TrialName != nil {
|
|
ok := object.Key("TrialName")
|
|
ok.String(*v.TrialName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateUserProfileInput(v *UpdateUserProfileInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.DomainId != nil {
|
|
ok := object.Key("DomainId")
|
|
ok.String(*v.DomainId)
|
|
}
|
|
|
|
if v.UserProfileName != nil {
|
|
ok := object.Key("UserProfileName")
|
|
ok.String(*v.UserProfileName)
|
|
}
|
|
|
|
if v.UserSettings != nil {
|
|
ok := object.Key("UserSettings")
|
|
if err := awsAwsjson11_serializeDocumentUserSettings(v.UserSettings, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateWorkforceInput(v *UpdateWorkforceInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.OidcConfig != nil {
|
|
ok := object.Key("OidcConfig")
|
|
if err := awsAwsjson11_serializeDocumentOidcConfig(v.OidcConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.SourceIpConfig != nil {
|
|
ok := object.Key("SourceIpConfig")
|
|
if err := awsAwsjson11_serializeDocumentSourceIpConfig(v.SourceIpConfig, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.WorkforceName != nil {
|
|
ok := object.Key("WorkforceName")
|
|
ok.String(*v.WorkforceName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateWorkteamInput(v *UpdateWorkteamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Description != nil {
|
|
ok := object.Key("Description")
|
|
ok.String(*v.Description)
|
|
}
|
|
|
|
if v.MemberDefinitions != nil {
|
|
ok := object.Key("MemberDefinitions")
|
|
if err := awsAwsjson11_serializeDocumentMemberDefinitions(v.MemberDefinitions, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.NotificationConfiguration != nil {
|
|
ok := object.Key("NotificationConfiguration")
|
|
if err := awsAwsjson11_serializeDocumentNotificationConfiguration(v.NotificationConfiguration, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.WorkteamName != nil {
|
|
ok := object.Key("WorkteamName")
|
|
ok.String(*v.WorkteamName)
|
|
}
|
|
|
|
return nil
|
|
}
|