SageMaker / Paginator / CreateHubContentPresignedUrls
CreateHubContentPresignedUrls¶
- class SageMaker.Paginator.CreateHubContentPresignedUrls¶
- paginator = client.get_paginator('create_hub_content_presigned_urls') - paginate(**kwargs)¶
- Creates an iterator that will paginate through responses from - SageMaker.Client.create_hub_content_presigned_urls().- See also: AWS API Documentation - Request Syntax- response_iterator = paginator.paginate( HubName='string', HubContentType='Model'|'Notebook'|'ModelReference', HubContentName='string', HubContentVersion='string', AccessConfig={ 'AcceptEula': True|False, 'ExpectedS3Url': 'string' }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) - Parameters:
- HubName (string) – - [REQUIRED] - The name or Amazon Resource Name (ARN) of the hub that contains the content. For public content, use - SageMakerPublicHub.
- HubContentType (string) – - [REQUIRED] - The type of hub content to access. Valid values include - Model,- Notebook, and- ModelReference.
- HubContentName (string) – - [REQUIRED] - The name of the hub content for which to generate presigned URLs. This identifies the specific model or content within the hub. 
- HubContentVersion (string) – The version of the hub content. If not specified, the latest version is used. 
- AccessConfig (dict) – - Configuration settings for accessing the hub content, including end-user license agreement acceptance for gated models and expected S3 URL validation. - AcceptEula (boolean) – - Indicates acceptance of the End User License Agreement (EULA) for gated models. Set to true to acknowledge acceptance of the license terms required for accessing gated content. 
- ExpectedS3Url (string) – - The expected S3 URL prefix for validation purposes. This parameter helps ensure consistency between the resolved S3 URIs and the deployment configuration, reducing potential compatibility issues. 
 
- PaginationConfig (dict) – - A dictionary that provides parameters to control pagination. - MaxItems (integer) – - The total number of items to return. If the total number of items available is more than the value specified in max-items then a - NextTokenwill be provided in the output that you can use to resume pagination.
- PageSize (integer) – - The size of each page. 
- StartingToken (string) – - A token to specify where to start paginating. This is the - NextTokenfrom a previous response.
 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'AuthorizedUrlConfigs': [ { 'Url': 'string', 'LocalPath': 'string' }, ], } - Response Structure- (dict) – - AuthorizedUrlConfigs (list) – - An array of authorized URL configurations, each containing a presigned URL and its corresponding local file path for proper file organization during download. - (dict) – - Contains a presigned URL and its associated local file path for downloading hub content artifacts. - Url (string) – - The presigned S3 URL that provides temporary, secure access to download the file. URLs expire within 15 minutes for security purposes. 
- LocalPath (string) – - The recommended local file path where the downloaded file should be stored to maintain proper directory structure and file organization.