From ff8dabc74a8f0eedb26a21e4fa986ebf8879870b Mon Sep 17 00:00:00 2001 From: sagemaker-bot Date: Wed, 2 Jul 2025 10:09:40 +0000 Subject: [PATCH] Daily Sync with Botocore v1.39.1 on 2025/07/02 --- sample/sagemaker/2017-07-24/service-2.json | 54 +++++++--------------- src/sagemaker_core/main/resources.py | 6 +-- 2 files changed, 20 insertions(+), 40 deletions(-) diff --git a/sample/sagemaker/2017-07-24/service-2.json b/sample/sagemaker/2017-07-24/service-2.json index ff6e8302..f0871750 100644 --- a/sample/sagemaker/2017-07-24/service-2.json +++ b/sample/sagemaker/2017-07-24/service-2.json @@ -9707,10 +9707,7 @@ }, "CreateClusterRequest":{ "type":"structure", - "required":[ - "ClusterName", - "InstanceGroups" - ], + "required":["ClusterName"], "members":{ "ClusterName":{ "shape":"ClusterName", @@ -13421,8 +13418,7 @@ }, "DeleteFlowDefinitionResponse":{ "type":"structure", - "members":{ - } + "members":{} }, "DeleteHubContentReferenceRequest":{ "type":"structure", @@ -13495,8 +13491,7 @@ }, "DeleteHumanTaskUiResponse":{ "type":"structure", - "members":{ - } + "members":{} }, "DeleteHyperParameterTuningJobRequest":{ "type":"structure", @@ -13520,8 +13515,7 @@ }, "DeleteImageResponse":{ "type":"structure", - "members":{ - } + "members":{} }, "DeleteImageVersionRequest":{ "type":"structure", @@ -13543,8 +13537,7 @@ }, "DeleteImageVersionResponse":{ "type":"structure", - "members":{ - } + "members":{} }, "DeleteInferenceComponentInput":{ "type":"structure", @@ -13822,8 +13815,7 @@ }, "DeleteTagsOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "DeleteTrialComponentRequest":{ "type":"structure", @@ -13892,8 +13884,7 @@ }, "DeleteWorkforceResponse":{ "type":"structure", - "members":{ - } + "members":{} }, "DeleteWorkteamRequest":{ "type":"structure", @@ -19180,13 +19171,11 @@ "DisableProfiler":{"type":"boolean"}, "DisableSagemakerServicecatalogPortfolioInput":{ "type":"structure", - "members":{ - } + "members":{} }, "DisableSagemakerServicecatalogPortfolioOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "DisassociateAdditionalCodeRepositories":{"type":"boolean"}, "DisassociateDefaultCodeRepository":{"type":"boolean"}, @@ -20033,13 +20022,11 @@ }, "EnableSagemakerServicecatalogPortfolioInput":{ "type":"structure", - "members":{ - } + "members":{} }, "EnableSagemakerServicecatalogPortfolioOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "EnableSessionTagChaining":{ "type":"boolean", @@ -21556,8 +21543,7 @@ }, "GetSagemakerServicecatalogPortfolioStatusInput":{ "type":"structure", - "members":{ - } + "members":{} }, "GetSagemakerServicecatalogPortfolioStatusOutput":{ "type":"structure", @@ -25649,7 +25635,7 @@ }, "MaxResults":{ "shape":"MaxResults", - "documentation":"

Set the maximum number of SageMaker HyperPod clusters to list.

" + "documentation":"

Specifies the maximum number of clusters to evaluate for the operation (not necessarily the number of matching items). After SageMaker processes the number of clusters up to MaxResults, it stops the operation and returns the matching clusters up to that point. If all the matching clusters are desired, SageMaker will go through all the clusters until NextToken is empty.

" }, "NameContains":{ "shape":"NameContains", @@ -31857,8 +31843,7 @@ }, "MonitoringParquetDatasetFormat":{ "type":"structure", - "members":{ - }, + "members":{}, "documentation":"

Represents the Parquet dataset format used when running a monitoring job.

" }, "MonitoringProblemType":{ @@ -41700,10 +41685,7 @@ }, "UpdateClusterRequest":{ "type":"structure", - "required":[ - "ClusterName", - "InstanceGroups" - ], + "required":["ClusterName"], "members":{ "ClusterName":{ "shape":"ClusterNameOrArn", @@ -42794,13 +42776,11 @@ }, "UpdateNotebookInstanceLifecycleConfigOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "UpdateNotebookInstanceOutput":{ "type":"structure", - "members":{ - } + "members":{} }, "UpdatePartnerAppRequest":{ "type":"structure", diff --git a/src/sagemaker_core/main/resources.py b/src/sagemaker_core/main/resources.py index c32ff310..ab3ce80f 100644 --- a/src/sagemaker_core/main/resources.py +++ b/src/sagemaker_core/main/resources.py @@ -3275,7 +3275,7 @@ def wrapper(*args, **kwargs): def create( cls, cluster_name: str, - instance_groups: List[shapes.ClusterInstanceGroupSpecification], + instance_groups: Optional[List[shapes.ClusterInstanceGroupSpecification]] = Unassigned(), vpc_config: Optional[shapes.VpcConfig] = Unassigned(), tags: Optional[List[shapes.Tag]] = Unassigned(), orchestrator: Optional[shapes.ClusterOrchestrator] = Unassigned(), @@ -3437,7 +3437,7 @@ def refresh( @Base.add_validate_call def update( self, - instance_groups: List[shapes.ClusterInstanceGroupSpecification], + instance_groups: Optional[List[shapes.ClusterInstanceGroupSpecification]] = Unassigned(), node_recovery: Optional[str] = Unassigned(), instance_groups_to_delete: Optional[List[str]] = Unassigned(), ) -> Optional["Cluster"]: @@ -3664,7 +3664,7 @@ def get_all( Parameters: creation_time_after: Set a start time for the time range during which you want to list SageMaker HyperPod clusters. Timestamps are formatted according to the ISO 8601 standard. Acceptable formats include: YYYY-MM-DDThh:mm:ss.sssTZD (UTC), for example, 2014-10-01T20:30:00.000Z YYYY-MM-DDThh:mm:ss.sssTZD (with offset), for example, 2014-10-01T12:30:00.000-08:00 YYYY-MM-DD, for example, 2014-10-01 Unix time in seconds, for example, 1412195400. This is also referred to as Unix Epoch time and represents the number of seconds since midnight, January 1, 1970 UTC. For more information about the timestamp format, see Timestamp in the Amazon Web Services Command Line Interface User Guide. creation_time_before: Set an end time for the time range during which you want to list SageMaker HyperPod clusters. A filter that returns nodes in a SageMaker HyperPod cluster created before the specified time. The acceptable formats are the same as the timestamp formats for CreationTimeAfter. For more information about the timestamp format, see Timestamp in the Amazon Web Services Command Line Interface User Guide. - max_results: Set the maximum number of SageMaker HyperPod clusters to list. + max_results: Specifies the maximum number of clusters to evaluate for the operation (not necessarily the number of matching items). After SageMaker processes the number of clusters up to MaxResults, it stops the operation and returns the matching clusters up to that point. If all the matching clusters are desired, SageMaker will go through all the clusters until NextToken is empty. name_contains: Set the maximum number of instances to print in the list. next_token: Set the next token to retrieve the list of SageMaker HyperPod clusters. sort_by: The field by which to sort results. The default value is CREATION_TIME.