Skip to content

Commit 5656161

Browse files
committed
Generate with SDK-V2 model
1 parent 7cc17d3 commit 5656161

File tree

216 files changed

+11636
-45684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+11636
-45684
lines changed

Diff for: Makefile

+14-14
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ SHELL := /bin/bash # Use bash syntax
33
# Set up variables
44
GO111MODULE=on
55

6-
AWS_SDK_GO_VERSION="$(shell echo $(shell go list -m -f '{{.Version}}' github.com/aws/aws-sdk-go))"
7-
AWS_SDK_GO_VERSIONED_PATH="$(shell echo github.com/aws/aws-sdk-go@$(AWS_SDK_GO_VERSION))"
8-
SAGEMAKER_API_PATH="$(shell echo $(shell go env GOPATH))/pkg/mod/$(AWS_SDK_GO_VERSIONED_PATH)/service/sagemaker/sagemakeriface"
6+
AWS_SDK_GO_VERSION="$(shell echo $(shell go list -m -f '{{.Version}}' github.com/aws/aws-sdk-go-v2/service/sagemaker))"
7+
AWS_SDK_GO_VERSIONED_PATH="$(shell echo github.com/aws/aws-sdk-go-v2/service/sagemaker@$(AWS_SDK_GO_VERSION))"
8+
SAGEMAKER_API_PATH="$(shell echo $(shell go env GOPATH))/pkg/mod/$(AWS_SDK_GO_VERSIONED_PATH)"
99
SERVICE_CONTROLLER_SRC_PATH="$(shell pwd)"
1010

1111
# Build ldflags
@@ -29,19 +29,19 @@ test-cover: | mocks ## Run code tests with resources coverage
2929
$(GOCOVER) -func=coverage.out
3030
$(GOCOVER) -html=coverage.out -o coverage.html
3131

32-
clean-mocks: ## Remove mocks directory
33-
rm -r test/mocks
32+
# clean-mocks: ## Remove mocks directory
33+
# rm -r test/mocks
3434

35-
install-mockery:
36-
@test/scripts/install-mockery.sh
35+
# install-mockery:
36+
# @test/scripts/install-mockery.sh
3737

38-
mocks: install-mockery ## Build mocks
39-
go get -d $(AWS_SDK_GO_VERSIONED_PATH)
40-
@echo "building mocks for $(SAGEMAKER_API_PATH) ... "
41-
@pushd $(SAGEMAKER_API_PATH) 1>/dev/null; \
42-
$(SERVICE_CONTROLLER_SRC_PATH)/test/bin/mockery --all --dir=. --output=$(SERVICE_CONTROLLER_SRC_PATH)/test/mocks/aws-sdk-go/sagemaker/ ; \
43-
popd 1>/dev/null;
44-
@echo "ok."
38+
# mocks: install-mockery ## Build mocks
39+
# go get $(AWS_SDK_GO_VERSIONED_PATH)
40+
# @echo "building mocks for $(SAGEMAKER_API_PATH) ... "
41+
# @pushd $(SAGEMAKER_API_PATH) 1>/dev/null; \
42+
# $(SERVICE_CONTROLLER_SRC_PATH)/test/bin/mockery --all --dir=. --output=$(SERVICE_CONTROLLER_SRC_PATH)/test/mocks/aws-sdk-go-v2/sagemaker/ ; \
43+
# popd 1>/dev/null;
44+
# @echo "ok."
4545

4646

4747
help: ## Show this help.

Diff for: apis/v1alpha1/ack-generate-metadata.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-01-23T02:33:10Z"
3-
build_hash: 2442aa071c05fcdf54841e63abd5f91d1951e152
2+
build_date: "2025-01-29T22:47:14Z"
3+
build_hash: 634207939ba4ab832b026e060feafa8769fc7300
44
go_version: go1.23.5
5-
version: v0.41.0
6-
api_directory_checksum: 476c2a15949ae95e3cefcc07b7eb39de6cd7548b
5+
version: v0.40.0-14-g6342079-dirty
6+
api_directory_checksum: 2fbcb7bfbb89a3bcb1183b6cd93d48c415efd837
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.50.15
8+
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 708e5a5444203d25538466e7e1914c3869d5a93e
10+
file_checksum: 3ce013e635425f0a6d3f9070391f7dcc3b3a92c3
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

Diff for: apis/v1alpha1/domain.go

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/enums.go

+1,919-1,360
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/feature_group.go

+7-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/generator.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ operations:
1010
resource_name: TransformJob
1111
UpdateEndpoint:
1212
override_values:
13-
RetainAllVariantProperties: true
13+
RetainAllVariantProperties: aws.Bool(true)
1414
DescribeModelPackage:
1515
custom_check_required_fields_missing_method: customCheckRequiredFieldsMissingMethod
1616
StopHyperParameterTuningJob:
@@ -558,11 +558,11 @@ resources:
558558
- MissingParameter
559559
hooks:
560560
sdk_read_one_post_set_output:
561-
code: rm.customSetOutput(&resource{ko}, resp.MonitoringScheduleStatus)
561+
code: rm.customSetOutput(&resource{ko}, string(resp.MonitoringScheduleStatus))
562562
sdk_update_pre_build_request:
563563
template_path: common/sdk_update_pre_build_request.go.tpl
564564
sdk_update_post_set_output:
565-
code: rm.customSetOutput(&resource{ko}, aws.String("Pending"))
565+
code: rm.customSetOutput(&resource{ko}, string(svcsdktypes.ScheduleStatusPending))
566566
sdk_delete_pre_build_request:
567567
template_path: common/sdk_delete_pre_build_request.go.tpl
568568
sdk_delete_post_request:
@@ -1073,6 +1073,7 @@ ignore:
10731073
# - FeatureGroup
10741074
- FlowDefinition
10751075
- Hub
1076+
- HubContentReference
10761077
- HumanTaskUi
10771078
# - HyperParameterTuningJob
10781079
# - InferenceComponent
@@ -1082,6 +1083,7 @@ ignore:
10821083
- InferenceExperiment
10831084
- LabelingJob
10841085
# - Model
1086+
- MlflowTrackingServer
10851087
- ModelCard
10861088
- ModelCardExportJob
10871089
# - ModelBiasJobDefinition
@@ -1093,8 +1095,10 @@ ignore:
10931095
# - NotebookInstanceLifecycleConfig
10941096
# - NotebookInstance
10951097
# - Pipeline
1098+
- OptimizationJob
10961099
- PresignedDomainUrl
10971100
- PresignedNotebookInstanceUrl
1101+
- PresignedMlflowTrackingServerUrl
10981102
# - ProcessingJob
10991103
- Project
11001104
- Space

Diff for: apis/v1alpha1/inference_component.go

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/model_package.go

+20-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/notebook_instance.go

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/training_job.go

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/v1alpha1/transform_job.go

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)