create_hub_content_reference
async
¶
create_hub_content_reference(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
hub_name: Optional[HubNameOrArn] = None,
sage_maker_public_hub_content_arn: Optional[SageMakerPublicHubContentArn] = None,
hub_content_name: Optional[HubContentName] = None,
min_version: Optional[HubContentVersion] = None,
tags: Optional[TagList] = None,
) -> CreateHubContentReferenceResponse
Create a hub content reference in order to add a model in the JumpStart public hub to a private hub.
Parameters:
-
hub_name(Optional[HubNameOrArn], default:None) –The name of the hub to add the hub content reference to.
-
sage_maker_public_hub_content_arn(Optional[SageMakerPublicHubContentArn], default:None) –The ARN of the public hub content to reference.
-
hub_content_name(Optional[HubContentName], default:None) –The name of the hub content to reference.
-
min_version(Optional[HubContentVersion], default:None) –The minimum version of the hub content to reference.
-
tags(Optional[TagList], default:None) –Any tags associated with the hub content to reference.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 | |