Skip to main content

mlflow_tracking_servers

Creates, updates, deletes or gets a mlflow_tracking_server resource or lists mlflow_tracking_servers in a region

Overview

Namemlflow_tracking_servers
TypeResource
DescriptionResource Type definition for AWS::SageMaker::MlflowTrackingServer
Idawscc.sagemaker.mlflow_tracking_servers

Fields

NameDatatypeDescription
tracking_server_namestringThe name of the MLFlow Tracking Server.
tracking_server_arnstringThe Amazon Resource Name (ARN) of the MLFlow Tracking Server.
tracking_server_sizestringThe size of the MLFlow Tracking Server.
mlflow_versionstringThe MLFlow Version used on the MLFlow Tracking Server.
role_arnstringThe Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on behalf of the customer.
artifact_store_uristringThe Amazon S3 URI for MLFlow Tracking Server artifacts.
automatic_model_registrationbooleanA flag to enable Automatic SageMaker Model Registration.
weekly_maintenance_window_startstringThe start of the time window for maintenance of the MLFlow Tracking Server in UTC time.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcemlflow_tracking_serversINSERTTrackingServerName, ArtifactStoreUri, RoleArn, region
delete_resourcemlflow_tracking_serversDELETEIdentifier, region
update_resourcemlflow_tracking_serversUPDATEIdentifier, PatchDocument, region
list_resourcesmlflow_tracking_servers_list_onlySELECTregion
get_resourcemlflow_tracking_serversSELECTIdentifier, region

SELECT examples

Gets all properties from an individual mlflow_tracking_server.

SELECT
region,
tracking_server_name,
tracking_server_arn,
tracking_server_size,
mlflow_version,
role_arn,
artifact_store_uri,
automatic_model_registration,
weekly_maintenance_window_start,
tags
FROM awscc.sagemaker.mlflow_tracking_servers
WHERE
region = '{{ region }}' AND
Identifier = '{{ tracking_server_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.sagemaker.mlflow_tracking_servers (
TrackingServerName,
RoleArn,
ArtifactStoreUri,
region
)
SELECT
'{{ tracking_server_name }}',
'{{ role_arn }}',
'{{ artifact_store_uri }}',
'{{ 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 mlflow_tracking_server resource, using stack-deploy.

/*+ update */
UPDATE awscc.sagemaker.mlflow_tracking_servers
SET PatchDocument = string('{{ {
"TrackingServerSize": tracking_server_size,
"MlflowVersion": mlflow_version,
"RoleArn": role_arn,
"ArtifactStoreUri": artifact_store_uri,
"AutomaticModelRegistration": automatic_model_registration,
"WeeklyMaintenanceWindowStart": weekly_maintenance_window_start,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ tracking_server_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.mlflow_tracking_servers
WHERE
Identifier = '{{ tracking_server_name }}' 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 mlflow_tracking_servers resource, the following permissions are required:

sagemaker:CreateMlflowTrackingServer,
sagemaker:DescribeMlflowTrackingServer,
sagemaker:AddTags,
sagemaker:ListTags,
iam:PassRole