create_hub_content_presigned_urls
async
¶
create_hub_content_presigned_urls(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
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 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 | |