sagemaker:StopNotebookInstance is a Write access-level action in the sagemaker service. Grants permission to stop a notebook instance. This terminates the EC2 instance. Before terminating the instance, Amazon SageMaker disconnects the EBS volume from it. Amazon SageMaker preserves the EBS volume
ARNs that sagemaker:StopNotebookInstance can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants sagemaker:StopNotebookInstance.
Filters access by a tag key and value pair
Filters access by a tag key and value pair
A minimal policy that allows sagemaker:StopNotebookInstance. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSagemakerStopNotebookInstance",
"Effect": "Allow",
"Action": "sagemaker:StopNotebookInstance",
"Resource": "*"
}
]
}