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
4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 | |