create_hub_content_presigned_urls
¶
create_hub_content_presigned_urls(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
hub_name: Optional[HubNameOrArn] = None,
hub_content_type: Optional[HubContentType] = None,
hub_content_name: Optional[HubContentName] = None,
hub_content_version: Optional[HubContentVersion] = None,
access_config: Optional[PresignedUrlAccessConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> CreateHubContentPresignedUrlsResponse
Creates presigned URLs for accessing hub content artifacts. This operation generates time-limited, secure URLs that allow direct download of model artifacts and associated files from Amazon SageMaker hub content, including gated models that require end-user license agreement acceptance.
Parameters:
-
hub_name(Optional[HubNameOrArn], default:None) –The name or Amazon Resource Name (ARN) of the hub that contains the content. For public content, use
SageMakerPublicHub. -
hub_content_type(Optional[HubContentType], default:None) –The type of hub content to access. Valid values include
Model,Notebook, andModelReference. -
hub_content_name(Optional[HubContentName], default:None) –The name of the hub content for which to generate presigned URLs. This identifies the specific model or content within the hub.
-
hub_content_version(Optional[HubContentVersion], default:None) –The version of the hub content. If not specified, the latest version is used.
-
access_config(Optional[PresignedUrlAccessConfig], default:None) –Configuration settings for accessing the hub content, including end-user license agreement acceptance for gated models and expected S3 URL validation.
-
max_results(Optional[MaxResults], default:None) –The maximum number of presigned URLs to return in the response. Default value is 100. Large models may contain hundreds of files, requiring pagination to retrieve all URLs.
-
next_token(Optional[NextToken], default:None) –A token for pagination. Use this token to retrieve the next set of presigned URLs when the response is truncated.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 | |