From 3320b138b7ef295ad49afcaa9b04b6dca5e0e8ad Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Tue, 18 Jun 2024 18:32:15 +0000 Subject: [PATCH] Regenerated Clients --- .../0113e002d1c441e4b0522e2a329637c5.json | 8 + .../3c06d6b3c32b4a949708fa188a1059e7.json | 8 + .../535053e92a774c1abfb49ab356d4d0b4.json | 8 + .../5ac7bf9bdd414df7a7095ca69860fcfb.json | 8 + .../60326db63cf44137ba71fcbd0925f26c.json | 8 + .../660844da2e1f464c8d2fa5840133e531.json | 8 + .../682b781254ba4230907487eb04c5908c.json | 8 + .../7360080a68944d7fba3708184420541c.json | 8 + .../dfaa7987451947bdbd48399c5eb50ac7.json | 8 + .../e139e015d79244c5a4b38d887d136249.json | 8 + .../smithyrpcv2cbor/api_op_Float16_test.go | 184 - .../smithyrpcv2cbor/deserializers.go | 108 - .../smithyrpcv2cbor/generated.json | 2 - .../smithyrpcv2cbor/serializers.go | 36 - .../smithyrpcv2cbor/snapshot_test.go | 24 - service/bedrockruntime/api_op_Converse.go | 19 +- .../bedrockruntime/api_op_ConverseStream.go | 18 +- service/bedrockruntime/api_op_InvokeModel.go | 8 +- .../api_op_InvokeModelWithResponseStream.go | 8 +- service/bedrockruntime/deserializers.go | 1320 +++++- service/bedrockruntime/serializers.go | 105 + service/bedrockruntime/types/enums.go | 285 +- service/bedrockruntime/types/types.go | 393 +- .../types/types_exported_test.go | 26 + service/bedrockruntime/validators.go | 131 + service/eks/deserializers.go | 129 + service/eks/types/enums.go | 23 + service/eks/types/types.go | 29 + .../api_op_CreateMlflowTrackingServer.go | 194 + ..._CreatePresignedMlflowTrackingServerUrl.go | 151 + service/sagemaker/api_op_CreateWorkforce.go | 2 +- .../api_op_DeleteMlflowTrackingServer.go | 144 + service/sagemaker/api_op_DeleteWorkforce.go | 2 +- .../api_op_DescribeMlflowTrackingServer.go | 192 + service/sagemaker/api_op_DescribeWorkteam.go | 2 +- .../api_op_ListMlflowTrackingServers.go | 271 ++ .../api_op_StartMlflowTrackingServer.go | 141 + .../api_op_StopMlflowTrackingServer.go | 45 +- .../api_op_UpdateMlflowTrackingServer.go | 160 + service/sagemaker/deserializers.go | 3614 ++++++++++++----- service/sagemaker/generated.json | 8 + service/sagemaker/serializers.go | 833 +++- .../api_op_CreateMlflowTrackingServer.go.snap | 36 + ...tePresignedMlflowTrackingServerUrl.go.snap | 36 + .../api_op_DeleteMlflowTrackingServer.go.snap | 36 + ...pi_op_DescribeMlflowTrackingServer.go.snap | 36 + .../api_op_ListMlflowTrackingServers.go.snap | 35 + .../api_op_StartMlflowTrackingServer.go.snap | 36 + .../api_op_StopMlflowTrackingServer.go.snap | 36 + .../api_op_UpdateMlflowTrackingServer.go.snap | 36 + service/sagemaker/snapshot_test.go | 192 + service/sagemaker/types/enums.go | 110 + service/sagemaker/types/types.go | 84 +- .../sagemaker/types/types_exported_test.go | 18 + service/sagemaker/validators.go | 340 ++ service/shield/endpoints.go | 2 +- 56 files changed, 8108 insertions(+), 1612 deletions(-) create mode 100644 .changelog/0113e002d1c441e4b0522e2a329637c5.json create mode 100644 .changelog/3c06d6b3c32b4a949708fa188a1059e7.json create mode 100644 .changelog/535053e92a774c1abfb49ab356d4d0b4.json create mode 100644 .changelog/5ac7bf9bdd414df7a7095ca69860fcfb.json create mode 100644 .changelog/60326db63cf44137ba71fcbd0925f26c.json create mode 100644 .changelog/660844da2e1f464c8d2fa5840133e531.json create mode 100644 .changelog/682b781254ba4230907487eb04c5908c.json create mode 100644 .changelog/7360080a68944d7fba3708184420541c.json create mode 100644 .changelog/dfaa7987451947bdbd48399c5eb50ac7.json create mode 100644 .changelog/e139e015d79244c5a4b38d887d136249.json delete mode 100644 internal/protocoltest/smithyrpcv2cbor/api_op_Float16_test.go create mode 100644 service/sagemaker/api_op_CreateMlflowTrackingServer.go create mode 100644 service/sagemaker/api_op_CreatePresignedMlflowTrackingServerUrl.go create mode 100644 service/sagemaker/api_op_DeleteMlflowTrackingServer.go create mode 100644 service/sagemaker/api_op_DescribeMlflowTrackingServer.go create mode 100644 service/sagemaker/api_op_ListMlflowTrackingServers.go create mode 100644 service/sagemaker/api_op_StartMlflowTrackingServer.go rename internal/protocoltest/smithyrpcv2cbor/api_op_Float16.go => service/sagemaker/api_op_StopMlflowTrackingServer.go (58%) create mode 100644 service/sagemaker/api_op_UpdateMlflowTrackingServer.go create mode 100644 service/sagemaker/snapshot/api_op_CreateMlflowTrackingServer.go.snap create mode 100644 service/sagemaker/snapshot/api_op_CreatePresignedMlflowTrackingServerUrl.go.snap create mode 100644 service/sagemaker/snapshot/api_op_DeleteMlflowTrackingServer.go.snap create mode 100644 service/sagemaker/snapshot/api_op_DescribeMlflowTrackingServer.go.snap create mode 100644 service/sagemaker/snapshot/api_op_ListMlflowTrackingServers.go.snap create mode 100644 service/sagemaker/snapshot/api_op_StartMlflowTrackingServer.go.snap create mode 100644 service/sagemaker/snapshot/api_op_StopMlflowTrackingServer.go.snap create mode 100644 service/sagemaker/snapshot/api_op_UpdateMlflowTrackingServer.go.snap diff --git a/.changelog/0113e002d1c441e4b0522e2a329637c5.json b/.changelog/0113e002d1c441e4b0522e2a329637c5.json new file mode 100644 index 00000000000..ac9ae4b0624 --- /dev/null +++ b/.changelog/0113e002d1c441e4b0522e2a329637c5.json @@ -0,0 +1,8 @@ +{ + "id": "0113e002-d1c4-41e4-b052-2e2a329637c5", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/polly" + ] +} \ No newline at end of file diff --git a/.changelog/3c06d6b3c32b4a949708fa188a1059e7.json b/.changelog/3c06d6b3c32b4a949708fa188a1059e7.json new file mode 100644 index 00000000000..cb1b13bfcd1 --- /dev/null +++ b/.changelog/3c06d6b3c32b4a949708fa188a1059e7.json @@ -0,0 +1,8 @@ +{ + "id": "3c06d6b3-c32b-4a94-9708-fa188a1059e7", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/lightsail" + ] +} \ No newline at end of file diff --git a/.changelog/535053e92a774c1abfb49ab356d4d0b4.json b/.changelog/535053e92a774c1abfb49ab356d4d0b4.json new file mode 100644 index 00000000000..66abf6045ae --- /dev/null +++ b/.changelog/535053e92a774c1abfb49ab356d4d0b4.json @@ -0,0 +1,8 @@ +{ + "id": "535053e9-2a77-4c1a-bfb4-9ab356d4d0b4", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/rekognition" + ] +} \ No newline at end of file diff --git a/.changelog/5ac7bf9bdd414df7a7095ca69860fcfb.json b/.changelog/5ac7bf9bdd414df7a7095ca69860fcfb.json new file mode 100644 index 00000000000..3e2cc7fa175 --- /dev/null +++ b/.changelog/5ac7bf9bdd414df7a7095ca69860fcfb.json @@ -0,0 +1,8 @@ +{ + "id": "5ac7bf9b-dd41-4df7-a709-5ca69860fcfb", + "type": "feature", + "description": "This release adds support to surface async fargate customer errors from async path to customer through describe-fargate-profile API response.", + "modules": [ + "service/eks" + ] +} \ No newline at end of file diff --git a/.changelog/60326db63cf44137ba71fcbd0925f26c.json b/.changelog/60326db63cf44137ba71fcbd0925f26c.json new file mode 100644 index 00000000000..6a506d00030 --- /dev/null +++ b/.changelog/60326db63cf44137ba71fcbd0925f26c.json @@ -0,0 +1,8 @@ +{ + "id": "60326db6-3cf4-4137-ba71-fcbd0925f26c", + "type": "feature", + "description": "This release adds support for using Guardrails with the Converse and ConverseStream APIs.", + "modules": [ + "service/bedrockruntime" + ] +} \ No newline at end of file diff --git a/.changelog/660844da2e1f464c8d2fa5840133e531.json b/.changelog/660844da2e1f464c8d2fa5840133e531.json new file mode 100644 index 00000000000..f3b4be15770 --- /dev/null +++ b/.changelog/660844da2e1f464c8d2fa5840133e531.json @@ -0,0 +1,8 @@ +{ + "id": "660844da-2e1f-464c-8d2f-a5840133e531", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/cloudtrail" + ] +} \ No newline at end of file diff --git a/.changelog/682b781254ba4230907487eb04c5908c.json b/.changelog/682b781254ba4230907487eb04c5908c.json new file mode 100644 index 00000000000..1f79c39d02d --- /dev/null +++ b/.changelog/682b781254ba4230907487eb04c5908c.json @@ -0,0 +1,8 @@ +{ + "id": "682b7812-54ba-4230-9074-87eb04c5908c", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/snowball" + ] +} \ No newline at end of file diff --git a/.changelog/7360080a68944d7fba3708184420541c.json b/.changelog/7360080a68944d7fba3708184420541c.json new file mode 100644 index 00000000000..8e66b31039c --- /dev/null +++ b/.changelog/7360080a68944d7fba3708184420541c.json @@ -0,0 +1,8 @@ +{ + "id": "7360080a-6894-4d7f-ba37-08184420541c", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/shield" + ] +} \ No newline at end of file diff --git a/.changelog/dfaa7987451947bdbd48399c5eb50ac7.json b/.changelog/dfaa7987451947bdbd48399c5eb50ac7.json new file mode 100644 index 00000000000..8caed32c88d --- /dev/null +++ b/.changelog/dfaa7987451947bdbd48399c5eb50ac7.json @@ -0,0 +1,8 @@ +{ + "id": "dfaa7987-4519-47bd-bd48-399c5eb50ac7", + "type": "feature", + "description": "Launched a new feature in SageMaker to provide managed MLflow Tracking Servers for customers to track ML experiments. This release also adds a new capability of attaching additional storage to SageMaker HyperPod cluster instances.", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/.changelog/e139e015d79244c5a4b38d887d136249.json b/.changelog/e139e015d79244c5a4b38d887d136249.json new file mode 100644 index 00000000000..efc3c068727 --- /dev/null +++ b/.changelog/e139e015d79244c5a4b38d887d136249.json @@ -0,0 +1,8 @@ +{ + "id": "e139e015-d792-44c5-a4b3-8d887d136249", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/configservice" + ] +} \ No newline at end of file diff --git a/internal/protocoltest/smithyrpcv2cbor/api_op_Float16_test.go b/internal/protocoltest/smithyrpcv2cbor/api_op_Float16_test.go deleted file mode 100644 index 034137cb622..00000000000 --- a/internal/protocoltest/smithyrpcv2cbor/api_op_Float16_test.go +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package smithyrpcv2cbor - -import ( - "bytes" - "context" - "encoding/base64" - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/ptr" - smithytesting "github.com/aws/smithy-go/testing" - smithyhttp "github.com/aws/smithy-go/transport/http" - "io/ioutil" - "math" - "net/http" - "testing" -) - -func TestClient_Float16_smithyRpcv2cborDeserialize(t *testing.T) { - cases := map[string]struct { - StatusCode int - Header http.Header - BodyMediaType string - Body []byte - ExpectResult *Float16Output - }{ - // Ensures that clients can correctly parse float16 +Inf. - "RpcV2CborFloat16Inf": { - StatusCode: 200, - Header: http.Header{ - "Content-Type": []string{"application/cbor"}, - "smithy-protocol": []string{"rpc-v2-cbor"}, - }, - BodyMediaType: "application/cbor", - Body: func() []byte { - p, err := base64.StdEncoding.DecodeString(`oWV2YWx1Zfl8AA==`) - if err != nil { - panic(err) - } - - return p - }(), - ExpectResult: &Float16Output{ - Value: ptr.Float64(math.Inf(1)), - }, - }, - // Ensures that clients can correctly parse float16 -Inf. - "RpcV2CborFloat16NegInf": { - StatusCode: 200, - Header: http.Header{ - "Content-Type": []string{"application/cbor"}, - "smithy-protocol": []string{"rpc-v2-cbor"}, - }, - BodyMediaType: "application/cbor", - Body: func() []byte { - p, err := base64.StdEncoding.DecodeString(`oWV2YWx1Zfn8AA==`) - if err != nil { - panic(err) - } - - return p - }(), - ExpectResult: &Float16Output{ - Value: ptr.Float64(math.Inf(-1)), - }, - }, - // Ensures that clients can correctly parse float16 NaN with high LSB. - "RpcV2CborFloat16LSBNaN": { - StatusCode: 200, - Header: http.Header{ - "Content-Type": []string{"application/cbor"}, - "smithy-protocol": []string{"rpc-v2-cbor"}, - }, - BodyMediaType: "application/cbor", - Body: func() []byte { - p, err := base64.StdEncoding.DecodeString(`oWV2YWx1Zfl8AQ==`) - if err != nil { - panic(err) - } - - return p - }(), - ExpectResult: &Float16Output{ - Value: ptr.Float64(math.NaN()), - }, - }, - // Ensures that clients can correctly parse float16 NaN with high MSB. - "RpcV2CborFloat16MSBNaN": { - StatusCode: 200, - Header: http.Header{ - "Content-Type": []string{"application/cbor"}, - "smithy-protocol": []string{"rpc-v2-cbor"}, - }, - BodyMediaType: "application/cbor", - Body: func() []byte { - p, err := base64.StdEncoding.DecodeString(`oWV2YWx1Zfl+AA==`) - if err != nil { - panic(err) - } - - return p - }(), - ExpectResult: &Float16Output{ - Value: ptr.Float64(math.NaN()), - }, - }, - // Ensures that clients can correctly parse a subnormal float16. - "RpcV2CborFloat16Subnormal": { - StatusCode: 200, - Header: http.Header{ - "Content-Type": []string{"application/cbor"}, - "smithy-protocol": []string{"rpc-v2-cbor"}, - }, - BodyMediaType: "application/cbor", - Body: func() []byte { - p, err := base64.StdEncoding.DecodeString(`oWV2YWx1ZfkAUA==`) - if err != nil { - panic(err) - } - - return p - }(), - ExpectResult: &Float16Output{ - Value: ptr.Float64(4.76837158203125e-6), - }, - }, - } - for name, c := range cases { - t.Run(name, func(t *testing.T) { - serverURL := "http://localhost:8888/" - client := New(Options{ - HTTPClient: smithyhttp.ClientDoFunc(func(r *http.Request) (*http.Response, error) { - headers := http.Header{} - for k, vs := range c.Header { - for _, v := range vs { - headers.Add(k, v) - } - } - if len(c.BodyMediaType) != 0 && len(headers.Values("Content-Type")) == 0 { - headers.Set("Content-Type", c.BodyMediaType) - } - response := &http.Response{ - StatusCode: c.StatusCode, - Header: headers, - Request: r, - } - if len(c.Body) != 0 { - response.ContentLength = int64(len(c.Body)) - response.Body = ioutil.NopCloser(bytes.NewReader(c.Body)) - } else { - - response.Body = http.NoBody - } - return response, nil - }), - APIOptions: []func(*middleware.Stack) error{ - func(s *middleware.Stack) error { - s.Finalize.Clear() - s.Initialize.Remove(`OperationInputValidation`) - return nil - }, - }, - EndpointResolver: EndpointResolverFunc(func(region string, options EndpointResolverOptions) (e aws.Endpoint, err error) { - e.URL = serverURL - e.SigningRegion = "us-west-2" - return e, err - }), - Region: "us-west-2", - }) - var params Float16Input - result, err := client.Float16(context.Background(), ¶ms) - if err != nil { - t.Fatalf("expect nil err, got %v", err) - } - if result == nil { - t.Fatalf("expect not nil result") - } - if err := smithytesting.CompareValues(c.ExpectResult, result); err != nil { - t.Errorf("expect c.ExpectResult value match:\n%v", err) - } - }) - } -} diff --git a/internal/protocoltest/smithyrpcv2cbor/deserializers.go b/internal/protocoltest/smithyrpcv2cbor/deserializers.go index ed5eac107d3..c65c9ce65b5 100644 --- a/internal/protocoltest/smithyrpcv2cbor/deserializers.go +++ b/internal/protocoltest/smithyrpcv2cbor/deserializers.go @@ -69,65 +69,6 @@ func (m *smithyRpcv2cbor_deserializeOpEmptyInputOutput) HandleDeserialize(ctx co return out, metadata, nil } -type smithyRpcv2cbor_deserializeOpFloat16 struct { -} - -func (*smithyRpcv2cbor_deserializeOpFloat16) ID() string { - return "OperationDeserializer" -} - -func (m *smithyRpcv2cbor_deserializeOpFloat16) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - resp, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, fmt.Errorf("unexpected transport type %T", out.RawResponse) - } - - if resp.Header.Get("smithy-protocol") != "rpc-v2-cbor" { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf( - "unexpected smithy-protocol response header '%s' (HTTP status: %s)", - resp.Header.Get("smithy-protocol"), - resp.Status, - ), - } - } - - if resp.StatusCode != 200 { - return out, metadata, rpc2_deserializeOpErrorFloat16(resp) - } - - payload, err := io.ReadAll(resp.Body) - if err != nil { - return out, metadata, err - } - - if len(payload) == 0 { - out.Result = &Float16Output{} - return out, metadata, nil - } - - cv, err := smithycbor.Decode(payload) - if err != nil { - return out, metadata, err - } - - output, err := deserializeCBOR_Float16Output(cv) - if err != nil { - return out, metadata, err - } - - out.Result = output - - return out, metadata, nil -} - type smithyRpcv2cbor_deserializeOpFractionalSeconds struct { } @@ -895,28 +836,6 @@ func deserializeCBOR_ValidationExceptionFieldList(v smithycbor.Value) ([]types.V return dl, nil } -func deserializeCBOR_Float16Output(v smithycbor.Value) (*Float16Output, error) { - av, ok := v.(smithycbor.Map) - if !ok { - return nil, fmt.Errorf("unexpected value type %T", v) - } - ds := &Float16Output{} - for key, sv := range av { - _, _ = key, sv - if key == "value" { - if _, ok := sv.(*smithycbor.Nil); ok { - continue - } - dv, err := deserializeCBOR_Float64(sv) - if err != nil { - return nil, err - } - ds.Value = ptr.Float64(dv) - } - } - return ds, nil -} - func deserializeCBOR_FractionalSecondsOutput(v smithycbor.Value) (*FractionalSecondsOutput, error) { av, ok := v.(smithycbor.Map) if !ok { @@ -2323,33 +2242,6 @@ func rpc2_deserializeOpErrorEmptyInputOutput(resp *smithyhttp.Response) error { } } -func rpc2_deserializeOpErrorFloat16(resp *smithyhttp.Response) error { - payload, err := io.ReadAll(resp.Body) - if err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("read response body: %w", err)} - } - - typ, msg, v, err := getProtocolErrorInfo(payload) - if err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("get error info: %w", err)} - } - - if len(typ) == 0 { - typ = "UnknownError" - } - if len(msg) == 0 { - msg = "UnknownError" - } - - _ = v - switch string(typ) { - - default: - - return &smithy.GenericAPIError{Code: typ, Message: msg} - } -} - func rpc2_deserializeOpErrorFractionalSeconds(resp *smithyhttp.Response) error { payload, err := io.ReadAll(resp.Body) if err != nil { diff --git a/internal/protocoltest/smithyrpcv2cbor/generated.json b/internal/protocoltest/smithyrpcv2cbor/generated.json index d6ea27cf2fb..8d3aa7281c9 100644 --- a/internal/protocoltest/smithyrpcv2cbor/generated.json +++ b/internal/protocoltest/smithyrpcv2cbor/generated.json @@ -10,8 +10,6 @@ "api_client_test.go", "api_op_EmptyInputOutput.go", "api_op_EmptyInputOutput_test.go", - "api_op_Float16.go", - "api_op_Float16_test.go", "api_op_FractionalSeconds.go", "api_op_FractionalSeconds_test.go", "api_op_GreetingWithErrors.go", diff --git a/internal/protocoltest/smithyrpcv2cbor/serializers.go b/internal/protocoltest/smithyrpcv2cbor/serializers.go index 045e4ba39ca..9838a283191 100644 --- a/internal/protocoltest/smithyrpcv2cbor/serializers.go +++ b/internal/protocoltest/smithyrpcv2cbor/serializers.go @@ -58,36 +58,6 @@ func (m *smithyRpcv2cbor_serializeOpEmptyInputOutput) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type smithyRpcv2cbor_serializeOpFloat16 struct { -} - -func (*smithyRpcv2cbor_serializeOpFloat16) ID() string { - return "OperationSerializer" -} - -func (m *smithyRpcv2cbor_serializeOpFloat16) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*Float16Input) - if !ok { - return out, metadata, fmt.Errorf("unexpected input type %T", in.Parameters) - } - _ = input - - req, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request) - } - - req.Method = http.MethodPost - req.URL.Path = "/service/RpcV2Protocol/operation/Float16" - req.Header.Set("smithy-protocol", "rpc-v2-cbor") - - req.Header.Set("Accept", "application/cbor") - - return next.HandleSerialize(ctx, in) -} - type smithyRpcv2cbor_serializeOpFractionalSeconds struct { } @@ -582,12 +552,6 @@ func serializeCBOR_EmptyInputOutputInput(v *EmptyInputOutputInput) (smithycbor.V return vm, nil } -func serializeCBOR_Float16Input(v *Float16Input) (smithycbor.Value, error) { - vm := smithycbor.Map{} - - return vm, nil -} - func serializeCBOR_FractionalSecondsInput(v *FractionalSecondsInput) (smithycbor.Value, error) { vm := smithycbor.Map{} diff --git a/internal/protocoltest/smithyrpcv2cbor/snapshot_test.go b/internal/protocoltest/smithyrpcv2cbor/snapshot_test.go index b9b25ec2973..1a1b47bfe57 100644 --- a/internal/protocoltest/smithyrpcv2cbor/snapshot_test.go +++ b/internal/protocoltest/smithyrpcv2cbor/snapshot_test.go @@ -74,18 +74,6 @@ func TestCheckSnapshot_EmptyInputOutput(t *testing.T) { } } -func TestCheckSnapshot_Float16(t *testing.T) { - svc := New(Options{}) - _, err := svc.Float16(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return testSnapshot(stack, "Float16") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - func TestCheckSnapshot_FractionalSeconds(t *testing.T) { svc := New(Options{}) _, err := svc.FractionalSeconds(context.Background(), nil, func(o *Options) { @@ -229,18 +217,6 @@ func TestUpdateSnapshot_EmptyInputOutput(t *testing.T) { } } -func TestUpdateSnapshot_Float16(t *testing.T) { - svc := New(Options{}) - _, err := svc.Float16(context.Background(), nil, func(o *Options) { - o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { - return updateSnapshot(stack, "Float16") - }) - }) - if _, ok := err.(snapshotOK); !ok && err != nil { - t.Fatal(err) - } -} - func TestUpdateSnapshot_FractionalSeconds(t *testing.T) { svc := New(Options{}) _, err := svc.FractionalSeconds(context.Background(), nil, func(o *Options) { diff --git a/service/bedrockruntime/api_op_Converse.go b/service/bedrockruntime/api_op_Converse.go index 74d845aee0c..8fd99a61839 100644 --- a/service/bedrockruntime/api_op_Converse.go +++ b/service/bedrockruntime/api_op_Converse.go @@ -16,11 +16,16 @@ import ( // consistent interface that works with all models that support messages. This // allows you to write code once and use it with different models. Should a model // have unique inference parameters, you can also pass those unique parameters to -// the model. For more information, see [Run inference]in the Bedrock User Guide. +// the model. // -// This operation requires permission for the bedrock:InvokeModel action. +// For information about the Converse API, see Use the Converse API in the Amazon +// Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse +// API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use +// (Function calling) in the Amazon Bedrock User Guide +// +// For example code, see Converse API examples in the Amazon Bedrock User Guide. // -// [Run inference]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html +// This operation requires permission for the bedrock:InvokeModel action. func (c *Client) Converse(ctx context.Context, params *ConverseInput, optFns ...func(*Options)) (*ConverseOutput, error) { if params == nil { params = &ConverseInput{} @@ -73,7 +78,7 @@ type ConverseInput struct { // Additional model parameters field paths to return in the response. Converse // returns the requested fields as a JSON Pointer object in the - // additionalModelResultFields field. The following is example JSON for + // additionalModelResponseFields field. The following is example JSON for // additionalModelResponseFieldPaths . // // [ "/stop_sequence" ] @@ -87,6 +92,9 @@ type ConverseInput struct { // [Internet Engineering Task Force (IETF)]: https://datatracker.ietf.org/doc/html/rfc6901 AdditionalModelResponseFieldPaths []string + // Configuration information for a guardrail that you want to use in the request. + GuardrailConfig *types.GuardrailConfiguration + // Inference parameters to pass to the model. Converse supports a base set of // inference parameters. If you need to pass additional parameters that the model // supports, use the additionalModelRequestFields request field. @@ -131,6 +139,9 @@ type ConverseOutput struct { // Additional fields in the response that are unique to the model. AdditionalModelResponseFields document.Interface + // A trace object that contains information about the Guardrail behavior. + Trace *types.ConverseTrace + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/bedrockruntime/api_op_ConverseStream.go b/service/bedrockruntime/api_op_ConverseStream.go index 07e47bf1be1..29d768d1d38 100644 --- a/service/bedrockruntime/api_op_ConverseStream.go +++ b/service/bedrockruntime/api_op_ConverseStream.go @@ -17,20 +17,23 @@ import ( // in a stream. ConverseStream provides a consistent API that works with all // Amazon Bedrock models that support messages. This allows you to write code once // and use it with different models. Should a model have unique inference -// parameters, you can also pass those unique parameters to the model. For more -// information, see [Run inference]in the Bedrock User Guide. +// parameters, you can also pass those unique parameters to the model. // // To find out if a model supports streaming, call [GetFoundationModel] and check the // responseStreamingSupported field in the response. // -// For example code, see Invoke model with streaming code example in the Amazon -// Bedrock User Guide. +// For information about the Converse API, see Use the Converse API in the Amazon +// Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse +// API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use +// (Function calling) in the Amazon Bedrock User Guide +// +// For example code, see Conversation streaming example in the Amazon Bedrock User +// Guide. // // This operation requires permission for the bedrock:InvokeModelWithResponseStream // action. // // [GetFoundationModel]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html -// [Run inference]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html func (c *Client) ConverseStream(ctx context.Context, params *ConverseStreamInput, optFns ...func(*Options)) (*ConverseStreamOutput, error) { if params == nil { params = &ConverseStreamInput{} @@ -80,7 +83,7 @@ type ConverseStreamInput struct { // Additional model parameters field paths to return in the response. // ConverseStream returns the requested fields as a JSON Pointer object in the - // additionalModelResultFields field. The following is example JSON for + // additionalModelResponseFields field. The following is example JSON for // additionalModelResponseFieldPaths . // // [ "/stop_sequence" ] @@ -94,6 +97,9 @@ type ConverseStreamInput struct { // [Internet Engineering Task Force (IETF)]: https://datatracker.ietf.org/doc/html/rfc6901 AdditionalModelResponseFieldPaths []string + // Configuration information for a guardrail that you want to use in the request. + GuardrailConfig *types.GuardrailStreamConfiguration + // Inference parameters to pass to the model. ConverseStream supports a base set // of inference parameters. If you need to pass additional parameters that the // model supports, use the additionalModelRequestFields request field. diff --git a/service/bedrockruntime/api_op_InvokeModel.go b/service/bedrockruntime/api_op_InvokeModel.go index 1375be9f8a5..ac3dfdbb4e3 100644 --- a/service/bedrockruntime/api_op_InvokeModel.go +++ b/service/bedrockruntime/api_op_InvokeModel.go @@ -37,9 +37,9 @@ func (c *Client) InvokeModel(ctx context.Context, params *InvokeModelInput, optF type InvokeModelInput struct { // The prompt and inference parameters in the format specified in the contentType - // in the header. To see the format and content of the request and response bodies - // for different models, refer to [Inference parameters]. For more information, see [Run inference] in the Bedrock User - // Guide. + // in the header. You must provide the body in JSON format. To see the format and + // content of the request and response bodies for different models, refer to [Inference parameters]. For + // more information, see [Run inference]in the Bedrock User Guide. // // [Inference parameters]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html // [Run inference]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html @@ -72,7 +72,7 @@ type InvokeModelInput struct { // is application/json . Accept *string - // The MIME type of the input data in the request. The default value is + // The MIME type of the input data in the request. You must specify // application/json . ContentType *string diff --git a/service/bedrockruntime/api_op_InvokeModelWithResponseStream.go b/service/bedrockruntime/api_op_InvokeModelWithResponseStream.go index 405acbecbaa..6bcf89da430 100644 --- a/service/bedrockruntime/api_op_InvokeModelWithResponseStream.go +++ b/service/bedrockruntime/api_op_InvokeModelWithResponseStream.go @@ -46,9 +46,9 @@ func (c *Client) InvokeModelWithResponseStream(ctx context.Context, params *Invo type InvokeModelWithResponseStreamInput struct { // The prompt and inference parameters in the format specified in the contentType - // in the header. To see the format and content of the request and response bodies - // for different models, refer to [Inference parameters]. For more information, see [Run inference] in the Bedrock User - // Guide. + // in the header. You must provide the body in JSON format. To see the format and + // content of the request and response bodies for different models, refer to [Inference parameters]. For + // more information, see [Run inference]in the Bedrock User Guide. // // [Inference parameters]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html // [Run inference]: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html @@ -81,7 +81,7 @@ type InvokeModelWithResponseStreamInput struct { // is application/json . Accept *string - // The MIME type of the input data in the request. The default value is + // The MIME type of the input data in the request. You must specify // application/json . ContentType *string diff --git a/service/bedrockruntime/deserializers.go b/service/bedrockruntime/deserializers.go index d0799f6dad0..c4215b4b64b 100644 --- a/service/bedrockruntime/deserializers.go +++ b/service/bedrockruntime/deserializers.go @@ -211,6 +211,11 @@ func awsRestjson1_deserializeOpDocumentConverseOutput(v **ConverseOutput, value sv.StopReason = types.StopReason(jtv) } + case "trace": + if err := awsRestjson1_deserializeDocumentConverseTrace(&sv.Trace, value); err != nil { + return err + } + case "usage": if err := awsRestjson1_deserializeDocumentTokenUsage(&sv.Usage, value); err != nil { return err @@ -1778,6 +1783,11 @@ func awsRestjson1_deserializeDocumentConverseStreamMetadataEvent(v **types.Conve return err } + case "trace": + if err := awsRestjson1_deserializeDocumentConverseStreamTrace(&sv.Trace, value); err != nil { + return err + } + case "usage": if err := awsRestjson1_deserializeDocumentTokenUsage(&sv.Usage, value); err != nil { return err @@ -1836,7 +1846,7 @@ func awsRestjson1_deserializeDocumentConverseStreamMetrics(v **types.ConverseStr return nil } -func awsRestjson1_deserializeDocumentMessageStartEvent(v **types.MessageStartEvent, value interface{}) error { +func awsRestjson1_deserializeDocumentConverseStreamTrace(v **types.ConverseStreamTrace, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1849,22 +1859,18 @@ func awsRestjson1_deserializeDocumentMessageStartEvent(v **types.MessageStartEve return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MessageStartEvent + var sv *types.ConverseStreamTrace if *v == nil { - sv = &types.MessageStartEvent{} + sv = &types.ConverseStreamTrace{} } else { sv = *v } for key, value := range shape { switch key { - case "role": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConversationRole to be of type string, got %T instead", value) - } - sv.Role = types.ConversationRole(jtv) + case "guardrail": + if err := awsRestjson1_deserializeDocumentGuardrailTraceAssessment(&sv.Guardrail, value); err != nil { + return err } default: @@ -1876,7 +1882,7 @@ func awsRestjson1_deserializeDocumentMessageStartEvent(v **types.MessageStartEve return nil } -func awsRestjson1_deserializeDocumentMessageStopEvent(v **types.MessageStopEvent, value interface{}) error { +func awsRestjson1_deserializeDocumentGuardrailAssessment(v **types.GuardrailAssessment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1889,27 +1895,33 @@ func awsRestjson1_deserializeDocumentMessageStopEvent(v **types.MessageStopEvent return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MessageStopEvent + var sv *types.GuardrailAssessment if *v == nil { - sv = &types.MessageStopEvent{} + sv = &types.GuardrailAssessment{} } else { sv = *v } for key, value := range shape { switch key { - case "additionalModelResponseFields": - if err := awsRestjson1_deserializeDocumentDocument(&sv.AdditionalModelResponseFields, value); err != nil { + case "contentPolicy": + if err := awsRestjson1_deserializeDocumentGuardrailContentPolicyAssessment(&sv.ContentPolicy, value); err != nil { return err } - case "stopReason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StopReason to be of type string, got %T instead", value) - } - sv.StopReason = types.StopReason(jtv) + case "sensitiveInformationPolicy": + if err := awsRestjson1_deserializeDocumentGuardrailSensitiveInformationPolicyAssessment(&sv.SensitiveInformationPolicy, value); err != nil { + return err + } + + case "topicPolicy": + if err := awsRestjson1_deserializeDocumentGuardrailTopicPolicyAssessment(&sv.TopicPolicy, value); err != nil { + return err + } + + case "wordPolicy": + if err := awsRestjson1_deserializeDocumentGuardrailWordPolicyAssessment(&sv.WordPolicy, value); err != nil { + return err } default: @@ -1921,7 +1933,41 @@ func awsRestjson1_deserializeDocumentMessageStopEvent(v **types.MessageStopEvent return nil } -func awsRestjson1_deserializeDocumentTokenUsage(v **types.TokenUsage, value interface{}) error { +func awsRestjson1_deserializeDocumentGuardrailAssessmentList(v *[]types.GuardrailAssessment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GuardrailAssessment + if *v == nil { + cv = []types.GuardrailAssessment{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GuardrailAssessment + destAddr := &col + if err := awsRestjson1_deserializeDocumentGuardrailAssessment(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailAssessmentListMap(v *map[string][]types.GuardrailAssessment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1934,52 +1980,109 @@ func awsRestjson1_deserializeDocumentTokenUsage(v **types.TokenUsage, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TokenUsage + var mv map[string][]types.GuardrailAssessment if *v == nil { - sv = &types.TokenUsage{} + mv = map[string][]types.GuardrailAssessment{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal []types.GuardrailAssessment + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentGuardrailAssessmentList(&mapVar, value); err != nil { + return err + } + parsedVal = mapVar + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailAssessmentMap(v *map[string]types.GuardrailAssessment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.GuardrailAssessment + if *v == nil { + mv = map[string]types.GuardrailAssessment{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.GuardrailAssessment + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentGuardrailAssessment(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailContentFilter(v **types.GuardrailContentFilter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailContentFilter + if *v == nil { + sv = &types.GuardrailContentFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "inputTokens": + case "action": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected GuardrailContentPolicyAction to be of type string, got %T instead", value) } - sv.InputTokens = ptr.Int32(int32(i64)) + sv.Action = types.GuardrailContentPolicyAction(jtv) } - case "outputTokens": + case "confidence": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected GuardrailContentFilterConfidence to be of type string, got %T instead", value) } - sv.OutputTokens = ptr.Int32(int32(i64)) + sv.Confidence = types.GuardrailContentFilterConfidence(jtv) } - case "totalTokens": + case "type": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + return fmt.Errorf("expected GuardrailContentFilterType to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalTokens = ptr.Int32(int32(i64)) + sv.Type = types.GuardrailContentFilterType(jtv) } default: @@ -1991,7 +2094,41 @@ func awsRestjson1_deserializeDocumentTokenUsage(v **types.TokenUsage, value inte return nil } -func awsRestjson1_deserializeDocumentToolUseBlockDelta(v **types.ToolUseBlockDelta, value interface{}) error { +func awsRestjson1_deserializeDocumentGuardrailContentFilterList(v *[]types.GuardrailContentFilter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GuardrailContentFilter + if *v == nil { + cv = []types.GuardrailContentFilter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GuardrailContentFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentGuardrailContentFilter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailContentPolicyAssessment(v **types.GuardrailContentPolicyAssessment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2004,22 +2141,18 @@ func awsRestjson1_deserializeDocumentToolUseBlockDelta(v **types.ToolUseBlockDel return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ToolUseBlockDelta + var sv *types.GuardrailContentPolicyAssessment if *v == nil { - sv = &types.ToolUseBlockDelta{} + sv = &types.GuardrailContentPolicyAssessment{} } else { sv = *v } for key, value := range shape { switch key { - case "input": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Input = ptr.String(jtv) + case "filters": + if err := awsRestjson1_deserializeDocumentGuardrailContentFilterList(&sv.Filters, value); err != nil { + return err } default: @@ -2031,7 +2164,7 @@ func awsRestjson1_deserializeDocumentToolUseBlockDelta(v **types.ToolUseBlockDel return nil } -func awsRestjson1_deserializeDocumentToolUseBlockStart(v **types.ToolUseBlockStart, value interface{}) error { +func awsRestjson1_deserializeDocumentGuardrailCustomWord(v **types.GuardrailCustomWord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2044,31 +2177,31 @@ func awsRestjson1_deserializeDocumentToolUseBlockStart(v **types.ToolUseBlockSta return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ToolUseBlockStart + var sv *types.GuardrailCustomWord if *v == nil { - sv = &types.ToolUseBlockStart{} + sv = &types.GuardrailCustomWord{} } else { sv = *v } for key, value := range shape { switch key { - case "name": + case "action": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ToolName to be of type string, got %T instead", value) + return fmt.Errorf("expected GuardrailWordPolicyAction to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Action = types.GuardrailWordPolicyAction(jtv) } - case "toolUseId": + case "match": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ToolUseId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ToolUseId = ptr.String(jtv) + sv.Match = ptr.String(jtv) } default: @@ -2080,54 +2213,909 @@ func awsRestjson1_deserializeDocumentToolUseBlockStart(v **types.ToolUseBlockSta return nil } -func awsRestjson1_deserializeDocumentDocument(v *document.Interface, value interface{}) error { +func awsRestjson1_deserializeDocumentGuardrailCustomWordList(v *[]types.GuardrailCustomWord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - *v = internaldocument.NewDocumentUnmarshaler(value) - return nil -} - -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + if value == nil { + return nil + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + var cv []types.GuardrailCustomWord + if *v == nil { + cv = []types.GuardrailCustomWord{} + } else { + cv = *v + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + for _, value := range shape { + var col types.GuardrailCustomWord + destAddr := &col + if err := awsRestjson1_deserializeDocumentGuardrailCustomWord(&destAddr, value); err != nil { + return err } - return err + col = *destAddr + cv = append(cv, col) + } + *v = cv + return nil +} - errorBody.Seek(0, io.SeekStart) +func awsRestjson1_deserializeDocumentGuardrailManagedWord(v **types.GuardrailManagedWord, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - return output -} + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } -func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalServerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + var sv *types.GuardrailManagedWord + if *v == nil { + sv = &types.GuardrailManagedWord{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailWordPolicyAction to be of type string, got %T instead", value) + } + sv.Action = types.GuardrailWordPolicyAction(jtv) + } + + case "match": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Match = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailManagedWordType to be of type string, got %T instead", value) + } + sv.Type = types.GuardrailManagedWordType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailManagedWordList(v *[]types.GuardrailManagedWord, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GuardrailManagedWord + if *v == nil { + cv = []types.GuardrailManagedWord{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GuardrailManagedWord + destAddr := &col + if err := awsRestjson1_deserializeDocumentGuardrailManagedWord(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailPiiEntityFilter(v **types.GuardrailPiiEntityFilter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailPiiEntityFilter + if *v == nil { + sv = &types.GuardrailPiiEntityFilter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailSensitiveInformationPolicyAction to be of type string, got %T instead", value) + } + sv.Action = types.GuardrailSensitiveInformationPolicyAction(jtv) + } + + case "match": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Match = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailPiiEntityType to be of type string, got %T instead", value) + } + sv.Type = types.GuardrailPiiEntityType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailPiiEntityFilterList(v *[]types.GuardrailPiiEntityFilter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GuardrailPiiEntityFilter + if *v == nil { + cv = []types.GuardrailPiiEntityFilter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GuardrailPiiEntityFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentGuardrailPiiEntityFilter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailRegexFilter(v **types.GuardrailRegexFilter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailRegexFilter + if *v == nil { + sv = &types.GuardrailRegexFilter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailSensitiveInformationPolicyAction to be of type string, got %T instead", value) + } + sv.Action = types.GuardrailSensitiveInformationPolicyAction(jtv) + } + + case "match": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Match = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "regex": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Regex = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailRegexFilterList(v *[]types.GuardrailRegexFilter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GuardrailRegexFilter + if *v == nil { + cv = []types.GuardrailRegexFilter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GuardrailRegexFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentGuardrailRegexFilter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailSensitiveInformationPolicyAssessment(v **types.GuardrailSensitiveInformationPolicyAssessment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailSensitiveInformationPolicyAssessment + if *v == nil { + sv = &types.GuardrailSensitiveInformationPolicyAssessment{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "piiEntities": + if err := awsRestjson1_deserializeDocumentGuardrailPiiEntityFilterList(&sv.PiiEntities, value); err != nil { + return err + } + + case "regexes": + if err := awsRestjson1_deserializeDocumentGuardrailRegexFilterList(&sv.Regexes, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailTopic(v **types.GuardrailTopic, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailTopic + if *v == nil { + sv = &types.GuardrailTopic{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailTopicPolicyAction to be of type string, got %T instead", value) + } + sv.Action = types.GuardrailTopicPolicyAction(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailTopicType to be of type string, got %T instead", value) + } + sv.Type = types.GuardrailTopicType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailTopicList(v *[]types.GuardrailTopic, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GuardrailTopic + if *v == nil { + cv = []types.GuardrailTopic{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GuardrailTopic + destAddr := &col + if err := awsRestjson1_deserializeDocumentGuardrailTopic(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailTopicPolicyAssessment(v **types.GuardrailTopicPolicyAssessment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailTopicPolicyAssessment + if *v == nil { + sv = &types.GuardrailTopicPolicyAssessment{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "topics": + if err := awsRestjson1_deserializeDocumentGuardrailTopicList(&sv.Topics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailTraceAssessment(v **types.GuardrailTraceAssessment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailTraceAssessment + if *v == nil { + sv = &types.GuardrailTraceAssessment{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "inputAssessment": + if err := awsRestjson1_deserializeDocumentGuardrailAssessmentMap(&sv.InputAssessment, value); err != nil { + return err + } + + case "modelOutput": + if err := awsRestjson1_deserializeDocumentModelOutputs(&sv.ModelOutput, value); err != nil { + return err + } + + case "outputAssessments": + if err := awsRestjson1_deserializeDocumentGuardrailAssessmentListMap(&sv.OutputAssessments, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailWordPolicyAssessment(v **types.GuardrailWordPolicyAssessment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailWordPolicyAssessment + if *v == nil { + sv = &types.GuardrailWordPolicyAssessment{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "customWords": + if err := awsRestjson1_deserializeDocumentGuardrailCustomWordList(&sv.CustomWords, value); err != nil { + return err + } + + case "managedWordLists": + if err := awsRestjson1_deserializeDocumentGuardrailManagedWordList(&sv.ManagedWordLists, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMessageStartEvent(v **types.MessageStartEvent, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MessageStartEvent + if *v == nil { + sv = &types.MessageStartEvent{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "role": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConversationRole to be of type string, got %T instead", value) + } + sv.Role = types.ConversationRole(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMessageStopEvent(v **types.MessageStopEvent, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MessageStopEvent + if *v == nil { + sv = &types.MessageStopEvent{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "additionalModelResponseFields": + if err := awsRestjson1_deserializeDocumentDocument(&sv.AdditionalModelResponseFields, value); err != nil { + return err + } + + case "stopReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StopReason to be of type string, got %T instead", value) + } + sv.StopReason = types.StopReason(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentModelOutputs(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GuardrailOutputText to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTokenUsage(v **types.TokenUsage, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TokenUsage + if *v == nil { + sv = &types.TokenUsage{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "inputTokens": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.InputTokens = ptr.Int32(int32(i64)) + } + + case "outputTokens": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.OutputTokens = ptr.Int32(int32(i64)) + } + + case "totalTokens": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalTokens = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentToolUseBlockDelta(v **types.ToolUseBlockDelta, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ToolUseBlockDelta + if *v == nil { + sv = &types.ToolUseBlockDelta{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "input": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Input = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentToolUseBlockStart(v **types.ToolUseBlockStart, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ToolUseBlockStart + if *v == nil { + sv = &types.ToolUseBlockStart{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ToolName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "toolUseId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ToolUseId to be of type string, got %T instead", value) + } + sv.ToolUseId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDocument(v *document.Interface, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + *v = internaldocument.NewDocumentUnmarshaler(value) + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) @@ -2508,6 +3496,14 @@ loop: continue } switch key { + case "guardContent": + var mv types.GuardrailConverseContentBlock + if err := awsRestjson1_deserializeDocumentGuardrailConverseContentBlock(&mv, value); err != nil { + return err + } + uv = &types.ContentBlockMemberGuardContent{Value: mv} + break loop + case "image": var mv types.ImageBlock destAddr := &mv @@ -2676,6 +3672,122 @@ loop: return nil } +func awsRestjson1_deserializeDocumentConverseTrace(v **types.ConverseTrace, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConverseTrace + if *v == nil { + sv = &types.ConverseTrace{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "guardrail": + if err := awsRestjson1_deserializeDocumentGuardrailTraceAssessment(&sv.Guardrail, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailConverseContentBlock(v *types.GuardrailConverseContentBlock, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.GuardrailConverseContentBlock +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "text": + var mv types.GuardrailConverseTextBlock + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGuardrailConverseTextBlock(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.GuardrailConverseContentBlockMemberText{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentGuardrailConverseTextBlock(v **types.GuardrailConverseTextBlock, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GuardrailConverseTextBlock + if *v == nil { + sv = &types.GuardrailConverseTextBlock{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "text": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Text = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentImageBlock(v **types.ImageBlock, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/bedrockruntime/serializers.go b/service/bedrockruntime/serializers.go index f7c361cbe97..039d7534b3b 100644 --- a/service/bedrockruntime/serializers.go +++ b/service/bedrockruntime/serializers.go @@ -111,6 +111,13 @@ func awsRestjson1_serializeOpDocumentConverseInput(v *ConverseInput, value smith } } + if v.GuardrailConfig != nil { + ok := object.Key("guardrailConfig") + if err := awsRestjson1_serializeDocumentGuardrailConfiguration(v.GuardrailConfig, ok); err != nil { + return err + } + } + if v.InferenceConfig != nil { ok := object.Key("inferenceConfig") if err := awsRestjson1_serializeDocumentInferenceConfiguration(v.InferenceConfig, ok); err != nil { @@ -236,6 +243,13 @@ func awsRestjson1_serializeOpDocumentConverseStreamInput(v *ConverseStreamInput, } } + if v.GuardrailConfig != nil { + ok := object.Key("guardrailConfig") + if err := awsRestjson1_serializeDocumentGuardrailStreamConfiguration(v.GuardrailConfig, ok); err != nil { + return err + } + } + if v.InferenceConfig != nil { ok := object.Key("inferenceConfig") if err := awsRestjson1_serializeDocumentInferenceConfiguration(v.InferenceConfig, ok); err != nil { @@ -501,6 +515,12 @@ func awsRestjson1_serializeDocumentContentBlock(v types.ContentBlock, value smit defer object.Close() switch uv := v.(type) { + case *types.ContentBlockMemberGuardContent: + av := object.Key("guardContent") + if err := awsRestjson1_serializeDocumentGuardrailConverseContentBlock(uv.Value, av); err != nil { + return err + } + case *types.ContentBlockMemberImage: av := object.Key("image") if err := awsRestjson1_serializeDocumentImageBlock(&uv.Value, av); err != nil { @@ -546,6 +566,85 @@ func awsRestjson1_serializeDocumentContentBlocks(v []types.ContentBlock, value s return nil } +func awsRestjson1_serializeDocumentGuardrailConfiguration(v *types.GuardrailConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GuardrailIdentifier != nil { + ok := object.Key("guardrailIdentifier") + ok.String(*v.GuardrailIdentifier) + } + + if v.GuardrailVersion != nil { + ok := object.Key("guardrailVersion") + ok.String(*v.GuardrailVersion) + } + + if len(v.Trace) > 0 { + ok := object.Key("trace") + ok.String(string(v.Trace)) + } + + return nil +} + +func awsRestjson1_serializeDocumentGuardrailConverseContentBlock(v types.GuardrailConverseContentBlock, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.GuardrailConverseContentBlockMemberText: + av := object.Key("text") + if err := awsRestjson1_serializeDocumentGuardrailConverseTextBlock(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentGuardrailConverseTextBlock(v *types.GuardrailConverseTextBlock, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Text != nil { + ok := object.Key("text") + ok.String(*v.Text) + } + + return nil +} + +func awsRestjson1_serializeDocumentGuardrailStreamConfiguration(v *types.GuardrailStreamConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GuardrailIdentifier != nil { + ok := object.Key("guardrailIdentifier") + ok.String(*v.GuardrailIdentifier) + } + + if v.GuardrailVersion != nil { + ok := object.Key("guardrailVersion") + ok.String(*v.GuardrailVersion) + } + + if len(v.StreamProcessingMode) > 0 { + ok := object.Key("streamProcessingMode") + ok.String(string(v.StreamProcessingMode)) + } + + if len(v.Trace) > 0 { + ok := object.Key("trace") + ok.String(string(v.Trace)) + } + + return nil +} + func awsRestjson1_serializeDocumentImageBlock(v *types.ImageBlock, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -696,6 +795,12 @@ func awsRestjson1_serializeDocumentSystemContentBlock(v types.SystemContentBlock defer object.Close() switch uv := v.(type) { + case *types.SystemContentBlockMemberGuardContent: + av := object.Key("guardContent") + if err := awsRestjson1_serializeDocumentGuardrailConverseContentBlock(uv.Value, av); err != nil { + return err + } + case *types.SystemContentBlockMemberText: av := object.Key("text") av.String(uv.Value) diff --git a/service/bedrockruntime/types/enums.go b/service/bedrockruntime/types/enums.go index 34dc6c99923..78a79d0ee81 100644 --- a/service/bedrockruntime/types/enums.go +++ b/service/bedrockruntime/types/enums.go @@ -21,6 +21,279 @@ func (ConversationRole) Values() []ConversationRole { } } +type GuardrailContentFilterConfidence string + +// Enum values for GuardrailContentFilterConfidence +const ( + GuardrailContentFilterConfidenceNone GuardrailContentFilterConfidence = "NONE" + GuardrailContentFilterConfidenceLow GuardrailContentFilterConfidence = "LOW" + GuardrailContentFilterConfidenceMedium GuardrailContentFilterConfidence = "MEDIUM" + GuardrailContentFilterConfidenceHigh GuardrailContentFilterConfidence = "HIGH" +) + +// Values returns all known values for GuardrailContentFilterConfidence. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailContentFilterConfidence) Values() []GuardrailContentFilterConfidence { + return []GuardrailContentFilterConfidence{ + "NONE", + "LOW", + "MEDIUM", + "HIGH", + } +} + +type GuardrailContentFilterType string + +// Enum values for GuardrailContentFilterType +const ( + GuardrailContentFilterTypeInsults GuardrailContentFilterType = "INSULTS" + GuardrailContentFilterTypeHate GuardrailContentFilterType = "HATE" + GuardrailContentFilterTypeSexual GuardrailContentFilterType = "SEXUAL" + GuardrailContentFilterTypeViolence GuardrailContentFilterType = "VIOLENCE" + GuardrailContentFilterTypeMisconduct GuardrailContentFilterType = "MISCONDUCT" + GuardrailContentFilterTypePromptAttack GuardrailContentFilterType = "PROMPT_ATTACK" +) + +// Values returns all known values for GuardrailContentFilterType. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailContentFilterType) Values() []GuardrailContentFilterType { + return []GuardrailContentFilterType{ + "INSULTS", + "HATE", + "SEXUAL", + "VIOLENCE", + "MISCONDUCT", + "PROMPT_ATTACK", + } +} + +type GuardrailContentPolicyAction string + +// Enum values for GuardrailContentPolicyAction +const ( + GuardrailContentPolicyActionBlocked GuardrailContentPolicyAction = "BLOCKED" +) + +// Values returns all known values for GuardrailContentPolicyAction. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailContentPolicyAction) Values() []GuardrailContentPolicyAction { + return []GuardrailContentPolicyAction{ + "BLOCKED", + } +} + +type GuardrailManagedWordType string + +// Enum values for GuardrailManagedWordType +const ( + GuardrailManagedWordTypeProfanity GuardrailManagedWordType = "PROFANITY" +) + +// Values returns all known values for GuardrailManagedWordType. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailManagedWordType) Values() []GuardrailManagedWordType { + return []GuardrailManagedWordType{ + "PROFANITY", + } +} + +type GuardrailPiiEntityType string + +// Enum values for GuardrailPiiEntityType +const ( + GuardrailPiiEntityTypeAddress GuardrailPiiEntityType = "ADDRESS" + GuardrailPiiEntityTypeAge GuardrailPiiEntityType = "AGE" + GuardrailPiiEntityTypeAwsAccessKey GuardrailPiiEntityType = "AWS_ACCESS_KEY" + GuardrailPiiEntityTypeAwsSecretKey GuardrailPiiEntityType = "AWS_SECRET_KEY" + GuardrailPiiEntityTypeCaHealthNumber GuardrailPiiEntityType = "CA_HEALTH_NUMBER" + GuardrailPiiEntityTypeCaSocialInsuranceNumber GuardrailPiiEntityType = "CA_SOCIAL_INSURANCE_NUMBER" + GuardrailPiiEntityTypeCreditDebitCardCvv GuardrailPiiEntityType = "CREDIT_DEBIT_CARD_CVV" + GuardrailPiiEntityTypeCreditDebitCardExpiry GuardrailPiiEntityType = "CREDIT_DEBIT_CARD_EXPIRY" + GuardrailPiiEntityTypeCreditDebitCardNumber GuardrailPiiEntityType = "CREDIT_DEBIT_CARD_NUMBER" + GuardrailPiiEntityTypeDriverId GuardrailPiiEntityType = "DRIVER_ID" + GuardrailPiiEntityTypeEmail GuardrailPiiEntityType = "EMAIL" + GuardrailPiiEntityTypeInternationalBankAccountNumber GuardrailPiiEntityType = "INTERNATIONAL_BANK_ACCOUNT_NUMBER" + GuardrailPiiEntityTypeIpAddress GuardrailPiiEntityType = "IP_ADDRESS" + GuardrailPiiEntityTypeLicensePlate GuardrailPiiEntityType = "LICENSE_PLATE" + GuardrailPiiEntityTypeMacAddress GuardrailPiiEntityType = "MAC_ADDRESS" + GuardrailPiiEntityTypeName GuardrailPiiEntityType = "NAME" + GuardrailPiiEntityTypePassword GuardrailPiiEntityType = "PASSWORD" + GuardrailPiiEntityTypePhone GuardrailPiiEntityType = "PHONE" + GuardrailPiiEntityTypePin GuardrailPiiEntityType = "PIN" + GuardrailPiiEntityTypeSwiftCode GuardrailPiiEntityType = "SWIFT_CODE" + GuardrailPiiEntityTypeUkNationalHealthServiceNumber GuardrailPiiEntityType = "UK_NATIONAL_HEALTH_SERVICE_NUMBER" + GuardrailPiiEntityTypeUkNationalInsuranceNumber GuardrailPiiEntityType = "UK_NATIONAL_INSURANCE_NUMBER" + GuardrailPiiEntityTypeUkUniqueTaxpayerReferenceNumber GuardrailPiiEntityType = "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" + GuardrailPiiEntityTypeUrl GuardrailPiiEntityType = "URL" + GuardrailPiiEntityTypeUsername GuardrailPiiEntityType = "USERNAME" + GuardrailPiiEntityTypeUsBankAccountNumber GuardrailPiiEntityType = "US_BANK_ACCOUNT_NUMBER" + GuardrailPiiEntityTypeUsBankRoutingNumber GuardrailPiiEntityType = "US_BANK_ROUTING_NUMBER" + GuardrailPiiEntityTypeUsIndividualTaxIdentificationNumber GuardrailPiiEntityType = "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" + GuardrailPiiEntityTypeUsPassportNumber GuardrailPiiEntityType = "US_PASSPORT_NUMBER" + GuardrailPiiEntityTypeUsSocialSecurityNumber GuardrailPiiEntityType = "US_SOCIAL_SECURITY_NUMBER" + GuardrailPiiEntityTypeVehicleIdentificationNumber GuardrailPiiEntityType = "VEHICLE_IDENTIFICATION_NUMBER" +) + +// Values returns all known values for GuardrailPiiEntityType. Note that this can +// be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailPiiEntityType) Values() []GuardrailPiiEntityType { + return []GuardrailPiiEntityType{ + "ADDRESS", + "AGE", + "AWS_ACCESS_KEY", + "AWS_SECRET_KEY", + "CA_HEALTH_NUMBER", + "CA_SOCIAL_INSURANCE_NUMBER", + "CREDIT_DEBIT_CARD_CVV", + "CREDIT_DEBIT_CARD_EXPIRY", + "CREDIT_DEBIT_CARD_NUMBER", + "DRIVER_ID", + "EMAIL", + "INTERNATIONAL_BANK_ACCOUNT_NUMBER", + "IP_ADDRESS", + "LICENSE_PLATE", + "MAC_ADDRESS", + "NAME", + "PASSWORD", + "PHONE", + "PIN", + "SWIFT_CODE", + "UK_NATIONAL_HEALTH_SERVICE_NUMBER", + "UK_NATIONAL_INSURANCE_NUMBER", + "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", + "URL", + "USERNAME", + "US_BANK_ACCOUNT_NUMBER", + "US_BANK_ROUTING_NUMBER", + "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", + "US_PASSPORT_NUMBER", + "US_SOCIAL_SECURITY_NUMBER", + "VEHICLE_IDENTIFICATION_NUMBER", + } +} + +type GuardrailSensitiveInformationPolicyAction string + +// Enum values for GuardrailSensitiveInformationPolicyAction +const ( + GuardrailSensitiveInformationPolicyActionAnonymized GuardrailSensitiveInformationPolicyAction = "ANONYMIZED" + GuardrailSensitiveInformationPolicyActionBlocked GuardrailSensitiveInformationPolicyAction = "BLOCKED" +) + +// Values returns all known values for GuardrailSensitiveInformationPolicyAction. +// Note that this can be expanded in the future, and so it is only as up to date as +// the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailSensitiveInformationPolicyAction) Values() []GuardrailSensitiveInformationPolicyAction { + return []GuardrailSensitiveInformationPolicyAction{ + "ANONYMIZED", + "BLOCKED", + } +} + +type GuardrailStreamProcessingMode string + +// Enum values for GuardrailStreamProcessingMode +const ( + GuardrailStreamProcessingModeSync GuardrailStreamProcessingMode = "sync" + GuardrailStreamProcessingModeAsync GuardrailStreamProcessingMode = "async" +) + +// Values returns all known values for GuardrailStreamProcessingMode. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailStreamProcessingMode) Values() []GuardrailStreamProcessingMode { + return []GuardrailStreamProcessingMode{ + "sync", + "async", + } +} + +type GuardrailTopicPolicyAction string + +// Enum values for GuardrailTopicPolicyAction +const ( + GuardrailTopicPolicyActionBlocked GuardrailTopicPolicyAction = "BLOCKED" +) + +// Values returns all known values for GuardrailTopicPolicyAction. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailTopicPolicyAction) Values() []GuardrailTopicPolicyAction { + return []GuardrailTopicPolicyAction{ + "BLOCKED", + } +} + +type GuardrailTopicType string + +// Enum values for GuardrailTopicType +const ( + GuardrailTopicTypeDeny GuardrailTopicType = "DENY" +) + +// Values returns all known values for GuardrailTopicType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailTopicType) Values() []GuardrailTopicType { + return []GuardrailTopicType{ + "DENY", + } +} + +type GuardrailTrace string + +// Enum values for GuardrailTrace +const ( + GuardrailTraceEnabled GuardrailTrace = "enabled" + GuardrailTraceDisabled GuardrailTrace = "disabled" +) + +// Values returns all known values for GuardrailTrace. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailTrace) Values() []GuardrailTrace { + return []GuardrailTrace{ + "enabled", + "disabled", + } +} + +type GuardrailWordPolicyAction string + +// Enum values for GuardrailWordPolicyAction +const ( + GuardrailWordPolicyActionBlocked GuardrailWordPolicyAction = "BLOCKED" +) + +// Values returns all known values for GuardrailWordPolicyAction. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (GuardrailWordPolicyAction) Values() []GuardrailWordPolicyAction { + return []GuardrailWordPolicyAction{ + "BLOCKED", + } +} + type ImageFormat string // Enum values for ImageFormat @@ -48,11 +321,12 @@ type StopReason string // Enum values for StopReason const ( - StopReasonEndTurn StopReason = "end_turn" - StopReasonToolUse StopReason = "tool_use" - StopReasonMaxTokens StopReason = "max_tokens" - StopReasonStopSequence StopReason = "stop_sequence" - StopReasonContentFiltered StopReason = "content_filtered" + StopReasonEndTurn StopReason = "end_turn" + StopReasonToolUse StopReason = "tool_use" + StopReasonMaxTokens StopReason = "max_tokens" + StopReasonStopSequence StopReason = "stop_sequence" + StopReasonGuardrailIntervened StopReason = "guardrail_intervened" + StopReasonContentFiltered StopReason = "content_filtered" ) // Values returns all known values for StopReason. Note that this can be expanded @@ -65,6 +339,7 @@ func (StopReason) Values() []StopReason { "tool_use", "max_tokens", "stop_sequence", + "guardrail_intervened", "content_filtered", } } diff --git a/service/bedrockruntime/types/types.go b/service/bedrockruntime/types/types.go index 2337320948b..cb986af3c94 100644 --- a/service/bedrockruntime/types/types.go +++ b/service/bedrockruntime/types/types.go @@ -7,21 +7,24 @@ import ( smithydocument "github.com/aws/smithy-go/document" ) -// The model must request at least one tool (no text is generated). +// The model must request at least one tool (no text is generated). For example, +// {"any" : {}} . type AnyToolChoice struct { noSmithyDocumentSerde } -// The Model automatically decides if a tool should be called or to whether to -// generate text instead. +// The Model automatically decides if a tool should be called or whether to +// generate text instead. For example, {"auto" : {}} . type AutoToolChoice struct { noSmithyDocumentSerde } -// A block of content for a message. +// A block of content for a message that you pass to, or receive from, a model +// with the Converse API (Converse and ConverseStream). // // The following types satisfy this interface: // +// ContentBlockMemberGuardContent // ContentBlockMemberImage // ContentBlockMemberText // ContentBlockMemberToolResult @@ -30,6 +33,20 @@ type ContentBlock interface { isContentBlock() } +// Contains the content to assess with the guardrail. If you don't specify +// guardContent in a call to the Converse API, the guardrail (if passed in the +// Converse API) assesses the entire message. +// +// For more information, see Use a guardrail with the Converse API in the Amazon +// Bedrock User Guide. +type ContentBlockMemberGuardContent struct { + Value GuardrailConverseContentBlock + + noSmithyDocumentSerde +} + +func (*ContentBlockMemberGuardContent) isContentBlock() {} + // Image to include in the message. // // This field is only supported by Anthropic Claude 3 models. @@ -203,6 +220,10 @@ type ConverseStreamMetadataEvent struct { // This member is required. Usage *TokenUsage + // The trace object in the response from ConverseStream that contains information about the + // guardrail behavior. + Trace *ConverseStreamTrace + noSmithyDocumentSerde } @@ -285,6 +306,307 @@ type ConverseStreamOutputMemberMetadata struct { func (*ConverseStreamOutputMemberMetadata) isConverseStreamOutput() {} +// The trace object in a response from ConverseStream. Currently, you can only trace guardrails. +type ConverseStreamTrace struct { + + // The guardrail trace object. + Guardrail *GuardrailTraceAssessment + + noSmithyDocumentSerde +} + +// The trace object in a response from Converse. Currently, you can only trace guardrails. +type ConverseTrace struct { + + // The guardrail trace object. + Guardrail *GuardrailTraceAssessment + + noSmithyDocumentSerde +} + +// A behavior assessment of the guardrail policies used in a call to the Converse +// API. +type GuardrailAssessment struct { + + // The content policy. + ContentPolicy *GuardrailContentPolicyAssessment + + // The sensitive information policy. + SensitiveInformationPolicy *GuardrailSensitiveInformationPolicyAssessment + + // The topic policy. + TopicPolicy *GuardrailTopicPolicyAssessment + + // The word policy. + WordPolicy *GuardrailWordPolicyAssessment + + noSmithyDocumentSerde +} + +// Configuration information for a guardrail that you use with the Converse action. +type GuardrailConfiguration struct { + + // The identifier for the guardrail. + // + // This member is required. + GuardrailIdentifier *string + + // The version of the guardrail. + // + // This member is required. + GuardrailVersion *string + + // The trace behavior for the guardrail. + Trace GuardrailTrace + + noSmithyDocumentSerde +} + +// The content filter for a guardrail. +type GuardrailContentFilter struct { + + // The guardrail action. + // + // This member is required. + Action GuardrailContentPolicyAction + + // The guardrail confidence. + // + // This member is required. + Confidence GuardrailContentFilterConfidence + + // The guardrail type. + // + // This member is required. + Type GuardrailContentFilterType + + noSmithyDocumentSerde +} + +// An assessment of a content policy for a guardrail. +type GuardrailContentPolicyAssessment struct { + + // The content policy filters. + // + // This member is required. + Filters []GuardrailContentFilter + + noSmithyDocumentSerde +} + +// A content block for selective guarding with the Converse API (Converse and ConverseStream). +// +// The following types satisfy this interface: +// +// GuardrailConverseContentBlockMemberText +type GuardrailConverseContentBlock interface { + isGuardrailConverseContentBlock() +} + +// The text to guard. +type GuardrailConverseContentBlockMemberText struct { + Value GuardrailConverseTextBlock + + noSmithyDocumentSerde +} + +func (*GuardrailConverseContentBlockMemberText) isGuardrailConverseContentBlock() {} + +// A text block that contains text that you want to assess with a guardrail. For +// more information, see GuardrailConverseContentBlock. +type GuardrailConverseTextBlock struct { + + // The text that you want to guard. + // + // This member is required. + Text *string + + noSmithyDocumentSerde +} + +// A custom word configured in a guardrail. +type GuardrailCustomWord struct { + + // The action for the custom word. + // + // This member is required. + Action GuardrailWordPolicyAction + + // The match for the custom word. + // + // This member is required. + Match *string + + noSmithyDocumentSerde +} + +// A managed word configured in a guardrail. +type GuardrailManagedWord struct { + + // The action for the managed word. + // + // This member is required. + Action GuardrailWordPolicyAction + + // The match for the managed word. + // + // This member is required. + Match *string + + // The type for the managed word. + // + // This member is required. + Type GuardrailManagedWordType + + noSmithyDocumentSerde +} + +// A Personally Identifiable Information (PII) entity configured in a guardrail. +type GuardrailPiiEntityFilter struct { + + // The PII entity filter action. + // + // This member is required. + Action GuardrailSensitiveInformationPolicyAction + + // The PII entity filter match. + // + // This member is required. + Match *string + + // The PII entity filter type. + // + // This member is required. + Type GuardrailPiiEntityType + + noSmithyDocumentSerde +} + +// A Regex filter configured in a guardrail. +type GuardrailRegexFilter struct { + + // The region filter action. + // + // This member is required. + Action GuardrailSensitiveInformationPolicyAction + + // The regesx filter match. + Match *string + + // The regex filter name. + Name *string + + // The regex query. + Regex *string + + noSmithyDocumentSerde +} + +// The assessment for aPersonally Identifiable Information (PII) policy. +type GuardrailSensitiveInformationPolicyAssessment struct { + + // The PII entities in the assessment. + // + // This member is required. + PiiEntities []GuardrailPiiEntityFilter + + // The regex queries in the assessment. + // + // This member is required. + Regexes []GuardrailRegexFilter + + noSmithyDocumentSerde +} + +// Configuration information for a guardrail that you use with the ConverseStream action. +type GuardrailStreamConfiguration struct { + + // The identifier for the guardrail. + // + // This member is required. + GuardrailIdentifier *string + + // The version of the guardrail. + // + // This member is required. + GuardrailVersion *string + + // The processing mode. + // + // The processing mode. For more information, see Configure streaming response + // behavior in the Amazon Bedrock User Guide. + StreamProcessingMode GuardrailStreamProcessingMode + + // The trace behavior for the guardrail. + Trace GuardrailTrace + + noSmithyDocumentSerde +} + +// Information about a topic guardrail. +type GuardrailTopic struct { + + // The action the guardrail should take when it intervenes on a topic. + // + // This member is required. + Action GuardrailTopicPolicyAction + + // The name for the guardrail. + // + // This member is required. + Name *string + + // The type behavior that the guardrail should perform when the model detects the + // topic. + // + // This member is required. + Type GuardrailTopicType + + noSmithyDocumentSerde +} + +// A behavior assessment of a topic policy. +type GuardrailTopicPolicyAssessment struct { + + // The topics in the assessment. + // + // This member is required. + Topics []GuardrailTopic + + noSmithyDocumentSerde +} + +// A Top level guardrail trace object. For more information, see ConverseTrace. +type GuardrailTraceAssessment struct { + + // The input assessment. + InputAssessment map[string]GuardrailAssessment + + // The output from the model. + ModelOutput []string + + // the output assessments. + OutputAssessments map[string][]GuardrailAssessment + + noSmithyDocumentSerde +} + +// The word policy assessment. +type GuardrailWordPolicyAssessment struct { + + // Custom words in the assessment. + // + // This member is required. + CustomWords []GuardrailCustomWord + + // Managed word lists in the assessment. + // + // This member is required. + ManagedWordLists []GuardrailManagedWord + + noSmithyDocumentSerde +} + // Image content for a message. type ImageBlock struct { @@ -335,9 +657,9 @@ type InferenceConfiguration struct { // The maximum number of tokens to allow in the generated response. The default // value is the maximum allowed value for the model that you are using. For more - // information, see [Inference parameters for foundatio{ "messages": [ { "role": "user", "content": [ { "text": "what's the weather in Queens, NY and Austin, TX?" } ] }, { "role": "assistant", "content": [ { "toolUse": { "toolUseId": "1", "name": "get_weather", "input": { "city": "Queens", "state": "NY" } } }, { "toolUse": { "toolUseId": "2", "name": "get_weather", "input": { "city": "Austin", "state": "TX" } } } ] }, { "role": "user", "content": [ { "toolResult": { "toolUseId": "2", "content": [ { "json": { "weather": "40" } } ] } }, { "text": "..." }, { "toolResult": { "toolUseId": "1", "content": [ { "text": "result text" } ] } } ] } ], "toolConfig": { "tools": [ { "name": "get_weather", "description": "Get weather", "inputSchema": { "type": "object", "properties": { "city": { "type": "string", "description": "City of location" }, "state": { "type": "string", "description": "State of location" } }, "required": ["city", "state"] } } ] } } n models]. + // information, see [Inference parameters for foundation models]. // - // [Inference parameters for foundatio{ "messages": [ { "role": "user", "content": [ { "text": "what's the weather in Queens, NY and Austin, TX?" } ] }, { "role": "assistant", "content": [ { "toolUse": { "toolUseId": "1", "name": "get_weather", "input": { "city": "Queens", "state": "NY" } } }, { "toolUse": { "toolUseId": "2", "name": "get_weather", "input": { "city": "Austin", "state": "TX" } } } ] }, { "role": "user", "content": [ { "toolResult": { "toolUseId": "2", "content": [ { "json": { "weather": "40" } } ] } }, { "text": "..." }, { "toolResult": { "toolUseId": "1", "content": [ { "text": "result text" } ] } } ] } ], "toolConfig": { "tools": [ { "name": "get_weather", "description": "Get weather", "inputSchema": { "type": "object", "properties": { "city": { "type": "string", "description": "City of location" }, "state": { "type": "string", "description": "State of location" } }, "required": ["city", "state"] } } ] } } n models]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html + // [Inference parameters for foundation models]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html MaxTokens *int32 // A list of stop sequences. A stop sequence is a sequence of characters that @@ -369,10 +691,10 @@ type InferenceConfiguration struct { noSmithyDocumentSerde } -// A message in the [Message] field. Use to send a message in a call to [Converse]. +// A message input, or returned from, a call to [Converse] or [ConverseStream]. // -// [Message]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Message.html // [Converse]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html +// [ConverseStream]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html type Message struct { // The message content. @@ -440,7 +762,8 @@ type ResponseStreamMemberChunk struct { func (*ResponseStreamMemberChunk) isResponseStream() {} -// The model must request a specific tool. +// The model must request a specific tool. For example, {"tool" : {"name" : "Your +// tool name"}} . // // This field is only supported by Anthropic Claude 3 models. type SpecificToolChoice struct { @@ -453,15 +776,29 @@ type SpecificToolChoice struct { noSmithyDocumentSerde } -// A system content block +// A system content block. // // The following types satisfy this interface: // +// SystemContentBlockMemberGuardContent // SystemContentBlockMemberText type SystemContentBlock interface { isSystemContentBlock() } +// A content block to assess with the guardrail. Use with the Converse API (Converse and ConverseStream +// ). +// +// For more information, see Use a guardrail with the Converse API in the Amazon +// Bedrock User Guide. +type SystemContentBlockMemberGuardContent struct { + Value GuardrailConverseContentBlock + + noSmithyDocumentSerde +} + +func (*SystemContentBlockMemberGuardContent) isSystemContentBlock() {} + // A system prompt for the model. type SystemContentBlockMemberText struct { Value string @@ -510,7 +847,9 @@ type ToolMemberToolSpec struct { func (*ToolMemberToolSpec) isTool() {} -// Forces a model to use a tool. +// Determines which tools the model should request in a call to Converse or +// ConverseStream . ToolChoice is only supported by Anthropic Claude 3 models and +// by Mistral AI Mistral Large. // // The following types satisfy this interface: // @@ -530,8 +869,8 @@ type ToolChoiceMemberAny struct { func (*ToolChoiceMemberAny) isToolChoice() {} -// The Model automatically decides if a tool should be called or to whether to -// generate text instead. +// (Default). The Model automatically decides if a tool should be called or +// whether to generate text instead. type ToolChoiceMemberAuto struct { Value AutoToolChoice @@ -540,7 +879,8 @@ type ToolChoiceMemberAuto struct { func (*ToolChoiceMemberAuto) isToolChoice() {} -// The Model must request the specified tool. +// The Model must request the specified tool. Only supported by Anthropic Claude 3 +// models. type ToolChoiceMemberTool struct { Value SpecificToolChoice @@ -728,15 +1068,16 @@ type UnknownUnionMember struct { noSmithyDocumentSerde } -func (*UnknownUnionMember) isContentBlock() {} -func (*UnknownUnionMember) isContentBlockDelta() {} -func (*UnknownUnionMember) isContentBlockStart() {} -func (*UnknownUnionMember) isConverseOutput() {} -func (*UnknownUnionMember) isConverseStreamOutput() {} -func (*UnknownUnionMember) isImageSource() {} -func (*UnknownUnionMember) isResponseStream() {} -func (*UnknownUnionMember) isSystemContentBlock() {} -func (*UnknownUnionMember) isTool() {} -func (*UnknownUnionMember) isToolChoice() {} -func (*UnknownUnionMember) isToolInputSchema() {} -func (*UnknownUnionMember) isToolResultContentBlock() {} +func (*UnknownUnionMember) isContentBlock() {} +func (*UnknownUnionMember) isContentBlockDelta() {} +func (*UnknownUnionMember) isContentBlockStart() {} +func (*UnknownUnionMember) isConverseOutput() {} +func (*UnknownUnionMember) isConverseStreamOutput() {} +func (*UnknownUnionMember) isGuardrailConverseContentBlock() {} +func (*UnknownUnionMember) isImageSource() {} +func (*UnknownUnionMember) isResponseStream() {} +func (*UnknownUnionMember) isSystemContentBlock() {} +func (*UnknownUnionMember) isTool() {} +func (*UnknownUnionMember) isToolChoice() {} +func (*UnknownUnionMember) isToolInputSchema() {} +func (*UnknownUnionMember) isToolResultContentBlock() {} diff --git a/service/bedrockruntime/types/types_exported_test.go b/service/bedrockruntime/types/types_exported_test.go index 92ea2cf99ea..109179b4f76 100644 --- a/service/bedrockruntime/types/types_exported_test.go +++ b/service/bedrockruntime/types/types_exported_test.go @@ -12,6 +12,9 @@ func ExampleContentBlock_outputUsage() { var union types.ContentBlock // type switches can be used to check the union value switch v := union.(type) { + case *types.ContentBlockMemberGuardContent: + _ = v.Value // Value is types.GuardrailConverseContentBlock + case *types.ContentBlockMemberImage: _ = v.Value // Value is types.ImageBlock @@ -34,6 +37,7 @@ func ExampleContentBlock_outputUsage() { } var _ *string +var _ types.GuardrailConverseContentBlock var _ *types.ImageBlock var _ *types.ToolResultBlock var _ *types.ToolUseBlock @@ -134,6 +138,24 @@ var _ *types.ContentBlockDeltaEvent var _ *types.ContentBlockStartEvent var _ *types.ConverseStreamMetadataEvent +func ExampleGuardrailConverseContentBlock_outputUsage() { + var union types.GuardrailConverseContentBlock + // type switches can be used to check the union value + switch v := union.(type) { + case *types.GuardrailConverseContentBlockMemberText: + _ = v.Value // Value is types.GuardrailConverseTextBlock + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.GuardrailConverseTextBlock + func ExampleImageSource_outputUsage() { var union types.ImageSource // type switches can be used to check the union value @@ -174,6 +196,9 @@ func ExampleSystemContentBlock_outputUsage() { var union types.SystemContentBlock // type switches can be used to check the union value switch v := union.(type) { + case *types.SystemContentBlockMemberGuardContent: + _ = v.Value // Value is types.GuardrailConverseContentBlock + case *types.SystemContentBlockMemberText: _ = v.Value // Value is string @@ -187,6 +212,7 @@ func ExampleSystemContentBlock_outputUsage() { } var _ *string +var _ types.GuardrailConverseContentBlock func ExampleTool_outputUsage() { var union types.Tool diff --git a/service/bedrockruntime/validators.go b/service/bedrockruntime/validators.go index d9359a4ffd9..79133a9a928 100644 --- a/service/bedrockruntime/validators.go +++ b/service/bedrockruntime/validators.go @@ -112,6 +112,11 @@ func validateContentBlock(v types.ContentBlock) error { } invalidParams := smithy.InvalidParamsError{Context: "ContentBlock"} switch uv := v.(type) { + case *types.ContentBlockMemberGuardContent: + if err := validateGuardrailConverseContentBlock(uv.Value); err != nil { + invalidParams.AddNested("[guardContent]", err.(smithy.InvalidParamsError)) + } + case *types.ContentBlockMemberImage: if err := validateImageBlock(&uv.Value); err != nil { invalidParams.AddNested("[image]", err.(smithy.InvalidParamsError)) @@ -152,6 +157,76 @@ func validateContentBlocks(v []types.ContentBlock) error { } } +func validateGuardrailConfiguration(v *types.GuardrailConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GuardrailConfiguration"} + if v.GuardrailIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("GuardrailIdentifier")) + } + if v.GuardrailVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("GuardrailVersion")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGuardrailConverseContentBlock(v types.GuardrailConverseContentBlock) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GuardrailConverseContentBlock"} + switch uv := v.(type) { + case *types.GuardrailConverseContentBlockMemberText: + if err := validateGuardrailConverseTextBlock(&uv.Value); err != nil { + invalidParams.AddNested("[text]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGuardrailConverseTextBlock(v *types.GuardrailConverseTextBlock) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GuardrailConverseTextBlock"} + if v.Text == nil { + invalidParams.Add(smithy.NewErrParamRequired("Text")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGuardrailStreamConfiguration(v *types.GuardrailStreamConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GuardrailStreamConfiguration"} + if v.GuardrailIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("GuardrailIdentifier")) + } + if v.GuardrailVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("GuardrailVersion")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateImageBlock(v *types.ImageBlock) error { if v == nil { return nil @@ -224,6 +299,42 @@ func validateSpecificToolChoice(v *types.SpecificToolChoice) error { } } +func validateSystemContentBlock(v types.SystemContentBlock) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SystemContentBlock"} + switch uv := v.(type) { + case *types.SystemContentBlockMemberGuardContent: + if err := validateGuardrailConverseContentBlock(uv.Value); err != nil { + invalidParams.AddNested("[guardContent]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSystemContentBlocks(v []types.SystemContentBlock) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SystemContentBlocks"} + for i := range v { + if err := validateSystemContentBlock(v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateTool(v types.Tool) error { if v == nil { return nil @@ -415,11 +526,21 @@ func validateOpConverseInput(v *ConverseInput) error { invalidParams.AddNested("Messages", err.(smithy.InvalidParamsError)) } } + if v.System != nil { + if err := validateSystemContentBlocks(v.System); err != nil { + invalidParams.AddNested("System", err.(smithy.InvalidParamsError)) + } + } if v.ToolConfig != nil { if err := validateToolConfiguration(v.ToolConfig); err != nil { invalidParams.AddNested("ToolConfig", err.(smithy.InvalidParamsError)) } } + if v.GuardrailConfig != nil { + if err := validateGuardrailConfiguration(v.GuardrailConfig); err != nil { + invalidParams.AddNested("GuardrailConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -442,11 +563,21 @@ func validateOpConverseStreamInput(v *ConverseStreamInput) error { invalidParams.AddNested("Messages", err.(smithy.InvalidParamsError)) } } + if v.System != nil { + if err := validateSystemContentBlocks(v.System); err != nil { + invalidParams.AddNested("System", err.(smithy.InvalidParamsError)) + } + } if v.ToolConfig != nil { if err := validateToolConfiguration(v.ToolConfig); err != nil { invalidParams.AddNested("ToolConfig", err.(smithy.InvalidParamsError)) } } + if v.GuardrailConfig != nil { + if err := validateGuardrailStreamConfiguration(v.GuardrailConfig); err != nil { + invalidParams.AddNested("GuardrailConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/eks/deserializers.go b/service/eks/deserializers.go index c24e519997c..0b4d1808f5b 100644 --- a/service/eks/deserializers.go +++ b/service/eks/deserializers.go @@ -11746,6 +11746,11 @@ func awsRestjson1_deserializeDocumentFargateProfile(v **types.FargateProfile, va sv.FargateProfileName = ptr.String(jtv) } + case "health": + if err := awsRestjson1_deserializeDocumentFargateProfileHealth(&sv.Health, value); err != nil { + return err + } + case "podExecutionRoleArn": if value != nil { jtv, ok := value.(string) @@ -11788,6 +11793,130 @@ func awsRestjson1_deserializeDocumentFargateProfile(v **types.FargateProfile, va return nil } +func awsRestjson1_deserializeDocumentFargateProfileHealth(v **types.FargateProfileHealth, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FargateProfileHealth + if *v == nil { + sv = &types.FargateProfileHealth{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "issues": + if err := awsRestjson1_deserializeDocumentFargateProfileIssueList(&sv.Issues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFargateProfileIssue(v **types.FargateProfileIssue, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FargateProfileIssue + if *v == nil { + sv = &types.FargateProfileIssue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FargateProfileIssueCode to be of type string, got %T instead", value) + } + sv.Code = types.FargateProfileIssueCode(jtv) + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "resourceIds": + if err := awsRestjson1_deserializeDocumentStringList(&sv.ResourceIds, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFargateProfileIssueList(v *[]types.FargateProfileIssue, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.FargateProfileIssue + if *v == nil { + cv = []types.FargateProfileIssue{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FargateProfileIssue + destAddr := &col + if err := awsRestjson1_deserializeDocumentFargateProfileIssue(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentFargateProfileLabel(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/eks/types/enums.go b/service/eks/types/enums.go index 47075c0c2b9..6e43bdd4921 100644 --- a/service/eks/types/enums.go +++ b/service/eks/types/enums.go @@ -434,6 +434,29 @@ func (ErrorCode) Values() []ErrorCode { } } +type FargateProfileIssueCode string + +// Enum values for FargateProfileIssueCode +const ( + FargateProfileIssueCodePodExecutionRoleAlreadyInUse FargateProfileIssueCode = "PodExecutionRoleAlreadyInUse" + FargateProfileIssueCodeAccessDenied FargateProfileIssueCode = "AccessDenied" + FargateProfileIssueCodeClusterUnreachable FargateProfileIssueCode = "ClusterUnreachable" + FargateProfileIssueCodeInternalFailure FargateProfileIssueCode = "InternalFailure" +) + +// Values returns all known values for FargateProfileIssueCode. Note that this can +// be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (FargateProfileIssueCode) Values() []FargateProfileIssueCode { + return []FargateProfileIssueCode{ + "PodExecutionRoleAlreadyInUse", + "AccessDenied", + "ClusterUnreachable", + "InternalFailure", + } +} + type FargateProfileStatus string // Enum values for FargateProfileStatus diff --git a/service/eks/types/types.go b/service/eks/types/types.go index e19528a5cf6..f0c0186ca57 100644 --- a/service/eks/types/types.go +++ b/service/eks/types/types.go @@ -689,6 +689,10 @@ type FargateProfile struct { // The name of the Fargate profile. FargateProfileName *string + // The health status of the Fargate profile. If there are issues with your Fargate + // profile's health, they are listed here. + Health *FargateProfileHealth + // The Amazon Resource Name (ARN) of the Pod execution role to use for any Pod // that matches the selectors in the Fargate profile. For more information, see [Pod execution role]Pod // in the Amazon EKS User Guide. @@ -713,6 +717,31 @@ type FargateProfile struct { noSmithyDocumentSerde } +// The health status of the Fargate profile. If there are issues with your Fargate +// profile's health, they are listed here. +type FargateProfileHealth struct { + + // Any issues that are associated with the Fargate profile. + Issues []FargateProfileIssue + + noSmithyDocumentSerde +} + +// An issue that is associated with the Fargate profile. +type FargateProfileIssue struct { + + // A brief description of the error. + Code FargateProfileIssueCode + + // The error message associated with the issue. + Message *string + + // The Amazon Web Services resources that are affected by this issue. + ResourceIds []string + + noSmithyDocumentSerde +} + // An object representing an Fargate profile selector. type FargateProfileSelector struct { diff --git a/service/sagemaker/api_op_CreateMlflowTrackingServer.go b/service/sagemaker/api_op_CreateMlflowTrackingServer.go new file mode 100644 index 00000000000..08c32a51b74 --- /dev/null +++ b/service/sagemaker/api_op_CreateMlflowTrackingServer.go @@ -0,0 +1,194 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an MLflow Tracking Server using a general purpose Amazon S3 bucket as +// the artifact store. For more information, see [Create an MLflow Tracking Server]. +// +// [Create an MLflow Tracking Server]: https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow-create-tracking-server.html +func (c *Client) CreateMlflowTrackingServer(ctx context.Context, params *CreateMlflowTrackingServerInput, optFns ...func(*Options)) (*CreateMlflowTrackingServerOutput, error) { + if params == nil { + params = &CreateMlflowTrackingServerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateMlflowTrackingServer", params, optFns, c.addOperationCreateMlflowTrackingServerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateMlflowTrackingServerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateMlflowTrackingServerInput struct { + + // The S3 URI for a general purpose bucket to use as the MLflow Tracking Server + // artifact store. + // + // This member is required. + ArtifactStoreUri *string + + // The Amazon Resource Name (ARN) for an IAM role in your account that the MLflow + // Tracking Server uses to access the artifact store in Amazon S3. The role should + // have AmazonS3FullAccess permissions. For more information on IAM permissions + // for tracking server creation, see [Set up IAM permissions for MLflow]. + // + // [Set up IAM permissions for MLflow]: https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow-create-tracking-server-iam.html + // + // This member is required. + RoleArn *string + + // A unique string identifying the tracking server name. This string is part of + // the tracking server ARN. + // + // This member is required. + TrackingServerName *string + + // Whether to enable or disable automatic registration of new MLflow models to the + // SageMaker Model Registry. To enable automatic model registration, set this value + // to True . To disable automatic model registration, set this value to False . If + // not specified, AutomaticModelRegistration defaults to False . + AutomaticModelRegistration *bool + + // The version of MLflow that the tracking server uses. To see which MLflow + // versions are available to use, see [How it works]. + // + // [How it works]: https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow.html#mlflow-create-tracking-server-how-it-works + MlflowVersion *string + + // Tags consisting of key-value pairs used to manage metadata for the tracking + // server. + Tags []types.Tag + + // The size of the tracking server you want to create. You can choose between + // "Small" , "Medium" , and "Large" . The default MLflow Tracking Server + // configuration size is "Small" . You can choose a size depending on the projected + // use of the tracking server such as the volume of data logged, number of users, + // and frequency of use. + // + // We recommend using a small tracking server for teams of up to 25 users, a + // medium tracking server for teams of up to 50 users, and a large tracking server + // for teams of up to 100 users. + TrackingServerSize types.TrackingServerSize + + // The day and time of the week in Coordinated Universal Time (UTC) 24-hour + // standard time that weekly maintenance updates are scheduled. For example: + // TUE:03:30. + WeeklyMaintenanceWindowStart *string + + noSmithyDocumentSerde +} + +type CreateMlflowTrackingServerOutput struct { + + // The ARN of the tracking server. + TrackingServerArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateMlflowTrackingServerMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateMlflowTrackingServer"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateMlflowTrackingServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMlflowTrackingServer(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateMlflowTrackingServer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateMlflowTrackingServer", + } +} diff --git a/service/sagemaker/api_op_CreatePresignedMlflowTrackingServerUrl.go b/service/sagemaker/api_op_CreatePresignedMlflowTrackingServerUrl.go new file mode 100644 index 00000000000..b6687202b86 --- /dev/null +++ b/service/sagemaker/api_op_CreatePresignedMlflowTrackingServerUrl.go @@ -0,0 +1,151 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a presigned URL that you can use to connect to the MLflow UI attached +// to your tracking server. For more information, see [Launch the MLflow UI using a presigned URL]. +// +// [Launch the MLflow UI using a presigned URL]: https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow-launch-ui.html +func (c *Client) CreatePresignedMlflowTrackingServerUrl(ctx context.Context, params *CreatePresignedMlflowTrackingServerUrlInput, optFns ...func(*Options)) (*CreatePresignedMlflowTrackingServerUrlOutput, error) { + if params == nil { + params = &CreatePresignedMlflowTrackingServerUrlInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreatePresignedMlflowTrackingServerUrl", params, optFns, c.addOperationCreatePresignedMlflowTrackingServerUrlMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreatePresignedMlflowTrackingServerUrlOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreatePresignedMlflowTrackingServerUrlInput struct { + + // The name of the tracking server to connect to your MLflow UI. + // + // This member is required. + TrackingServerName *string + + // The duration in seconds that your presigned URL is valid. The presigned URL can + // be used only once. + ExpiresInSeconds *int32 + + // The duration in seconds that your MLflow UI session is valid. + SessionExpirationDurationInSeconds *int32 + + noSmithyDocumentSerde +} + +type CreatePresignedMlflowTrackingServerUrlOutput struct { + + // A presigned URL with an authorization token. + AuthorizedUrl *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreatePresignedMlflowTrackingServerUrlMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreatePresignedMlflowTrackingServerUrl{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreatePresignedMlflowTrackingServerUrl{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreatePresignedMlflowTrackingServerUrl"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreatePresignedMlflowTrackingServerUrlValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePresignedMlflowTrackingServerUrl(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreatePresignedMlflowTrackingServerUrl(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreatePresignedMlflowTrackingServerUrl", + } +} diff --git a/service/sagemaker/api_op_CreateWorkforce.go b/service/sagemaker/api_op_CreateWorkforce.go index ebf97788a65..b5ffd27cd77 100644 --- a/service/sagemaker/api_op_CreateWorkforce.go +++ b/service/sagemaker/api_op_CreateWorkforce.go @@ -69,7 +69,7 @@ type CreateWorkforceInput struct { OidcConfig *types.OidcConfig // A list of IP address ranges ([CIDRs] ). Used to create an allow list of IP addresses - // for a private workforce. Workers will only be able to login to their worker + // for a private workforce. Workers will only be able to log in to their worker // portal from an IP address within this range. By default, a workforce isn't // restricted to specific IP addresses. // diff --git a/service/sagemaker/api_op_DeleteMlflowTrackingServer.go b/service/sagemaker/api_op_DeleteMlflowTrackingServer.go new file mode 100644 index 00000000000..f361abee189 --- /dev/null +++ b/service/sagemaker/api_op_DeleteMlflowTrackingServer.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an MLflow Tracking Server. For more information, see [Clean up MLflow resources]. +// +// [Clean up MLflow resources]: https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow-cleanup.html.html +func (c *Client) DeleteMlflowTrackingServer(ctx context.Context, params *DeleteMlflowTrackingServerInput, optFns ...func(*Options)) (*DeleteMlflowTrackingServerOutput, error) { + if params == nil { + params = &DeleteMlflowTrackingServerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteMlflowTrackingServer", params, optFns, c.addOperationDeleteMlflowTrackingServerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteMlflowTrackingServerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteMlflowTrackingServerInput struct { + + // The name of the the tracking server to delete. + // + // This member is required. + TrackingServerName *string + + noSmithyDocumentSerde +} + +type DeleteMlflowTrackingServerOutput struct { + + // A TrackingServerArn object, the ARN of the tracking server that is deleted if + // successfully found. + TrackingServerArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteMlflowTrackingServerMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteMlflowTrackingServer"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteMlflowTrackingServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteMlflowTrackingServer(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteMlflowTrackingServer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteMlflowTrackingServer", + } +} diff --git a/service/sagemaker/api_op_DeleteWorkforce.go b/service/sagemaker/api_op_DeleteWorkforce.go index 8acb03f3e6b..3c567d3f815 100644 --- a/service/sagemaker/api_op_DeleteWorkforce.go +++ b/service/sagemaker/api_op_DeleteWorkforce.go @@ -18,7 +18,7 @@ import ( // // If a private workforce contains one or more work teams, you must use the [DeleteWorkteam] // operation to delete all work teams before you delete the workforce. If you try -// to delete a workforce that contains one or more work teams, you will recieve a +// to delete a workforce that contains one or more work teams, you will receive a // ResourceInUse error. // // [CreateWorkforce]: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateWorkforce.html diff --git a/service/sagemaker/api_op_DescribeMlflowTrackingServer.go b/service/sagemaker/api_op_DescribeMlflowTrackingServer.go new file mode 100644 index 00000000000..8df721873c6 --- /dev/null +++ b/service/sagemaker/api_op_DescribeMlflowTrackingServer.go @@ -0,0 +1,192 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns information about an MLflow Tracking Server. +func (c *Client) DescribeMlflowTrackingServer(ctx context.Context, params *DescribeMlflowTrackingServerInput, optFns ...func(*Options)) (*DescribeMlflowTrackingServerOutput, error) { + if params == nil { + params = &DescribeMlflowTrackingServerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeMlflowTrackingServer", params, optFns, c.addOperationDescribeMlflowTrackingServerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeMlflowTrackingServerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeMlflowTrackingServerInput struct { + + // The name of the MLflow Tracking Server to describe. + // + // This member is required. + TrackingServerName *string + + noSmithyDocumentSerde +} + +type DescribeMlflowTrackingServerOutput struct { + + // The S3 URI of the general purpose bucket used as the MLflow Tracking Server + // artifact store. + ArtifactStoreUri *string + + // Whether automatic registration of new MLflow models to the SageMaker Model + // Registry is enabled. + AutomaticModelRegistration *bool + + // Information about the user who created or modified an experiment, trial, trial + // component, lineage group, project, or model card. + CreatedBy *types.UserContext + + // The timestamp of when the described MLflow Tracking Server was created. + CreationTime *time.Time + + // Whether the described MLflow Tracking Server is currently active. + IsActive types.IsTrackingServerActive + + // Information about the user who created or modified an experiment, trial, trial + // component, lineage group, project, or model card. + LastModifiedBy *types.UserContext + + // The timestamp of when the described MLflow Tracking Server was last modified. + LastModifiedTime *time.Time + + // The MLflow version used for the described tracking server. + MlflowVersion *string + + // The Amazon Resource Name (ARN) for an IAM role in your account that the + // described MLflow Tracking Server uses to access the artifact store in Amazon S3. + RoleArn *string + + // The ARN of the described tracking server. + TrackingServerArn *string + + // The name of the described tracking server. + TrackingServerName *string + + // The size of the described tracking server. + TrackingServerSize types.TrackingServerSize + + // The current creation status of the described MLflow Tracking Server. + TrackingServerStatus types.TrackingServerStatus + + // The URL to connect to the MLflow user interface for the described tracking + // server. + TrackingServerUrl *string + + // The day and time of the week when weekly maintenance occurs on the described + // tracking server. + WeeklyMaintenanceWindowStart *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeMlflowTrackingServerMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeMlflowTrackingServer"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDescribeMlflowTrackingServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMlflowTrackingServer(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeMlflowTrackingServer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeMlflowTrackingServer", + } +} diff --git a/service/sagemaker/api_op_DescribeWorkteam.go b/service/sagemaker/api_op_DescribeWorkteam.go index 4ee7b0cd67d..2af5c8a4fe2 100644 --- a/service/sagemaker/api_op_DescribeWorkteam.go +++ b/service/sagemaker/api_op_DescribeWorkteam.go @@ -12,7 +12,7 @@ import ( ) // Gets information about a specific work team. You can see information such as -// the create date, the last updated date, membership information, and the work +// the creation date, the last updated date, membership information, and the work // team's Amazon Resource Name (ARN). func (c *Client) DescribeWorkteam(ctx context.Context, params *DescribeWorkteamInput, optFns ...func(*Options)) (*DescribeWorkteamOutput, error) { if params == nil { diff --git a/service/sagemaker/api_op_ListMlflowTrackingServers.go b/service/sagemaker/api_op_ListMlflowTrackingServers.go new file mode 100644 index 00000000000..45da59915b4 --- /dev/null +++ b/service/sagemaker/api_op_ListMlflowTrackingServers.go @@ -0,0 +1,271 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Lists all MLflow Tracking Servers. +func (c *Client) ListMlflowTrackingServers(ctx context.Context, params *ListMlflowTrackingServersInput, optFns ...func(*Options)) (*ListMlflowTrackingServersOutput, error) { + if params == nil { + params = &ListMlflowTrackingServersInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListMlflowTrackingServers", params, optFns, c.addOperationListMlflowTrackingServersMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListMlflowTrackingServersOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListMlflowTrackingServersInput struct { + + // Use the CreatedAfter filter to only list tracking servers created after a + // specific date and time. Listed tracking servers are shown with a date and time + // such as "2024-03-16T01:46:56+00:00" . The CreatedAfter parameter takes in a + // Unix timestamp. To convert a date and time into a Unix timestamp, see [EpochConverter]. + // + // [EpochConverter]: https://www.epochconverter.com/ + CreatedAfter *time.Time + + // Use the CreatedBefore filter to only list tracking servers created before a + // specific date and time. Listed tracking servers are shown with a date and time + // such as "2024-03-16T01:46:56+00:00" . The CreatedBefore parameter takes in a + // Unix timestamp. To convert a date and time into a Unix timestamp, see [EpochConverter]. + // + // [EpochConverter]: https://www.epochconverter.com/ + CreatedBefore *time.Time + + // The maximum number of tracking servers to list. + MaxResults *int32 + + // Filter for tracking servers using the specified MLflow version. + MlflowVersion *string + + // If the previous response was truncated, you will receive this token. Use it in + // your next request to receive the next set of results. + NextToken *string + + // Filter for trackings servers sorting by name, creation time, or creation status. + SortBy types.SortTrackingServerBy + + // Change the order of the listed tracking servers. By default, tracking servers + // are listed in Descending order by creation time. To change the list order, you + // can specify SortOrder to be Ascending . + SortOrder types.SortOrder + + // Filter for tracking servers with a specified creation status. + TrackingServerStatus types.TrackingServerStatus + + noSmithyDocumentSerde +} + +type ListMlflowTrackingServersOutput struct { + + // If the previous response was truncated, you will receive this token. Use it in + // your next request to receive the next set of results. + NextToken *string + + // A list of tracking servers according to chosen filters. + TrackingServerSummaries []types.TrackingServerSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListMlflowTrackingServersMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListMlflowTrackingServers{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListMlflowTrackingServers{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListMlflowTrackingServers"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListMlflowTrackingServers(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListMlflowTrackingServersPaginatorOptions is the paginator options for +// ListMlflowTrackingServers +type ListMlflowTrackingServersPaginatorOptions struct { + // The maximum number of tracking servers to list. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListMlflowTrackingServersPaginator is a paginator for ListMlflowTrackingServers +type ListMlflowTrackingServersPaginator struct { + options ListMlflowTrackingServersPaginatorOptions + client ListMlflowTrackingServersAPIClient + params *ListMlflowTrackingServersInput + nextToken *string + firstPage bool +} + +// NewListMlflowTrackingServersPaginator returns a new +// ListMlflowTrackingServersPaginator +func NewListMlflowTrackingServersPaginator(client ListMlflowTrackingServersAPIClient, params *ListMlflowTrackingServersInput, optFns ...func(*ListMlflowTrackingServersPaginatorOptions)) *ListMlflowTrackingServersPaginator { + if params == nil { + params = &ListMlflowTrackingServersInput{} + } + + options := ListMlflowTrackingServersPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListMlflowTrackingServersPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListMlflowTrackingServersPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListMlflowTrackingServers page. +func (p *ListMlflowTrackingServersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListMlflowTrackingServersOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListMlflowTrackingServers(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +// ListMlflowTrackingServersAPIClient is a client that implements the +// ListMlflowTrackingServers operation. +type ListMlflowTrackingServersAPIClient interface { + ListMlflowTrackingServers(context.Context, *ListMlflowTrackingServersInput, ...func(*Options)) (*ListMlflowTrackingServersOutput, error) +} + +var _ ListMlflowTrackingServersAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListMlflowTrackingServers(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListMlflowTrackingServers", + } +} diff --git a/service/sagemaker/api_op_StartMlflowTrackingServer.go b/service/sagemaker/api_op_StartMlflowTrackingServer.go new file mode 100644 index 00000000000..ecf28a30550 --- /dev/null +++ b/service/sagemaker/api_op_StartMlflowTrackingServer.go @@ -0,0 +1,141 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Programmatically start an MLflow Tracking Server. +func (c *Client) StartMlflowTrackingServer(ctx context.Context, params *StartMlflowTrackingServerInput, optFns ...func(*Options)) (*StartMlflowTrackingServerOutput, error) { + if params == nil { + params = &StartMlflowTrackingServerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartMlflowTrackingServer", params, optFns, c.addOperationStartMlflowTrackingServerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartMlflowTrackingServerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartMlflowTrackingServerInput struct { + + // The name of the tracking server to start. + // + // This member is required. + TrackingServerName *string + + noSmithyDocumentSerde +} + +type StartMlflowTrackingServerOutput struct { + + // The ARN of the started tracking server. + TrackingServerArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartMlflowTrackingServerMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "StartMlflowTrackingServer"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpStartMlflowTrackingServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartMlflowTrackingServer(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opStartMlflowTrackingServer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "StartMlflowTrackingServer", + } +} diff --git a/internal/protocoltest/smithyrpcv2cbor/api_op_Float16.go b/service/sagemaker/api_op_StopMlflowTrackingServer.go similarity index 58% rename from internal/protocoltest/smithyrpcv2cbor/api_op_Float16.go rename to service/sagemaker/api_op_StopMlflowTrackingServer.go index 3afcbdb675d..76759cff1fe 100644 --- a/internal/protocoltest/smithyrpcv2cbor/api_op_Float16.go +++ b/service/sagemaker/api_op_StopMlflowTrackingServer.go @@ -1,6 +1,6 @@ // Code generated by smithy-go-codegen DO NOT EDIT. -package smithyrpcv2cbor +package sagemaker import ( "context" @@ -10,27 +10,36 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -func (c *Client) Float16(ctx context.Context, params *Float16Input, optFns ...func(*Options)) (*Float16Output, error) { +// Programmatically stop an MLflow Tracking Server. +func (c *Client) StopMlflowTrackingServer(ctx context.Context, params *StopMlflowTrackingServerInput, optFns ...func(*Options)) (*StopMlflowTrackingServerOutput, error) { if params == nil { - params = &Float16Input{} + params = &StopMlflowTrackingServerInput{} } - result, metadata, err := c.invokeOperation(ctx, "Float16", params, optFns, c.addOperationFloat16Middlewares) + result, metadata, err := c.invokeOperation(ctx, "StopMlflowTrackingServer", params, optFns, c.addOperationStopMlflowTrackingServerMiddlewares) if err != nil { return nil, err } - out := result.(*Float16Output) + out := result.(*StopMlflowTrackingServerOutput) out.ResultMetadata = metadata return out, nil } -type Float16Input struct { +type StopMlflowTrackingServerInput struct { + + // The name of the tracking server to stop. + // + // This member is required. + TrackingServerName *string + noSmithyDocumentSerde } -type Float16Output struct { - Value *float64 +type StopMlflowTrackingServerOutput struct { + + // The ARN of the stopped tracking server. + TrackingServerArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -38,19 +47,19 @@ type Float16Output struct { noSmithyDocumentSerde } -func (c *Client) addOperationFloat16Middlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationStopMlflowTrackingServerMiddlewares(stack *middleware.Stack, options Options) (err error) { if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { return err } - err = stack.Serialize.Add(&smithyRpcv2cbor_serializeOpFloat16{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopMlflowTrackingServer{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&smithyRpcv2cbor_deserializeOpFloat16{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopMlflowTrackingServer{}, middleware.After) if err != nil { return err } - if err := addProtocolFinalizerMiddlewares(stack, options, "Float16"); err != nil { + if err := addProtocolFinalizerMiddlewares(stack, options, "StopMlflowTrackingServer"); err != nil { return fmt.Errorf("add protocol finalizers: %v", err) } @@ -69,6 +78,9 @@ func (c *Client) addOperationFloat16Middlewares(stack *middleware.Stack, options if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } if err = addRetry(stack, options); err != nil { return err } @@ -96,7 +108,10 @@ func (c *Client) addOperationFloat16Middlewares(stack *middleware.Stack, options if err = addUserAgentRetryMode(stack, options); err != nil { return err } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opFloat16(options.Region), middleware.Before); err != nil { + if err = addOpStopMlflowTrackingServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopMlflowTrackingServer(options.Region), middleware.Before); err != nil { return err } if err = addRecursionDetection(stack); err != nil { @@ -117,10 +132,10 @@ func (c *Client) addOperationFloat16Middlewares(stack *middleware.Stack, options return nil } -func newServiceMetadataMiddleware_opFloat16(region string) *awsmiddleware.RegisterServiceMetadata { +func newServiceMetadataMiddleware_opStopMlflowTrackingServer(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, - OperationName: "Float16", + OperationName: "StopMlflowTrackingServer", } } diff --git a/service/sagemaker/api_op_UpdateMlflowTrackingServer.go b/service/sagemaker/api_op_UpdateMlflowTrackingServer.go new file mode 100644 index 00000000000..54811b26725 --- /dev/null +++ b/service/sagemaker/api_op_UpdateMlflowTrackingServer.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates properties of an existing MLflow Tracking Server. +func (c *Client) UpdateMlflowTrackingServer(ctx context.Context, params *UpdateMlflowTrackingServerInput, optFns ...func(*Options)) (*UpdateMlflowTrackingServerOutput, error) { + if params == nil { + params = &UpdateMlflowTrackingServerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateMlflowTrackingServer", params, optFns, c.addOperationUpdateMlflowTrackingServerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateMlflowTrackingServerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateMlflowTrackingServerInput struct { + + // The name of the MLflow Tracking Server to update. + // + // This member is required. + TrackingServerName *string + + // The new S3 URI for the general purpose bucket to use as the artifact store for + // the MLflow Tracking Server. + ArtifactStoreUri *string + + // Whether to enable or disable automatic registration of new MLflow models to the + // SageMaker Model Registry. To enable automatic model registration, set this value + // to True . To disable automatic model registration, set this value to False . If + // not specified, AutomaticModelRegistration defaults to False + AutomaticModelRegistration *bool + + // The new size for the MLflow Tracking Server. + TrackingServerSize types.TrackingServerSize + + // The new weekly maintenance window start day and time to update. The maintenance + // window day and time should be in Coordinated Universal Time (UTC) 24-hour + // standard time. For example: TUE:03:30. + WeeklyMaintenanceWindowStart *string + + noSmithyDocumentSerde +} + +type UpdateMlflowTrackingServerOutput struct { + + // The ARN of the updated MLflow Tracking Server. + TrackingServerArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateMlflowTrackingServerMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateMlflowTrackingServer{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateMlflowTrackingServer"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpUpdateMlflowTrackingServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMlflowTrackingServer(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateMlflowTrackingServer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateMlflowTrackingServer", + } +} diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 82f882d2c3c..9d5e6a54140 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -3760,6 +3760,113 @@ func awsAwsjson11_deserializeOpErrorCreateLabelingJob(response *smithyhttp.Respo } } +type awsAwsjson11_deserializeOpCreateMlflowTrackingServer struct { +} + +func (*awsAwsjson11_deserializeOpCreateMlflowTrackingServer) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpCreateMlflowTrackingServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorCreateMlflowTrackingServer(response, &metadata) + } + output := &CreateMlflowTrackingServerOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentCreateMlflowTrackingServerOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorCreateMlflowTrackingServer(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpCreateModel struct { } @@ -5181,6 +5288,113 @@ func awsAwsjson11_deserializeOpErrorCreatePresignedDomainUrl(response *smithyhtt } } +type awsAwsjson11_deserializeOpCreatePresignedMlflowTrackingServerUrl struct { +} + +func (*awsAwsjson11_deserializeOpCreatePresignedMlflowTrackingServerUrl) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpCreatePresignedMlflowTrackingServerUrl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorCreatePresignedMlflowTrackingServerUrl(response, &metadata) + } + output := &CreatePresignedMlflowTrackingServerUrlOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentCreatePresignedMlflowTrackingServerUrlOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorCreatePresignedMlflowTrackingServerUrl(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpCreatePresignedNotebookInstanceUrl struct { } @@ -9123,14 +9337,14 @@ func awsAwsjson11_deserializeOpErrorDeleteInferenceExperiment(response *smithyht } } -type awsAwsjson11_deserializeOpDeleteModel struct { +type awsAwsjson11_deserializeOpDeleteMlflowTrackingServer struct { } -func (*awsAwsjson11_deserializeOpDeleteModel) ID() string { +func (*awsAwsjson11_deserializeOpDeleteMlflowTrackingServer) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteMlflowTrackingServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9144,21 +9358,43 @@ func (m *awsAwsjson11_deserializeOpDeleteModel) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteModel(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteMlflowTrackingServer(response, &metadata) } - output := &DeleteModelOutput{} + output := &DeleteMlflowTrackingServerOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentDeleteMlflowTrackingServerOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteMlflowTrackingServer(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9195,6 +9431,9 @@ func awsAwsjson11_deserializeOpErrorDeleteModel(response *smithyhttp.Response, m errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -9205,14 +9444,14 @@ func awsAwsjson11_deserializeOpErrorDeleteModel(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition struct { +type awsAwsjson11_deserializeOpDeleteModel struct { } -func (*awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDeleteModel) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9226,9 +9465,9 @@ func (m *awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteModelBiasJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteModel(response, &metadata) } - output := &DeleteModelBiasJobDefinitionOutput{} + output := &DeleteModelOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -9240,7 +9479,7 @@ func (m *awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteModelBiasJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9277,9 +9516,6 @@ func awsAwsjson11_deserializeOpErrorDeleteModelBiasJobDefinition(response *smith errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -9290,14 +9526,14 @@ func awsAwsjson11_deserializeOpErrorDeleteModelBiasJobDefinition(response *smith } } -type awsAwsjson11_deserializeOpDeleteModelCard struct { +type awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDeleteModelCard) ID() string { +func (*awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteModelBiasJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9311,9 +9547,9 @@ func (m *awsAwsjson11_deserializeOpDeleteModelCard) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteModelCard(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteModelBiasJobDefinition(response, &metadata) } - output := &DeleteModelCardOutput{} + output := &DeleteModelBiasJobDefinitionOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -9325,7 +9561,92 @@ func (m *awsAwsjson11_deserializeOpDeleteModelCard) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteModelBiasJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpDeleteModelCard struct { +} + +func (*awsAwsjson11_deserializeOpDeleteModelCard) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDeleteModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteModelCard(response, &metadata) + } + output := &DeleteModelCardOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorDeleteModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14849,14 +15170,14 @@ func awsAwsjson11_deserializeOpErrorDescribeLineageGroup(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeModel struct { +type awsAwsjson11_deserializeOpDescribeMlflowTrackingServer struct { } -func (*awsAwsjson11_deserializeOpDescribeModel) ID() string { +func (*awsAwsjson11_deserializeOpDescribeMlflowTrackingServer) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeMlflowTrackingServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14870,9 +15191,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModel(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeMlflowTrackingServer(response, &metadata) } - output := &DescribeModelOutput{} + output := &DescribeMlflowTrackingServerOutput{} out.Result = output var buff [1024]byte @@ -14892,7 +15213,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeMlflowTrackingServerOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14906,7 +15227,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeMlflowTrackingServer(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14943,6 +15264,9 @@ func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14953,14 +15277,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeModel struct { } -func (*awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModel) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14974,9 +15298,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModel(response, &metadata) } - output := &DescribeModelBiasJobDefinitionOutput{} + output := &DescribeModelOutput{} out.Result = output var buff [1024]byte @@ -14996,7 +15320,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15010,7 +15334,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15047,9 +15371,6 @@ func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smi errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15060,14 +15381,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smi } } -type awsAwsjson11_deserializeOpDescribeModelCard struct { +type awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeModelCard) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15081,9 +15402,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCard(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response, &metadata) } - output := &DescribeModelCardOutput{} + output := &DescribeModelBiasJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -15103,7 +15424,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelCardOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15117,7 +15438,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15167,14 +15488,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelCard(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpDescribeModelCardExportJob struct { +type awsAwsjson11_deserializeOpDescribeModelCard struct { } -func (*awsAwsjson11_deserializeOpDescribeModelCardExportJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelCard) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15188,9 +15509,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCard(response, &metadata) } - output := &DescribeModelCardExportJobOutput{} + output := &DescribeModelCardOutput{} out.Result = output var buff [1024]byte @@ -15210,7 +15531,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelCardExportJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelCardOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15224,7 +15545,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15274,14 +15595,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeModelCardExportJob struct { } -func (*awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelCardExportJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15295,9 +15616,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response, &metadata) } - output := &DescribeModelExplainabilityJobDefinitionOutput{} + output := &DescribeModelCardExportJobOutput{} out.Result = output var buff [1024]byte @@ -15317,7 +15638,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelExplainabilityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelCardExportJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15331,7 +15652,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15381,14 +15702,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(res } } -type awsAwsjson11_deserializeOpDescribeModelPackage struct { +type awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeModelPackage) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15402,9 +15723,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response, &metadata) } - output := &DescribeModelPackageOutput{} + output := &DescribeModelExplainabilityJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -15424,7 +15745,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelExplainabilityJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15438,7 +15759,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15475,6 +15796,9 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Re errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15485,14 +15809,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeModelPackageGroup struct { +type awsAwsjson11_deserializeOpDescribeModelPackage struct { } -func (*awsAwsjson11_deserializeOpDescribeModelPackageGroup) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelPackage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15506,9 +15830,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackage(response, &metadata) } - output := &DescribeModelPackageGroupOutput{} + output := &DescribeModelPackageOutput{} out.Result = output var buff [1024]byte @@ -15528,7 +15852,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageGroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15542,7 +15866,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15589,14 +15913,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response *smithyht } } -type awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeModelPackageGroup struct { } -func (*awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelPackageGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15610,9 +15934,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response, &metadata) } - output := &DescribeModelQualityJobDefinitionOutput{} + output := &DescribeModelPackageGroupOutput{} out.Result = output var buff [1024]byte @@ -15632,7 +15956,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelQualityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15646,7 +15970,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15683,9 +16007,6 @@ func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response * errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15696,14 +16017,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response * } } -type awsAwsjson11_deserializeOpDescribeMonitoringSchedule struct { +type awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15717,9 +16038,9 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response, &metadata) } - output := &DescribeMonitoringScheduleOutput{} + output := &DescribeModelQualityJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -15739,7 +16060,7 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelQualityJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15753,7 +16074,7 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15803,14 +16124,14 @@ func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeNotebookInstance struct { +type awsAwsjson11_deserializeOpDescribeMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpDescribeNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpDescribeMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15824,9 +16145,9 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response, &metadata) } - output := &DescribeNotebookInstanceOutput{} + output := &DescribeMonitoringScheduleOutput{} out.Result = output var buff [1024]byte @@ -15846,7 +16167,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15860,7 +16181,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15897,6 +16218,9 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhtt errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15907,14 +16231,14 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhtt } } -type awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig struct { +type awsAwsjson11_deserializeOpDescribeNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) ID() string { +func (*awsAwsjson11_deserializeOpDescribeNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15928,9 +16252,9 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response, &metadata) } - output := &DescribeNotebookInstanceLifecycleConfigOutput{} + output := &DescribeNotebookInstanceOutput{} out.Result = output var buff [1024]byte @@ -15950,7 +16274,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) Hand return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15964,7 +16288,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) Hand return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16011,14 +16335,14 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(resp } } -type awsAwsjson11_deserializeOpDescribePipeline struct { +type awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig struct { } -func (*awsAwsjson11_deserializeOpDescribePipeline) ID() string { +func (*awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16032,9 +16356,9 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipeline(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response, &metadata) } - output := &DescribePipelineOutput{} + output := &DescribeNotebookInstanceLifecycleConfigOutput{} out.Result = output var buff [1024]byte @@ -16054,7 +16378,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribePipelineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16068,7 +16392,111 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpDescribePipeline struct { +} + +func (*awsAwsjson11_deserializeOpDescribePipeline) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipeline(response, &metadata) + } + output := &DescribePipelineOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentDescribePipelineOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorDescribePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22757,14 +23185,14 @@ func awsAwsjson11_deserializeOpErrorListLineageGroups(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListModelBiasJobDefinitions struct { +type awsAwsjson11_deserializeOpListMlflowTrackingServers struct { } -func (*awsAwsjson11_deserializeOpListModelBiasJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListMlflowTrackingServers) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListMlflowTrackingServers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22778,9 +23206,9 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListMlflowTrackingServers(response, &metadata) } - output := &ListModelBiasJobDefinitionsOutput{} + output := &ListMlflowTrackingServersOutput{} out.Result = output var buff [1024]byte @@ -22800,7 +23228,7 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListMlflowTrackingServersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22814,7 +23242,7 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListMlflowTrackingServers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22861,14 +23289,14 @@ func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithy } } -type awsAwsjson11_deserializeOpListModelCardExportJobs struct { +type awsAwsjson11_deserializeOpListModelBiasJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListModelCardExportJobs) ID() string { +func (*awsAwsjson11_deserializeOpListModelBiasJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22882,9 +23310,9 @@ func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response, &metadata) } - output := &ListModelCardExportJobsOutput{} + output := &ListModelBiasJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -22904,7 +23332,7 @@ func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelCardExportJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22918,7 +23346,7 @@ func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22965,14 +23393,14 @@ func awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response *smithyhttp } } -type awsAwsjson11_deserializeOpListModelCards struct { +type awsAwsjson11_deserializeOpListModelCardExportJobs struct { } -func (*awsAwsjson11_deserializeOpListModelCards) ID() string { +func (*awsAwsjson11_deserializeOpListModelCardExportJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22986,9 +23414,9 @@ func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelCards(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response, &metadata) } - output := &ListModelCardsOutput{} + output := &ListModelCardExportJobsOutput{} out.Result = output var buff [1024]byte @@ -23008,7 +23436,7 @@ func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelCardsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelCardExportJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23022,7 +23450,7 @@ func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelCards(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23069,14 +23497,14 @@ func awsAwsjson11_deserializeOpErrorListModelCards(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListModelCardVersions struct { +type awsAwsjson11_deserializeOpListModelCards struct { } -func (*awsAwsjson11_deserializeOpListModelCardVersions) ID() string { +func (*awsAwsjson11_deserializeOpListModelCards) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23090,9 +23518,9 @@ func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardVersions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelCards(response, &metadata) } - output := &ListModelCardVersionsOutput{} + output := &ListModelCardsOutput{} out.Result = output var buff [1024]byte @@ -23112,7 +23540,7 @@ func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelCardVersionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelCardsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23126,7 +23554,7 @@ func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelCardVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelCards(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23163,9 +23591,6 @@ func awsAwsjson11_deserializeOpErrorListModelCardVersions(response *smithyhttp.R errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23176,14 +23601,14 @@ func awsAwsjson11_deserializeOpErrorListModelCardVersions(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions struct { +type awsAwsjson11_deserializeOpListModelCardVersions struct { } -func (*awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListModelCardVersions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23197,9 +23622,9 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardVersions(response, &metadata) } - output := &ListModelExplainabilityJobDefinitionsOutput{} + output := &ListModelCardVersionsOutput{} out.Result = output var buff [1024]byte @@ -23219,7 +23644,7 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelCardVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23233,7 +23658,7 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelCardVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23270,6 +23695,9 @@ func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(respon errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23280,14 +23708,14 @@ func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(respon } } -type awsAwsjson11_deserializeOpListModelMetadata struct { +type awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListModelMetadata) ID() string { +func (*awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23301,9 +23729,9 @@ func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelMetadata(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response, &metadata) } - output := &ListModelMetadataOutput{} + output := &ListModelExplainabilityJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -23323,7 +23751,7 @@ func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelMetadataOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23337,7 +23765,7 @@ func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23384,14 +23812,14 @@ func awsAwsjson11_deserializeOpErrorListModelMetadata(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListModelPackageGroups struct { +type awsAwsjson11_deserializeOpListModelMetadata struct { } -func (*awsAwsjson11_deserializeOpListModelPackageGroups) ID() string { +func (*awsAwsjson11_deserializeOpListModelMetadata) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23405,9 +23833,9 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackageGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelMetadata(response, &metadata) } - output := &ListModelPackageGroupsOutput{} + output := &ListModelMetadataOutput{} out.Result = output var buff [1024]byte @@ -23427,7 +23855,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelPackageGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelMetadataOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23441,7 +23869,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23488,14 +23916,14 @@ func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListModelPackages struct { +type awsAwsjson11_deserializeOpListModelPackageGroups struct { } -func (*awsAwsjson11_deserializeOpListModelPackages) ID() string { +func (*awsAwsjson11_deserializeOpListModelPackageGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23509,9 +23937,9 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackages(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackageGroups(response, &metadata) } - output := &ListModelPackagesOutput{} + output := &ListModelPackageGroupsOutput{} out.Result = output var buff [1024]byte @@ -23531,7 +23959,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelPackagesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelPackageGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23545,7 +23973,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23592,14 +24020,14 @@ func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListModelQualityJobDefinitions struct { +type awsAwsjson11_deserializeOpListModelPackages struct { } -func (*awsAwsjson11_deserializeOpListModelQualityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListModelPackages) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23613,9 +24041,9 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackages(response, &metadata) } - output := &ListModelQualityJobDefinitionsOutput{} + output := &ListModelPackagesOutput{} out.Result = output var buff [1024]byte @@ -23635,7 +24063,7 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelQualityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelPackagesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23649,7 +24077,7 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23696,14 +24124,14 @@ func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smi } } -type awsAwsjson11_deserializeOpListModels struct { +type awsAwsjson11_deserializeOpListModelQualityJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListModels) ID() string { +func (*awsAwsjson11_deserializeOpListModelQualityJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23717,9 +24145,9 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModels(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response, &metadata) } - output := &ListModelsOutput{} + output := &ListModelQualityJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -23739,7 +24167,7 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelQualityJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23753,7 +24181,7 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23800,14 +24228,14 @@ func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListMonitoringAlertHistory struct { +type awsAwsjson11_deserializeOpListModels struct { } -func (*awsAwsjson11_deserializeOpListMonitoringAlertHistory) ID() string { +func (*awsAwsjson11_deserializeOpListModels) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23821,9 +24249,9 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModels(response, &metadata) } - output := &ListMonitoringAlertHistoryOutput{} + output := &ListModelsOutput{} out.Result = output var buff [1024]byte @@ -23843,7 +24271,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListMonitoringAlertHistoryOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23857,7 +24285,111 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpListMonitoringAlertHistory struct { +} + +func (*awsAwsjson11_deserializeOpListMonitoringAlertHistory) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response, &metadata) + } + output := &ListMonitoringAlertHistoryOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentListMonitoringAlertHistoryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27572,14 +28104,14 @@ func awsAwsjson11_deserializeOpErrorStartInferenceExperiment(response *smithyhtt } } -type awsAwsjson11_deserializeOpStartMonitoringSchedule struct { +type awsAwsjson11_deserializeOpStartMlflowTrackingServer struct { } -func (*awsAwsjson11_deserializeOpStartMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpStartMlflowTrackingServer) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartMlflowTrackingServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27593,106 +28125,43 @@ func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartMlflowTrackingServer(response, &metadata) } - output := &StartMonitoringScheduleOutput{} + output := &StartMlflowTrackingServerOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpStartNotebookInstance struct { -} - -func (*awsAwsjson11_deserializeOpStartNotebookInstance) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpStartNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { return out, metadata, err } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartNotebookInstance(response, &metadata) - } - output := &StartNotebookInstanceOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + err = awsAwsjson11_deserializeOpDocumentStartMlflowTrackingServerOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartMlflowTrackingServer(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27729,8 +28198,11 @@ func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.R errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -27742,14 +28214,14 @@ func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpStartPipelineExecution struct { +type awsAwsjson11_deserializeOpStartMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpStartPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpStartMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27763,43 +28235,21 @@ func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response, &metadata) } - output := &StartPipelineExecutionOutput{} + output := &StartMonitoringScheduleOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentStartPipelineExecutionOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27836,12 +28286,6 @@ func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp. errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -27855,14 +28299,14 @@ func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp. } } -type awsAwsjson11_deserializeOpStopAutoMLJob struct { +type awsAwsjson11_deserializeOpStartNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpStopAutoMLJob) ID() string { +func (*awsAwsjson11_deserializeOpStartNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27876,9 +28320,9 @@ func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopAutoMLJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartNotebookInstance(response, &metadata) } - output := &StopAutoMLJobOutput{} + output := &StartNotebookInstanceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -27890,7 +28334,7 @@ func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27927,8 +28371,8 @@ func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -27940,14 +28384,14 @@ func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpStopCompilationJob struct { +type awsAwsjson11_deserializeOpStartPipelineExecution struct { } -func (*awsAwsjson11_deserializeOpStopCompilationJob) ID() string { +func (*awsAwsjson11_deserializeOpStartPipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27961,21 +28405,43 @@ func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopCompilationJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartPipelineExecution(response, &metadata) } - output := &StopCompilationJobOutput{} + output := &StartPipelineExecutionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentStartPipelineExecutionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28012,6 +28478,12 @@ func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Resp errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -28025,14 +28497,14 @@ func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpStopEdgeDeploymentStage struct { +type awsAwsjson11_deserializeOpStopAutoMLJob struct { } -func (*awsAwsjson11_deserializeOpStopEdgeDeploymentStage) ID() string { +func (*awsAwsjson11_deserializeOpStopAutoMLJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28046,9 +28518,9 @@ func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopAutoMLJob(response, &metadata) } - output := &StopEdgeDeploymentStageOutput{} + output := &StopAutoMLJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28060,7 +28532,7 @@ func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28097,6 +28569,9 @@ func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28107,14 +28582,14 @@ func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp } } -type awsAwsjson11_deserializeOpStopEdgePackagingJob struct { +type awsAwsjson11_deserializeOpStopCompilationJob struct { } -func (*awsAwsjson11_deserializeOpStopEdgePackagingJob) ID() string { +func (*awsAwsjson11_deserializeOpStopCompilationJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28128,9 +28603,9 @@ func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopCompilationJob(response, &metadata) } - output := &StopEdgePackagingJobOutput{} + output := &StopCompilationJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28142,7 +28617,7 @@ func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28179,6 +28654,9 @@ func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Re errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28189,14 +28667,14 @@ func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpStopHyperParameterTuningJob struct { +type awsAwsjson11_deserializeOpStopEdgeDeploymentStage struct { } -func (*awsAwsjson11_deserializeOpStopHyperParameterTuningJob) ID() string { +func (*awsAwsjson11_deserializeOpStopEdgeDeploymentStage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28210,9 +28688,9 @@ func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response, &metadata) } - output := &StopHyperParameterTuningJobOutput{} + output := &StopEdgeDeploymentStageOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28224,7 +28702,7 @@ func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28261,9 +28739,6 @@ func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithy errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28274,14 +28749,14 @@ func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithy } } -type awsAwsjson11_deserializeOpStopInferenceExperiment struct { +type awsAwsjson11_deserializeOpStopEdgePackagingJob struct { } -func (*awsAwsjson11_deserializeOpStopInferenceExperiment) ID() string { +func (*awsAwsjson11_deserializeOpStopEdgePackagingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28295,43 +28770,103 @@ func (m *awsAwsjson11_deserializeOpStopInferenceExperiment) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response, &metadata) } - output := &StopInferenceExperimentOutput{} + output := &StopEdgePackagingJobOutput{} out.Result = output + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) + body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err + return err } - err = awsAwsjson11_deserializeOpDocumentStopInferenceExperimentOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + + } +} + +type awsAwsjson11_deserializeOpStopHyperParameterTuningJob struct { +} + +func (*awsAwsjson11_deserializeOpStopHyperParameterTuningJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { return out, metadata, err } + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response, &metadata) + } + output := &StopHyperParameterTuningJobOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28368,9 +28903,6 @@ func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -28384,14 +28916,14 @@ func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp } } -type awsAwsjson11_deserializeOpStopInferenceRecommendationsJob struct { +type awsAwsjson11_deserializeOpStopInferenceExperiment struct { } -func (*awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) ID() string { +func (*awsAwsjson11_deserializeOpStopInferenceExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28405,21 +28937,43 @@ func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response, &metadata) } - output := &StopInferenceRecommendationsJobOutput{} + output := &StopInferenceExperimentOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentStopInferenceExperimentOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28456,6 +29010,9 @@ func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response *sm errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -28469,14 +29026,14 @@ func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response *sm } } -type awsAwsjson11_deserializeOpStopLabelingJob struct { +type awsAwsjson11_deserializeOpStopInferenceRecommendationsJob struct { } -func (*awsAwsjson11_deserializeOpStopLabelingJob) ID() string { +func (*awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28490,9 +29047,9 @@ func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopLabelingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response, &metadata) } - output := &StopLabelingJobOutput{} + output := &StopInferenceRecommendationsJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28504,7 +29061,7 @@ func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28554,14 +29111,14 @@ func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpStopMonitoringSchedule struct { +type awsAwsjson11_deserializeOpStopLabelingJob struct { } -func (*awsAwsjson11_deserializeOpStopMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpStopLabelingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28575,9 +29132,9 @@ func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopLabelingJob(response, &metadata) } - output := &StopMonitoringScheduleOutput{} + output := &StopLabelingJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28589,7 +29146,7 @@ func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28639,14 +29196,14 @@ func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp. } } -type awsAwsjson11_deserializeOpStopNotebookInstance struct { +type awsAwsjson11_deserializeOpStopMlflowTrackingServer struct { } -func (*awsAwsjson11_deserializeOpStopNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpStopMlflowTrackingServer) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopMlflowTrackingServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28660,21 +29217,43 @@ func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopMlflowTrackingServer(response, &metadata) } - output := &StopNotebookInstanceOutput{} + output := &StopMlflowTrackingServerOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentStopMlflowTrackingServerOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopMlflowTrackingServer(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28711,6 +29290,12 @@ func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Re errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28721,14 +29306,14 @@ func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpStopPipelineExecution struct { +type awsAwsjson11_deserializeOpStopMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpStopPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpStopMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28742,43 +29327,21 @@ func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response, &metadata) } - output := &StopPipelineExecutionOutput{} + output := &StopMonitoringScheduleOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentStopPipelineExecutionOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28815,9 +29378,6 @@ func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.R errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -28831,14 +29391,14 @@ func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpStopProcessingJob struct { +type awsAwsjson11_deserializeOpStopNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpStopProcessingJob) ID() string { +func (*awsAwsjson11_deserializeOpStopNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28852,9 +29412,9 @@ func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopProcessingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopNotebookInstance(response, &metadata) } - output := &StopProcessingJobOutput{} + output := &StopNotebookInstanceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28866,7 +29426,7 @@ func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28903,9 +29463,6 @@ func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Respo errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28916,14 +29473,14 @@ func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpStopTrainingJob struct { +type awsAwsjson11_deserializeOpStopPipelineExecution struct { } -func (*awsAwsjson11_deserializeOpStopTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpStopPipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28937,21 +29494,43 @@ func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopPipelineExecution(response, &metadata) } - output := &StopTrainingJobOutput{} + output := &StopPipelineExecutionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentStopPipelineExecutionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28988,6 +29567,9 @@ func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Respons errorMessage = bodyInfo.Message } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -29001,14 +29583,14 @@ func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpStopTransformJob struct { +type awsAwsjson11_deserializeOpStopProcessingJob struct { } -func (*awsAwsjson11_deserializeOpStopTransformJob) ID() string { +func (*awsAwsjson11_deserializeOpStopProcessingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29022,9 +29604,9 @@ func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopTransformJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopProcessingJob(response, &metadata) } - output := &StopTransformJobOutput{} + output := &StopProcessingJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -29036,7 +29618,7 @@ func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29086,14 +29668,14 @@ func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateAction struct { +type awsAwsjson11_deserializeOpStopTrainingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateAction) ID() string { +func (*awsAwsjson11_deserializeOpStopTrainingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29107,43 +29689,21 @@ func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAction(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopTrainingJob(response, &metadata) } - output := &UpdateActionOutput{} + output := &StopTrainingJobOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateActionOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29180,9 +29740,6 @@ func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -29196,14 +29753,14 @@ func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateAppImageConfig struct { +type awsAwsjson11_deserializeOpStopTransformJob struct { } -func (*awsAwsjson11_deserializeOpUpdateAppImageConfig) ID() string { +func (*awsAwsjson11_deserializeOpStopTransformJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29217,43 +29774,21 @@ func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopTransformJob(response, &metadata) } - output := &UpdateAppImageConfigOutput{} + output := &StopTransformJobOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateAppImageConfigOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29303,14 +29838,14 @@ func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateArtifact struct { +type awsAwsjson11_deserializeOpUpdateAction struct { } -func (*awsAwsjson11_deserializeOpUpdateArtifact) ID() string { +func (*awsAwsjson11_deserializeOpUpdateAction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29324,9 +29859,9 @@ func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateArtifact(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAction(response, &metadata) } - output := &UpdateArtifactOutput{} + output := &UpdateActionOutput{} out.Result = output var buff [1024]byte @@ -29346,7 +29881,7 @@ func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateArtifactOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateActionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29360,7 +29895,7 @@ func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29413,14 +29948,14 @@ func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdateCluster struct { +type awsAwsjson11_deserializeOpUpdateAppImageConfig struct { } -func (*awsAwsjson11_deserializeOpUpdateCluster) ID() string { +func (*awsAwsjson11_deserializeOpUpdateAppImageConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29434,9 +29969,9 @@ func (m *awsAwsjson11_deserializeOpUpdateCluster) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCluster(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response, &metadata) } - output := &UpdateClusterOutput{} + output := &UpdateAppImageConfigOutput{} out.Result = output var buff [1024]byte @@ -29456,7 +29991,7 @@ func (m *awsAwsjson11_deserializeOpUpdateCluster) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateClusterOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateAppImageConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29470,7 +30005,224 @@ func (m *awsAwsjson11_deserializeOpUpdateCluster) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateArtifact struct { +} + +func (*awsAwsjson11_deserializeOpUpdateArtifact) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateArtifact(response, &metadata) + } + output := &UpdateArtifactOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateArtifactOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateCluster struct { +} + +func (*awsAwsjson11_deserializeOpUpdateCluster) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCluster(response, &metadata) + } + output := &UpdateClusterOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateClusterOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31303,14 +32055,14 @@ func awsAwsjson11_deserializeOpErrorUpdateInferenceExperiment(response *smithyht } } -type awsAwsjson11_deserializeOpUpdateModelCard struct { +type awsAwsjson11_deserializeOpUpdateMlflowTrackingServer struct { } -func (*awsAwsjson11_deserializeOpUpdateModelCard) ID() string { +func (*awsAwsjson11_deserializeOpUpdateMlflowTrackingServer) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateMlflowTrackingServer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31324,9 +32076,9 @@ func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelCard(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMlflowTrackingServer(response, &metadata) } - output := &UpdateModelCardOutput{} + output := &UpdateMlflowTrackingServerOutput{} out.Result = output var buff [1024]byte @@ -31346,7 +32098,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateModelCardOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateMlflowTrackingServerOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31360,7 +32112,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateMlflowTrackingServer(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31416,14 +32168,14 @@ func awsAwsjson11_deserializeOpErrorUpdateModelCard(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpUpdateModelPackage struct { +type awsAwsjson11_deserializeOpUpdateModelCard struct { } -func (*awsAwsjson11_deserializeOpUpdateModelPackage) ID() string { +func (*awsAwsjson11_deserializeOpUpdateModelCard) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31437,9 +32189,9 @@ func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelPackage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelCard(response, &metadata) } - output := &UpdateModelPackageOutput{} + output := &UpdateModelCardOutput{} out.Result = output var buff [1024]byte @@ -31459,7 +32211,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateModelPackageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateModelCardOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31473,7 +32225,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31513,6 +32265,12 @@ func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Resp case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -31523,14 +32281,14 @@ func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpUpdateMonitoringAlert struct { +type awsAwsjson11_deserializeOpUpdateModelPackage struct { } -func (*awsAwsjson11_deserializeOpUpdateMonitoringAlert) ID() string { +func (*awsAwsjson11_deserializeOpUpdateModelPackage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31544,9 +32302,9 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelPackage(response, &metadata) } - output := &UpdateMonitoringAlertOutput{} + output := &UpdateModelPackageOutput{} out.Result = output var buff [1024]byte @@ -31566,7 +32324,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringAlertOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateModelPackageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31580,7 +32338,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31617,11 +32375,8 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.R errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -31633,14 +32388,14 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpUpdateMonitoringSchedule struct { +type awsAwsjson11_deserializeOpUpdateMonitoringAlert struct { } -func (*awsAwsjson11_deserializeOpUpdateMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpUpdateMonitoringAlert) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31654,9 +32409,9 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response, &metadata) } - output := &UpdateMonitoringScheduleOutput{} + output := &UpdateMonitoringAlertOutput{} out.Result = output var buff [1024]byte @@ -31676,7 +32431,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringScheduleOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringAlertOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31690,7 +32445,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31743,14 +32498,14 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhtt } } -type awsAwsjson11_deserializeOpUpdateNotebookInstance struct { +type awsAwsjson11_deserializeOpUpdateMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpUpdateNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpUpdateMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31764,9 +32519,9 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response, &metadata) } - output := &UpdateNotebookInstanceOutput{} + output := &UpdateMonitoringScheduleOutput{} out.Result = output var buff [1024]byte @@ -31786,7 +32541,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31800,7 +32555,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31840,6 +32595,9 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp. case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -31850,14 +32608,14 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp. } } -type awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig struct { +type awsAwsjson11_deserializeOpUpdateNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) ID() string { +func (*awsAwsjson11_deserializeOpUpdateNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31871,9 +32629,9 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response, &metadata) } - output := &UpdateNotebookInstanceLifecycleConfigOutput{} + output := &UpdateNotebookInstanceOutput{} out.Result = output var buff [1024]byte @@ -31893,7 +32651,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceLifecycleConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31907,7 +32665,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31957,14 +32715,14 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(respon } } -type awsAwsjson11_deserializeOpUpdatePipeline struct { +type awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig struct { } -func (*awsAwsjson11_deserializeOpUpdatePipeline) ID() string { +func (*awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31978,9 +32736,9 @@ func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipeline(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response, &metadata) } - output := &UpdatePipelineOutput{} + output := &UpdateNotebookInstanceLifecycleConfigOutput{} out.Result = output var buff [1024]byte @@ -32000,7 +32758,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdatePipelineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceLifecycleConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32014,7 +32772,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32051,11 +32809,8 @@ func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -32067,14 +32822,14 @@ func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdatePipelineExecution struct { +type awsAwsjson11_deserializeOpUpdatePipeline struct { } -func (*awsAwsjson11_deserializeOpUpdatePipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpUpdatePipeline) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32088,9 +32843,9 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipeline(response, &metadata) } - output := &UpdatePipelineExecutionOutput{} + output := &UpdatePipelineOutput{} out.Result = output var buff [1024]byte @@ -32110,7 +32865,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdatePipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdatePipelineOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32124,7 +32879,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32177,14 +32932,14 @@ func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp } } -type awsAwsjson11_deserializeOpUpdateProject struct { +type awsAwsjson11_deserializeOpUpdatePipelineExecution struct { } -func (*awsAwsjson11_deserializeOpUpdateProject) ID() string { +func (*awsAwsjson11_deserializeOpUpdatePipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32198,9 +32953,9 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateProject(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response, &metadata) } - output := &UpdateProjectOutput{} + output := &UpdatePipelineExecutionOutput{} out.Result = output var buff [1024]byte @@ -32220,7 +32975,7 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateProjectOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdatePipelineExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32234,7 +32989,7 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32274,116 +33029,6 @@ func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateSpace struct { -} - -func (*awsAwsjson11_deserializeOpUpdateSpace) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateSpace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSpace(response, &metadata) - } - output := &UpdateSpaceOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateSpaceOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateSpace(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - bodyInfo, err := getProtocolErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { - errorCode = restjson.SanitizeErrorCode(typ) - } - if len(bodyInfo.Message) != 0 { - errorMessage = bodyInfo.Message - } - switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -32397,14 +33042,14 @@ func awsAwsjson11_deserializeOpErrorUpdateSpace(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateTrainingJob struct { +type awsAwsjson11_deserializeOpUpdateProject struct { } -func (*awsAwsjson11_deserializeOpUpdateTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpUpdateProject) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32418,9 +33063,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateProject(response, &metadata) } - output := &UpdateTrainingJobOutput{} + output := &UpdateProjectOutput{} out.Result = output var buff [1024]byte @@ -32440,7 +33085,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrainingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateProjectOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32454,7 +33099,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32491,11 +33136,8 @@ func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Respo errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -32507,14 +33149,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpUpdateTrial struct { +type awsAwsjson11_deserializeOpUpdateSpace struct { } -func (*awsAwsjson11_deserializeOpUpdateTrial) ID() string { +func (*awsAwsjson11_deserializeOpUpdateSpace) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateSpace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32528,9 +33170,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrial(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSpace(response, &metadata) } - output := &UpdateTrialOutput{} + output := &UpdateSpaceOutput{} out.Result = output var buff [1024]byte @@ -32550,7 +33192,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrialOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateSpaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32564,7 +33206,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateSpace(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32601,8 +33243,11 @@ func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, m errorMessage = bodyInfo.Message } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -32617,14 +33262,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateTrialComponent struct { +type awsAwsjson11_deserializeOpUpdateTrainingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateTrialComponent) ID() string { +func (*awsAwsjson11_deserializeOpUpdateTrainingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32638,9 +33283,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response, &metadata) } - output := &UpdateTrialComponentOutput{} + output := &UpdateTrainingJobOutput{} out.Result = output var buff [1024]byte @@ -32660,7 +33305,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrialComponentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateTrainingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32674,7 +33319,227 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrial struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrial) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrial(response, &metadata) + } + output := &UpdateTrialOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateTrialOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrialComponent struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrialComponent) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response, &metadata) + } + output := &UpdateTrialComponentOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateTrialComponentOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -39382,6 +40247,50 @@ func awsAwsjson11_deserializeDocumentClarifyTextConfig(v **types.ClarifyTextConf return nil } +func awsAwsjson11_deserializeDocumentClusterEbsVolumeConfig(v **types.ClusterEbsVolumeConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ClusterEbsVolumeConfig + if *v == nil { + sv = &types.ClusterEbsVolumeConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "VolumeSizeInGB": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ClusterEbsVolumeSizeInGB to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VolumeSizeInGB = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentClusterInstanceGroupDetails(v **types.ClusterInstanceGroupDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -39435,6 +40344,11 @@ func awsAwsjson11_deserializeDocumentClusterInstanceGroupDetails(v **types.Clust sv.InstanceGroupName = ptr.String(jtv) } + case "InstanceStorageConfigs": + if err := awsAwsjson11_deserializeDocumentClusterInstanceStorageConfigs(&sv.InstanceStorageConfigs, value); err != nil { + return err + } + case "InstanceType": if value != nil { jtv, ok := value.(string) @@ -39616,6 +40530,78 @@ func awsAwsjson11_deserializeDocumentClusterInstanceStatusDetails(v **types.Clus return nil } +func awsAwsjson11_deserializeDocumentClusterInstanceStorageConfig(v *types.ClusterInstanceStorageConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.ClusterInstanceStorageConfig +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "EbsVolumeConfig": + var mv types.ClusterEbsVolumeConfig + destAddr := &mv + if err := awsAwsjson11_deserializeDocumentClusterEbsVolumeConfig(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.ClusterInstanceStorageConfigMemberEbsVolumeConfig{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsAwsjson11_deserializeDocumentClusterInstanceStorageConfigs(v *[]types.ClusterInstanceStorageConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ClusterInstanceStorageConfig + if *v == nil { + cv = []types.ClusterInstanceStorageConfig{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ClusterInstanceStorageConfig + if err := awsAwsjson11_deserializeDocumentClusterInstanceStorageConfig(&col, value); err != nil { + return err + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentClusterLifeCycleConfig(v **types.ClusterLifeCycleConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -39710,6 +40696,11 @@ func awsAwsjson11_deserializeDocumentClusterNodeDetails(v **types.ClusterNodeDet return err } + case "InstanceStorageConfigs": + if err := awsAwsjson11_deserializeDocumentClusterInstanceStorageConfigs(&sv.InstanceStorageConfigs, value); err != nil { + return err + } + case "InstanceType": if value != nil { jtv, ok := value.(string) @@ -73480,6 +74471,148 @@ func awsAwsjson11_deserializeDocumentTimeSeriesTransformations(v **types.TimeSer return nil } +func awsAwsjson11_deserializeDocumentTrackingServerSummary(v **types.TrackingServerSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TrackingServerSummary + if *v == nil { + sv = &types.TrackingServerSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "IsActive": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IsTrackingServerActive to be of type string, got %T instead", value) + } + sv.IsActive = types.IsTrackingServerActive(jtv) + } + + case "LastModifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "MlflowVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MlflowVersion to be of type string, got %T instead", value) + } + sv.MlflowVersion = ptr.String(jtv) + } + + case "TrackingServerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerArn to be of type string, got %T instead", value) + } + sv.TrackingServerArn = ptr.String(jtv) + } + + case "TrackingServerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerName to be of type string, got %T instead", value) + } + sv.TrackingServerName = ptr.String(jtv) + } + + case "TrackingServerStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerStatus to be of type string, got %T instead", value) + } + sv.TrackingServerStatus = types.TrackingServerStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentTrackingServerSummaryList(v *[]types.TrackingServerSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.TrackingServerSummary + if *v == nil { + cv = []types.TrackingServerSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TrackingServerSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrackingServerSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentTrafficPattern(v **types.TrafficPattern, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -79690,6 +80823,46 @@ func awsAwsjson11_deserializeOpDocumentCreateLabelingJobOutput(v **CreateLabelin return nil } +func awsAwsjson11_deserializeOpDocumentCreateMlflowTrackingServerOutput(v **CreateMlflowTrackingServerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateMlflowTrackingServerOutput + if *v == nil { + sv = &CreateMlflowTrackingServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TrackingServerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerArn to be of type string, got %T instead", value) + } + sv.TrackingServerArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateModelBiasJobDefinitionOutput(v **CreateModelBiasJobDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -80210,6 +81383,46 @@ func awsAwsjson11_deserializeOpDocumentCreatePresignedDomainUrlOutput(v **Create return nil } +func awsAwsjson11_deserializeOpDocumentCreatePresignedMlflowTrackingServerUrlOutput(v **CreatePresignedMlflowTrackingServerUrlOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreatePresignedMlflowTrackingServerUrlOutput + if *v == nil { + sv = &CreatePresignedMlflowTrackingServerUrlOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AuthorizedUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerUrl to be of type string, got %T instead", value) + } + sv.AuthorizedUrl = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreatePresignedNotebookInstanceUrlOutput(v **CreatePresignedNotebookInstanceUrlOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -81112,6 +82325,46 @@ func awsAwsjson11_deserializeOpDocumentDeleteInferenceExperimentOutput(v **Delet return nil } +func awsAwsjson11_deserializeOpDocumentDeleteMlflowTrackingServerOutput(v **DeleteMlflowTrackingServerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DeleteMlflowTrackingServerOutput + if *v == nil { + sv = &DeleteMlflowTrackingServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TrackingServerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerArn to be of type string, got %T instead", value) + } + sv.TrackingServerArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDeletePipelineOutput(v **DeletePipelineOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -86243,6 +87496,178 @@ func awsAwsjson11_deserializeOpDocumentDescribeLineageGroupOutput(v **DescribeLi return nil } +func awsAwsjson11_deserializeOpDocumentDescribeMlflowTrackingServerOutput(v **DescribeMlflowTrackingServerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeMlflowTrackingServerOutput + if *v == nil { + sv = &DescribeMlflowTrackingServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ArtifactStoreUri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) + } + sv.ArtifactStoreUri = ptr.String(jtv) + } + + case "AutomaticModelRegistration": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.AutomaticModelRegistration = ptr.Bool(jtv) + } + + case "CreatedBy": + if err := awsAwsjson11_deserializeDocumentUserContext(&sv.CreatedBy, value); err != nil { + return err + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "IsActive": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IsTrackingServerActive to be of type string, got %T instead", value) + } + sv.IsActive = types.IsTrackingServerActive(jtv) + } + + case "LastModifiedBy": + if err := awsAwsjson11_deserializeDocumentUserContext(&sv.LastModifiedBy, value); err != nil { + return err + } + + case "LastModifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "MlflowVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MlflowVersion to be of type string, got %T instead", value) + } + sv.MlflowVersion = ptr.String(jtv) + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "TrackingServerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerArn to be of type string, got %T instead", value) + } + sv.TrackingServerArn = ptr.String(jtv) + } + + case "TrackingServerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerName to be of type string, got %T instead", value) + } + sv.TrackingServerName = ptr.String(jtv) + } + + case "TrackingServerSize": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerSize to be of type string, got %T instead", value) + } + sv.TrackingServerSize = types.TrackingServerSize(jtv) + } + + case "TrackingServerStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerStatus to be of type string, got %T instead", value) + } + sv.TrackingServerStatus = types.TrackingServerStatus(jtv) + } + + case "TrackingServerUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerUrl to be of type string, got %T instead", value) + } + sv.TrackingServerUrl = ptr.String(jtv) + } + + case "WeeklyMaintenanceWindowStart": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WeeklyMaintenanceWindowStart to be of type string, got %T instead", value) + } + sv.WeeklyMaintenanceWindowStart = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(v **DescribeModelBiasJobDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -90496,7 +91921,142 @@ func awsAwsjson11_deserializeOpDocumentListAppImageConfigsOutput(v **ListAppImag return nil } -func awsAwsjson11_deserializeOpDocumentListAppsOutput(v **ListAppsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListAppsOutput(v **ListAppsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListAppsOutput + if *v == nil { + sv = &ListAppsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Apps": + if err := awsAwsjson11_deserializeDocumentAppList(&sv.Apps, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListArtifactsOutput(v **ListArtifactsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListArtifactsOutput + if *v == nil { + sv = &ListArtifactsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ArtifactSummaries": + if err := awsAwsjson11_deserializeDocumentArtifactSummaries(&sv.ArtifactSummaries, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListAssociationsOutput(v **ListAssociationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListAssociationsOutput + if *v == nil { + sv = &ListAssociationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssociationSummaries": + if err := awsAwsjson11_deserializeDocumentAssociationSummaries(&sv.AssociationSummaries, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90509,17 +92069,17 @@ func awsAwsjson11_deserializeOpDocumentListAppsOutput(v **ListAppsOutput, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAppsOutput + var sv *ListAutoMLJobsOutput if *v == nil { - sv = &ListAppsOutput{} + sv = &ListAutoMLJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Apps": - if err := awsAwsjson11_deserializeDocumentAppList(&sv.Apps, value); err != nil { + case "AutoMLJobSummaries": + if err := awsAwsjson11_deserializeDocumentAutoMLJobSummaries(&sv.AutoMLJobSummaries, value); err != nil { return err } @@ -90541,7 +92101,7 @@ func awsAwsjson11_deserializeOpDocumentListAppsOutput(v **ListAppsOutput, value return nil } -func awsAwsjson11_deserializeOpDocumentListArtifactsOutput(v **ListArtifactsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **ListCandidatesForAutoMLJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90554,17 +92114,17 @@ func awsAwsjson11_deserializeOpDocumentListArtifactsOutput(v **ListArtifactsOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListArtifactsOutput + var sv *ListCandidatesForAutoMLJobOutput if *v == nil { - sv = &ListArtifactsOutput{} + sv = &ListCandidatesForAutoMLJobOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ArtifactSummaries": - if err := awsAwsjson11_deserializeDocumentArtifactSummaries(&sv.ArtifactSummaries, value); err != nil { + case "Candidates": + if err := awsAwsjson11_deserializeDocumentAutoMLCandidates(&sv.Candidates, value); err != nil { return err } @@ -90586,7 +92146,7 @@ func awsAwsjson11_deserializeOpDocumentListArtifactsOutput(v **ListArtifactsOutp return nil } -func awsAwsjson11_deserializeOpDocumentListAssociationsOutput(v **ListAssociationsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListClusterNodesOutput(v **ListClusterNodesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90599,17 +92159,17 @@ func awsAwsjson11_deserializeOpDocumentListAssociationsOutput(v **ListAssociatio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAssociationsOutput + var sv *ListClusterNodesOutput if *v == nil { - sv = &ListAssociationsOutput{} + sv = &ListClusterNodesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AssociationSummaries": - if err := awsAwsjson11_deserializeDocumentAssociationSummaries(&sv.AssociationSummaries, value); err != nil { + case "ClusterNodeSummaries": + if err := awsAwsjson11_deserializeDocumentClusterNodeSummaries(&sv.ClusterNodeSummaries, value); err != nil { return err } @@ -90631,7 +92191,7 @@ func awsAwsjson11_deserializeOpDocumentListAssociationsOutput(v **ListAssociatio return nil } -func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90644,17 +92204,17 @@ func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAutoMLJobsOutput + var sv *ListClustersOutput if *v == nil { - sv = &ListAutoMLJobsOutput{} + sv = &ListClustersOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AutoMLJobSummaries": - if err := awsAwsjson11_deserializeDocumentAutoMLJobSummaries(&sv.AutoMLJobSummaries, value); err != nil { + case "ClusterSummaries": + if err := awsAwsjson11_deserializeDocumentClusterSummaries(&sv.ClusterSummaries, value); err != nil { return err } @@ -90676,7 +92236,7 @@ func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOu return nil } -func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **ListCandidatesForAutoMLJobOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRepositoriesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90689,17 +92249,17 @@ func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **List return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCandidatesForAutoMLJobOutput + var sv *ListCodeRepositoriesOutput if *v == nil { - sv = &ListCandidatesForAutoMLJobOutput{} + sv = &ListCodeRepositoriesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Candidates": - if err := awsAwsjson11_deserializeDocumentAutoMLCandidates(&sv.Candidates, value); err != nil { + case "CodeRepositorySummaryList": + if err := awsAwsjson11_deserializeDocumentCodeRepositorySummaryList(&sv.CodeRepositorySummaryList, value); err != nil { return err } @@ -90721,7 +92281,7 @@ func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **List return nil } -func awsAwsjson11_deserializeOpDocumentListClusterNodesOutput(v **ListClusterNodesOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompilationJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90734,17 +92294,17 @@ func awsAwsjson11_deserializeOpDocumentListClusterNodesOutput(v **ListClusterNod return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListClusterNodesOutput + var sv *ListCompilationJobsOutput if *v == nil { - sv = &ListClusterNodesOutput{} + sv = &ListCompilationJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ClusterNodeSummaries": - if err := awsAwsjson11_deserializeDocumentClusterNodeSummaries(&sv.ClusterNodeSummaries, value); err != nil { + case "CompilationJobSummaries": + if err := awsAwsjson11_deserializeDocumentCompilationJobSummaries(&sv.CompilationJobSummaries, value); err != nil { return err } @@ -90766,7 +92326,7 @@ func awsAwsjson11_deserializeOpDocumentListClusterNodesOutput(v **ListClusterNod return nil } -func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90779,17 +92339,17 @@ func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListClustersOutput + var sv *ListContextsOutput if *v == nil { - sv = &ListClustersOutput{} + sv = &ListContextsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ClusterSummaries": - if err := awsAwsjson11_deserializeDocumentClusterSummaries(&sv.ClusterSummaries, value); err != nil { + case "ContextSummaries": + if err := awsAwsjson11_deserializeDocumentContextSummaries(&sv.ContextSummaries, value); err != nil { return err } @@ -90811,7 +92371,7 @@ func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput return nil } -func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRepositoriesOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **ListDataQualityJobDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90824,17 +92384,17 @@ func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCodeRepositoriesOutput + var sv *ListDataQualityJobDefinitionsOutput if *v == nil { - sv = &ListCodeRepositoriesOutput{} + sv = &ListDataQualityJobDefinitionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CodeRepositorySummaryList": - if err := awsAwsjson11_deserializeDocumentCodeRepositorySummaryList(&sv.CodeRepositorySummaryList, value); err != nil { + case "JobDefinitionSummaries": + if err := awsAwsjson11_deserializeDocumentMonitoringJobDefinitionSummaryList(&sv.JobDefinitionSummaries, value); err != nil { return err } @@ -90856,7 +92416,7 @@ func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRe return nil } -func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompilationJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFleetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90869,17 +92429,17 @@ func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompila return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCompilationJobsOutput + var sv *ListDeviceFleetsOutput if *v == nil { - sv = &ListCompilationJobsOutput{} + sv = &ListDeviceFleetsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CompilationJobSummaries": - if err := awsAwsjson11_deserializeDocumentCompilationJobSummaries(&sv.CompilationJobSummaries, value); err != nil { + case "DeviceFleetSummaries": + if err := awsAwsjson11_deserializeDocumentDeviceFleetSummaries(&sv.DeviceFleetSummaries, value); err != nil { return err } @@ -90901,7 +92461,7 @@ func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompila return nil } -func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90914,17 +92474,17 @@ func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListContextsOutput + var sv *ListDevicesOutput if *v == nil { - sv = &ListContextsOutput{} + sv = &ListDevicesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ContextSummaries": - if err := awsAwsjson11_deserializeDocumentContextSummaries(&sv.ContextSummaries, value); err != nil { + case "DeviceSummaries": + if err := awsAwsjson11_deserializeDocumentDeviceSummaries(&sv.DeviceSummaries, value); err != nil { return err } @@ -90946,7 +92506,7 @@ func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput return nil } -func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **ListDataQualityJobDefinitionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -90959,17 +92519,17 @@ func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **L return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDataQualityJobDefinitionsOutput + var sv *ListDomainsOutput if *v == nil { - sv = &ListDataQualityJobDefinitionsOutput{} + sv = &ListDomainsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "JobDefinitionSummaries": - if err := awsAwsjson11_deserializeDocumentMonitoringJobDefinitionSummaryList(&sv.JobDefinitionSummaries, value); err != nil { + case "Domains": + if err := awsAwsjson11_deserializeDocumentDomainList(&sv.Domains, value); err != nil { return err } @@ -90991,7 +92551,7 @@ func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **L return nil } -func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFleetsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListEdgeDeploymentPlansOutput(v **ListEdgeDeploymentPlansOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91004,17 +92564,17 @@ func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFlee return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDeviceFleetsOutput + var sv *ListEdgeDeploymentPlansOutput if *v == nil { - sv = &ListDeviceFleetsOutput{} + sv = &ListEdgeDeploymentPlansOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DeviceFleetSummaries": - if err := awsAwsjson11_deserializeDocumentDeviceFleetSummaries(&sv.DeviceFleetSummaries, value); err != nil { + case "EdgeDeploymentPlanSummaries": + if err := awsAwsjson11_deserializeDocumentEdgeDeploymentPlanSummaries(&sv.EdgeDeploymentPlanSummaries, value); err != nil { return err } @@ -91036,7 +92596,7 @@ func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFlee return nil } -func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgePackagingJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91049,17 +92609,17 @@ func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDevicesOutput + var sv *ListEdgePackagingJobsOutput if *v == nil { - sv = &ListDevicesOutput{} + sv = &ListEdgePackagingJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DeviceSummaries": - if err := awsAwsjson11_deserializeDocumentDeviceSummaries(&sv.DeviceSummaries, value); err != nil { + case "EdgePackagingJobSummaries": + if err := awsAwsjson11_deserializeDocumentEdgePackagingJobSummaries(&sv.EdgePackagingJobSummaries, value); err != nil { return err } @@ -91081,7 +92641,7 @@ func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, return nil } -func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpointConfigsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91094,17 +92654,17 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDomainsOutput + var sv *ListEndpointConfigsOutput if *v == nil { - sv = &ListDomainsOutput{} + sv = &ListEndpointConfigsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Domains": - if err := awsAwsjson11_deserializeDocumentDomainList(&sv.Domains, value); err != nil { + case "EndpointConfigs": + if err := awsAwsjson11_deserializeDocumentEndpointConfigSummaryList(&sv.EndpointConfigs, value); err != nil { return err } @@ -91112,7 +92672,7 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -91126,7 +92686,7 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, return nil } -func awsAwsjson11_deserializeOpDocumentListEdgeDeploymentPlansOutput(v **ListEdgeDeploymentPlansOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91139,17 +92699,17 @@ func awsAwsjson11_deserializeOpDocumentListEdgeDeploymentPlansOutput(v **ListEdg return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEdgeDeploymentPlansOutput + var sv *ListEndpointsOutput if *v == nil { - sv = &ListEdgeDeploymentPlansOutput{} + sv = &ListEndpointsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EdgeDeploymentPlanSummaries": - if err := awsAwsjson11_deserializeDocumentEdgeDeploymentPlanSummaries(&sv.EdgeDeploymentPlanSummaries, value); err != nil { + case "Endpoints": + if err := awsAwsjson11_deserializeDocumentEndpointSummaryList(&sv.Endpoints, value); err != nil { return err } @@ -91157,7 +92717,7 @@ func awsAwsjson11_deserializeOpDocumentListEdgeDeploymentPlansOutput(v **ListEdg if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -91171,7 +92731,7 @@ func awsAwsjson11_deserializeOpDocumentListEdgeDeploymentPlansOutput(v **ListEdg return nil } -func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgePackagingJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperimentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91184,17 +92744,17 @@ func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgeP return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEdgePackagingJobsOutput + var sv *ListExperimentsOutput if *v == nil { - sv = &ListEdgePackagingJobsOutput{} + sv = &ListExperimentsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EdgePackagingJobSummaries": - if err := awsAwsjson11_deserializeDocumentEdgePackagingJobSummaries(&sv.EdgePackagingJobSummaries, value); err != nil { + case "ExperimentSummaries": + if err := awsAwsjson11_deserializeDocumentExperimentSummaries(&sv.ExperimentSummaries, value); err != nil { return err } @@ -91216,7 +92776,7 @@ func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgeP return nil } -func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpointConfigsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91229,17 +92789,17 @@ func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpoin return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEndpointConfigsOutput + var sv *ListFeatureGroupsOutput if *v == nil { - sv = &ListEndpointConfigsOutput{} + sv = &ListFeatureGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EndpointConfigs": - if err := awsAwsjson11_deserializeDocumentEndpointConfigSummaryList(&sv.EndpointConfigs, value); err != nil { + case "FeatureGroupSummaries": + if err := awsAwsjson11_deserializeDocumentFeatureGroupSummaries(&sv.FeatureGroupSummaries, value); err != nil { return err } @@ -91247,7 +92807,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpoin if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -91261,7 +92821,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpoin return nil } -func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91274,17 +92834,17 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEndpointsOutput + var sv *ListFlowDefinitionsOutput if *v == nil { - sv = &ListEndpointsOutput{} + sv = &ListFlowDefinitionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Endpoints": - if err := awsAwsjson11_deserializeDocumentEndpointSummaryList(&sv.Endpoints, value); err != nil { + case "FlowDefinitionSummaries": + if err := awsAwsjson11_deserializeDocumentFlowDefinitionSummaries(&sv.FlowDefinitionSummaries, value); err != nil { return err } @@ -91292,7 +92852,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -91306,7 +92866,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp return nil } -func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperimentsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListHubContentsOutput(v **ListHubContentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91319,17 +92879,17 @@ func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperiments return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListExperimentsOutput + var sv *ListHubContentsOutput if *v == nil { - sv = &ListExperimentsOutput{} + sv = &ListHubContentsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ExperimentSummaries": - if err := awsAwsjson11_deserializeDocumentExperimentSummaries(&sv.ExperimentSummaries, value); err != nil { + case "HubContentSummaries": + if err := awsAwsjson11_deserializeDocumentHubContentInfoList(&sv.HubContentSummaries, value); err != nil { return err } @@ -91351,7 +92911,7 @@ func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperiments return nil } -func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGroupsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListHubContentVersionsOutput(v **ListHubContentVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91364,17 +92924,17 @@ func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListFeatureGroupsOutput + var sv *ListHubContentVersionsOutput if *v == nil { - sv = &ListFeatureGroupsOutput{} + sv = &ListHubContentVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FeatureGroupSummaries": - if err := awsAwsjson11_deserializeDocumentFeatureGroupSummaries(&sv.FeatureGroupSummaries, value); err != nil { + case "HubContentSummaries": + if err := awsAwsjson11_deserializeDocumentHubContentInfoList(&sv.HubContentSummaries, value); err != nil { return err } @@ -91396,7 +92956,7 @@ func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGr return nil } -func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDefinitionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListHubsOutput(v **ListHubsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91409,17 +92969,17 @@ func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDef return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListFlowDefinitionsOutput + var sv *ListHubsOutput if *v == nil { - sv = &ListFlowDefinitionsOutput{} + sv = &ListHubsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FlowDefinitionSummaries": - if err := awsAwsjson11_deserializeDocumentFlowDefinitionSummaries(&sv.FlowDefinitionSummaries, value); err != nil { + case "HubSummaries": + if err := awsAwsjson11_deserializeDocumentHubInfoList(&sv.HubSummaries, value); err != nil { return err } @@ -91441,7 +93001,7 @@ func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDef return nil } -func awsAwsjson11_deserializeOpDocumentListHubContentsOutput(v **ListHubContentsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskUisOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91454,17 +93014,17 @@ func awsAwsjson11_deserializeOpDocumentListHubContentsOutput(v **ListHubContents return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHubContentsOutput + var sv *ListHumanTaskUisOutput if *v == nil { - sv = &ListHubContentsOutput{} + sv = &ListHumanTaskUisOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "HubContentSummaries": - if err := awsAwsjson11_deserializeDocumentHubContentInfoList(&sv.HubContentSummaries, value); err != nil { + case "HumanTaskUiSummaries": + if err := awsAwsjson11_deserializeDocumentHumanTaskUiSummaries(&sv.HumanTaskUiSummaries, value); err != nil { return err } @@ -91486,7 +93046,7 @@ func awsAwsjson11_deserializeOpDocumentListHubContentsOutput(v **ListHubContents return nil } -func awsAwsjson11_deserializeOpDocumentListHubContentVersionsOutput(v **ListHubContentVersionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **ListHyperParameterTuningJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91499,17 +93059,17 @@ func awsAwsjson11_deserializeOpDocumentListHubContentVersionsOutput(v **ListHubC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHubContentVersionsOutput + var sv *ListHyperParameterTuningJobsOutput if *v == nil { - sv = &ListHubContentVersionsOutput{} + sv = &ListHyperParameterTuningJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "HubContentSummaries": - if err := awsAwsjson11_deserializeDocumentHubContentInfoList(&sv.HubContentSummaries, value); err != nil { + case "HyperParameterTuningJobSummaries": + if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummaries(&sv.HyperParameterTuningJobSummaries, value); err != nil { return err } @@ -91531,7 +93091,7 @@ func awsAwsjson11_deserializeOpDocumentListHubContentVersionsOutput(v **ListHubC return nil } -func awsAwsjson11_deserializeOpDocumentListHubsOutput(v **ListHubsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91544,17 +93104,17 @@ func awsAwsjson11_deserializeOpDocumentListHubsOutput(v **ListHubsOutput, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHubsOutput + var sv *ListImagesOutput if *v == nil { - sv = &ListHubsOutput{} + sv = &ListImagesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "HubSummaries": - if err := awsAwsjson11_deserializeDocumentHubInfoList(&sv.HubSummaries, value); err != nil { + case "Images": + if err := awsAwsjson11_deserializeDocumentImages(&sv.Images, value); err != nil { return err } @@ -91576,7 +93136,7 @@ func awsAwsjson11_deserializeOpDocumentListHubsOutput(v **ListHubsOutput, value return nil } -func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskUisOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91589,17 +93149,17 @@ func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskU return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHumanTaskUisOutput + var sv *ListImageVersionsOutput if *v == nil { - sv = &ListHumanTaskUisOutput{} + sv = &ListImageVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "HumanTaskUiSummaries": - if err := awsAwsjson11_deserializeDocumentHumanTaskUiSummaries(&sv.HumanTaskUiSummaries, value); err != nil { + case "ImageVersions": + if err := awsAwsjson11_deserializeDocumentImageVersions(&sv.ImageVersions, value); err != nil { return err } @@ -91621,7 +93181,7 @@ func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskU return nil } -func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **ListHyperParameterTuningJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListInferenceComponentsOutput(v **ListInferenceComponentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91634,17 +93194,17 @@ func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **Li return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHyperParameterTuningJobsOutput + var sv *ListInferenceComponentsOutput if *v == nil { - sv = &ListHyperParameterTuningJobsOutput{} + sv = &ListInferenceComponentsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "HyperParameterTuningJobSummaries": - if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummaries(&sv.HyperParameterTuningJobSummaries, value); err != nil { + case "InferenceComponents": + if err := awsAwsjson11_deserializeDocumentInferenceComponentSummaryList(&sv.InferenceComponents, value); err != nil { return err } @@ -91652,7 +93212,7 @@ func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **Li if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -91666,7 +93226,7 @@ func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **Li return nil } -func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListInferenceExperimentsOutput(v **ListInferenceExperimentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91679,17 +93239,17 @@ func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListImagesOutput + var sv *ListInferenceExperimentsOutput if *v == nil { - sv = &ListImagesOutput{} + sv = &ListInferenceExperimentsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Images": - if err := awsAwsjson11_deserializeDocumentImages(&sv.Images, value); err != nil { + case "InferenceExperiments": + if err := awsAwsjson11_deserializeDocumentInferenceExperimentList(&sv.InferenceExperiments, value); err != nil { return err } @@ -91711,7 +93271,7 @@ func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va return nil } -func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVersionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(v **ListInferenceRecommendationsJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91724,17 +93284,17 @@ func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVers return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListImageVersionsOutput + var sv *ListInferenceRecommendationsJobsOutput if *v == nil { - sv = &ListImageVersionsOutput{} + sv = &ListInferenceRecommendationsJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ImageVersions": - if err := awsAwsjson11_deserializeDocumentImageVersions(&sv.ImageVersions, value); err != nil { + case "InferenceRecommendationsJobs": + if err := awsAwsjson11_deserializeDocumentInferenceRecommendationsJobs(&sv.InferenceRecommendationsJobs, value); err != nil { return err } @@ -91756,7 +93316,7 @@ func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVers return nil } -func awsAwsjson11_deserializeOpDocumentListInferenceComponentsOutput(v **ListInferenceComponentsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobStepsOutput(v **ListInferenceRecommendationsJobStepsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91769,74 +93329,29 @@ func awsAwsjson11_deserializeOpDocumentListInferenceComponentsOutput(v **ListInf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListInferenceComponentsOutput + var sv *ListInferenceRecommendationsJobStepsOutput if *v == nil { - sv = &ListInferenceComponentsOutput{} + sv = &ListInferenceRecommendationsJobStepsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "InferenceComponents": - if err := awsAwsjson11_deserializeDocumentInferenceComponentSummaryList(&sv.InferenceComponents, value); err != nil { - return err - } - case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListInferenceExperimentsOutput(v **ListInferenceExperimentsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListInferenceExperimentsOutput - if *v == nil { - sv = &ListInferenceExperimentsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "InferenceExperiments": - if err := awsAwsjson11_deserializeDocumentInferenceExperimentList(&sv.InferenceExperiments, value); err != nil { + case "Steps": + if err := awsAwsjson11_deserializeDocumentInferenceRecommendationsJobSteps(&sv.Steps, value); err != nil { return err } - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - default: _, _ = key, value @@ -91846,7 +93361,7 @@ func awsAwsjson11_deserializeOpDocumentListInferenceExperimentsOutput(v **ListIn return nil } -func awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(v **ListInferenceRecommendationsJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **ListLabelingJobsForWorkteamOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91859,17 +93374,17 @@ func awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListInferenceRecommendationsJobsOutput + var sv *ListLabelingJobsForWorkteamOutput if *v == nil { - sv = &ListInferenceRecommendationsJobsOutput{} + sv = &ListLabelingJobsForWorkteamOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "InferenceRecommendationsJobs": - if err := awsAwsjson11_deserializeDocumentInferenceRecommendationsJobs(&sv.InferenceRecommendationsJobs, value); err != nil { + case "LabelingJobSummaryList": + if err := awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummaryList(&sv.LabelingJobSummaryList, value); err != nil { return err } @@ -91891,52 +93406,7 @@ func awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(v return nil } -func awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobStepsOutput(v **ListInferenceRecommendationsJobStepsOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *ListInferenceRecommendationsJobStepsOutput - if *v == nil { - sv = &ListInferenceRecommendationsJobStepsOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "Steps": - if err := awsAwsjson11_deserializeDocumentInferenceRecommendationsJobSteps(&sv.Steps, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **ListLabelingJobsForWorkteamOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91949,9 +93419,9 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **Lis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListLabelingJobsForWorkteamOutput + var sv *ListLabelingJobsOutput if *v == nil { - sv = &ListLabelingJobsForWorkteamOutput{} + sv = &ListLabelingJobsOutput{} } else { sv = *v } @@ -91959,7 +93429,7 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **Lis for key, value := range shape { switch key { case "LabelingJobSummaryList": - if err := awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummaryList(&sv.LabelingJobSummaryList, value); err != nil { + if err := awsAwsjson11_deserializeDocumentLabelingJobSummaryList(&sv.LabelingJobSummaryList, value); err != nil { return err } @@ -91981,7 +93451,7 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **Lis return nil } -func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(v **ListLineageGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -91994,17 +93464,17 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListLabelingJobsOutput + var sv *ListLineageGroupsOutput if *v == nil { - sv = &ListLabelingJobsOutput{} + sv = &ListLineageGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "LabelingJobSummaryList": - if err := awsAwsjson11_deserializeDocumentLabelingJobSummaryList(&sv.LabelingJobSummaryList, value); err != nil { + case "LineageGroupSummaries": + if err := awsAwsjson11_deserializeDocumentLineageGroupSummaries(&sv.LineageGroupSummaries, value); err != nil { return err } @@ -92026,7 +93496,7 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJo return nil } -func awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(v **ListLineageGroupsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListMlflowTrackingServersOutput(v **ListMlflowTrackingServersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -92039,20 +93509,15 @@ func awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(v **ListLineageGr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListLineageGroupsOutput + var sv *ListMlflowTrackingServersOutput if *v == nil { - sv = &ListLineageGroupsOutput{} + sv = &ListMlflowTrackingServersOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "LineageGroupSummaries": - if err := awsAwsjson11_deserializeDocumentLineageGroupSummaries(&sv.LineageGroupSummaries, value); err != nil { - return err - } - case "NextToken": if value != nil { jtv, ok := value.(string) @@ -92062,6 +93527,11 @@ func awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(v **ListLineageGr sv.NextToken = ptr.String(jtv) } + case "TrackingServerSummaries": + if err := awsAwsjson11_deserializeDocumentTrackingServerSummaryList(&sv.TrackingServerSummaries, value); err != nil { + return err + } + default: _, _ = key, value @@ -94031,6 +95501,46 @@ func awsAwsjson11_deserializeOpDocumentStartInferenceExperimentOutput(v **StartI return nil } +func awsAwsjson11_deserializeOpDocumentStartMlflowTrackingServerOutput(v **StartMlflowTrackingServerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *StartMlflowTrackingServerOutput + if *v == nil { + sv = &StartMlflowTrackingServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TrackingServerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerArn to be of type string, got %T instead", value) + } + sv.TrackingServerArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentStartPipelineExecutionOutput(v **StartPipelineExecutionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -94111,6 +95621,46 @@ func awsAwsjson11_deserializeOpDocumentStopInferenceExperimentOutput(v **StopInf return nil } +func awsAwsjson11_deserializeOpDocumentStopMlflowTrackingServerOutput(v **StopMlflowTrackingServerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *StopMlflowTrackingServerOutput + if *v == nil { + sv = &StopMlflowTrackingServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TrackingServerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerArn to be of type string, got %T instead", value) + } + sv.TrackingServerArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentStopPipelineExecutionOutput(v **StopPipelineExecutionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -94871,6 +96421,46 @@ func awsAwsjson11_deserializeOpDocumentUpdateInferenceExperimentOutput(v **Updat return nil } +func awsAwsjson11_deserializeOpDocumentUpdateMlflowTrackingServerOutput(v **UpdateMlflowTrackingServerOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateMlflowTrackingServerOutput + if *v == nil { + sv = &UpdateMlflowTrackingServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TrackingServerArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrackingServerArn to be of type string, got %T instead", value) + } + sv.TrackingServerArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentUpdateModelCardOutput(v **UpdateModelCardOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/sagemaker/generated.json b/service/sagemaker/generated.json index b1522da76b0..eb5d29042cf 100644 --- a/service/sagemaker/generated.json +++ b/service/sagemaker/generated.json @@ -44,6 +44,7 @@ "api_op_CreateInferenceExperiment.go", "api_op_CreateInferenceRecommendationsJob.go", "api_op_CreateLabelingJob.go", + "api_op_CreateMlflowTrackingServer.go", "api_op_CreateModel.go", "api_op_CreateModelBiasJobDefinition.go", "api_op_CreateModelCard.go", @@ -57,6 +58,7 @@ "api_op_CreateNotebookInstanceLifecycleConfig.go", "api_op_CreatePipeline.go", "api_op_CreatePresignedDomainUrl.go", + "api_op_CreatePresignedMlflowTrackingServerUrl.go", "api_op_CreatePresignedNotebookInstanceUrl.go", "api_op_CreateProcessingJob.go", "api_op_CreateProject.go", @@ -97,6 +99,7 @@ "api_op_DeleteImageVersion.go", "api_op_DeleteInferenceComponent.go", "api_op_DeleteInferenceExperiment.go", + "api_op_DeleteMlflowTrackingServer.go", "api_op_DeleteModel.go", "api_op_DeleteModelBiasJobDefinition.go", "api_op_DeleteModelCard.go", @@ -154,6 +157,7 @@ "api_op_DescribeInferenceRecommendationsJob.go", "api_op_DescribeLabelingJob.go", "api_op_DescribeLineageGroup.go", + "api_op_DescribeMlflowTrackingServer.go", "api_op_DescribeModel.go", "api_op_DescribeModelBiasJobDefinition.go", "api_op_DescribeModelCard.go", @@ -229,6 +233,7 @@ "api_op_ListLabelingJobs.go", "api_op_ListLabelingJobsForWorkteam.go", "api_op_ListLineageGroups.go", + "api_op_ListMlflowTrackingServers.go", "api_op_ListModelBiasJobDefinitions.go", "api_op_ListModelCardExportJobs.go", "api_op_ListModelCardVersions.go", @@ -275,6 +280,7 @@ "api_op_SendPipelineExecutionStepSuccess.go", "api_op_StartEdgeDeploymentStage.go", "api_op_StartInferenceExperiment.go", + "api_op_StartMlflowTrackingServer.go", "api_op_StartMonitoringSchedule.go", "api_op_StartNotebookInstance.go", "api_op_StartPipelineExecution.go", @@ -286,6 +292,7 @@ "api_op_StopInferenceExperiment.go", "api_op_StopInferenceRecommendationsJob.go", "api_op_StopLabelingJob.go", + "api_op_StopMlflowTrackingServer.go", "api_op_StopMonitoringSchedule.go", "api_op_StopNotebookInstance.go", "api_op_StopPipelineExecution.go", @@ -313,6 +320,7 @@ "api_op_UpdateInferenceComponent.go", "api_op_UpdateInferenceComponentRuntimeConfig.go", "api_op_UpdateInferenceExperiment.go", + "api_op_UpdateMlflowTrackingServer.go", "api_op_UpdateModelCard.go", "api_op_UpdateModelPackage.go", "api_op_UpdateMonitoringAlert.go", diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 511b5013de1..c30d6c0fa0e 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -1942,6 +1942,61 @@ func (m *awsAwsjson11_serializeOpCreateLabelingJob) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpCreateMlflowTrackingServer struct { +} + +func (*awsAwsjson11_serializeOpCreateMlflowTrackingServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateMlflowTrackingServer) 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.(*CreateMlflowTrackingServerInput) + _ = 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.CreateMlflowTrackingServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateMlflowTrackingServerInput(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 { } @@ -2657,6 +2712,61 @@ func (m *awsAwsjson11_serializeOpCreatePresignedDomainUrl) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpCreatePresignedMlflowTrackingServerUrl struct { +} + +func (*awsAwsjson11_serializeOpCreatePresignedMlflowTrackingServerUrl) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreatePresignedMlflowTrackingServerUrl) 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.(*CreatePresignedMlflowTrackingServerUrlInput) + _ = 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.CreatePresignedMlflowTrackingServerUrl") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreatePresignedMlflowTrackingServerUrlInput(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 { } @@ -4857,6 +4967,61 @@ func (m *awsAwsjson11_serializeOpDeleteInferenceExperiment) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeleteMlflowTrackingServer struct { +} + +func (*awsAwsjson11_serializeOpDeleteMlflowTrackingServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeleteMlflowTrackingServer) 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.(*DeleteMlflowTrackingServerInput) + _ = 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.DeleteMlflowTrackingServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeleteMlflowTrackingServerInput(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 { } @@ -7992,6 +8157,61 @@ func (m *awsAwsjson11_serializeOpDescribeLineageGroup) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeMlflowTrackingServer struct { +} + +func (*awsAwsjson11_serializeOpDescribeMlflowTrackingServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeMlflowTrackingServer) 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.(*DescribeMlflowTrackingServerInput) + _ = 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.DescribeMlflowTrackingServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeMlflowTrackingServerInput(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 { } @@ -12117,69 +12337,14 @@ func (m *awsAwsjson11_serializeOpListLineageGroups) HandleSerialize(ctx context. 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_serializeOpListModelCardExportJobs struct { +type awsAwsjson11_serializeOpListMlflowTrackingServers struct { } -func (*awsAwsjson11_serializeOpListModelCardExportJobs) ID() string { +func (*awsAwsjson11_serializeOpListMlflowTrackingServers) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListModelCardExportJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListMlflowTrackingServers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12187,7 +12352,7 @@ func (m *awsAwsjson11_serializeOpListModelCardExportJobs) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelCardExportJobsInput) + input, ok := in.Parameters.(*ListMlflowTrackingServersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12208,10 +12373,10 @@ func (m *awsAwsjson11_serializeOpListModelCardExportJobs) HandleSerialize(ctx co 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.ListModelCardExportJobs") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListMlflowTrackingServers") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListModelCardExportJobsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListMlflowTrackingServersInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12227,14 +12392,14 @@ func (m *awsAwsjson11_serializeOpListModelCardExportJobs) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListModelCards struct { +type awsAwsjson11_serializeOpListModelBiasJobDefinitions struct { } -func (*awsAwsjson11_serializeOpListModelCards) ID() string { +func (*awsAwsjson11_serializeOpListModelBiasJobDefinitions) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListModelCards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +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) @@ -12242,7 +12407,7 @@ func (m *awsAwsjson11_serializeOpListModelCards) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelCardsInput) + input, ok := in.Parameters.(*ListModelBiasJobDefinitionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12263,10 +12428,10 @@ func (m *awsAwsjson11_serializeOpListModelCards) HandleSerialize(ctx context.Con 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.ListModelCards") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelBiasJobDefinitions") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListModelCardsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListModelBiasJobDefinitionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12282,14 +12447,14 @@ func (m *awsAwsjson11_serializeOpListModelCards) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListModelCardVersions struct { +type awsAwsjson11_serializeOpListModelCardExportJobs struct { } -func (*awsAwsjson11_serializeOpListModelCardVersions) ID() string { +func (*awsAwsjson11_serializeOpListModelCardExportJobs) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListModelCardVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListModelCardExportJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12297,7 +12462,117 @@ func (m *awsAwsjson11_serializeOpListModelCardVersions) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelCardVersionsInput) + input, ok := in.Parameters.(*ListModelCardExportJobsInput) + _ = 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.ListModelCardExportJobs") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListModelCardExportJobsInput(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_serializeOpListModelCards struct { +} + +func (*awsAwsjson11_serializeOpListModelCards) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListModelCards) 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.(*ListModelCardsInput) + _ = 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.ListModelCards") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListModelCardsInput(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_serializeOpListModelCardVersions struct { +} + +func (*awsAwsjson11_serializeOpListModelCardVersions) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListModelCardVersions) 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.(*ListModelCardVersionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14647,6 +14922,61 @@ func (m *awsAwsjson11_serializeOpStartInferenceExperiment) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpStartMlflowTrackingServer struct { +} + +func (*awsAwsjson11_serializeOpStartMlflowTrackingServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpStartMlflowTrackingServer) 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.(*StartMlflowTrackingServerInput) + _ = 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.StartMlflowTrackingServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentStartMlflowTrackingServerInput(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 { } @@ -15252,6 +15582,61 @@ func (m *awsAwsjson11_serializeOpStopLabelingJob) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpStopMlflowTrackingServer struct { +} + +func (*awsAwsjson11_serializeOpStopMlflowTrackingServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpStopMlflowTrackingServer) 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.(*StopMlflowTrackingServerInput) + _ = 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.StopMlflowTrackingServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentStopMlflowTrackingServerInput(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 { } @@ -16737,6 +17122,61 @@ func (m *awsAwsjson11_serializeOpUpdateInferenceExperiment) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpUpdateMlflowTrackingServer struct { +} + +func (*awsAwsjson11_serializeOpUpdateMlflowTrackingServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateMlflowTrackingServer) 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.(*UpdateMlflowTrackingServerInput) + _ = 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.UpdateMlflowTrackingServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateMlflowTrackingServerInput(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_serializeOpUpdateModelCard struct { } @@ -19291,6 +19731,18 @@ func awsAwsjson11_serializeDocumentClarifyTextConfig(v *types.ClarifyTextConfig, return nil } +func awsAwsjson11_serializeDocumentClusterEbsVolumeConfig(v *types.ClusterEbsVolumeConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.VolumeSizeInGB != nil { + ok := object.Key("VolumeSizeInGB") + ok.Integer(*v.VolumeSizeInGB) + } + + return nil +} + func awsAwsjson11_serializeDocumentClusterInstanceGroupSpecification(v *types.ClusterInstanceGroupSpecification, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -19310,6 +19762,13 @@ func awsAwsjson11_serializeDocumentClusterInstanceGroupSpecification(v *types.Cl ok.String(*v.InstanceGroupName) } + if v.InstanceStorageConfigs != nil { + ok := object.Key("InstanceStorageConfigs") + if err := awsAwsjson11_serializeDocumentClusterInstanceStorageConfigs(v.InstanceStorageConfigs, ok); err != nil { + return err + } + } + if len(v.InstanceType) > 0 { ok := object.Key("InstanceType") ok.String(string(v.InstanceType)) @@ -19343,6 +19802,40 @@ func awsAwsjson11_serializeDocumentClusterInstanceGroupSpecifications(v []types. return nil } +func awsAwsjson11_serializeDocumentClusterInstanceStorageConfig(v types.ClusterInstanceStorageConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.ClusterInstanceStorageConfigMemberEbsVolumeConfig: + av := object.Key("EbsVolumeConfig") + if err := awsAwsjson11_serializeDocumentClusterEbsVolumeConfig(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsAwsjson11_serializeDocumentClusterInstanceStorageConfigs(v []types.ClusterInstanceStorageConfig, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if vv := v[i]; vv == nil { + continue + } + if err := awsAwsjson11_serializeDocumentClusterInstanceStorageConfig(v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentClusterLifeCycleConfig(v *types.ClusterLifeCycleConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -30028,6 +30521,55 @@ func awsAwsjson11_serializeOpDocumentCreateLabelingJobInput(v *CreateLabelingJob return nil } +func awsAwsjson11_serializeOpDocumentCreateMlflowTrackingServerInput(v *CreateMlflowTrackingServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ArtifactStoreUri != nil { + ok := object.Key("ArtifactStoreUri") + ok.String(*v.ArtifactStoreUri) + } + + if v.AutomaticModelRegistration != nil { + ok := object.Key("AutomaticModelRegistration") + ok.Boolean(*v.AutomaticModelRegistration) + } + + if v.MlflowVersion != nil { + ok := object.Key("MlflowVersion") + ok.String(*v.MlflowVersion) + } + + 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 + } + } + + if v.TrackingServerName != nil { + ok := object.Key("TrackingServerName") + ok.String(*v.TrackingServerName) + } + + if len(v.TrackingServerSize) > 0 { + ok := object.Key("TrackingServerSize") + ok.String(string(v.TrackingServerSize)) + } + + if v.WeeklyMaintenanceWindowStart != nil { + ok := object.Key("WeeklyMaintenanceWindowStart") + ok.String(*v.WeeklyMaintenanceWindowStart) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreateModelBiasJobDefinitionInput(v *CreateModelBiasJobDefinitionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -30776,6 +31318,28 @@ func awsAwsjson11_serializeOpDocumentCreatePresignedDomainUrlInput(v *CreatePres return nil } +func awsAwsjson11_serializeOpDocumentCreatePresignedMlflowTrackingServerUrlInput(v *CreatePresignedMlflowTrackingServerUrlInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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.TrackingServerName != nil { + ok := object.Key("TrackingServerName") + ok.String(*v.TrackingServerName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreatePresignedNotebookInstanceUrlInput(v *CreatePresignedNotebookInstanceUrlInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -31898,6 +32462,18 @@ func awsAwsjson11_serializeOpDocumentDeleteInferenceExperimentInput(v *DeleteInf return nil } +func awsAwsjson11_serializeOpDocumentDeleteMlflowTrackingServerInput(v *DeleteMlflowTrackingServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TrackingServerName != nil { + ok := object.Key("TrackingServerName") + ok.String(*v.TrackingServerName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteModelBiasJobDefinitionInput(v *DeleteModelBiasJobDefinitionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -32691,6 +33267,18 @@ func awsAwsjson11_serializeOpDocumentDescribeLineageGroupInput(v *DescribeLineag return nil } +func awsAwsjson11_serializeOpDocumentDescribeMlflowTrackingServerInput(v *DescribeMlflowTrackingServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TrackingServerName != nil { + ok := object.Key("TrackingServerName") + ok.String(*v.TrackingServerName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeModelBiasJobDefinitionInput(v *DescribeModelBiasJobDefinitionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -35099,6 +35687,53 @@ func awsAwsjson11_serializeOpDocumentListLineageGroupsInput(v *ListLineageGroups return nil } +func awsAwsjson11_serializeOpDocumentListMlflowTrackingServersInput(v *ListMlflowTrackingServersInput, 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.MlflowVersion != nil { + ok := object.Key("MlflowVersion") + ok.String(*v.MlflowVersion) + } + + 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.TrackingServerStatus) > 0 { + ok := object.Key("TrackingServerStatus") + ok.String(string(v.TrackingServerStatus)) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentListModelBiasJobDefinitionsInput(v *ListModelBiasJobDefinitionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -36983,6 +37618,18 @@ func awsAwsjson11_serializeOpDocumentStartInferenceExperimentInput(v *StartInfer return nil } +func awsAwsjson11_serializeOpDocumentStartMlflowTrackingServerInput(v *StartMlflowTrackingServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TrackingServerName != nil { + ok := object.Key("TrackingServerName") + ok.String(*v.TrackingServerName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentStartMonitoringScheduleInput(v *StartMonitoringScheduleInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -37180,6 +37827,18 @@ func awsAwsjson11_serializeOpDocumentStopLabelingJobInput(v *StopLabelingJobInpu return nil } +func awsAwsjson11_serializeOpDocumentStopMlflowTrackingServerInput(v *StopMlflowTrackingServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TrackingServerName != nil { + ok := object.Key("TrackingServerName") + ok.String(*v.TrackingServerName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentStopMonitoringScheduleInput(v *StopMonitoringScheduleInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -37916,6 +38575,38 @@ func awsAwsjson11_serializeOpDocumentUpdateInferenceExperimentInput(v *UpdateInf return nil } +func awsAwsjson11_serializeOpDocumentUpdateMlflowTrackingServerInput(v *UpdateMlflowTrackingServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ArtifactStoreUri != nil { + ok := object.Key("ArtifactStoreUri") + ok.String(*v.ArtifactStoreUri) + } + + if v.AutomaticModelRegistration != nil { + ok := object.Key("AutomaticModelRegistration") + ok.Boolean(*v.AutomaticModelRegistration) + } + + if v.TrackingServerName != nil { + ok := object.Key("TrackingServerName") + ok.String(*v.TrackingServerName) + } + + if len(v.TrackingServerSize) > 0 { + ok := object.Key("TrackingServerSize") + ok.String(string(v.TrackingServerSize)) + } + + if v.WeeklyMaintenanceWindowStart != nil { + ok := object.Key("WeeklyMaintenanceWindowStart") + ok.String(*v.WeeklyMaintenanceWindowStart) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateModelCardInput(v *UpdateModelCardInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/sagemaker/snapshot/api_op_CreateMlflowTrackingServer.go.snap b/service/sagemaker/snapshot/api_op_CreateMlflowTrackingServer.go.snap new file mode 100644 index 00000000000..61575753ee0 --- /dev/null +++ b/service/sagemaker/snapshot/api_op_CreateMlflowTrackingServer.go.snap @@ -0,0 +1,36 @@ +CreateMlflowTrackingServer + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot/api_op_CreatePresignedMlflowTrackingServerUrl.go.snap b/service/sagemaker/snapshot/api_op_CreatePresignedMlflowTrackingServerUrl.go.snap new file mode 100644 index 00000000000..7a7a641148b --- /dev/null +++ b/service/sagemaker/snapshot/api_op_CreatePresignedMlflowTrackingServerUrl.go.snap @@ -0,0 +1,36 @@ +CreatePresignedMlflowTrackingServerUrl + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot/api_op_DeleteMlflowTrackingServer.go.snap b/service/sagemaker/snapshot/api_op_DeleteMlflowTrackingServer.go.snap new file mode 100644 index 00000000000..d5363a0a9bf --- /dev/null +++ b/service/sagemaker/snapshot/api_op_DeleteMlflowTrackingServer.go.snap @@ -0,0 +1,36 @@ +DeleteMlflowTrackingServer + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot/api_op_DescribeMlflowTrackingServer.go.snap b/service/sagemaker/snapshot/api_op_DescribeMlflowTrackingServer.go.snap new file mode 100644 index 00000000000..78f03cee329 --- /dev/null +++ b/service/sagemaker/snapshot/api_op_DescribeMlflowTrackingServer.go.snap @@ -0,0 +1,36 @@ +DescribeMlflowTrackingServer + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot/api_op_ListMlflowTrackingServers.go.snap b/service/sagemaker/snapshot/api_op_ListMlflowTrackingServers.go.snap new file mode 100644 index 00000000000..b9517576f64 --- /dev/null +++ b/service/sagemaker/snapshot/api_op_ListMlflowTrackingServers.go.snap @@ -0,0 +1,35 @@ +ListMlflowTrackingServers + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot/api_op_StartMlflowTrackingServer.go.snap b/service/sagemaker/snapshot/api_op_StartMlflowTrackingServer.go.snap new file mode 100644 index 00000000000..9876c21fa28 --- /dev/null +++ b/service/sagemaker/snapshot/api_op_StartMlflowTrackingServer.go.snap @@ -0,0 +1,36 @@ +StartMlflowTrackingServer + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot/api_op_StopMlflowTrackingServer.go.snap b/service/sagemaker/snapshot/api_op_StopMlflowTrackingServer.go.snap new file mode 100644 index 00000000000..b9317807a67 --- /dev/null +++ b/service/sagemaker/snapshot/api_op_StopMlflowTrackingServer.go.snap @@ -0,0 +1,36 @@ +StopMlflowTrackingServer + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot/api_op_UpdateMlflowTrackingServer.go.snap b/service/sagemaker/snapshot/api_op_UpdateMlflowTrackingServer.go.snap new file mode 100644 index 00000000000..0ef956165c7 --- /dev/null +++ b/service/sagemaker/snapshot/api_op_UpdateMlflowTrackingServer.go.snap @@ -0,0 +1,36 @@ +UpdateMlflowTrackingServer + Initialize stack step + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + Serialize stack step + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemaker/snapshot_test.go b/service/sagemaker/snapshot_test.go index 0efd374a9f4..c23e3d2ba0d 100644 --- a/service/sagemaker/snapshot_test.go +++ b/service/sagemaker/snapshot_test.go @@ -482,6 +482,18 @@ func TestCheckSnapshot_CreateLabelingJob(t *testing.T) { } } +func TestCheckSnapshot_CreateMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateModel(t *testing.T) { svc := New(Options{}) _, err := svc.CreateModel(context.Background(), nil, func(o *Options) { @@ -638,6 +650,18 @@ func TestCheckSnapshot_CreatePresignedDomainUrl(t *testing.T) { } } +func TestCheckSnapshot_CreatePresignedMlflowTrackingServerUrl(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreatePresignedMlflowTrackingServerUrl(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreatePresignedMlflowTrackingServerUrl") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreatePresignedNotebookInstanceUrl(t *testing.T) { svc := New(Options{}) _, err := svc.CreatePresignedNotebookInstanceUrl(context.Background(), nil, func(o *Options) { @@ -1118,6 +1142,18 @@ func TestCheckSnapshot_DeleteInferenceExperiment(t *testing.T) { } } +func TestCheckSnapshot_DeleteMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteModel(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteModel(context.Background(), nil, func(o *Options) { @@ -1802,6 +1838,18 @@ func TestCheckSnapshot_DescribeLineageGroup(t *testing.T) { } } +func TestCheckSnapshot_DescribeMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DescribeMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DescribeModel(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeModel(context.Background(), nil, func(o *Options) { @@ -2702,6 +2750,18 @@ func TestCheckSnapshot_ListLineageGroups(t *testing.T) { } } +func TestCheckSnapshot_ListMlflowTrackingServers(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListMlflowTrackingServers(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListMlflowTrackingServers") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListModelBiasJobDefinitions(t *testing.T) { svc := New(Options{}) _, err := svc.ListModelBiasJobDefinitions(context.Background(), nil, func(o *Options) { @@ -3254,6 +3314,18 @@ func TestCheckSnapshot_StartInferenceExperiment(t *testing.T) { } } +func TestCheckSnapshot_StartMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.StartMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "StartMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_StartMonitoringSchedule(t *testing.T) { svc := New(Options{}) _, err := svc.StartMonitoringSchedule(context.Background(), nil, func(o *Options) { @@ -3386,6 +3458,18 @@ func TestCheckSnapshot_StopLabelingJob(t *testing.T) { } } +func TestCheckSnapshot_StopMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.StopMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "StopMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_StopMonitoringSchedule(t *testing.T) { svc := New(Options{}) _, err := svc.StopMonitoringSchedule(context.Background(), nil, func(o *Options) { @@ -3710,6 +3794,18 @@ func TestCheckSnapshot_UpdateInferenceExperiment(t *testing.T) { } } +func TestCheckSnapshot_UpdateMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_UpdateModelCard(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateModelCard(context.Background(), nil, func(o *Options) { @@ -4321,6 +4417,18 @@ func TestUpdateSnapshot_CreateLabelingJob(t *testing.T) { } } +func TestUpdateSnapshot_CreateMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateModel(t *testing.T) { svc := New(Options{}) _, err := svc.CreateModel(context.Background(), nil, func(o *Options) { @@ -4477,6 +4585,18 @@ func TestUpdateSnapshot_CreatePresignedDomainUrl(t *testing.T) { } } +func TestUpdateSnapshot_CreatePresignedMlflowTrackingServerUrl(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreatePresignedMlflowTrackingServerUrl(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreatePresignedMlflowTrackingServerUrl") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreatePresignedNotebookInstanceUrl(t *testing.T) { svc := New(Options{}) _, err := svc.CreatePresignedNotebookInstanceUrl(context.Background(), nil, func(o *Options) { @@ -4957,6 +5077,18 @@ func TestUpdateSnapshot_DeleteInferenceExperiment(t *testing.T) { } } +func TestUpdateSnapshot_DeleteMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteModel(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteModel(context.Background(), nil, func(o *Options) { @@ -5641,6 +5773,18 @@ func TestUpdateSnapshot_DescribeLineageGroup(t *testing.T) { } } +func TestUpdateSnapshot_DescribeMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DescribeMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DescribeModel(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeModel(context.Background(), nil, func(o *Options) { @@ -6541,6 +6685,18 @@ func TestUpdateSnapshot_ListLineageGroups(t *testing.T) { } } +func TestUpdateSnapshot_ListMlflowTrackingServers(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListMlflowTrackingServers(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListMlflowTrackingServers") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListModelBiasJobDefinitions(t *testing.T) { svc := New(Options{}) _, err := svc.ListModelBiasJobDefinitions(context.Background(), nil, func(o *Options) { @@ -7093,6 +7249,18 @@ func TestUpdateSnapshot_StartInferenceExperiment(t *testing.T) { } } +func TestUpdateSnapshot_StartMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.StartMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "StartMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_StartMonitoringSchedule(t *testing.T) { svc := New(Options{}) _, err := svc.StartMonitoringSchedule(context.Background(), nil, func(o *Options) { @@ -7225,6 +7393,18 @@ func TestUpdateSnapshot_StopLabelingJob(t *testing.T) { } } +func TestUpdateSnapshot_StopMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.StopMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "StopMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_StopMonitoringSchedule(t *testing.T) { svc := New(Options{}) _, err := svc.StopMonitoringSchedule(context.Background(), nil, func(o *Options) { @@ -7549,6 +7729,18 @@ func TestUpdateSnapshot_UpdateInferenceExperiment(t *testing.T) { } } +func TestUpdateSnapshot_UpdateMlflowTrackingServer(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateMlflowTrackingServer(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateMlflowTrackingServer") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_UpdateModelCard(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateModelCard(context.Background(), nil, func(o *Options) { diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index f9e090f7c6f..a3108f06a73 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -3470,6 +3470,25 @@ func (InstanceType) Values() []InstanceType { } } +type IsTrackingServerActive string + +// Enum values for IsTrackingServerActive +const ( + IsTrackingServerActiveActive IsTrackingServerActive = "Active" + IsTrackingServerActiveInactive IsTrackingServerActive = "Inactive" +) + +// Values returns all known values for IsTrackingServerActive. Note that this can +// be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (IsTrackingServerActive) Values() []IsTrackingServerActive { + return []IsTrackingServerActive{ + "Active", + "Inactive", + } +} + type JobType string // Enum values for JobType @@ -6331,6 +6350,27 @@ func (SortPipelinesBy) Values() []SortPipelinesBy { } } +type SortTrackingServerBy string + +// Enum values for SortTrackingServerBy +const ( + SortTrackingServerByName SortTrackingServerBy = "Name" + SortTrackingServerByCreationTime SortTrackingServerBy = "CreationTime" + SortTrackingServerByStatus SortTrackingServerBy = "Status" +) + +// Values returns all known values for SortTrackingServerBy. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (SortTrackingServerBy) Values() []SortTrackingServerBy { + return []SortTrackingServerBy{ + "Name", + "CreationTime", + "Status", + } +} + type SortTrialComponentsBy string // Enum values for SortTrialComponentsBy @@ -6803,6 +6843,76 @@ func (ThroughputMode) Values() []ThroughputMode { } } +type TrackingServerSize string + +// Enum values for TrackingServerSize +const ( + TrackingServerSizeS TrackingServerSize = "Small" + TrackingServerSizeM TrackingServerSize = "Medium" + TrackingServerSizeL TrackingServerSize = "Large" +) + +// Values returns all known values for TrackingServerSize. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (TrackingServerSize) Values() []TrackingServerSize { + return []TrackingServerSize{ + "Small", + "Medium", + "Large", + } +} + +type TrackingServerStatus string + +// Enum values for TrackingServerStatus +const ( + TrackingServerStatusCreating TrackingServerStatus = "Creating" + TrackingServerStatusCreated TrackingServerStatus = "Created" + TrackingServerStatusCreateFailed TrackingServerStatus = "CreateFailed" + TrackingServerStatusUpdating TrackingServerStatus = "Updating" + TrackingServerStatusUpdated TrackingServerStatus = "Updated" + TrackingServerStatusUpdateFailed TrackingServerStatus = "UpdateFailed" + TrackingServerStatusDeleting TrackingServerStatus = "Deleting" + TrackingServerStatusDeleteFailed TrackingServerStatus = "DeleteFailed" + TrackingServerStatusStopping TrackingServerStatus = "Stopping" + TrackingServerStatusStopped TrackingServerStatus = "Stopped" + TrackingServerStatusStopFailed TrackingServerStatus = "StopFailed" + TrackingServerStatusStarting TrackingServerStatus = "Starting" + TrackingServerStatusStarted TrackingServerStatus = "Started" + TrackingServerStatusStartFailed TrackingServerStatus = "StartFailed" + TrackingServerStatusMaintenanceInProgress TrackingServerStatus = "MaintenanceInProgress" + TrackingServerStatusMaintenanceComplete TrackingServerStatus = "MaintenanceComplete" + TrackingServerStatusMaintenanceFailed TrackingServerStatus = "MaintenanceFailed" +) + +// Values returns all known values for TrackingServerStatus. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (TrackingServerStatus) Values() []TrackingServerStatus { + return []TrackingServerStatus{ + "Creating", + "Created", + "CreateFailed", + "Updating", + "Updated", + "UpdateFailed", + "Deleting", + "DeleteFailed", + "Stopping", + "Stopped", + "StopFailed", + "Starting", + "Started", + "StartFailed", + "MaintenanceInProgress", + "MaintenanceComplete", + "MaintenanceFailed", + } +} + type TrafficRoutingConfigType string // Enum values for TrafficRoutingConfigType diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index e110e841eeb..11b6ad12037 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -3132,6 +3132,22 @@ type ClarifyTextConfig struct { noSmithyDocumentSerde } +// Defines the configuration for attaching an additional Amazon Elastic Block +// Store (EBS) volume to each instance of the SageMaker HyperPod cluster instance +// group. +type ClusterEbsVolumeConfig struct { + + // The size in gigabytes (GB) of the additional EBS volume to be attached to the + // instances in the SageMaker HyperPod cluster instance group. The additional EBS + // volume is attached to each instance within the SageMaker HyperPod cluster + // instance group and mounted to /opt/sagemaker . + // + // This member is required. + VolumeSizeInGB *int32 + + noSmithyDocumentSerde +} + // Details of an instance group in a SageMaker HyperPod cluster. type ClusterInstanceGroupDetails struct { @@ -3145,6 +3161,10 @@ type ClusterInstanceGroupDetails struct { // The name of the instance group of a SageMaker HyperPod cluster. InstanceGroupName *string + // The additional storage configurations for the instances in the SageMaker + // HyperPod cluster instance group. + InstanceStorageConfigs []ClusterInstanceStorageConfig + // The instance type of the instance group of a SageMaker HyperPod cluster. InstanceType ClusterInstanceType @@ -3196,6 +3216,10 @@ type ClusterInstanceGroupSpecification struct { // This member is required. LifeCycleConfig *ClusterLifeCycleConfig + // Specifies the additional storage configurations for the instances in the + // SageMaker HyperPod cluster instance group. + InstanceStorageConfigs []ClusterInstanceStorageConfig + // Specifies the value for Threads per core. For instance types that support // multithreading, you can specify 1 for disabling multithreading and 2 for // enabling multithreading. For instance types that doesn't support multithreading, @@ -3238,6 +3262,28 @@ type ClusterInstanceStatusDetails struct { noSmithyDocumentSerde } +// Defines the configuration for attaching additional storage to the instances in +// the SageMaker HyperPod cluster instance group. +// +// The following types satisfy this interface: +// +// ClusterInstanceStorageConfigMemberEbsVolumeConfig +type ClusterInstanceStorageConfig interface { + isClusterInstanceStorageConfig() +} + +// Defines the configuration for attaching additional Amazon Elastic Block Store +// (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. +// The additional EBS volume is attached to each instance within the SageMaker +// HyperPod cluster instance group and mounted to /opt/sagemaker . +type ClusterInstanceStorageConfigMemberEbsVolumeConfig struct { + Value ClusterEbsVolumeConfig + + noSmithyDocumentSerde +} + +func (*ClusterInstanceStorageConfigMemberEbsVolumeConfig) isClusterInstanceStorageConfig() {} + // The lifecycle configuration for a SageMaker HyperPod cluster. type ClusterLifeCycleConfig struct { @@ -3275,6 +3321,10 @@ type ClusterNodeDetails struct { // The status of the instance. InstanceStatus *ClusterInstanceStatusDetails + // The configurations of additional storage specified to the instance group where + // the instance (node) is launched. + InstanceStorageConfigs []ClusterInstanceStorageConfig + // The type of the instance. InstanceType ClusterInstanceType @@ -16074,7 +16124,7 @@ type SourceAlgorithmSpecification struct { } // A list of IP address ranges ([CIDRs] ). Used to create an allow list of IP addresses -// for a private workforce. Workers will only be able to login to their worker +// for a private workforce. Workers will only be able to log in to their worker // portal from an IP address within this range. By default, a workforce isn't // restricted to specific IP addresses. // @@ -16321,7 +16371,7 @@ type StudioLifecycleConfigDetails struct { noSmithyDocumentSerde } -// Describes a work team of a vendor that does the a labelling job. +// Describes a work team of a vendor that does the labelling job. type SubscribedWorkteam struct { // The Amazon Resource Name (ARN) of the vendor that you have subscribed. @@ -16964,6 +17014,33 @@ type TimeSeriesTransformations struct { noSmithyDocumentSerde } +// The summary of the tracking server to list. +type TrackingServerSummary struct { + + // The creation time of a listed tracking server. + CreationTime *time.Time + + // The activity status of a listed tracking server. + IsActive IsTrackingServerActive + + // The last modified time of a listed tracking server. + LastModifiedTime *time.Time + + // The MLflow version used for a listed tracking server. + MlflowVersion *string + + // The ARN of a listed tracking server. + TrackingServerArn *string + + // The name of a listed tracking server. + TrackingServerName *string + + // The creation status of a listed tracking server. + TrackingServerStatus TrackingServerStatus + + noSmithyDocumentSerde +} + // Defines the traffic pattern of the load test. type TrafficPattern struct { @@ -18796,7 +18873,7 @@ type Workforce struct { // The VPC object you use to create or update a workforce. type WorkforceVpcConfigRequest struct { - // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must + // The VPC security group IDs, in the form sg-xxxxxxxx . The security groups must // be for the same VPC as specified in the subnet. SecurityGroupIds []string @@ -18919,6 +18996,7 @@ type UnknownUnionMember struct { func (*UnknownUnionMember) isAutoMLProblemTypeConfig() {} func (*UnknownUnionMember) isAutoMLProblemTypeResolvedAttributes() {} +func (*UnknownUnionMember) isClusterInstanceStorageConfig() {} func (*UnknownUnionMember) isCollectionConfig() {} func (*UnknownUnionMember) isCustomFileSystem() {} func (*UnknownUnionMember) isCustomFileSystemConfig() {} diff --git a/service/sagemaker/types/types_exported_test.go b/service/sagemaker/types/types_exported_test.go index d0c63bbf829..d1cd8e371b3 100644 --- a/service/sagemaker/types/types_exported_test.go +++ b/service/sagemaker/types/types_exported_test.go @@ -63,6 +63,24 @@ func ExampleAutoMLProblemTypeResolvedAttributes_outputUsage() { var _ *types.TextGenerationResolvedAttributes var _ *types.TabularResolvedAttributes +func ExampleClusterInstanceStorageConfig_outputUsage() { + var union types.ClusterInstanceStorageConfig + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ClusterInstanceStorageConfigMemberEbsVolumeConfig: + _ = v.Value // Value is types.ClusterEbsVolumeConfig + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.ClusterEbsVolumeConfig + func ExampleCollectionConfig_outputUsage() { var union types.CollectionConfig // type switches can be used to check the union value diff --git a/service/sagemaker/validators.go b/service/sagemaker/validators.go index ccae5dc892d..18144557fa7 100644 --- a/service/sagemaker/validators.go +++ b/service/sagemaker/validators.go @@ -710,6 +710,26 @@ func (m *validateOpCreateLabelingJob) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpCreateMlflowTrackingServer struct { +} + +func (*validateOpCreateMlflowTrackingServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateMlflowTrackingServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateMlflowTrackingServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateMlflowTrackingServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateModelBiasJobDefinition struct { } @@ -970,6 +990,26 @@ func (m *validateOpCreatePresignedDomainUrl) HandleInitialize(ctx context.Contex return next.HandleInitialize(ctx, in) } +type validateOpCreatePresignedMlflowTrackingServerUrl struct { +} + +func (*validateOpCreatePresignedMlflowTrackingServerUrl) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreatePresignedMlflowTrackingServerUrl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreatePresignedMlflowTrackingServerUrlInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreatePresignedMlflowTrackingServerUrlInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreatePresignedNotebookInstanceUrl struct { } @@ -1770,6 +1810,26 @@ func (m *validateOpDeleteInferenceExperiment) HandleInitialize(ctx context.Conte return next.HandleInitialize(ctx, in) } +type validateOpDeleteMlflowTrackingServer struct { +} + +func (*validateOpDeleteMlflowTrackingServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteMlflowTrackingServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteMlflowTrackingServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteMlflowTrackingServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteModelBiasJobDefinition struct { } @@ -2910,6 +2970,26 @@ func (m *validateOpDescribeLineageGroup) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDescribeMlflowTrackingServer struct { +} + +func (*validateOpDescribeMlflowTrackingServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeMlflowTrackingServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeMlflowTrackingServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeMlflowTrackingServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeModelBiasJobDefinition struct { } @@ -4090,6 +4170,26 @@ func (m *validateOpStartInferenceExperiment) HandleInitialize(ctx context.Contex return next.HandleInitialize(ctx, in) } +type validateOpStartMlflowTrackingServer struct { +} + +func (*validateOpStartMlflowTrackingServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStartMlflowTrackingServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StartMlflowTrackingServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStartMlflowTrackingServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpStartMonitoringSchedule struct { } @@ -4310,6 +4410,26 @@ func (m *validateOpStopLabelingJob) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpStopMlflowTrackingServer struct { +} + +func (*validateOpStopMlflowTrackingServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStopMlflowTrackingServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StopMlflowTrackingServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStopMlflowTrackingServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpStopMonitoringSchedule struct { } @@ -4850,6 +4970,26 @@ func (m *validateOpUpdateInferenceExperiment) HandleInitialize(ctx context.Conte return next.HandleInitialize(ctx, in) } +type validateOpUpdateMlflowTrackingServer struct { +} + +func (*validateOpUpdateMlflowTrackingServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateMlflowTrackingServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateMlflowTrackingServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateMlflowTrackingServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateModelCard struct { } @@ -5310,6 +5450,10 @@ func addOpCreateLabelingJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateLabelingJob{}, middleware.After) } +func addOpCreateMlflowTrackingServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateMlflowTrackingServer{}, middleware.After) +} + func addOpCreateModelBiasJobDefinitionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateModelBiasJobDefinition{}, middleware.After) } @@ -5362,6 +5506,10 @@ func addOpCreatePresignedDomainUrlValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpCreatePresignedDomainUrl{}, middleware.After) } +func addOpCreatePresignedMlflowTrackingServerUrlValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreatePresignedMlflowTrackingServerUrl{}, middleware.After) +} + func addOpCreatePresignedNotebookInstanceUrlValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreatePresignedNotebookInstanceUrl{}, middleware.After) } @@ -5522,6 +5670,10 @@ func addOpDeleteInferenceExperimentValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpDeleteInferenceExperiment{}, middleware.After) } +func addOpDeleteMlflowTrackingServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteMlflowTrackingServer{}, middleware.After) +} + func addOpDeleteModelBiasJobDefinitionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteModelBiasJobDefinition{}, middleware.After) } @@ -5750,6 +5902,10 @@ func addOpDescribeLineageGroupValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDescribeLineageGroup{}, middleware.After) } +func addOpDescribeMlflowTrackingServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeMlflowTrackingServer{}, middleware.After) +} + func addOpDescribeModelBiasJobDefinitionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeModelBiasJobDefinition{}, middleware.After) } @@ -5986,6 +6142,10 @@ func addOpStartInferenceExperimentValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpStartInferenceExperiment{}, middleware.After) } +func addOpStartMlflowTrackingServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStartMlflowTrackingServer{}, middleware.After) +} + func addOpStartMonitoringScheduleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartMonitoringSchedule{}, middleware.After) } @@ -6030,6 +6190,10 @@ func addOpStopLabelingJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStopLabelingJob{}, middleware.After) } +func addOpStopMlflowTrackingServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStopMlflowTrackingServer{}, middleware.After) +} + func addOpStopMonitoringScheduleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStopMonitoringSchedule{}, middleware.After) } @@ -6138,6 +6302,10 @@ func addOpUpdateInferenceExperimentValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpUpdateInferenceExperiment{}, middleware.After) } +func addOpUpdateMlflowTrackingServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateMlflowTrackingServer{}, middleware.After) +} + func addOpUpdateModelCardValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateModelCard{}, middleware.After) } @@ -7173,6 +7341,21 @@ func validateClarifyTextConfig(v *types.ClarifyTextConfig) error { } } +func validateClusterEbsVolumeConfig(v *types.ClusterEbsVolumeConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClusterEbsVolumeConfig"} + if v.VolumeSizeInGB == nil { + invalidParams.Add(smithy.NewErrParamRequired("VolumeSizeInGB")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateClusterInstanceGroupSpecification(v *types.ClusterInstanceGroupSpecification) error { if v == nil { return nil @@ -7197,6 +7380,11 @@ func validateClusterInstanceGroupSpecification(v *types.ClusterInstanceGroupSpec if v.ExecutionRole == nil { invalidParams.Add(smithy.NewErrParamRequired("ExecutionRole")) } + if v.InstanceStorageConfigs != nil { + if err := validateClusterInstanceStorageConfigs(v.InstanceStorageConfigs); err != nil { + invalidParams.AddNested("InstanceStorageConfigs", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7221,6 +7409,42 @@ func validateClusterInstanceGroupSpecifications(v []types.ClusterInstanceGroupSp } } +func validateClusterInstanceStorageConfig(v types.ClusterInstanceStorageConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClusterInstanceStorageConfig"} + switch uv := v.(type) { + case *types.ClusterInstanceStorageConfigMemberEbsVolumeConfig: + if err := validateClusterEbsVolumeConfig(&uv.Value); err != nil { + invalidParams.AddNested("[EbsVolumeConfig]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateClusterInstanceStorageConfigs(v []types.ClusterInstanceStorageConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClusterInstanceStorageConfigs"} + for i := range v { + if err := validateClusterInstanceStorageConfig(v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateClusterLifeCycleConfig(v *types.ClusterLifeCycleConfig) error { if v == nil { return nil @@ -13472,6 +13696,32 @@ func validateOpCreateLabelingJobInput(v *CreateLabelingJobInput) error { } } +func validateOpCreateMlflowTrackingServerInput(v *CreateMlflowTrackingServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateMlflowTrackingServerInput"} + if v.TrackingServerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackingServerName")) + } + if v.ArtifactStoreUri == nil { + invalidParams.Add(smithy.NewErrParamRequired("ArtifactStoreUri")) + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateModelBiasJobDefinitionInput(v *CreateModelBiasJobDefinitionInput) error { if v == nil { return nil @@ -13945,6 +14195,21 @@ func validateOpCreatePresignedDomainUrlInput(v *CreatePresignedDomainUrlInput) e } } +func validateOpCreatePresignedMlflowTrackingServerUrlInput(v *CreatePresignedMlflowTrackingServerUrlInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreatePresignedMlflowTrackingServerUrlInput"} + if v.TrackingServerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackingServerName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreatePresignedNotebookInstanceUrlInput(v *CreatePresignedNotebookInstanceUrlInput) error { if v == nil { return nil @@ -14833,6 +15098,21 @@ func validateOpDeleteInferenceExperimentInput(v *DeleteInferenceExperimentInput) } } +func validateOpDeleteMlflowTrackingServerInput(v *DeleteMlflowTrackingServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteMlflowTrackingServerInput"} + if v.TrackingServerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackingServerName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteModelBiasJobDefinitionInput(v *DeleteModelBiasJobDefinitionInput) error { if v == nil { return nil @@ -15724,6 +16004,21 @@ func validateOpDescribeLineageGroupInput(v *DescribeLineageGroupInput) error { } } +func validateOpDescribeMlflowTrackingServerInput(v *DescribeMlflowTrackingServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeMlflowTrackingServerInput"} + if v.TrackingServerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackingServerName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeModelBiasJobDefinitionInput(v *DescribeModelBiasJobDefinitionInput) error { if v == nil { return nil @@ -16702,6 +16997,21 @@ func validateOpStartInferenceExperimentInput(v *StartInferenceExperimentInput) e } } +func validateOpStartMlflowTrackingServerInput(v *StartMlflowTrackingServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StartMlflowTrackingServerInput"} + if v.TrackingServerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackingServerName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpStartMonitoringScheduleInput(v *StartMonitoringScheduleInput) error { if v == nil { return nil @@ -16896,6 +17206,21 @@ func validateOpStopLabelingJobInput(v *StopLabelingJobInput) error { } } +func validateOpStopMlflowTrackingServerInput(v *StopMlflowTrackingServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StopMlflowTrackingServerInput"} + if v.TrackingServerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackingServerName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpStopMonitoringScheduleInput(v *StopMonitoringScheduleInput) error { if v == nil { return nil @@ -17405,6 +17730,21 @@ func validateOpUpdateInferenceExperimentInput(v *UpdateInferenceExperimentInput) } } +func validateOpUpdateMlflowTrackingServerInput(v *UpdateMlflowTrackingServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateMlflowTrackingServerInput"} + if v.TrackingServerName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrackingServerName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateModelCardInput(v *UpdateModelCardInput) error { if v == nil { return nil diff --git a/service/shield/endpoints.go b/service/shield/endpoints.go index 2c5daedd59f..7c8fde21144 100644 --- a/service/shield/endpoints.go +++ b/service/shield/endpoints.go @@ -442,7 +442,7 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { + if _PartitionResult.SupportsFIPS == true { uriString := func() string { var out strings.Builder out.WriteString("https://shield-fips.")