Actions, resources, and condition keys for AWS CodeConnections
AWS CodeConnections (service prefix: codeconnections) 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
API operations defined by AWS CodeConnections
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
CreateConnection |
Write |
|||
Tagging, Write |
||||
Write |
||||
Tagging, Write |
||||
|
CreateHost |
Write |
|||
Tagging, Write |
||||
Write |
||||
Tagging, Write |
||||
|
CreateRepositoryLink |
Write |
|||
Read |
||||
Tagging, Write |
||||
Read |
||||
Write |
||||
Read |
||||
Tagging, Write |
||||
Read |
||||
|
CreateSyncConfiguration |
Write |
|||
Read |
||||
Write |
||||
Read |
||||
iam:PassedToService |
cloudformation.sync.codeconnections.amazonaws.com |
Write |
||
|
DeleteConnection |
Write |
|||
Write |
||||
|
DeleteHost |
Write |
|||
Write |
||||
|
DeleteRepositoryLink |
Write |
|||
Write |
||||
|
DeleteSyncConfiguration |
Write |
|||
Write |
||||
|
GetConnection |
Read |
|||
Read |
||||
|
GetHost |
Read |
|||
Read |
||||
|
GetRepositoryLink |
Read |
|||
Read |
||||
|
GetRepositorySyncStatus |
Read |
|||
Read |
||||
|
GetResourceSyncStatus |
Read |
|||
Read |
||||
|
GetSyncBlockerSummary |
Read |
|||
Read |
||||
|
GetSyncConfiguration |
Read |
|||
Read |
||||
|
ListConnections |
List |
|||
List |
||||
|
ListHosts |
List |
|||
List |
||||
|
ListRepositoryLinks |
List |
|||
List |
||||
|
ListSyncConfigurations |
List |
|||
List |
||||
|
ListTagsForResource |
List |
|||
List |
||||
|
TagResource |
Tagging, Write |
|||
Tagging, Write |
||||
|
UntagResource |
Tagging, Write |
|||
Tagging, Write |
||||
|
UpdateHost |
Write |
|||
Write |
||||
|
UpdateRepositoryLink |
Read |
|||
Write |
||||
Read |
||||
Read |
||||
Write |
||||
Read |
||||
|
UpdateSyncConfiguration |
Read |
|||
Write |
||||
Read |
||||
Write |
||||
iam:PassedToService |
cloudformation.sync.codeconnections.amazonaws.com |
Write |
Actions defined by AWS CodeConnections
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 create a Connection resource |
Write |
|||
Grants permission to create a host resource |
Write |
|||
Grants permission to create a repository link |
Write |
|||
Grants permission to create a template sync config |
Write |
|||
Grants permission to delete a Connection resource |
Write |
|||
Grants permission to delete a host resource |
Write |
|||
Grants permission to delete a repository link |
Write |
|||
Grants permission to delete a sync configuration |
Write |
|||
Grants permission to get details about a Connection resource |
Read |
|||
Grants permission to get details about a host resource |
Read |
|||
Grants permission to describe a repository link |
Read |
|||
Grants permission to get the latest sync status for a repository |
Read |
|||
Grants permission to get the latest sync status for a resource (cfn stack or other resources) |
Read |
|||
Grants permission to describe service sync blockers on a resource (cfn stack or other resources) |
Read |
|||
Grants permission to describe a sync configuration |
Read |
|||
Grants permission to list Connection resources |
List |
|||
Grants permission to list host resources |
List |
|||
Grants permission to list repository links |
List |
|||
Grants permission to list repository sync definitions |
List |
|||
Grants permission to list sync configurations for a repository link |
List |
|||
Grants permission to the set of key-value pairs that are used to manage the resource |
List |
|||
Grants permission to add or modify the tags of the given resource |
Tagging, Write |
|||
Grants permission to remove tags from an AWS resource |
Tagging, Write |
|||
Grants permission to update a Connection resource with an installation of the CodeStar Connections App |
Write |
|||
Grants permission to update a host resource |
Write |
|||
Grants permission to update a repository link |
Write |
|||
Grants permission to update a sync blocker for a resource (cfn stack or other resources) |
Write |
|||
Grants permission to update a sync configuration |
Write |
Permission-only actions for AWS CodeConnections
The following actions are defined by AWS CodeConnections but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to get a Connection token to call provider actions |
Read |
|||
Grants permission to associate a third party, such as a Bitbucket App installation, with a Connection |
Read |
|||
Grants permission to associate a third party, such as a Bitbucket App installation, with a Connection |
Read |
|||
Grants permission to associate a third party, such as a Bitbucket App installation, with a Connection |
List |
|||
Grants permission to pass a Connection resource to an AWS service that accepts a Connection ARN as input, such as codepipeline:CreatePipeline |
Read |
|||
Grants permission to pass a repository link resource to an AWS service that accepts a RepositoryLinkId as input, such as codeconnections:CreateSyncConfiguration |
Read |
|||
Grants permission to associate a third party server, such as a GitHub Enterprise Server instance, with a Host |
Read |
|||
Grants permission to associate a third party server, such as a GitHub Enterprise Server instance, with a Host |
Read |
|||
Grants permission to associate a third party, such as a Bitbucket App installation, with a Connection |
Read |
|||
Grants permission to use a Connection resource to call provider actions |
codeconnections:FullRepositoryId codeconnections:ProviderAction |
Read |
Resource types defined by AWS CodeConnections
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}:codeconnections:${Region}:${Account}:connection/${ConnectionId} |
||
arn:${Partition}:codeconnections:${Region}:${Account}:host/${HostId} |
||
arn:${Partition}:codeconnections:${Region}:${Account}:repository-link/${RepositoryLinkId} |
Condition keys for AWS CodeConnections
AWS CodeConnections 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 tags that are passed in the request |
String |
|
Filters access by the tags associated with the resource |
String |
|
Filters access by the tag keys that are passed in the request |
ArrayOfString |
|
Filters access by the branch name that is passed in the request |
String |
|
Filters access by the branch name that is passed in the request. Applies only to UseConnection requests for access to a specific repository branch |
String |
|
Filters access by the repository that is passed in the request. Applies only to UseConnection requests for access to a specific repository |
String |
|
Filters access by the host resource associated with the connection used in the request |
ARN |
|
Filters access by the third-party ID (such as the Bitbucket App installation ID for CodeConnections) that is used to update a Connection. Allows you to restrict which third-party App installations can be used to make a Connection |
String |
|
Filters access by the owner of the third-party repository. Applies only to UseConnection requests for access to repositories owned by a specific user |
String |
|
Filters access by the service to which the principal is allowed to pass a Connection or RepositoryLink |
String |
|
Filters access by the provider action in a UseConnection request such as ListRepositories. See documentation for all valid values |
String |
|
Filters access by the write permissions of a provider action in a UseConnection request. Valid types include read_only and read_write |
String |
|
Filters access by the type of third-party provider passed in the request |
String |
|
Filters access by the type of third-party provider used to filter results |
String |
|
Filters access by the repository name that is passed in the request. Applies only to UseConnection requests for access to repositories owned by a specific user |
String |
|
Filters access by the VpcId passed in the request |
String |