Skip to content

Commit

Permalink
Adds support for model references in Hub service, and adds support fo…
Browse files Browse the repository at this point in the history
…r cross-account access of Hubs
  • Loading branch information
aws-sdk-dotnet-automation committed Jun 20, 2024
1 parent 41d10dd commit e4a2e5c
Show file tree
Hide file tree
Showing 41 changed files with 2,290 additions and 640 deletions.
132 changes: 112 additions & 20 deletions generator/ServiceModels/sagemaker/sagemaker-2017-07-24.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,20 @@
{"shape":"ResourceLimitExceeded"}
]
},
"CreateHubContentReference":{
"name":"CreateHubContentReference",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"CreateHubContentReferenceRequest"},
"output":{"shape":"CreateHubContentReferenceResponse"},
"errors":[
{"shape":"ResourceNotFound"},
{"shape":"ResourceInUse"},
{"shape":"ResourceLimitExceeded"}
]
},
"CreateHumanTaskUi":{
"name":"CreateHumanTaskUi",
"http":{
Expand Down Expand Up @@ -1026,6 +1040,17 @@
{"shape":"ResourceNotFound"}
]
},
"DeleteHubContentReference":{
"name":"DeleteHubContentReference",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"DeleteHubContentReferenceRequest"},
"errors":[
{"shape":"ResourceNotFound"}
]
},
"DeleteHumanTaskUi":{
"name":"DeleteHumanTaskUi",
"http":{
Expand Down Expand Up @@ -6980,6 +7005,31 @@
"FlowDefinitionArn":{"shape":"FlowDefinitionArn"}
}
},
"CreateHubContentReferenceRequest":{
"type":"structure",
"required":[
"HubName",
"SageMakerPublicHubContentArn"
],
"members":{
"HubName":{"shape":"HubNameOrArn"},
"SageMakerPublicHubContentArn":{"shape":"SageMakerPublicHubContentArn"},
"HubContentName":{"shape":"HubContentName"},
"MinVersion":{"shape":"HubContentVersion"},
"Tags":{"shape":"TagList"}
}
},
"CreateHubContentReferenceResponse":{
"type":"structure",
"required":[
"HubArn",
"HubContentArn"
],
"members":{
"HubArn":{"shape":"HubArn"},
"HubContentArn":{"shape":"HubContentArn"}
}
},
"CreateHubRequest":{
"type":"structure",
"required":[
Expand Down Expand Up @@ -8397,6 +8447,19 @@
"members":{
}
},
"DeleteHubContentReferenceRequest":{
"type":"structure",
"required":[
"HubName",
"HubContentType",
"HubContentName"
],
"members":{
"HubName":{"shape":"HubNameOrArn"},
"HubContentType":{"shape":"HubContentType"},
"HubContentName":{"shape":"HubContentName"}
}
},
"DeleteHubContentRequest":{
"type":"structure",
"required":[
Expand All @@ -8406,7 +8469,7 @@
"HubContentVersion"
],
"members":{
"HubName":{"shape":"HubName"},
"HubName":{"shape":"HubNameOrArn"},
"HubContentType":{"shape":"HubContentType"},
"HubContentName":{"shape":"HubContentName"},
"HubContentVersion":{"shape":"HubContentVersion"}
Expand All @@ -8416,7 +8479,7 @@
"type":"structure",
"required":["HubName"],
"members":{
"HubName":{"shape":"HubName"}
"HubName":{"shape":"HubNameOrArn"}
}
},
"DeleteHumanTaskUiRequest":{
Expand Down Expand Up @@ -9532,7 +9595,7 @@
"HubContentName"
],
"members":{
"HubName":{"shape":"HubName"},
"HubName":{"shape":"HubNameOrArn"},
"HubContentType":{"shape":"HubContentType"},
"HubContentName":{"shape":"HubContentName"},
"HubContentVersion":{"shape":"HubContentVersion"}
Expand Down Expand Up @@ -9564,6 +9627,9 @@
"HubContentDescription":{"shape":"HubContentDescription"},
"HubContentMarkdown":{"shape":"HubContentMarkdown"},
"HubContentDocument":{"shape":"HubContentDocument"},
"SageMakerPublicHubContentArn":{"shape":"SageMakerPublicHubContentArn"},
"ReferenceMinVersion":{"shape":"ReferenceMinVersion"},
"SupportStatus":{"shape":"HubContentSupportStatus"},
"HubContentSearchKeywords":{"shape":"HubContentSearchKeywordList"},
"HubContentDependencies":{"shape":"HubContentDependencyList"},
"HubContentStatus":{"shape":"HubContentStatus"},
Expand All @@ -9575,7 +9641,7 @@
"type":"structure",
"required":["HubName"],
"members":{
"HubName":{"shape":"HubName"}
"HubName":{"shape":"HubNameOrArn"}
}
},
"DescribeHubResponse":{
Expand Down Expand Up @@ -12437,14 +12503,17 @@
"members":{
"HubContentName":{"shape":"HubContentName"},
"HubContentArn":{"shape":"HubContentArn"},
"SageMakerPublicHubContentArn":{"shape":"SageMakerPublicHubContentArn"},
"HubContentVersion":{"shape":"HubContentVersion"},
"HubContentType":{"shape":"HubContentType"},
"DocumentSchemaVersion":{"shape":"DocumentSchemaVersion"},
"HubContentDisplayName":{"shape":"HubContentDisplayName"},
"HubContentDescription":{"shape":"HubContentDescription"},
"SupportStatus":{"shape":"HubContentSupportStatus"},
"HubContentSearchKeywords":{"shape":"HubContentSearchKeywordList"},
"HubContentStatus":{"shape":"HubContentStatus"},
"CreationTime":{"shape":"Timestamp"}
"CreationTime":{"shape":"Timestamp"},
"OriginalCreationTime":{"shape":"Timestamp"}
}
},
"HubContentInfoList":{
Expand All @@ -12453,8 +12522,7 @@
},
"HubContentMarkdown":{
"type":"string",
"max":65535,
"pattern":".*"
"max":65535
},
"HubContentName":{
"type":"string",
Expand Down Expand Up @@ -12484,11 +12552,19 @@
"DeleteFailed"
]
},
"HubContentSupportStatus":{
"type":"string",
"enum":[
"Supported",
"Deprecated"
]
},
"HubContentType":{
"type":"string",
"enum":[
"Model",
"Notebook"
"Notebook",
"ModelReference"
]
},
"HubContentVersion":{
Expand Down Expand Up @@ -12536,6 +12612,10 @@
"max":63,
"pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"
},
"HubNameOrArn":{
"type":"string",
"pattern":"^(arn:[a-z0-9-\\.]{1,63}:sagemaker:\\w+(?:-\\w+)+:(\\d{12}|aws):hub\\/)?[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$"
},
"HubS3StorageConfig":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -13284,7 +13364,7 @@
"HubContentVersion":{"shape":"HubContentVersion"},
"HubContentType":{"shape":"HubContentType"},
"DocumentSchemaVersion":{"shape":"DocumentSchemaVersion"},
"HubName":{"shape":"HubName"},
"HubName":{"shape":"HubNameOrArn"},
"HubContentDisplayName":{"shape":"HubContentDisplayName"},
"HubContentDescription":{"shape":"HubContentDescription"},
"HubContentMarkdown":{"shape":"HubContentMarkdown"},
Expand Down Expand Up @@ -13534,6 +13614,13 @@
"type":"string",
"enum":["ShadowMode"]
},
"InferenceHubAccessConfig":{
"type":"structure",
"required":["HubContentArn"],
"members":{
"HubContentArn":{"shape":"HubContentArn"}
}
},
"InferenceImage":{
"type":"string",
"max":256
Expand All @@ -13552,7 +13639,6 @@
"InferenceRecommendation":{
"type":"structure",
"required":[
"Metrics",
"EndpointConfiguration",
"ModelConfiguration"
],
Expand Down Expand Up @@ -14930,7 +15016,7 @@
"HubContentName"
],
"members":{
"HubName":{"shape":"HubName"},
"HubName":{"shape":"HubNameOrArn"},
"HubContentType":{"shape":"HubContentType"},
"HubContentName":{"shape":"HubContentName"},
"MinVersion":{"shape":"HubContentVersion"},
Expand Down Expand Up @@ -14958,7 +15044,7 @@
"HubContentType"
],
"members":{
"HubName":{"shape":"HubName"},
"HubName":{"shape":"HubNameOrArn"},
"HubContentType":{"shape":"HubContentType"},
"NameContains":{"shape":"NameContains"},
"MaxSchemaVersion":{"shape":"DocumentSchemaVersion"},
Expand Down Expand Up @@ -19775,12 +19861,6 @@
},
"RecommendationMetrics":{
"type":"structure",
"required":[
"CostPerHour",
"CostPerInference",
"MaxInvocations",
"ModelLatency"
],
"members":{
"CostPerHour":{"shape":"Float"},
"CostPerInference":{"shape":"Float"},
Expand Down Expand Up @@ -19875,6 +19955,12 @@
"min":1,
"pattern":".*"
},
"ReferenceMinVersion":{
"type":"string",
"max":14,
"min":5,
"pattern":"^\\d{1,4}.\\d{1,4}.\\d{1,4}$"
},
"RegisterDevicesRequest":{
"type":"structure",
"required":[
Expand Down Expand Up @@ -20286,7 +20372,8 @@
"S3Uri":{"shape":"S3ModelUri"},
"S3DataType":{"shape":"S3ModelDataType"},
"CompressionType":{"shape":"ModelCompressionType"},
"ModelAccessConfig":{"shape":"ModelAccessConfig"}
"ModelAccessConfig":{"shape":"ModelAccessConfig"},
"HubAccessConfig":{"shape":"InferenceHubAccessConfig"}
}
},
"S3ModelDataType":{
Expand Down Expand Up @@ -20336,6 +20423,11 @@
"type":"list",
"member":{"shape":"SageMakerImageVersionAlias"}
},
"SageMakerPublicHubContentArn":{
"type":"string",
"max":255,
"pattern":"^arn:[a-z0-9-\\.]{1,63}:sagemaker:\\w+(?:-\\w+)+:aws:hub-content\\/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}\\/Model\\/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}$"
},
"SagemakerServicecatalogStatus":{
"type":"string",
"enum":[
Expand Down Expand Up @@ -23024,7 +23116,7 @@
"type":"structure",
"required":["HubName"],
"members":{
"HubName":{"shape":"HubName"},
"HubName":{"shape":"HubNameOrArn"},
"HubDescription":{"shape":"HubDescription"},
"HubDisplayName":{"shape":"HubDisplayName"},
"HubSearchKeywords":{"shape":"HubSearchKeywordList"}
Expand Down
Loading

0 comments on commit e4a2e5c

Please sign in to comment.