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
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 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 | |