CreateHubContentReference - Amazon SageMaker

CreateHubContentReference

Create a hub content reference in order to add a model in the JumpStart public hub to a private hub.

Request Syntax

{ "HubContentName": "string", "HubName": "string", "MinVersion": "string", "SageMakerPublicHubContentArn": "string", "Tags": [ { "Key": "string", "Value": "string" } ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

HubContentName

The name of the hub content to reference.

Type: String

Length Constraints: Maximum length of 63.

Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}

Required: No

HubName

The name of the hub to add the hub content reference to.

Type: String

Pattern: ^(arn:[a-z0-9-\.]{1,63}:sagemaker:\w+(?:-\w+)+:(\d{12}|aws):hub\/)?[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$

Required: Yes

MinVersion

The minimum version of the hub content to reference.

Type: String

Length Constraints: Minimum length of 5. Maximum length of 14.

Pattern: ^\d{1,4}.\d{1,4}.\d{1,4}$

Required: No

SageMakerPublicHubContentArn

The ARN of the public hub content to reference.

Type: String

Length Constraints: Maximum length of 255.

Pattern: ^arn:[a-z0-9-\.]{1,63}:sagemaker:\w+(?:-\w+)+:aws:hub-content\/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}\/Model\/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}$

Required: Yes

Tags

Any tags associated with the hub content to reference.

Type: Array of Tag objects

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Required: No

Response Syntax

{ "HubArn": "string", "HubContentArn": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

HubArn

The ARN of the hub that the hub content reference was added to.

Type: String

Length Constraints: Maximum length of 255.

Pattern: .*

HubContentArn

The ARN of the hub content.

Type: String

Length Constraints: Maximum length of 255.

Pattern: .*

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceInUse

Resource being accessed is in use.

HTTP Status Code: 400

ResourceLimitExceeded

You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.

HTTP Status Code: 400

ResourceNotFound

Resource being access is not found.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: