model_package_groups
Creates, updates, deletes or gets a model_package_group
resource or lists model_package_groups
in a region
Overview
Name | model_package_groups |
Type | Resource |
Description | Resource Type definition for AWS::SageMaker::ModelPackageGroup |
Id | aws.sagemaker.model_package_groups |
Fields
Name | Datatype | Description |
---|---|---|
tags | array | An array of key-value pairs to apply to this resource. |
model_package_group_arn | string | The Amazon Resource Name (ARN) of the model package group. |
model_package_group_name | string | The name of the model package group. |
model_package_group_description | string | The description of the model package group. |
model_package_group_policy | object | |
creation_time | string | The time at which the model package group was created. |
model_package_group_status | string | The status of a modelpackage group job. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ModelPackageGroupName, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.sagemaker.model_package_groups (
ModelPackageGroupName,
region
)
SELECT
'{{ ModelPackageGroupName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.sagemaker.model_package_groups (
Tags,
ModelPackageGroupName,
ModelPackageGroupDescription,
ModelPackageGroupPolicy,
region
)
SELECT
'{{ Tags }}',
'{{ ModelPackageGroupName }}',
'{{ ModelPackageGroupDescription }}',
'{{ ModelPackageGroupPolicy }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: model_package_group
props:
- name: Tags
value:
- Value: '{{ Value }}'
Key: '{{ Key }}'
- name: ModelPackageGroupName
value: '{{ ModelPackageGroupName }}'
- name: ModelPackageGroupDescription
value: '{{ ModelPackageGroupDescription }}'
- name: ModelPackageGroupPolicy
value: {}
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