Skip to main content

marketplace_model_endpoints

Creates, updates, deletes, gets or lists a marketplace_model_endpoints resource.

Overview​

Namemarketplace_model_endpoints
TypeResource
Idaws.bedrock.marketplace_model_endpoints

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp when the endpoint was registered.
endpoint_arnstringThe Amazon Resource Name (ARN) of the endpoint.
endpoint_configobjectSpecifies the configuration for the endpoint.
endpoint_statusstringThe current status of the endpoint (e.g., Creating, InService, Updating, Failed).
endpoint_status_messagestringAdditional information about the endpoint status, if available.
model_source_identifierstringThe ARN of the model from Amazon Bedrock Marketplace that is deployed on this endpoint. (pattern: <code>.arn:aws:sagemaker:.:hub-content/SageMakerPublicHub/Model/.*</code>)
statusstringThe overall status of the endpoint in Amazon Bedrock Marketplace (e.g., ACTIVE, INACTIVE). (REGISTERED, INCOMPATIBLE_ENDPOINT)
status_messagestringAdditional information about the overall status, if available.
updated_atstring (date-time)The timestamp when the endpoint was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_marketplace_model_endpointselectendpoint_arn, regionRetrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
list_marketplace_model_endpointsselectregionmaxResults, nextToken, modelSourceIdentifierLists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
create_marketplace_model_endpointinsertregion, modelSourceIdentifier, endpointConfig, endpointNameCreates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
register_marketplace_model_endpointinsertendpoint_identifier, region, modelSourceIdentifierRegisters an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
update_marketplace_model_endpointupdateendpoint_arn, region, endpointConfigUpdates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
delete_marketplace_model_endpointdeleteendpoint_arn, regionDeletes an endpoint for a model from Amazon Bedrock Marketplace.
deregister_marketplace_model_endpointexecendpoint_arn, regionDeregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker endpoint.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpoint_arnstringThe Amazon Resource Name (ARN) of the endpoint you want to deregister.
endpoint_identifierstringThe ARN of the Amazon SageMaker endpoint you want to register with Amazon Bedrock Marketplace.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in a single call. If more results are available, the operation returns a NextToken value.
modelSourceIdentifierstringIf specified, only endpoints for the given model source identifier are returned.
nextTokenstringThe token for the next set of results. You receive this token from a previous ListMarketplaceModelEndpoints call.

SELECT examples​

Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.

SELECT
created_at,
endpoint_arn,
endpoint_config,
endpoint_status,
endpoint_status_message,
model_source_identifier,
status,
status_message,
updated_at
FROM aws.bedrock.marketplace_model_endpoints
WHERE endpoint_arn = '{{ endpoint_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.

INSERT INTO aws.bedrock.marketplace_model_endpoints (
modelSourceIdentifier,
endpointConfig,
acceptEula,
endpointName,
clientRequestToken,
tags,
region
)
SELECT
'{{ modelSourceIdentifier }}' /* required */,
'{{ endpointConfig }}' /* required */,
{{ acceptEula }},
'{{ endpointName }}' /* required */,
'{{ clientRequestToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
marketplace_model_endpoint
;

UPDATE examples​

Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.

UPDATE aws.bedrock.marketplace_model_endpoints
SET
endpointConfig = '{{ endpointConfig }}',
clientRequestToken = '{{ clientRequestToken }}'
WHERE
endpoint_arn = '{{ endpoint_arn }}' --required
AND region = '{{ region }}' --required
AND endpointConfig = '{{ endpointConfig }}' --required
RETURNING
marketplace_model_endpoint;

DELETE examples​

Deletes an endpoint for a model from Amazon Bedrock Marketplace.

DELETE FROM aws.bedrock.marketplace_model_endpoints
WHERE endpoint_arn = '{{ endpoint_arn }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods​

Deregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker endpoint.

EXEC aws.bedrock.marketplace_model_endpoints.deregister_marketplace_model_endpoint
@endpoint_arn='{{ endpoint_arn }}' --required,
@region='{{ region }}' --required
;