sagemaker:ListModelPackages

List

sagemaker:ListModelPackages is a List access-level action in the sagemaker service. Grants permission to list ModelPackages

Resource types

ARNs that sagemaker:ListModelPackages can be scoped to in an IAM policy.

arn:${Partition}:sagemaker:${Region}:${Account}:model-package/${ModelPackageName}
model-package

Condition keys

Keys you can use in the Condition block of a policy that grants sagemaker:ListModelPackages.

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair

sagemaker:CurrentCustomerMetadataProperties/${MetadataKey} String

Filters access by a current metadata key and value pair associated with the model-package resource

sagemaker:CurrentModelLifeCycleStage String

Filters access by the current value of the Stage field in the model life cycle object associated with the model-package resource

sagemaker:CurrentModelLifeCycleStageStatus String

Filters access by the current value of the StageStatus field in the model life cycle object associated with the model-package resource

sagemaker:ResourceTag/${TagKey} String

Filters access by a tag key and value pair

Example IAM policy

A minimal policy that allows sagemaker:ListModelPackages. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSagemakerListModelPackages",
      "Effect": "Allow",
      "Action": "sagemaker:ListModelPackages",
      "Resource": "*"
    }
  ]
}

Related actions in sagemaker

View all sagemaker actions →