Skip to content

Commit

Permalink
Daily Sync with Botocore v1.37.3 on 2025/02/28
Browse files Browse the repository at this point in the history
  • Loading branch information
sagemaker-bot committed Feb 28, 2025
1 parent 9bb2940 commit 04e93e8
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 3 deletions.
162 changes: 161 additions & 1 deletion sample/sagemaker/2017-07-24/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4070,6 +4070,34 @@
],
"documentation":"<p>Update a hub.</p>"
},
"UpdateHubContent":{
"name":"UpdateHubContent",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"UpdateHubContentRequest"},
"output":{"shape":"UpdateHubContentResponse"},
"errors":[
{"shape":"ResourceNotFound"},
{"shape":"ResourceInUse"}
],
"documentation":"<p>Updates SageMaker hub content (either a <code>Model</code> or <code>Notebook</code> resource).</p> <p>You can update the metadata that describes the resource. In addition to the required request fields, specify at least one of the following fields to update:</p> <ul> <li> <p> <code>HubContentDescription</code> </p> </li> <li> <p> <code>HubContentDisplayName</code> </p> </li> <li> <p> <code>HubContentMarkdown</code> </p> </li> <li> <p> <code>HubContentSearchKeywords</code> </p> </li> <li> <p> <code>SupportStatus</code> </p> </li> </ul> <p>For more information about hubs, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-curated-hubs.html\">Private curated hubs for foundation model access control in JumpStart</a>.</p> <note> <p>If you want to update a <code>ModelReference</code> resource in your hub, use the <code>UpdateHubContentResource</code> API instead.</p> </note>"
},
"UpdateHubContentReference":{
"name":"UpdateHubContentReference",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"UpdateHubContentReferenceRequest"},
"output":{"shape":"UpdateHubContentReferenceResponse"},
"errors":[
{"shape":"ResourceNotFound"},
{"shape":"ResourceInUse"}
],
"documentation":"<p>Updates the contents of a SageMaker hub for a <code>ModelReference</code> resource. A <code>ModelReference</code> allows you to access public SageMaker JumpStart models from within your private hub.</p> <p>When using this API, you can update the <code>MinVersion</code> field for additional flexibility in the model version. You shouldn't update any additional fields when using this API, because the metadata in your private hub should match the public JumpStart model's metadata.</p> <note> <p>If you want to update a <code>Model</code> or <code>Notebook</code> resource in your hub, use the <code>UpdateHubContent</code> API instead.</p> </note> <p>For more information about adding model references to your hub, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-curated-hubs-admin-guide-add-models.html\"> Add models to a private hub</a>.</p>"
},
"UpdateImage":{
"name":"UpdateImage",
"http":{
Expand Down Expand Up @@ -15561,6 +15589,10 @@
"CreationTime":{
"shape":"Timestamp",
"documentation":"<p>The date and time that hub content was created.</p>"
},
"LastModifiedTime":{
"shape":"Timestamp",
"documentation":"<p>The last modified time of the hub content.</p>"
}
}
},
Expand Down Expand Up @@ -21148,6 +21180,17 @@
"min":0
},
"Horovod":{"type":"boolean"},
"HubAccessConfig":{
"type":"structure",
"required":["HubContentArn"],
"members":{
"HubContentArn":{
"shape":"HubContentArn",
"documentation":"<p>The ARN of your private model hub content. This should be a <code>ModelReference</code> resource type that points to a SageMaker JumpStart public hub model.</p>"
}
},
"documentation":"<p>The configuration for a private hub model reference that points to a public SageMaker JumpStart model.</p> <p>For more information about private hubs, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-curated-hubs.html\">Private curated hubs for foundation model access control in JumpStart</a>.</p>"
},
"HubArn":{
"type":"string",
"max":255,
Expand Down Expand Up @@ -21299,7 +21342,8 @@
"type":"string",
"enum":[
"Supported",
"Deprecated"
"Deprecated",
"Restricted"
]
},
"HubContentType":{
Expand Down Expand Up @@ -22637,6 +22681,10 @@
"shape":"HubContentDocument",
"documentation":"<p>The hub content document that describes information about the hub content such as type, associated containers, scripts, and more.</p>"
},
"SupportStatus":{
"shape":"HubContentSupportStatus",
"documentation":"<p>The status of the hub content resource.</p>"
},
"HubContentSearchKeywords":{
"shape":"HubContentSearchKeywordList",
"documentation":"<p>The searchable keywords of the hub content.</p>"
Expand Down Expand Up @@ -35962,6 +36010,11 @@
"InstanceGroupNames":{
"shape":"InstanceGroupNames",
"documentation":"<p>A list of names of instance groups that get data from the S3 data source.</p>"
},
"ModelAccessConfig":{"shape":"ModelAccessConfig"},
"HubAccessConfig":{
"shape":"HubAccessConfig",
"documentation":"<p>The configuration for a private hub model reference that points to a SageMaker JumpStart public hub model.</p>"
}
},
"documentation":"<p>Describes the S3 data source.</p> <p>Your input bucket must be in the same Amazon Web Services region as your training job.</p>"
Expand Down Expand Up @@ -40811,6 +40864,113 @@
}
}
},
"UpdateHubContentReferenceRequest":{
"type":"structure",
"required":[
"HubName",
"HubContentName",
"HubContentType"
],
"members":{
"HubName":{
"shape":"HubNameOrArn",
"documentation":"<p>The name of the SageMaker hub that contains the hub content you want to update. You can optionally use the hub ARN instead.</p>"
},
"HubContentName":{
"shape":"HubContentName",
"documentation":"<p>The name of the hub content resource that you want to update.</p>"
},
"HubContentType":{
"shape":"HubContentType",
"documentation":"<p>The content type of the resource that you want to update. Only specify a <code>ModelReference</code> resource for this API. To update a <code>Model</code> or <code>Notebook</code> resource, use the <code>UpdateHubContent</code> API instead.</p>"
},
"MinVersion":{
"shape":"HubContentVersion",
"documentation":"<p>The minimum hub content version of the referenced model that you want to use. The minimum version must be older than the latest available version of the referenced model. To support all versions of a model, set the value to <code>1.0.0</code>.</p>"
}
}
},
"UpdateHubContentReferenceResponse":{
"type":"structure",
"required":[
"HubArn",
"HubContentArn"
],
"members":{
"HubArn":{
"shape":"HubArn",
"documentation":"<p>The ARN of the private model hub that contains the updated hub content.</p>"
},
"HubContentArn":{
"shape":"HubContentArn",
"documentation":"<p>The ARN of the hub content resource that was updated.</p>"
}
}
},
"UpdateHubContentRequest":{
"type":"structure",
"required":[
"HubName",
"HubContentName",
"HubContentType",
"HubContentVersion"
],
"members":{
"HubName":{
"shape":"HubNameOrArn",
"documentation":"<p>The name of the SageMaker hub that contains the hub content you want to update. You can optionally use the hub ARN instead.</p>"
},
"HubContentName":{
"shape":"HubContentName",
"documentation":"<p>The name of the hub content resource that you want to update.</p>"
},
"HubContentType":{
"shape":"HubContentType",
"documentation":"<p>The content type of the resource that you want to update. Only specify a <code>Model</code> or <code>Notebook</code> resource for this API. To update a <code>ModelReference</code>, use the <code>UpdateHubContentReference</code> API instead.</p>"
},
"HubContentVersion":{
"shape":"HubContentVersion",
"documentation":"<p>The hub content version that you want to update. For example, if you have two versions of a resource in your hub, you can update the second version.</p>"
},
"HubContentDisplayName":{
"shape":"HubContentDisplayName",
"documentation":"<p>The display name of the hub content.</p>"
},
"HubContentDescription":{
"shape":"HubContentDescription",
"documentation":"<p>The description of the hub content.</p>"
},
"HubContentMarkdown":{
"shape":"HubContentMarkdown",
"documentation":"<p>A string that provides a description of the hub content. This string can include links, tables, and standard markdown formatting.</p>"
},
"HubContentSearchKeywords":{
"shape":"HubContentSearchKeywordList",
"documentation":"<p>The searchable keywords of the hub content.</p>"
},
"SupportStatus":{
"shape":"HubContentSupportStatus",
"documentation":"<p>Indicates the current status of the hub content resource.</p>"
}
}
},
"UpdateHubContentResponse":{
"type":"structure",
"required":[
"HubArn",
"HubContentArn"
],
"members":{
"HubArn":{
"shape":"HubArn",
"documentation":"<p>The ARN of the private model hub that contains the updated hub content.</p>"
},
"HubContentArn":{
"shape":"HubContentArn",
"documentation":"<p>The ARN of the hub content resource that was updated.</p>"
}
}
},
"UpdateHubRequest":{
"type":"structure",
"required":["HubName"],
Expand Down
49 changes: 49 additions & 0 deletions src/sagemaker_core/main/code_injection/shape_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -4712,6 +4712,7 @@
{"name": "HubContentStatus", "shape": "HubContentStatus", "type": "string"},
{"name": "FailureReason", "shape": "FailureReason", "type": "string"},
{"name": "CreationTime", "shape": "Timestamp", "type": "timestamp"},
{"name": "LastModifiedTime", "shape": "Timestamp", "type": "timestamp"},
],
"type": "structure",
},
Expand Down Expand Up @@ -7024,6 +7025,10 @@
"value_shape": "ConfigValue",
"value_type": "string",
},
"HubAccessConfig": {
"members": [{"name": "HubContentArn", "shape": "HubContentArn", "type": "string"}],
"type": "structure",
},
"HubContentDependency": {
"members": [
{"name": "DependencyOriginPath", "shape": "DependencyOriginPath", "type": "string"},
Expand Down Expand Up @@ -7659,6 +7664,7 @@
{"name": "HubContentDescription", "shape": "HubContentDescription", "type": "string"},
{"name": "HubContentMarkdown", "shape": "HubContentMarkdown", "type": "string"},
{"name": "HubContentDocument", "shape": "HubContentDocument", "type": "string"},
{"name": "SupportStatus", "shape": "HubContentSupportStatus", "type": "string"},
{
"name": "HubContentSearchKeywords",
"shape": "HubContentSearchKeywordList",
Expand Down Expand Up @@ -13182,6 +13188,8 @@
{"name": "S3DataDistributionType", "shape": "S3DataDistribution", "type": "string"},
{"name": "AttributeNames", "shape": "AttributeNames", "type": "list"},
{"name": "InstanceGroupNames", "shape": "InstanceGroupNames", "type": "list"},
{"name": "ModelAccessConfig", "shape": "ModelAccessConfig", "type": "structure"},
{"name": "HubAccessConfig", "shape": "HubAccessConfig", "type": "structure"},
],
"type": "structure",
},
Expand Down Expand Up @@ -14991,6 +14999,47 @@
],
"type": "structure",
},
"UpdateHubContentReferenceRequest": {
"members": [
{"name": "HubName", "shape": "HubNameOrArn", "type": "string"},
{"name": "HubContentName", "shape": "HubContentName", "type": "string"},
{"name": "HubContentType", "shape": "HubContentType", "type": "string"},
{"name": "MinVersion", "shape": "HubContentVersion", "type": "string"},
],
"type": "structure",
},
"UpdateHubContentReferenceResponse": {
"members": [
{"name": "HubArn", "shape": "HubArn", "type": "string"},
{"name": "HubContentArn", "shape": "HubContentArn", "type": "string"},
],
"type": "structure",
},
"UpdateHubContentRequest": {
"members": [
{"name": "HubName", "shape": "HubNameOrArn", "type": "string"},
{"name": "HubContentName", "shape": "HubContentName", "type": "string"},
{"name": "HubContentType", "shape": "HubContentType", "type": "string"},
{"name": "HubContentVersion", "shape": "HubContentVersion", "type": "string"},
{"name": "HubContentDisplayName", "shape": "HubContentDisplayName", "type": "string"},
{"name": "HubContentDescription", "shape": "HubContentDescription", "type": "string"},
{"name": "HubContentMarkdown", "shape": "HubContentMarkdown", "type": "string"},
{
"name": "HubContentSearchKeywords",
"shape": "HubContentSearchKeywordList",
"type": "list",
},
{"name": "SupportStatus", "shape": "HubContentSupportStatus", "type": "string"},
],
"type": "structure",
},
"UpdateHubContentResponse": {
"members": [
{"name": "HubArn", "shape": "HubArn", "type": "string"},
{"name": "HubContentArn", "shape": "HubContentArn", "type": "string"},
],
"type": "structure",
},
"UpdateHubRequest": {
"members": [
{"name": "HubName", "shape": "HubNameOrArn", "type": "string"},
Expand Down
Loading

0 comments on commit 04e93e8

Please sign in to comment.