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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.endpoints
WHERE
Identifier = '{{ endpoint_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

sagemaker:CreateEndpoint,
sagemaker:DescribeEndpoint,
sagemaker:AddTags