Skip to main content

partner_apps

Creates, updates, deletes or gets a partner_app resource or lists partner_apps in a region

Overview

Namepartner_apps
TypeResource
DescriptionResource Type definition for AWS::SageMaker::PartnerApp
Idawscc.sagemaker.partner_apps

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the created PartnerApp.
namestringA name for the PartnerApp.
typestringThe type of PartnerApp.
execution_role_arnstringThe execution role for the user.
kms_key_idstringThe AWS KMS customer managed key used to encrypt the data associated with the PartnerApp.
tierstringThe tier of the PartnerApp.
enable_iam_session_based_identitybooleanEnables IAM Session based Identity for PartnerApp.
application_configobjectA collection of settings that specify the maintenance schedule for the PartnerApp.
auth_typestringThe Auth type of PartnerApp.
base_urlstringThe AppServerUrl based on app and account-info.
maintenance_configobjectA collection of settings that specify the maintenance schedule for the PartnerApp.
client_tokenstringThe client token for the PartnerApp.
tagsarrayA list of tags to apply to the PartnerApp.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcepartner_appsINSERTName, Type, AuthType, ExecutionRoleArn, Tier, region
delete_resourcepartner_appsDELETEIdentifier, region
update_resourcepartner_appsUPDATEIdentifier, PatchDocument, region
list_resourcespartner_apps_list_onlySELECTregion
get_resourcepartner_appsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual partner_app.

SELECT
region,
arn,
name,
type,
execution_role_arn,
kms_key_id,
tier,
enable_iam_session_based_identity,
application_config,
auth_type,
base_url,
maintenance_config,
client_token,
tags
FROM awscc.sagemaker.partner_apps
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.sagemaker.partner_apps (
Name,
Type,
ExecutionRoleArn,
Tier,
AuthType,
region
)
SELECT
'{{ name }}',
'{{ type }}',
'{{ execution_role_arn }}',
'{{ tier }}',
'{{ auth_type }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a partner_app resource, using stack-deploy.

/*+ update */
UPDATE awscc.sagemaker.partner_apps
SET PatchDocument = string('{{ {
"Tier": tier,
"EnableIamSessionBasedIdentity": enable_iam_session_based_identity,
"ApplicationConfig": application_config,
"MaintenanceConfig": maintenance_config,
"ClientToken": client_token,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.partner_apps
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

sagemaker:CreatePartnerApp,
sagemaker:DescribePartnerApp,
sagemaker:AddTags,
sagemaker:ListTags,
iam:PassRole,
kms:CreateGrant,
kms:DescribeKey