codeartifact:DisposePackageVersions is a Write access-level action in the codeartifact service. Grants permission to set the status of package versions to Disposed and delete their assets
ARNs that codeartifact:DisposePackageVersions can be scoped to in an IAM policy.
No condition keys are documented for this action.
A minimal policy that allows codeartifact:DisposePackageVersions. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCodeartifactDisposePackageVersions",
"Effect": "Allow",
"Action": "codeartifact:DisposePackageVersions",
"Resource": "*"
}
]
}