sagemaker:CreateModelPackage

Write

sagemaker:CreateModelPackage is a Write access-level action in the sagemaker service. Grants permission to create a ModelPackage

Resource types

ARNs that sagemaker:CreateModelPackage 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:CreateModelPackage.

aws:RequestTag/${TagKey} String

Filters access by a key that is present in the request the user makes to the SageMaker service

aws:TagKeys ArrayOfString

Filters access by the list of all the tag key names associated with the resource in the request

sagemaker:CustomerMetadataProperties/${MetadataKey} String

Filters access by a metadata key and value pair

sagemaker:ModelApprovalStatus String

Filters access by the model approval status with the model-package in the request

sagemaker:ModelLifeCycle:Stage String

Filters access by stage field in the model life cycle object associated with the model-package resource in the request

sagemaker:ModelLifeCycle:StageStatus String

Filters access by stageStatus field in the model life cycle object associated with the model-package resource in the request

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

Example IAM policy

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

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

Related actions in sagemaker

View all sagemaker actions →