CmdID / aws / aws codeartifact
aws codeartifact delete-domain-permissions-policy
Deletes the resource policy set on a domain. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To delete the permissions policy document from a domain
The following delete-domain-permissions-policy example deletes the permission policy from a domain named test-domain.
aws codeartifact delete-domain-permissions-policy --domain test-domainIdentify--domainThe name of the domain associated with the resource policy to be deleted.Its output
{
"policy": {
"resourceArn": "arn:aws:codeartifact:us-west-2:123456789012:domain/test-domain",
"document": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"BasicDomainPolicy\",\"Action\":[\"codeartifact:GetDomainPermissionsPolicy\",\"codeartifact:ListRepositoriesInDomain\",\"codeartifact:GetAuthorizationToken\",\"codeartifact:CreateRepository\"],\"Effect\":\"Allow\",\"Resource\":\"*\",\"Principal\":{\"AWS\":\"arn:aws:iam::123456789012:root\"}}]}"
}
}For more information, see Delete a domain policy in the AWS CodeArtifact User Guide.
Options
--domain-ownerThe 12-digit account number of the Amazon Web Services account that owns the domain.--domainThe name of the domain associated with the resource policy to be deleted.--policy-revisionThe current revision of the resource policy to be deleted.