Skip to main content

apps

Creates, updates, deletes or gets an app resource or lists apps in a region

Overview

Nameapps
TypeResource
DescriptionResource Type definition for AWS::SageMaker::App
Idaws.sagemaker.apps

Fields

NameDatatypeDescription
app_arnstringThe Amazon Resource Name (ARN) of the app.
app_namestringThe name of the app.
app_typestringThe type of app.
domain_idstringThe domain ID.
resource_specobjectThe instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
tagsarrayA list of tags to apply to the app.
user_profile_namestringThe user profile name.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAppName, AppType, DomainId, UserProfileName, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all apps in a region.

SELECT
region,
app_arn,
app_name,
app_type,
domain_id,
resource_spec,
tags,
user_profile_name
FROM aws.sagemaker.apps
WHERE region = 'us-east-1';

Gets all properties from an individual app.

SELECT
region,
app_arn,
app_name,
app_type,
domain_id,
resource_spec,
tags,
user_profile_name
FROM aws.sagemaker.apps
WHERE region = 'us-east-1' AND data__Identifier = '<AppName>|<AppType>|<DomainId>|<UserProfileName>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.apps (
AppName,
AppType,
DomainId,
UserProfileName,
region
)
SELECT
'{{ AppName }}',
'{{ AppType }}',
'{{ DomainId }}',
'{{ UserProfileName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.apps
WHERE data__Identifier = '<AppName|AppType|DomainId|UserProfileName>'
AND region = 'us-east-1';

Permissions

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

Create

sagemaker:CreateApp,
sagemaker:DescribeApp

Read

sagemaker:DescribeApp,
sagemaker:DescribeApp

Delete

sagemaker:DeleteApp,
sagemaker:DescribeApp

List

sagemaker:ListApps