Actions, Resources, and Condition Keys for AWS CodeArtifact
AWS CodeArtifact (service prefix:
codeartifact
) provides the following service-specific resources, actions, and condition context
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.
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.
The
Resource Types
column indicates whether each action supports resource-level permissions. If
there is no value for this column, you must specify all resources ("*") in the
Resource
element of your policy statement. If the column includes a resource type, then
you can specify an ARN of that type in a statement with that action. Required
resources are indicated in the table with an asterisk (*). If you specify a resource-level
permission ARN in a statement using this action, then it must be of this type.
Some actions support multiple resource types. If the resource type is optional (not
indicated as required), then you can choose to use one but not the other.
For details about the columns in the following table, see The Actions Table .
Actions | Description | Access Level | Resource Types (*required) | Condition Keys | Dependent Actions |
---|---|---|---|---|---|
AssociateExternalConnection | Grants permission to add an external connection to a repository | Write | |||
AssociateWithDownstreamRepository | Grants permission to associate an existing repository as an upstream repository to another repository | Write | |||
CopyPackageVersions | Grants permission to copy package versions from one repository to another repository in the same domain. | Write | |||
CreateDomain | Grants permission to create a new domain | Write | |||
CreateRepository | Grants permission to create a new repository | Write | |||
DeleteDomain | Grants permission to delete a domain | Write | |||
DeleteDomainPermissionsPolicy | Grants permission to delete the resource policy set on a domain | Permissions management | |||
DeletePackageVersions | Grants permission to delete package versions | Write | |||
DeleteRepository | Grants permission to delete a repository | Write | |||
DeleteRepositoryPermissionsPolicy | Grants permission to delete the resource policy set on a repository | Permissions management | |||
DescribeDomain | Grants permission to return information about a domain | Read | |||
DescribePackageVersion | Grants permission to return information about a package version | Read | |||
DescribeRepository | Grants permission to return detailed information about a repository | Read | |||
DisassociateExternalConnection | Grants permission to disassociate an external connection from a repository | Write | |||
DisposePackageVersions | Grants permission to set the status of package versions to Disposed and delete their assets | Write | |||
GetAuthorizationToken | Grants permission to generate a temporary authentication token for accessing repositories in a domain | Read | |||
GetDomainPermissionsPolicy | Grants permission to return a domain's resource policy | Read | |||
GetPackageVersionAsset | Grants permission to return an asset (or file) that is part of a package version | Read | |||
GetPackageVersionReadme | Grants permission to return a package version's readme file | Read | |||
GetRepositoryEndpoint | Grants permission to return an endpoint for a repository | Read | |||
GetRepositoryPermissionsPolicy | Grants permission to return a repository's resource policy | Read | |||
ListDomains | Grants permission to list the domains in the current user's AWS account | List | |||
ListPackageVersionAssets | Grants permission to list a package version's assets | List | |||
ListPackageVersionDependencies | Grants permission to list the direct dependencies of a package version | List | |||
ListPackageVersions | Grants permission to list a package's versions | List | |||
ListPackages | Grants permission to list the packages in a repository | List | |||
ListRepositories | Grants permission to list the repositories administered by the calling account | List | |||
ListRepositoriesInDomain | Grants permission to list the repositories in a domain | List | |||
PublishPackageVersion | Grants permission to publish assets and metadata to a repository endpoint | Write | |||
PutDomainPermissionsPolicy | Grants permission to attach a resource policy to a domain | Write | |||
PutPackageMetadata | Grants permission to add, modify or remove package metadata using a repository endpoint | Write | |||
PutRepositoryPermissionsPolicy | Grants permission to attach a resource policy to a repository | Write | |||
ReadFromRepository | Grants permission to return package assets and metadata from a repository endpoint | Read | |||
UpdatePackageVersionsStatus | Grants permission to modify the status of one or more versions of a package | Write | |||
UpdateRepository | 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. Each action in the
Actions table
identifies the resource types that can be specified with that action. A resource
type can also define which condition keys you can include in a policy. These
keys are displayed in the last column of the table. For details about the columns
in the following table, see
The Resource Types Table
.
Resource Types | ARN | Condition Keys |
---|---|---|
domain |
arn:$
{
Partition}:codeartifact:$
{
Region}:$
{
Account}:domain/$
{
DomainName}
|
|
repository |
arn:$
{
Partition}:codeartifact:$
{
Region}:$
{
Account}:repository/$
{
DomainName}/$
{
RepositoryName}
|
|
package |
arn:$
{
Partition}:codeartifact:$
{
Region}:$
{
Account}:package/$
{
DomainName}/$
{
RepositoryName}/$
{
PackageFormat}/$
{
PackageNamespace}/$
{
PackageName}
|
Condition Keys for AWS CodeArtifact
CodeArtifact has no service-specific context keys that can be used in the
Condition
element of policy statements. For the list of the global context keys that are
available to all services, see
Available Keys for Conditions
in the
IAM Policy Reference
.