Skip to main content

endpoints

Creates, updates, deletes or gets an endpoint resource or lists endpoints in a region

Overview

Nameendpoints
TypeResource
DescriptionResource Type definition for AWS::SageMaker::Endpoint
Idaws.sagemaker.endpoints

Fields

NameDatatypeDescription
deployment_configobjectSpecifies deployment configuration for updating the SageMaker endpoint. Includes rollback and update policies.
endpoint_arnstringThe Amazon Resource Name (ARN) of the endpoint.
endpoint_config_namestringThe name of the endpoint configuration for the SageMaker endpoint. This is a required property.
endpoint_namestringThe name of the SageMaker endpoint. This name must be unique within an AWS Region.
exclude_retained_variant_propertiesarraySpecifies a list of variant properties that you want to exclude when updating an endpoint.
retain_all_variant_propertiesbooleanWhen set to true, retains all variant properties for an endpoint when it is updated.
retain_deployment_configbooleanWhen set to true, retains the deployment configuration during endpoint updates.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::SageMaker::Endpoint.

Methods

NameAccessible byRequired Params
create_resourceINSERTEndpointConfigName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all endpoints in a region.

SELECT
region,
deployment_config,
endpoint_arn,
endpoint_config_name,
endpoint_name,
exclude_retained_variant_properties,
retain_all_variant_properties,
retain_deployment_config,
tags
FROM aws.sagemaker.endpoints
WHERE region = 'us-east-1';

Gets all properties from an individual endpoint.

SELECT
region,
deployment_config,
endpoint_arn,
endpoint_config_name,
endpoint_name,
exclude_retained_variant_properties,
retain_all_variant_properties,
retain_deployment_config,
tags
FROM aws.sagemaker.endpoints
WHERE region = 'us-east-1' AND data__Identifier = '<EndpointArn>';

INSERT example

Use the following StackQL query and manifest file to create a new endpoint resource, using stack-deploy.

/*+ create */
INSERT INTO aws.sagemaker.endpoints (
EndpointConfigName,
region
)
SELECT
'{{ EndpointConfigName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.endpoints
WHERE data__Identifier = '<EndpointArn>'
AND region = 'us-east-1';

Permissions

To operate on the endpoints resource, the following permissions are required:

Create

sagemaker:CreateEndpoint,
sagemaker:DescribeEndpoint,
sagemaker:AddTags

Read

sagemaker:DescribeEndpoint,
sagemaker:ListTags

Update

sagemaker:UpdateEndpoint,
sagemaker:DescribeEndpoint,
sagemaker:AddTags,
sagemaker:DeleteTags

Delete

sagemaker:DeleteEndpoint,
sagemaker:DescribeEndpoint

List

sagemaker:ListEndpoints