Skip to main content

partner_apps

Creates, updates, deletes, gets or lists a partner_apps resource.

Overview

Namepartner_apps
TypeResource
Idaws.sagemaker.partner_apps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_configobjectConfiguration settings for the SageMaker Partner AI App.
arnstringThe ARN of the SageMaker Partner AI App that was described. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:partner-app/app-[A-Z0-9]{12}</code>)
auth_typestringThe authorization type that users use to access the SageMaker Partner AI App. (IAM)
available_upgradeobjectA map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available.
base_urlstringThe URL of the SageMaker Partner AI App that the Application SDK uses to support in-app calls for the user.
creation_timestring (date-time)The time that the SageMaker Partner AI App was created.
current_version_eol_datestring (date-time)The end-of-life date for the current version of the SageMaker Partner AI App.
enable_auto_minor_version_upgradebooleanIndicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows.
enable_iam_session_based_identitybooleanWhen set to TRUE, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.
errorobjectThis is an error field object that contains the error code and the reason for an operation failure.
execution_role_arnstringThe ARN of the IAM role associated with the SageMaker Partner AI App. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
kms_key_idstringThe Amazon Web Services KMS customer managed key used to encrypt the data at rest associated with SageMaker Partner AI Apps. (pattern: <code>[a-zA-Z0-9:/_-]*</code>)
last_modified_timestring (date-time)The time that the SageMaker Partner AI App was last modified.
maintenance_configobjectMaintenance configuration settings for the SageMaker Partner AI App.
namestringThe name of the SageMaker Partner AI App. (pattern: <code>[a-zA-Z0-9]+</code>)
statusstringThe status of the SageMaker Partner AI App. Creating: SageMaker AI is creating the partner AI app. The partner AI app is not available during creation. Updating: SageMaker AI is updating the partner AI app. The partner AI app is not available when updating. Deleting: SageMaker AI is deleting the partner AI app. The partner AI app is not available during deletion. Available: The partner AI app is provisioned and accessible. Failed: The partner AI app is in a failed state and isn't available. SageMaker AI is investigating the issue. For further guidance, contact Amazon Web Services Support. UpdateFailed: The partner AI app couldn't be updated but is available. Deleted: The partner AI app is permanently deleted and not available. (Creating, Updating, Deleting, Available, Failed, UpdateFailed, Deleted)
tierstringThe instance type and size of the cluster attached to the SageMaker Partner AI App. (pattern: <code>(?!\s*$).+</code>)
typestringThe type of SageMaker Partner AI App. Must be one of the following: lakera-guard, comet, deepchecks-llm-evaluation, or fiddler. (lakera-guard, comet, deepchecks-llm-evaluation, fiddler)
versionstringThe version of the SageMaker Partner AI App. (pattern: <code>(?!\s*$).+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_partner_appselectregionGets information about a SageMaker Partner AI App.
create_partner_appinsertregion, ExecutionRoleArn, AuthTypeCreates an Amazon SageMaker Partner AI App.
create_partner_app_presigned_urlinsertregionCreates a presigned URL to access an Amazon SageMaker Partner AI App.
update_partner_appupdateregionUpdates all of the SageMaker Partner AI Apps in an account.
delete_partner_appdeleteregionDeletes a SageMaker Partner AI App.
list_partner_appsexecregionLists all of the SageMaker Partner AI Apps in an account.

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

Gets information about a SageMaker Partner AI App.

SELECT
application_config,
arn,
auth_type,
available_upgrade,
base_url,
creation_time,
current_version_eol_date,
enable_auto_minor_version_upgrade,
enable_iam_session_based_identity,
error,
execution_role_arn,
kms_key_id,
last_modified_time,
maintenance_config,
name,
status,
tier,
type,
version
FROM aws.sagemaker.partner_apps
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon SageMaker Partner AI App.

INSERT INTO aws.sagemaker.partner_apps (
Name,
Type,
ExecutionRoleArn,
KmsKeyId,
MaintenanceConfig,
Tier,
ApplicationConfig,
AuthType,
EnableIamSessionBasedIdentity,
EnableAutoMinorVersionUpgrade,
ClientToken,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Type }}',
'{{ ExecutionRoleArn }}' /* required */,
'{{ KmsKeyId }}',
'{{ MaintenanceConfig }}',
'{{ Tier }}',
'{{ ApplicationConfig }}',
'{{ AuthType }}' /* required */,
{{ EnableIamSessionBasedIdentity }},
{{ EnableAutoMinorVersionUpgrade }},
'{{ ClientToken }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn
;

UPDATE examples

Updates all of the SageMaker Partner AI Apps in an account.

UPDATE aws.sagemaker.partner_apps
SET
Arn = '{{ Arn }}',
MaintenanceConfig = '{{ MaintenanceConfig }}',
Tier = '{{ Tier }}',
ApplicationConfig = '{{ ApplicationConfig }}',
EnableIamSessionBasedIdentity = {{ EnableIamSessionBasedIdentity }},
EnableAutoMinorVersionUpgrade = {{ EnableAutoMinorVersionUpgrade }},
AppVersion = '{{ AppVersion }}',
ClientToken = '{{ ClientToken }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
RETURNING
arn;

DELETE examples

Deletes a SageMaker Partner AI App.

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

Lifecycle Methods

Lists all of the SageMaker Partner AI Apps in an account.

EXEC aws.sagemaker.partner_apps.list_partner_apps
@region='{{ region }}' --required
@@json=
'{
"MaxResults": {{ MaxResults }},
"NextToken": "{{ NextToken }}"
}'
;