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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

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

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