Skip to main content

model_package_groups

Creates, updates, deletes or gets a model_package_group resource or lists model_package_groups in a region

Overview

Namemodel_package_groups
TypeResource
DescriptionResource Type definition for AWS::SageMaker::ModelPackageGroup
Idaws.sagemaker.model_package_groups

Fields

NameDatatypeDescription
tagsarrayAn array of key-value pairs to apply to this resource.
model_package_group_arnstringThe Amazon Resource Name (ARN) of the model package group.
model_package_group_namestringThe name of the model package group.
model_package_group_descriptionstringThe description of the model package group.
model_package_group_policyobject
creation_timestringThe time at which the model package group was created.
model_package_group_statusstringThe status of a modelpackage group job.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTModelPackageGroupName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all model_package_groups in a region.

SELECT
region,
tags,
model_package_group_arn,
model_package_group_name,
model_package_group_description,
model_package_group_policy,
creation_time,
model_package_group_status
FROM aws.sagemaker.model_package_groups
WHERE region = 'us-east-1';

Gets all properties from an individual model_package_group.

SELECT
region,
tags,
model_package_group_arn,
model_package_group_name,
model_package_group_description,
model_package_group_policy,
creation_time,
model_package_group_status
FROM aws.sagemaker.model_package_groups
WHERE region = 'us-east-1' AND data__Identifier = '<ModelPackageGroupArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.model_package_groups (
ModelPackageGroupName,
region
)
SELECT
'{{ ModelPackageGroupName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.model_package_groups
WHERE data__Identifier = '<ModelPackageGroupArn>'
AND region = 'us-east-1';

Permissions

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

Create

sagemaker:CreateModelPackageGroup,
sagemaker:DescribeModelPackageGroup,
sagemaker:GetModelPackageGroupPolicy,
sagemaker:PutModelPackageGroupPolicy,
sagemaker:ListTags,
sagemaker:AddTags

Delete

sagemaker:DeleteModelPackageGroup,
sagemaker:DescribeModelPackageGroup,
sagemaker:GetModelPackageGroupPolicy,
sagemaker:DeleteModelPackageGroupPolicy

List

sagemaker:ListModelPackageGroups

Read

sagemaker:DescribeModelPackageGroup,
sagemaker:GetModelPackageGroupPolicy,
sagemaker:PutModelPackageGroupPolicy,
sagemaker:ListTags

Update

sagemaker:DescribeModelPackageGroup,
sagemaker:GetModelPackageGroupPolicy,
sagemaker:DeleteModelPackageGroupPolicy,
sagemaker:PutModelPackageGroupPolicy,
sagemaker:ListTags,
sagemaker:AddTags,
sagemaker:DeleteTags