Actions, resources, and condition keys for AWS CodeArtifact
AWS CodeArtifact (service prefix: codeartifact) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
Actions defined by AWS CodeArtifact
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in AWS. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to add an external connection to a repository |
Write |
|||
Grants permission to associate an existing repository as an upstream repository to another repository |
Write |
|||
Grants permission to copy package versions from one repository to another repository in the same domain |
Write |
|||
Grants permission to create a new domain |
Write |
|||
Grants permission to create a package group |
Write |
|||
Grants permission to create a new repository |
Write |
|||
Grants permission to delete a domain |
Write |
|||
Grants permission to delete the resource policy set on a domain |
Permissions management, Write |
|||
Grants permission to delete a package |
Write |
|||
Grants permission to delete a package group |
Write |
|||
Grants permission to delete package versions |
Write |
|||
Grants permission to delete a repository |
Write |
|||
Grants permission to delete the resource policy set on a repository |
Permissions management, Write |
|||
Grants permission to return information about a domain |
Read |
|||
Grants permission to retrieve information about a package |
Read |
|||
Grants permission to return detailed information about a package group |
Read |
|||
Grants permission to return information about a package version |
Read |
|||
Grants permission to return detailed information about a repository |
Read |
|||
Grants permission to disassociate an external connection from a repository |
Write |
|||
Grants permission to set the status of package versions to Disposed and delete their assets |
Write |
|||
Grants permission to return a package's associated package group |
Read |
|||
Grants permission to generate a temporary authentication token for accessing repositories in a domain |
Read |
|||
Grants permission to return a domain's resource policy |
Read |
|||
Grants permission to return an asset (or file) that is part of a package version |
Read |
|||
Grants permission to return a package version's readme file |
Read |
|||
Grants permission to return an endpoint for a repository |
Read |
|||
Grants permission to return a repository's resource policy |
Read |
|||
Grants permission to list the allowed repositories for a package group |
List |
|||
Grants permission to list the packages associated to a package group |
List |
|||
Grants permission to list the domains in the current user's AWS account |
List |
|||
Grants permission to list the package groups in a domain |
List |
|||
Grants permission to list a package version's assets |
List |
|||
Grants permission to list the direct dependencies of a package version |
List |
|||
Grants permission to list a package's versions |
List |
|||
Grants permission to list the packages in a repository |
List |
|||
Grants permission to list the repositories administered by the calling account |
List |
|||
Grants permission to list the repositories in a domain |
List |
|||
Grants permission to list the sub package groups for a parent package group |
List |
|||
Grants permission to list tags for a CodeArtifact resource |
List |
|||
Grants permission to publish assets and metadata to a repository endpoint |
Write |
|||
Grants permission to attach a resource policy to a domain |
Write |
|||
Grants permission to add, modify or remove package metadata using a repository endpoint |
Write |
|||
Grants permission to set origin configuration for a package |
Write |
|||
Grants permission to attach a resource policy to a repository |
Write |
|||
Grants permission to return package assets and metadata from a repository endpoint |
Read |
|||
Grants permission to tag a CodeArtifact resource |
Tagging, Write |
|||
Grants permission to remove a tag from a CodeArtifact resource |
Tagging, Write |
|||
Grants permission to modify the properties of a package group |
Write |
|||
Grants permission to modify the package origin configuration of a package group |
Write |
|||
Grants permission to modify the status of one or more versions of a package |
Write |
|||
Grants permission to modify the properties of a repository |
Write |
Resource types defined by AWS CodeArtifact
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:codeartifact:${Region}:${Account}:domain/${DomainName} |
||
arn:${Partition}:codeartifact:${Region}:${Account}:package/${DomainName}/${RepositoryName}/${PackageFormat}/${PackageNamespace}/${PackageName} |
||
arn:${Partition}:codeartifact:${Region}:${Account}:package-group/${DomainName}${EncodedPackageGroupPattern} |
||
arn:${Partition}:codeartifact:${Region}:${Account}:repository/${DomainName}/${RepositoryName} |
Condition keys for AWS CodeArtifact
AWS CodeArtifact defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the presence of tag key-value pairs in the request |
String |
|
Filters access by tag key-value pairs attached to the resource |
String |
|
Filters access by the presence of tag keys in the request |
ArrayOfString |