Skip to content

Commit 8df0fe0

Browse files
author
awstools
committed
feat(client-sagemaker): Updated field validation requirements for InstanceGroups.
1 parent 9637dba commit 8df0fe0

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

clients/client-sagemaker/src/commands/CreateClusterCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
3737
* const client = new SageMakerClient(config);
3838
* const input = { // CreateClusterRequest
3939
* ClusterName: "STRING_VALUE", // required
40-
* InstanceGroups: [ // ClusterInstanceGroupSpecifications // required
40+
* InstanceGroups: [ // ClusterInstanceGroupSpecifications
4141
* { // ClusterInstanceGroupSpecification
4242
* InstanceCount: Number("int"), // required
4343
* InstanceGroupName: "STRING_VALUE", // required

clients/client-sagemaker/src/commands/UpdateClusterCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface UpdateClusterCommandOutput extends UpdateClusterResponse, __Met
3737
* const client = new SageMakerClient(config);
3838
* const input = { // UpdateClusterRequest
3939
* ClusterName: "STRING_VALUE", // required
40-
* InstanceGroups: [ // ClusterInstanceGroupSpecifications // required
40+
* InstanceGroups: [ // ClusterInstanceGroupSpecifications
4141
* { // ClusterInstanceGroupSpecification
4242
* InstanceCount: Number("int"), // required
4343
* InstanceGroupName: "STRING_VALUE", // required

clients/client-sagemaker/src/models/models_1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ export interface CreateClusterRequest {
11671167
* <p>The instance groups to be created in the SageMaker HyperPod cluster.</p>
11681168
* @public
11691169
*/
1170-
InstanceGroups: ClusterInstanceGroupSpecification[] | undefined;
1170+
InstanceGroups?: ClusterInstanceGroupSpecification[] | undefined;
11711171

11721172
/**
11731173
* <p>Specifies the Amazon Virtual Private Cloud (VPC) that is associated with the Amazon SageMaker HyperPod cluster. You can control access to and from your resources by configuring your VPC. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html">Give SageMaker access to resources in your Amazon VPC</a>.</p> <note> <p>When your Amazon VPC and subnets support IPv6, network communications differ based on the cluster orchestration platform:</p> <ul> <li> <p>Slurm-orchestrated clusters automatically configure nodes with dual IPv6 and IPv4 addresses, allowing immediate IPv6 network communications.</p> </li> <li> <p>In Amazon EKS-orchestrated clusters, nodes receive dual-stack addressing, but pods can only use IPv6 when the Amazon EKS cluster is explicitly IPv6-enabled. For information about deploying an IPv6 Amazon EKS cluster, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/deploy-ipv6-cluster.html#_deploy_an_ipv6_cluster_with_eksctl">Amazon EKS IPv6 Cluster Deployment</a>.</p> </li> </ul> <p>Additional resources for IPv6 configuration:</p> <ul> <li> <p>For information about adding IPv6 support to your VPC, see to <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-migrate-ipv6.html">IPv6 Support for VPC</a>.</p> </li> <li> <p>For information about creating a new IPv6-compatible VPC, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/create-vpc.html">Amazon VPC Creation Guide</a>.</p> </li> <li> <p>To configure SageMaker HyperPod with a custom Amazon VPC, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-prerequisites.html#sagemaker-hyperpod-prerequisites-optional-vpc">Custom Amazon VPC Setup for SageMaker HyperPod</a>.</p> </li> </ul> </note>

clients/client-sagemaker/src/models/models_4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export interface ListClustersRequest {
356356
CreationTimeBefore?: Date | undefined;
357357

358358
/**
359-
* <p>Set the maximum number of SageMaker HyperPod clusters to list.</p>
359+
* <p>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 <code>MaxResults</code>, 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 <code>NextToken</code> is empty.</p>
360360
* @public
361361
*/
362362
MaxResults?: number | undefined;

clients/client-sagemaker/src/models/models_5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ export interface UpdateClusterRequest {
612612
* <p>Specify the instance groups to update.</p>
613613
* @public
614614
*/
615-
InstanceGroups: ClusterInstanceGroupSpecification[] | undefined;
615+
InstanceGroups?: ClusterInstanceGroupSpecification[] | undefined;
616616

617617
/**
618618
* <p>The node recovery mode to be applied to the SageMaker HyperPod cluster.</p>

codegen/sdk-codegen/aws-models/sagemaker.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10744,8 +10744,7 @@
1074410744
"target": "com.amazonaws.sagemaker#ClusterInstanceGroupSpecifications",
1074510745
"traits": {
1074610746
"smithy.api#clientOptional": {},
10747-
"smithy.api#documentation": "<p>The instance groups to be created in the SageMaker HyperPod cluster.</p>",
10748-
"smithy.api#required": {}
10747+
"smithy.api#documentation": "<p>The instance groups to be created in the SageMaker HyperPod cluster.</p>"
1074910748
}
1075010749
},
1075110750
"VpcConfig": {
@@ -40623,7 +40622,7 @@
4062340622
"MaxResults": {
4062440623
"target": "com.amazonaws.sagemaker#MaxResults",
4062540624
"traits": {
40626-
"smithy.api#documentation": "<p>Set the maximum number of SageMaker HyperPod clusters to list.</p>"
40625+
"smithy.api#documentation": "<p>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 <code>MaxResults</code>, 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 <code>NextToken</code> is empty.</p>"
4062740626
}
4062840627
},
4062940628
"NameContains": {
@@ -74254,8 +74253,7 @@
7425474253
"target": "com.amazonaws.sagemaker#ClusterInstanceGroupSpecifications",
7425574254
"traits": {
7425674255
"smithy.api#clientOptional": {},
74257-
"smithy.api#documentation": "<p>Specify the instance groups to update.</p>",
74258-
"smithy.api#required": {}
74256+
"smithy.api#documentation": "<p>Specify the instance groups to update.</p>"
7425974257
}
7426074258
},
7426174259
"NodeRecovery": {

0 commit comments

Comments
 (0)