Skip to content

Commit 818c00a

Browse files
authored
Generate with SDK-V2 model (#286)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 7cc17d3 commit 818c00a

File tree

205 files changed

+7170
-44831
lines changed

Some content is hidden

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

205 files changed

+7170
-44831
lines changed

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.
+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-02-05T01:55:20Z"
3+
build_hash: d2d639403dd853736e63c2bc1e3ca51251fd1bd1
44
go_version: go1.23.5
5-
version: v0.41.0
6-
api_directory_checksum: 476c2a15949ae95e3cefcc07b7eb39de6cd7548b
5+
version: v0.41.0-16-gd2d6394-dirty
6+
api_directory_checksum: 26b4c1bc0bd629425c62a8bedcc656e7e66ea63a
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: ee0fc44fc3f0dbad118ea064ae491f0559f3f42f
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/domain.go

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

apis/v1alpha1/enums.go

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

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.

apis/v1alpha1/generator.yaml

+35-6
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:
@@ -632,6 +632,10 @@ resources:
632632
sdk_update_post_set_output:
633633
code: rm.customSetOutput(&resource{ko})
634634
fields:
635+
InferenceSpecification:
636+
set:
637+
- method: Update
638+
ignore: to
635639
ModelPackageStatus:
636640
is_read_only: true
637641
print:
@@ -913,7 +917,7 @@ resources:
913917
code: rm.customDescribeUserProfileSetOutput(ko)
914918
sdk_update_pre_build_request:
915919
template_path: common/sdk_update_pre_build_request.go.tpl
916-
dk_delete_pre_build_request:
920+
sdk_delete_pre_build_request:
917921
template_path: common/sdk_delete_pre_build_request.go.tpl
918922
sdk_delete_post_request:
919923
template_path: common/sdk_delete_post_request.go.tpl
@@ -1073,6 +1077,7 @@ ignore:
10731077
# - FeatureGroup
10741078
- FlowDefinition
10751079
- Hub
1080+
- HubContentReference
10761081
- HumanTaskUi
10771082
# - HyperParameterTuningJob
10781083
# - InferenceComponent
@@ -1082,6 +1087,7 @@ ignore:
10821087
- InferenceExperiment
10831088
- LabelingJob
10841089
# - Model
1090+
- MlflowTrackingServer
10851091
- ModelCard
10861092
- ModelCardExportJob
10871093
# - ModelBiasJobDefinition
@@ -1093,8 +1099,10 @@ ignore:
10931099
# - NotebookInstanceLifecycleConfig
10941100
# - NotebookInstance
10951101
# - Pipeline
1102+
- OptimizationJob
10961103
- PresignedDomainUrl
10971104
- PresignedNotebookInstanceUrl
1105+
- PresignedMlflowTrackingServerUrl
10981106
# - ProcessingJob
10991107
- Project
11001108
- Space
@@ -1137,10 +1145,31 @@ ignore:
11371145
- CreateTrainingJobInput.AlgorithmSpecification.ContainerArguments
11381146
- CreateTrainingJobInput.AlgorithmSpecification.ContainerEntrypoint
11391147
- CreateTrainingJobInput.ExperimentConfig.RunName
1140-
- CreateTransformJobInput.ExperimentConfig.RunName
11411148
- CreateHyperParameterTuningJobInput.TrainingJobDefinition.Environment
1142-
- CreateHyperParameterTuningJobInput.TrainingJobDefinitions.Environment
11431149
- CreateHyperParameterTuningJobInput.HyperParameterTuningJobConfig.ResourceLimits.MaxRuntimeInSeconds
11441150
- CreateHyperParameterTuningJobInput.HyperParameterTuningJobConfig.TuningJobCompletionCriteria.BestObjectiveNotImproving
11451151
- CreateHyperParameterTuningJobInput.HyperParameterTuningJobConfig.TuningJobCompletionCriteria.ConvergenceDetected
1152+
- CreateDomainInput.TagPropagation
1153+
- CreateModelPackageInput.ModelCard
1154+
- CreateModelPackageInput.ModelLifeCycle
1155+
- CreateModelPackageInput.SecurityConfig
1156+
- CreateModelPackageInput.SourceUri
1157+
- CreateTrainingJobInput.SessionChainingConfig
1158+
- ContainerDefinition.AdditionalModelDataSources
1159+
- CreateDomainInput.DomainSettings.AmazonQSettings
1160+
- CreateUserProfileInput.UserSettings.CodeEditorAppSettings.AppLifecycleManagement
1161+
- CreateUserProfileInput.UserSettings.CodeEditorAppSettings.BuiltInLifecycleConfigArn
1162+
- CreateUserProfileInput.UserSettings.CodeEditorAppSettings.CustomImages
1163+
- CreateDomainInput.DefaultUserSettings.JupyterLabAppSettings.AppLifecycleManagement
1164+
- CreateDomainInput.DefaultUserSettings.JupyterLabAppSettings.BuiltInLifecycleConfigArn
1165+
- CreateDomainInput.DefaultUserSettings.JupyterLabAppSettings.EmrSettings
1166+
- CreateDomainInput.DefaultUserSettings.StudioWebPortalSettings
1167+
- CreateInferenceComponentInput.Specification.BaseInferenceComponentName
1168+
- ProductionVariant.InferenceAmiVersion
1169+
- CreateDomainInput.DefaultUserSettings.AutoMountHomeEFS
1170+
- SourceAlgorithm.ModelDataSource
1171+
- ModelPackageContainerDefinition.ModelDataSource
1172+
- S3ModelDataSource.HubAccessConfig
1173+
- S3ModelDataSource.ManifestS3Uri
1174+
11461175

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.

apis/v1alpha1/model_package.go

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

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.

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)