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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourceendpointsINSERTEndpointConfigName, region
delete_resourceendpointsDELETEIdentifier, region
update_resourceendpointsUPDATEIdentifier, PatchDocument, region
list_resourcesendpoints_list_onlySELECTregion
get_resourceendpointsSELECTIdentifier, region

SELECT examples

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 awscc.sagemaker.endpoints
WHERE
region = 'us-east-1' AND
Identifier = '{{ endpoint_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.sagemaker.endpoints
SET PatchDocument = string('{{ {
"DeploymentConfig": deployment_config,
"EndpointConfigName": endpoint_config_name,
"ExcludeRetainedVariantProperties": exclude_retained_variant_properties,
"RetainAllVariantProperties": retain_all_variant_properties,
"RetainDeploymentConfig": retain_deployment_config,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ endpoint_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.endpoints
WHERE
Identifier = '{{ endpoint_arn }}' AND
region = 'us-east-1';

Permissions

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

sagemaker:CreateEndpoint,
sagemaker:DescribeEndpoint,
sagemaker:AddTags