sagemaker:CreateSpace

Write

sagemaker:CreateSpace is a Write access-level action in the sagemaker service. Grants permission to create a Space for a SageMaker Domain

Resource types

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

arn:${Partition}:sagemaker:${Region}:${Account}:space/${DomainId}/${SpaceName} required
space

Condition keys

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

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:ImageArns ArrayOfARN

Filters access by the list of all image arns associated with the resource in the request

sagemaker:ImageVersionArns ArrayOfARN

Filters access by the list of all image version arns associated with the resource in the request

sagemaker:InstanceTypes ArrayOfString

Filters access by the list of all instance types associated with the resource in the request

sagemaker:OwnerUserProfileArn ARN

Filters access by the OwnerUserProfile arn associated with the space in the request

sagemaker:RemoteAccess String

Filters access by the remote access flag associated with the space in the request

sagemaker:SpaceSharingType String

Filters access by the sharing type associated with the space in the request

sagemaker:StudioLifecycleConfigArns ArrayOfARN

Filters access by the list of lifecycle configuration ARNs associated with the resource in the request

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair

sagemaker:ResourceTag/${TagKey} String

Filters access by a tag key and value pair

Example IAM policy

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

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

Related actions in sagemaker

View all sagemaker actions →