Skip to content

Commit 7b3a256

Browse files
Daily Sync with Botocore v1.41.0 on 2025/11/20 (#351)
1 parent b9e32ba commit 7b3a256

File tree

4 files changed

+77
-8
lines changed

4 files changed

+77
-8
lines changed

sample/sagemaker/2017-07-24/service-2.json

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11199,6 +11199,10 @@
1119911199
"shape":"Boolean",
1120011200
"documentation":"<p>Sets whether all model containers deployed to the endpoint are isolated. If they are, no inbound or outbound network calls can be made to or from the model containers.</p>",
1120111201
"box":true
11202+
},
11203+
"MetricsConfig":{
11204+
"shape":"MetricsConfig",
11205+
"documentation":"<p>The configuration parameters for utilization metrics.</p>"
1120211206
}
1120311207
}
1120411208
},
@@ -16621,6 +16625,10 @@
1662116625
"shape":"Boolean",
1662216626
"documentation":"<p>Indicates whether all model containers deployed to the endpoint are isolated. If they are, no inbound or outbound network calls can be made to or from the model containers.</p>",
1662316627
"box":true
16628+
},
16629+
"MetricsConfig":{
16630+
"shape":"MetricsConfig",
16631+
"documentation":"<p>The configuration parameters for utilization metrics.</p>"
1662416632
}
1662516633
}
1662616634
},
@@ -16696,6 +16704,10 @@
1669616704
"ShadowProductionVariants":{
1669716705
"shape":"ProductionVariantSummaryList",
1669816706
"documentation":"<p>An array of <a href=\"https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ProductionVariantSummary.html\">ProductionVariantSummary</a> objects, one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified on <code>ProductionVariants</code>.</p>"
16707+
},
16708+
"MetricsConfig":{
16709+
"shape":"MetricsConfig",
16710+
"documentation":"<p>The configuration parameters for utilization metrics.</p>"
1669916711
}
1670016712
}
1670116713
},
@@ -21268,6 +21280,10 @@
2126821280
},
2126921281
"EnableCaching":{"type":"boolean"},
2127021282
"EnableCapture":{"type":"boolean"},
21283+
"EnableEnhancedMetrics":{
21284+
"type":"boolean",
21285+
"box":true
21286+
},
2127121287
"EnableInfraCheck":{
2127221288
"type":"boolean",
2127321289
"box":true
@@ -31201,6 +31217,10 @@
3120131217
"min":1,
3120231218
"pattern":".+"
3120331219
},
31220+
"MetricPublishFrequencyInSeconds":{
31221+
"type":"integer",
31222+
"box":true
31223+
},
3120431224
"MetricRegex":{
3120531225
"type":"string",
3120631226
"max":500,
@@ -31231,6 +31251,20 @@
3123131251
"union":true
3123231252
},
3123331253
"MetricValue":{"type":"float"},
31254+
"MetricsConfig":{
31255+
"type":"structure",
31256+
"members":{
31257+
"EnableEnhancedMetrics":{
31258+
"shape":"EnableEnhancedMetrics",
31259+
"documentation":"<p>Specifies whether to enable enhanced metrics for the endpoint. Enhanced metrics provide utilization data at instance and container granularity. Container granularity is supported for Inference Components. The default is <code>False</code>.</p>"
31260+
},
31261+
"MetricPublishFrequencyInSeconds":{
31262+
"shape":"MetricPublishFrequencyInSeconds",
31263+
"documentation":"<p>The frequency, in seconds, at which utilization metrics are published to Amazon CloudWatch. The default is <code>60</code> seconds.</p>"
31264+
}
31265+
},
31266+
"documentation":"<p>The configuration for Utilization metrics.</p>"
31267+
},
3123431268
"MetricsSource":{
3123531269
"type":"structure",
3123631270
"required":[
@@ -38553,7 +38587,6 @@
3855338587
},
3855438588
"ResourceConfig":{
3855538589
"type":"structure",
38556-
"required":["VolumeSizeInGB"],
3855738590
"members":{
3855838591
"InstanceType":{
3855938592
"shape":"TrainingInstanceType",
@@ -38565,7 +38598,7 @@
3856538598
"box":true
3856638599
},
3856738600
"VolumeSizeInGB":{
38568-
"shape":"VolumeSizeInGB",
38601+
"shape":"OptionalVolumeSizeInGB",
3856938602
"documentation":"<p>The size of the ML storage volume that you want to provision. </p> <p>ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose <code>File</code> as the <code>TrainingInputMode</code> in the algorithm specification. </p> <p>When using an ML instance with <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html#nvme-ssd-volumes\">NVMe SSD volumes</a>, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include <code>ml.p4d</code>, <code>ml.g4dn</code>, and <code>ml.g5</code>. </p> <p>When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through <code>VolumeSizeInGB</code> in the <code>ResourceConfig</code> API. For example, ML instance families that use EBS volumes include <code>ml.c5</code> and <code>ml.p2</code>. </p> <p>To look up instance types and their instance storage types and volumes, see <a href=\"http://aws.amazon.com/ec2/instance-types/\">Amazon EC2 Instance Types</a>.</p> <p>To find the default local paths defined by the SageMaker training platform, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-train-storage.html\">Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs</a>.</p>",
3857038603
"box":true
3857138604
},
@@ -38837,10 +38870,10 @@
3883738870
},
3883838871
"GroupPatterns":{
3883938872
"shape":"GroupPatternsList",
38840-
"documentation":"<p>A list of AWS IAM Identity Center group patterns that should be assigned to the specified role. Group patterns support wildcard matching using <code>*</code>.</p>"
38873+
"documentation":"<p>A list of Amazon Web Services IAM Identity Center group patterns that should be assigned to the specified role. Group patterns support wildcard matching using <code>*</code>.</p>"
3884138874
}
3884238875
},
38843-
"documentation":"<p>Defines the mapping between an in-app role and the AWS IAM Identity Center group patterns that should be assigned to that role within the SageMaker Partner AI App.</p>"
38876+
"documentation":"<p>Defines the mapping between an in-app role and the Amazon Web Services IAM Identity Center group patterns that should be assigned to that role within the SageMaker Partner AI App.</p>"
3884438877
},
3884538878
"RoleGroupAssignmentsList":{
3884638879
"type":"list",

src/sagemaker_core/main/code_injection/shape_dag.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,6 +2526,7 @@
25262526
{"name": "ExecutionRoleArn", "shape": "RoleArn", "type": "string"},
25272527
{"name": "VpcConfig", "shape": "VpcConfig", "type": "structure"},
25282528
{"name": "EnableNetworkIsolation", "shape": "Boolean", "type": "boolean"},
2529+
{"name": "MetricsConfig", "shape": "MetricsConfig", "type": "structure"},
25292530
],
25302531
"type": "structure",
25312532
},
@@ -5044,6 +5045,7 @@
50445045
{"name": "ExecutionRoleArn", "shape": "RoleArn", "type": "string"},
50455046
{"name": "VpcConfig", "shape": "VpcConfig", "type": "structure"},
50465047
{"name": "EnableNetworkIsolation", "shape": "Boolean", "type": "boolean"},
5048+
{"name": "MetricsConfig", "shape": "MetricsConfig", "type": "structure"},
50475049
],
50485050
"type": "structure",
50495051
},
@@ -5075,6 +5077,7 @@
50755077
"shape": "ProductionVariantSummaryList",
50765078
"type": "list",
50775079
},
5080+
{"name": "MetricsConfig", "shape": "MetricsConfig", "type": "structure"},
50785081
],
50795082
"type": "structure",
50805083
},
@@ -11089,6 +11092,17 @@
1108911092
"type": "structure",
1109011093
},
1109111094
"MetricValues": {"member_shape": "Double", "member_type": "double", "type": "list"},
11095+
"MetricsConfig": {
11096+
"members": [
11097+
{"name": "EnableEnhancedMetrics", "shape": "EnableEnhancedMetrics", "type": "boolean"},
11098+
{
11099+
"name": "MetricPublishFrequencyInSeconds",
11100+
"shape": "MetricPublishFrequencyInSeconds",
11101+
"type": "integer",
11102+
},
11103+
],
11104+
"type": "structure",
11105+
},
1109211106
"MetricsSource": {
1109311107
"members": [
1109411108
{"name": "ContentType", "shape": "ContentType", "type": "string"},
@@ -14013,7 +14027,7 @@
1401314027
"members": [
1401414028
{"name": "InstanceType", "shape": "TrainingInstanceType", "type": "string"},
1401514029
{"name": "InstanceCount", "shape": "TrainingInstanceCount", "type": "integer"},
14016-
{"name": "VolumeSizeInGB", "shape": "VolumeSizeInGB", "type": "integer"},
14030+
{"name": "VolumeSizeInGB", "shape": "OptionalVolumeSizeInGB", "type": "integer"},
1401714031
{"name": "VolumeKmsKeyId", "shape": "KmsKeyId", "type": "string"},
1401814032
{
1401914033
"name": "KeepAlivePeriodInSeconds",

src/sagemaker_core/main/resources.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8885,6 +8885,7 @@ class Endpoint(Base):
88858885
pending_deployment_summary: Returns the summary of an in-progress deployment. This field is only returned when the endpoint is creating or updating with a new endpoint configuration.
88868886
explainer_config: The configuration parameters for an explainer.
88878887
shadow_production_variants: An array of ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified on ProductionVariants.
8888+
metrics_config: The configuration parameters for utilization metrics.
88888889

88898890
"""
88908891

@@ -8902,6 +8903,7 @@ class Endpoint(Base):
89028903
pending_deployment_summary: Optional[shapes.PendingDeploymentSummary] = Unassigned()
89038904
explainer_config: Optional[shapes.ExplainerConfig] = Unassigned()
89048905
shadow_production_variants: Optional[List[shapes.ProductionVariantSummary]] = Unassigned()
8906+
metrics_config: Optional[shapes.MetricsConfig] = Unassigned()
89058907

89068908
def get_name(self) -> str:
89078909
attributes = vars(self)
@@ -9686,6 +9688,7 @@ class EndpointConfig(Base):
96869688
execution_role_arn: The Amazon Resource Name (ARN) of the IAM role that you assigned to the endpoint configuration.
96879689
vpc_config:
96889690
enable_network_isolation: Indicates whether all model containers deployed to the endpoint are isolated. If they are, no inbound or outbound network calls can be made to or from the model containers.
9691+
metrics_config: The configuration parameters for utilization metrics.
96899692

96909693
"""
96919694

@@ -9701,6 +9704,7 @@ class EndpointConfig(Base):
97019704
execution_role_arn: Optional[str] = Unassigned()
97029705
vpc_config: Optional[shapes.VpcConfig] = Unassigned()
97039706
enable_network_isolation: Optional[bool] = Unassigned()
9707+
metrics_config: Optional[shapes.MetricsConfig] = Unassigned()
97049708

97059709
def get_name(self) -> str:
97069710
attributes = vars(self)
@@ -9765,6 +9769,7 @@ def create(
97659769
execution_role_arn: Optional[str] = Unassigned(),
97669770
vpc_config: Optional[shapes.VpcConfig] = Unassigned(),
97679771
enable_network_isolation: Optional[bool] = Unassigned(),
9772+
metrics_config: Optional[shapes.MetricsConfig] = Unassigned(),
97689773
session: Optional[Session] = None,
97699774
region: Optional[str] = None,
97709775
) -> Optional["EndpointConfig"]:
@@ -9783,6 +9788,7 @@ def create(
97839788
execution_role_arn: The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform actions on your behalf. For more information, see SageMaker AI Roles. To be able to pass this role to Amazon SageMaker AI, the caller of this action must have the iam:PassRole permission.
97849789
vpc_config:
97859790
enable_network_isolation: Sets whether all model containers deployed to the endpoint are isolated. If they are, no inbound or outbound network calls can be made to or from the model containers.
9791+
metrics_config: The configuration parameters for utilization metrics.
97869792
session: Boto3 session.
97879793
region: Region name.
97889794

@@ -9822,6 +9828,7 @@ def create(
98229828
"ExecutionRoleArn": execution_role_arn,
98239829
"VpcConfig": vpc_config,
98249830
"EnableNetworkIsolation": enable_network_isolation,
9831+
"MetricsConfig": metrics_config,
98259832
}
98269833

98279834
operation_input_args = Base.populate_chained_attributes(

src/sagemaker_core/main/shapes.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,9 @@ class ResourceConfig(Base):
10671067
instance_placement_config: Configuration for how training job instances are placed and allocated within UltraServers. Only applicable for UltraServer capacity.
10681068
"""
10691069

1070-
volume_size_in_gb: int
10711070
instance_type: Optional[str] = Unassigned()
10721071
instance_count: Optional[int] = Unassigned()
1072+
volume_size_in_gb: Optional[int] = Unassigned()
10731073
volume_kms_key_id: Optional[str] = Unassigned()
10741074
keep_alive_period_in_seconds: Optional[int] = Unassigned()
10751075
instance_groups: Optional[List[InstanceGroup]] = Unassigned()
@@ -5760,6 +5760,21 @@ class ExplainerConfig(Base):
57605760
clarify_explainer_config: Optional[ClarifyExplainerConfig] = Unassigned()
57615761

57625762

5763+
class MetricsConfig(Base):
5764+
"""
5765+
MetricsConfig
5766+
The configuration for Utilization metrics.
5767+
5768+
Attributes
5769+
----------------------
5770+
enable_enhanced_metrics: Specifies whether to enable enhanced metrics for the endpoint. Enhanced metrics provide utilization data at instance and container granularity. Container granularity is supported for Inference Components. The default is False.
5771+
metric_publish_frequency_in_seconds: The frequency, in seconds, at which utilization metrics are published to Amazon CloudWatch. The default is 60 seconds.
5772+
"""
5773+
5774+
enable_enhanced_metrics: Optional[bool] = Unassigned()
5775+
metric_publish_frequency_in_seconds: Optional[int] = Unassigned()
5776+
5777+
57635778
class RollingUpdatePolicy(Base):
57645779
"""
57655780
RollingUpdatePolicy
@@ -7786,12 +7801,12 @@ class PartnerAppMaintenanceConfig(Base):
77867801
class RoleGroupAssignment(Base):
77877802
"""
77887803
RoleGroupAssignment
7789-
Defines the mapping between an in-app role and the AWS IAM Identity Center group patterns that should be assigned to that role within the SageMaker Partner AI App.
7804+
Defines the mapping between an in-app role and the Amazon Web Services IAM Identity Center group patterns that should be assigned to that role within the SageMaker Partner AI App.
77907805

77917806
Attributes
77927807
----------------------
77937808
role_name: The name of the in-app role within the SageMaker Partner AI App. The specific roles available depend on the app type and version.
7794-
group_patterns: A list of AWS IAM Identity Center group patterns that should be assigned to the specified role. Group patterns support wildcard matching using \*.
7809+
group_patterns: A list of Amazon Web Services IAM Identity Center group patterns that should be assigned to the specified role. Group patterns support wildcard matching using \*.
77957810
"""
77967811

77977812
role_name: str

0 commit comments

Comments
 (0)