Skip to main content

inference_components

Creates, updates, deletes or gets an inference_component resource or lists inference_components in a region

Overview

Nameinference_components
TypeResource
DescriptionResource Type definition for AWS::SageMaker::InferenceComponent
Idaws.sagemaker.inference_components

Fields

NameDatatypeDescription
inference_component_arnstringThe Amazon Resource Name (ARN) of the inference component
inference_component_namestringThe name of the inference component
endpoint_arnstringThe Amazon Resource Name (ARN) of the endpoint the inference component is associated with
endpoint_namestringThe name of the endpoint used to run the monitoring job.
variant_namestringThe name of the endpoint variant the inference component is associated with
failure_reasonstringThe failure reason if the inference component is in a failed state
specificationobjectThe specification for the inference component
runtime_configobjectThe runtime config for the inference component
inference_component_statusstring
creation_timestring
last_modified_timestring
tagsarrayAn array of tags to apply to the resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTEndpointName, VariantName, Specification, RuntimeConfig, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all inference_components in a region.

SELECT
region,
inference_component_arn,
inference_component_name,
endpoint_arn,
endpoint_name,
variant_name,
failure_reason,
specification,
runtime_config,
inference_component_status,
creation_time,
last_modified_time,
tags
FROM aws.sagemaker.inference_components
WHERE region = 'us-east-1';

Gets all properties from an individual inference_component.

SELECT
region,
inference_component_arn,
inference_component_name,
endpoint_arn,
endpoint_name,
variant_name,
failure_reason,
specification,
runtime_config,
inference_component_status,
creation_time,
last_modified_time,
tags
FROM aws.sagemaker.inference_components
WHERE region = 'us-east-1' AND data__Identifier = '<InferenceComponentArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.inference_components (
EndpointName,
VariantName,
Specification,
RuntimeConfig,
region
)
SELECT
'{{ EndpointName }}',
'{{ VariantName }}',
'{{ Specification }}',
'{{ RuntimeConfig }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

sagemaker:AddTags,
sagemaker:ListTags,
sagemaker:CreateInferenceComponent,
sagemaker:DescribeInferenceComponent

Update

sagemaker:UpdateInferenceComponent,
sagemaker:UpdateInferenceComponentRuntimeConfig,
sagemaker:DescribeInferenceComponent,
sagemaker:AddTags,
sagemaker:ListTags,
sagemaker:DeleteTags

Delete

sagemaker:DescribeInferenceComponent,
sagemaker:DeleteInferenceComponent,
sagemaker:DeleteTags

Read

sagemaker:DescribeInferenceComponent,
sagemaker:ListTags

List

sagemaker:ListInferenceComponents,
sagemaker:DescribeInferenceComponent,
sagemaker:ListTags