Skip to main content

edge_deployment_plans

Creates, updates, deletes, gets or lists an edge_deployment_plans resource.

Overview

Nameedge_deployment_plans
TypeResource
Idaws.sagemaker.edge_deployment_plans

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time when the edge deployment plan was created.
device_fleet_namestringThe device fleet used for this edge deployment plan. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
edge_deployment_failedintegerThe number of edge devices that failed the deployment.
edge_deployment_pendingintegerThe number of edge devices yet to pick up deployment, or in progress.
edge_deployment_plan_arnstringThe ARN of edge deployment plan. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z-]:\d{12}:edge-deployment/?[a-zA-Z_0-9+=,.@-_/]+</code>)
edge_deployment_plan_namestringThe name of the edge deployment plan. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
edge_deployment_successintegerThe number of edge devices with the successful deployment.
last_modified_timestring (date-time)The time when the edge deployment plan was last updated.
model_configsarrayList of models associated with the edge deployment plan.
next_tokenstringToken to use when calling the next set of stages in the edge deployment plan. (pattern: <code>.*</code>)
stagesarrayList of stages in the edge deployment plan.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_edge_deployment_planselectregionDescribes an edge deployment plan with deployment status per stage.
list_edge_deployment_plansselectregionLists all edge deployment plans.
create_edge_deployment_planinsertregion, EdgeDeploymentPlanName, ModelConfigs, DeviceFleetNameCreates an edge deployment plan, consisting of multiple stages. Each stage may have a different deployment configuration and devices.
create_edge_deployment_stageinsertregion, EdgeDeploymentPlanNameCreates a new stage in an existing edge deployment plan.
delete_edge_deployment_stagedeleteregionDelete a stage in an edge deployment plan if (and only if) the stage is inactive.
delete_edge_deployment_plandeleteregionDeletes an edge deployment plan if (and only if) all the stages in the plan are inactive or there are no stages in the plan.
start_edge_deployment_stageexecregion, EdgeDeploymentPlanName, StageNameStarts a stage in an edge deployment plan.
stop_edge_deployment_stageexecregion, EdgeDeploymentPlanName, StageNameStops a stage in an edge deployment plan.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Describes an edge deployment plan with deployment status per stage.

SELECT
creation_time,
device_fleet_name,
edge_deployment_failed,
edge_deployment_pending,
edge_deployment_plan_arn,
edge_deployment_plan_name,
edge_deployment_success,
last_modified_time,
model_configs,
next_token,
stages
FROM aws.sagemaker.edge_deployment_plans
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an edge deployment plan, consisting of multiple stages. Each stage may have a different deployment configuration and devices.

INSERT INTO aws.sagemaker.edge_deployment_plans (
EdgeDeploymentPlanName,
ModelConfigs,
DeviceFleetName,
Stages,
Tags,
region
)
SELECT
'{{ EdgeDeploymentPlanName }}' /* required */,
'{{ ModelConfigs }}' /* required */,
'{{ DeviceFleetName }}' /* required */,
'{{ Stages }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
edge_deployment_plan_arn
;

DELETE examples

Delete a stage in an edge deployment plan if (and only if) the stage is inactive.

DELETE FROM aws.sagemaker.edge_deployment_plans
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Starts a stage in an edge deployment plan.

EXEC aws.sagemaker.edge_deployment_plans.start_edge_deployment_stage
@region='{{ region }}' --required
@@json=
'{
"EdgeDeploymentPlanName": "{{ EdgeDeploymentPlanName }}",
"StageName": "{{ StageName }}"
}'
;