sagemaker:DeleteCodeRepository is a Write access-level action in the sagemaker service. Grants permission to delete a CodeRepository
ARNs that sagemaker:DeleteCodeRepository can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants sagemaker:DeleteCodeRepository.
Filters access by a tag key and value pair
Filters access by a tag key and value pair
A minimal policy that allows sagemaker:DeleteCodeRepository. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSagemakerDeleteCodeRepository",
"Effect": "Allow",
"Action": "sagemaker:DeleteCodeRepository",
"Resource": "*"
}
]
}