sagemaker:SampleTrainingSession

Write

sagemaker:SampleTrainingSession is a Write access-level action in the sagemaker service. Grants permission to invoke a synchronous sample request against a training session

Resource types

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

arn:${Partition}:sagemaker:${Region}:${Account}:training-session/${SessionName} required
training-session

Condition keys

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

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:SampleTrainingSession. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in sagemaker

View all sagemaker actions →