Skip to content

Commit 98915c5

Browse files
Daily Sync with Botocore v1.35.52 on 2024/10/31 (#218)
1 parent 8ab718b commit 98915c5

File tree

4 files changed

+92
-4
lines changed

4 files changed

+92
-4
lines changed

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

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@
696696
"errors":[
697697
{"shape":"ResourceNotFound"}
698698
],
699-
"documentation":"<p>Creates a URL for a specified UserProfile in a Domain. When accessed in a web browser, the user will be automatically signed in to the domain, and granted access to all of the Apps and files associated with the Domain's Amazon Elastic File System volume. This operation can only be called when the authentication mode equals IAM. </p> <p>The IAM role or user passed to this API defines the permissions to access the app. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the app.</p> <p>You can restrict access to this API and to the URL that it returns to a list of IP addresses, Amazon VPCs or Amazon VPC Endpoints that you specify. For more information, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/studio-interface-endpoint.html\">Connect to Amazon SageMaker Studio Through an Interface VPC Endpoint</a> .</p> <note> <p>The URL that you get from a call to <code>CreatePresignedDomainUrl</code> has a default timeout of 5 minutes. You can configure this value using <code>ExpiresInSeconds</code>. If you try to use the URL after the timeout limit expires, you are directed to the Amazon Web Services console sign-in page.</p> </note>"
699+
"documentation":"<p>Creates a URL for a specified UserProfile in a Domain. When accessed in a web browser, the user will be automatically signed in to the domain, and granted access to all of the Apps and files associated with the Domain's Amazon Elastic File System volume. This operation can only be called when the authentication mode equals IAM. </p> <p>The IAM role or user passed to this API defines the permissions to access the app. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the app.</p> <p>You can restrict access to this API and to the URL that it returns to a list of IP addresses, Amazon VPCs or Amazon VPC Endpoints that you specify. For more information, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/studio-interface-endpoint.html\">Connect to Amazon SageMaker Studio Through an Interface VPC Endpoint</a> .</p> <note> <ul> <li> <p>The URL that you get from a call to <code>CreatePresignedDomainUrl</code> has a default timeout of 5 minutes. You can configure this value using <code>ExpiresInSeconds</code>. If you try to use the URL after the timeout limit expires, you are directed to the Amazon Web Services console sign-in page.</p> </li> <li> <p>The JupyterLab session default expiration time is 12 hours. You can configure this value using SessionExpirationDurationInSeconds.</p> </li> </ul> </note>"
700700
},
701701
"CreatePresignedMlflowTrackingServerUrl":{
702702
"name":"CreatePresignedMlflowTrackingServerUrl",
@@ -10206,6 +10206,10 @@
1020610206
"ModelCard":{
1020710207
"shape":"ModelPackageModelCard",
1020810208
"documentation":"<p>The model card associated with the model package. Since <code>ModelPackageModelCard</code> is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of <code>ModelCard</code>. The <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code>, and <code>model_overview</code> is composed of the <code>model_creator</code> and <code>model_artifact</code> properties. For more information about the model package model card schema, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema\">Model package model card schema</a>. For more information about the model card associated with the model package, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html\">View the Details of a Model Version</a>.</p>"
10209+
},
10210+
"ModelLifeCycle":{
10211+
"shape":"ModelLifeCycle",
10212+
"documentation":"<p> A structure describing the current state of the model in its life cycle. </p>"
1020910213
}
1021010214
}
1021110215
},
@@ -15724,6 +15728,10 @@
1572415728
"ModelCard":{
1572515729
"shape":"ModelPackageModelCard",
1572615730
"documentation":"<p>The model card associated with the model package. Since <code>ModelPackageModelCard</code> is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of <code>ModelCard</code>. The <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code>, and <code>model_overview</code> is composed of the <code>model_creator</code> and <code>model_artifact</code> properties. For more information about the model package model card schema, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema\">Model package model card schema</a>. For more information about the model card associated with the model package, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html\">View the Details of a Model Version</a>.</p>"
15731+
},
15732+
"ModelLifeCycle":{
15733+
"shape":"ModelLifeCycle",
15734+
"documentation":"<p> A structure describing the current state of the model in its life cycle. </p>"
1572715735
}
1572815736
}
1572915737
},
@@ -28104,6 +28112,28 @@
2810428112
"max":1,
2810528113
"min":1
2810628114
},
28115+
"ModelLifeCycle":{
28116+
"type":"structure",
28117+
"required":[
28118+
"Stage",
28119+
"StageStatus"
28120+
],
28121+
"members":{
28122+
"Stage":{
28123+
"shape":"EntityName",
28124+
"documentation":"<p> The current stage in the model life cycle. </p>"
28125+
},
28126+
"StageStatus":{
28127+
"shape":"EntityName",
28128+
"documentation":"<p> The current status of a stage in model life cycle. </p>"
28129+
},
28130+
"StageDescription":{
28131+
"shape":"StageDescription",
28132+
"documentation":"<p> Describes the stage related details. </p>"
28133+
}
28134+
},
28135+
"documentation":"<p> A structure describing the current state of the model in its life cycle. </p>"
28136+
},
2810728137
"ModelMetadataFilter":{
2810828138
"type":"structure",
2810928139
"required":[
@@ -28317,6 +28347,10 @@
2831728347
},
2831828348
"SecurityConfig":{"shape":"ModelPackageSecurityConfig"},
2831928349
"ModelCard":{"shape":"ModelPackageModelCard"},
28350+
"ModelLifeCycle":{
28351+
"shape":"ModelLifeCycle",
28352+
"documentation":"<p> A structure describing the current state of the model in its life cycle. </p>"
28353+
},
2832028354
"Tags":{
2832128355
"shape":"TagList",
2832228356
"documentation":"<p>A list of the tags associated with the model package. For more information, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services resources</a> in the <i>Amazon Web Services General Reference Guide</i>.</p>"
@@ -35034,6 +35068,12 @@
3503435068
"TFRecord"
3503535069
]
3503635070
},
35071+
"StageDescription":{
35072+
"type":"string",
35073+
"max":1024,
35074+
"min":0,
35075+
"pattern":"^.{0,1024}$"
35076+
},
3503735077
"StageStatus":{
3503835078
"type":"string",
3503935079
"enum":[
@@ -36467,7 +36507,6 @@
3646736507
"ml.p4de.24xlarge",
3646836508
"ml.p5.48xlarge",
3646936509
"ml.p5e.48xlarge",
36470-
"ml.p5en.48xlarge",
3647136510
"ml.c5.xlarge",
3647236511
"ml.c5.2xlarge",
3647336512
"ml.c5.4xlarge",
@@ -36489,7 +36528,6 @@
3648936528
"ml.trn1.2xlarge",
3649036529
"ml.trn1.32xlarge",
3649136530
"ml.trn1n.32xlarge",
36492-
"ml.trn2.48xlarge",
3649336531
"ml.m6i.large",
3649436532
"ml.m6i.xlarge",
3649536533
"ml.m6i.2xlarge",
@@ -38659,6 +38697,14 @@
3865938697
"ModelCard":{
3866038698
"shape":"ModelPackageModelCard",
3866138699
"documentation":"<p>The model card associated with the model package. Since <code>ModelPackageModelCard</code> is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of <code>ModelCard</code>. The <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code>, and <code>model_overview</code> is composed of the <code>model_creator</code> and <code>model_artifact</code> properties. For more information about the model package model card schema, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema\">Model package model card schema</a>. For more information about the model card associated with the model package, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html\">View the Details of a Model Version</a>.</p>"
38700+
},
38701+
"ModelLifeCycle":{
38702+
"shape":"ModelLifeCycle",
38703+
"documentation":"<p> A structure describing the current state of the model in its life cycle. </p>"
38704+
},
38705+
"ClientToken":{
38706+
"shape":"ClientToken",
38707+
"documentation":"<p> A unique token that guarantees that the call to this API is idempotent. </p>"
3866238708
}
3866338709
}
3866438710
},
@@ -39452,7 +39498,7 @@
3945239498
"type":"string",
3945339499
"max":176,
3945439500
"min":1,
39455-
"pattern":"(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:[a-z\\-]*\\/)?([a-zA-Z0-9]([a-zA-Z0-9-]){0,62})(?<!-)(\\/[0-9]{1,5})?$"
39501+
"pattern":"(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:[a-z\\-]*\\/)?([a-zA-Z0-9]([a-zA-Z0-9-]){0,62})(?<!-)(\\/[0-9]{1,9})?$"
3945639502
},
3945739503
"Vertex":{
3945839504
"type":"structure",

src/sagemaker_core/main/code_injection/shape_dag.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,6 +2456,7 @@
24562456
{"name": "SourceUri", "shape": "ModelPackageSourceUri", "type": "string"},
24572457
{"name": "SecurityConfig", "shape": "ModelPackageSecurityConfig", "type": "structure"},
24582458
{"name": "ModelCard", "shape": "ModelPackageModelCard", "type": "structure"},
2459+
{"name": "ModelLifeCycle", "shape": "ModelLifeCycle", "type": "structure"},
24592460
],
24602461
"type": "structure",
24612462
},
@@ -4969,6 +4970,7 @@
49694970
{"name": "SourceUri", "shape": "ModelPackageSourceUri", "type": "string"},
49704971
{"name": "SecurityConfig", "shape": "ModelPackageSecurityConfig", "type": "structure"},
49714972
{"name": "ModelCard", "shape": "ModelPackageModelCard", "type": "structure"},
4973+
{"name": "ModelLifeCycle", "shape": "ModelLifeCycle", "type": "structure"},
49724974
],
49734975
"type": "structure",
49744976
},
@@ -10102,6 +10104,14 @@
1010210104
"member_type": "structure",
1010310105
"type": "list",
1010410106
},
10107+
"ModelLifeCycle": {
10108+
"members": [
10109+
{"name": "Stage", "shape": "EntityName", "type": "string"},
10110+
{"name": "StageStatus", "shape": "EntityName", "type": "string"},
10111+
{"name": "StageDescription", "shape": "StageDescription", "type": "string"},
10112+
],
10113+
"type": "structure",
10114+
},
1010510115
"ModelMetadataFilter": {
1010610116
"members": [
1010710117
{"name": "Name", "shape": "ModelMetadataFilterType", "type": "string"},
@@ -10194,6 +10204,7 @@
1019410204
{"name": "SourceUri", "shape": "ModelPackageSourceUri", "type": "string"},
1019510205
{"name": "SecurityConfig", "shape": "ModelPackageSecurityConfig", "type": "structure"},
1019610206
{"name": "ModelCard", "shape": "ModelPackageModelCard", "type": "structure"},
10207+
{"name": "ModelLifeCycle", "shape": "ModelLifeCycle", "type": "structure"},
1019710208
{"name": "Tags", "shape": "TagList", "type": "list"},
1019810209
{"name": "CustomerMetadataProperties", "shape": "CustomerMetadataMap", "type": "map"},
1019910210
{"name": "DriftCheckBaselines", "shape": "DriftCheckBaselines", "type": "structure"},
@@ -14337,6 +14348,8 @@
1433714348
},
1433814349
{"name": "SourceUri", "shape": "ModelPackageSourceUri", "type": "string"},
1433914350
{"name": "ModelCard", "shape": "ModelPackageModelCard", "type": "structure"},
14351+
{"name": "ModelLifeCycle", "shape": "ModelLifeCycle", "type": "structure"},
14352+
{"name": "ClientToken", "shape": "ClientToken", "type": "string"},
1434014353
],
1434114354
"type": "structure",
1434214355
},

src/sagemaker_core/main/resources.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18544,6 +18544,7 @@ class ModelPackage(Base):
1854418544
source_uri: The URI of the source for the model package.
1854518545
security_config: The KMS Key ID (KMSKeyId) used for encryption of model package information.
1854618546
model_card: The model card associated with the model package. Since ModelPackageModelCard is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of ModelCard. The ModelPackageModelCard schema does not include model_package_details, and model_overview is composed of the model_creator and model_artifact properties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version.
18547+
model_life_cycle: A structure describing the current state of the model in its life cycle.
1854718548

1854818549
"""
1854918550

@@ -18578,6 +18579,7 @@ class ModelPackage(Base):
1857818579
source_uri: Optional[str] = Unassigned()
1857918580
security_config: Optional[ModelPackageSecurityConfig] = Unassigned()
1858018581
model_card: Optional[ModelPackageModelCard] = Unassigned()
18582+
model_life_cycle: Optional[ModelLifeCycle] = Unassigned()
1858118583

1858218584
def get_name(self) -> str:
1858318585
attributes = vars(self)
@@ -18675,6 +18677,7 @@ def create(
1867518677
source_uri: Optional[str] = Unassigned(),
1867618678
security_config: Optional[ModelPackageSecurityConfig] = Unassigned(),
1867718679
model_card: Optional[ModelPackageModelCard] = Unassigned(),
18680+
model_life_cycle: Optional[ModelLifeCycle] = Unassigned(),
1867818681
session: Optional[Session] = None,
1867918682
region: Optional[str] = None,
1868018683
) -> Optional["ModelPackage"]:
@@ -18704,6 +18707,7 @@ def create(
1870418707
source_uri: The URI of the source for the model package. If you want to clone a model package, set it to the model package Amazon Resource Name (ARN). If you want to register a model, set it to the model ARN.
1870518708
security_config: The KMS Key ID (KMSKeyId) used for encryption of model package information.
1870618709
model_card: The model card associated with the model package. Since ModelPackageModelCard is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of ModelCard. The ModelPackageModelCard schema does not include model_package_details, and model_overview is composed of the model_creator and model_artifact properties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version.
18710+
model_life_cycle: A structure describing the current state of the model in its life cycle.
1870718711
session: Boto3 session.
1870818712
region: Region name.
1870918713

@@ -18755,6 +18759,7 @@ def create(
1875518759
"SourceUri": source_uri,
1875618760
"SecurityConfig": security_config,
1875718761
"ModelCard": model_card,
18762+
"ModelLifeCycle": model_life_cycle,
1875818763
}
1875918764

1876018765
operation_input_args = Base.populate_chained_attributes(
@@ -18874,13 +18879,16 @@ def update(
1887418879
inference_specification: Optional[InferenceSpecification] = Unassigned(),
1887518880
source_uri: Optional[str] = Unassigned(),
1887618881
model_card: Optional[ModelPackageModelCard] = Unassigned(),
18882+
model_life_cycle: Optional[ModelLifeCycle] = Unassigned(),
18883+
client_token: Optional[str] = Unassigned(),
1887718884
) -> Optional["ModelPackage"]:
1887818885
"""
1887918886
Update a ModelPackage resource
1888018887

1888118888
Parameters:
1888218889
customer_metadata_properties_to_remove: The metadata properties associated with the model package versions to remove.
1888318890
additional_inference_specifications_to_add: An array of additional Inference Specification objects to be added to the existing array additional Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
18891+
client_token: A unique token that guarantees that the call to this API is idempotent.
1888418892

1888518893
Returns:
1888618894
The ModelPackage resource.
@@ -18911,6 +18919,8 @@ def update(
1891118919
"InferenceSpecification": inference_specification,
1891218920
"SourceUri": source_uri,
1891318921
"ModelCard": model_card,
18922+
"ModelLifeCycle": model_life_cycle,
18923+
"ClientToken": client_token,
1891418924
}
1891518925
logger.debug(f"Input request: {operation_input_args}")
1891618926
# serialize the input request

src/sagemaker_core/main/shapes.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6292,6 +6292,23 @@ class ModelPackageModelCard(Base):
62926292
model_card_status: Optional[str] = Unassigned()
62936293

62946294

6295+
class ModelLifeCycle(Base):
6296+
"""
6297+
ModelLifeCycle
6298+
A structure describing the current state of the model in its life cycle.
6299+
6300+
Attributes
6301+
----------------------
6302+
stage: The current stage in the model life cycle.
6303+
stage_status: The current status of a stage in model life cycle.
6304+
stage_description: Describes the stage related details.
6305+
"""
6306+
6307+
stage: str
6308+
stage_status: str
6309+
stage_description: Optional[str] = Unassigned()
6310+
6311+
62956312
class ModelQualityBaselineConfig(Base):
62966313
"""
62976314
ModelQualityBaselineConfig
@@ -11282,6 +11299,7 @@ class ModelPackage(Base):
1128211299
source_uri: The URI of the source for the model package.
1128311300
security_config
1128411301
model_card
11302+
model_life_cycle: A structure describing the current state of the model in its life cycle.
1128511303
tags: A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
1128611304
customer_metadata_properties: The metadata properties for the model package.
1128711305
drift_check_baselines: Represents the drift check baselines that can be used when the model monitor is set using the model package.
@@ -11316,6 +11334,7 @@ class ModelPackage(Base):
1131611334
source_uri: Optional[str] = Unassigned()
1131711335
security_config: Optional[ModelPackageSecurityConfig] = Unassigned()
1131811336
model_card: Optional[ModelPackageModelCard] = Unassigned()
11337+
model_life_cycle: Optional[ModelLifeCycle] = Unassigned()
1131911338
tags: Optional[List[Tag]] = Unassigned()
1132011339
customer_metadata_properties: Optional[Dict[str, str]] = Unassigned()
1132111340
drift_check_baselines: Optional[DriftCheckBaselines] = Unassigned()

0 commit comments

Comments
 (0)