sagemaker:CreateTrainingJob

Write

sagemaker:CreateTrainingJob is a Write access-level action in the sagemaker service. Grants permission to start a model training job. After training completes, Amazon SageMaker saves the resulting model artifacts and other optional output to an Amazon S3 location that you specify

Resource types

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

arn:${Partition}:sagemaker:${Region}:${Account}:reserved-capacity/${RandomString}
reserved-capacity
arn:${Partition}:sagemaker:${Region}:${Account}:training-job/${TrainingJobName} required
training-job
arn:${Partition}:sagemaker:${Region}:${Account}:training-plan/${TrainingPlanName}
training-plan

Condition keys

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

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:DirectGatedModelAccess String

Used to deny direct access to SageMaker gated ModelReferences

sagemaker:EnableRemoteDebug Bool

Filters access by the remote debug config in the request

sagemaker:FileSystemAccessMode String

Filters access by a file system access mode associated with the resource in the request

sagemaker:FileSystemDirectoryPath String

Filters access by a file system directory path associated with the resource in the request

sagemaker:FileSystemId String

Filters access by a file system ID associated with the resource in the request

sagemaker:FileSystemType String

Filters access by a file system type 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:InterContainerTrafficEncryption Bool

Filters access by the inter container traffic encryption associated with the resource in the request

sagemaker:KeepAlivePeriod Numeric

Filters access by the keep-alive period associated with the resource in the request

sagemaker:MaxRuntimeInSeconds Numeric

Filters access by the max runtime in seconds associated with the resource in the request

sagemaker:NetworkIsolation Bool

Filters access by the network isolation associated with the resource in the request

sagemaker:OutputKmsKeyArn ARN

Filters access by the output kms key associated with the resource in the request. The ARN of the key-id must be used

sagemaker:VolumeKmsKeyArn ARN

Filters access by the volume kms key associated with the resource in the request. The ARN of the key-id must be used

sagemaker:VpcSecurityGroupIds ArrayOfString

Filters access by the list of all VPC security group ids associated with the resource in the request

sagemaker:VpcSubnets ArrayOfString

Filters access by the list of all VPC subnets 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:CreateTrainingJob. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in sagemaker

View all sagemaker actions →