Actions, resources, and condition keys for Amazon CodePipeline
Amazon CodePipeline (service prefix: codepipeline) 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 Amazon CodePipeline
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 |
|---|---|---|---|---|
|
AcknowledgeJob |
Write |
|||
|
AcknowledgeThirdPartyJob |
Write |
|||
|
CreateCustomActionType |
Write |
|||
Tagging, Write |
||||
|
CreatePipeline |
Write |
|||
Tagging, Write |
||||
Read |
||||
iam:PassedToService |
cloudformation.amazonaws.com, codepipeline.amazonaws.com |
Write |
||
|
DeleteCustomActionType |
Write |
|||
|
DeletePipeline |
Write |
|||
|
DeleteWebhook |
Write |
|||
|
DeregisterWebhookWithThirdParty |
Write |
|||
|
DisableStageTransition |
Write |
|||
|
EnableStageTransition |
Write |
|||
|
GetActionType |
Read |
|||
|
GetJobDetails |
Read |
|||
|
GetPipeline |
Read |
|||
|
GetPipelineExecution |
Read |
|||
|
GetPipelineState |
Read |
|||
|
GetThirdPartyJobDetails |
Read |
|||
|
ListActionExecutions |
Read |
|||
|
ListActionTypes |
Read |
|||
|
ListDeployActionExecutionTargets |
Read |
|||
|
ListPipelineExecutions |
List |
|||
|
ListPipelines |
List |
|||
|
ListRuleExecutions |
Read |
|||
|
ListRuleTypes |
Read |
|||
|
ListTagsForResource |
Read |
|||
|
ListWebhooks |
List |
|||
|
OverrideStageCondition |
Write |
|||
|
PollForJobs |
Write |
|||
|
PollForThirdPartyJobs |
Write |
|||
|
PutActionRevision |
Write |
|||
|
PutApprovalResult |
Write |
|||
|
PutJobFailureResult |
Write |
|||
|
PutJobSuccessResult |
Write |
|||
|
PutThirdPartyJobFailureResult |
Write |
|||
|
PutThirdPartyJobSuccessResult |
Write |
|||
|
PutWebhook |
Write |
|||
Tagging, Write |
||||
Tagging, Write |
||||
|
RegisterWebhookWithThirdParty |
Write |
|||
|
RetryStageExecution |
Write |
|||
|
RollbackStage |
Write |
|||
|
StartPipelineExecution |
Write |
|||
|
StopPipelineExecution |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateActionType |
Write |
|||
|
UpdatePipeline |
Write |
|||
Read |
||||
iam:PassedToService |
cloudformation.amazonaws.com, codepipeline.amazonaws.com |
Write |
Actions defined by Amazon CodePipeline
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 Amazon. 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 view information about a specified job and whether that job has been received by the job worker |
Write |
|||
Grants permission to confirm that a job worker has received the specified job (partner actions only) |
Write |
|||
Grants permission to create a custom action that you can use in the pipelines associated with your Amazon Web Services account |
Write |
|||
Grants permission to create a uniquely named pipeline |
Write |
|||
Grants permission to delete a custom action |
Write |
|||
Grants permission to delete a specified pipeline |
Write |
|||
Grants permission to delete a specified webhook |
Write |
|||
Grants permission to remove the registration of a webhook with the third party specified in its configuration |
Write |
|||
Grants permission to prevent revisions from transitioning to the next stage in a pipeline |
Write |
|||
Grants permission to allow revisions to transition to the next stage in a pipeline |
Write |
|||
Grants permission to view information about an action type |
Read |
|||
Grants permission to view information about a job (custom actions only) |
Read |
|||
Grants permission to retrieve information about a pipeline structure |
Read |
|||
Grants permission to view information about an execution of a pipeline, including details about artifacts, the pipeline execution ID, and the name, version, and status of the pipeline |
Read |
|||
Grants permission to view information about the current state of the stages and actions of a pipeline |
Read |
|||
Grants permission to view the details of a job for a third-party action (partner actions only) |
Read |
|||
Grants permission to list the action executions that have occurred in a pipeline |
Read |
|||
Grants permission to list a summary of all the action types available for pipelines in your account |
Read |
|||
Grants permission to list the deployment details for deploy action executions that have occurred in a pipeline |
Read |
|||
Grants permission to list a summary of the most recent executions for a pipeline |
List |
|||
Grants permission to list a summary of all the pipelines associated with your Amazon Web Services account |
List |
|||
Grants permission to list the rule executions that have occurred in a pipeline |
Read |
|||
Grants permission to list a summary of all the rule types available for pipelines in your account |
Read |
|||
Grants permission to list tags for a CodePipeline resource |
Read |
|||
Grants permission to list all of the webhooks associated with your Amazon Web Services account |
List |
|||
Grants permission to resume the pipeline execution by overriding a condition in a stage |
Write |
|||
Grants permission to view information about any jobs for CodePipeline to act on |
Write |
|||
Grants permission to determine whether there are any third-party jobs for a job worker to act on (partner actions only) |
Write |
|||
Grants permission to edit actions in a pipeline |
Write |
|||
Grants permission to provide a response (Approved or Rejected) to a manual approval request in CodePipeline |
Write |
|||
Grants permission to represent the failure of a job as returned to the pipeline by a job worker (custom actions only) |
Write |
|||
Grants permission to represent the success of a job as returned to the pipeline by a job worker (custom actions only) |
Write |
|||
Grants permission to represent the failure of a third-party job as returned to the pipeline by a job worker (partner actions only) |
Write |
|||
Grants permission to represent the success of a third-party job as returned to the pipeline by a job worker (partner actions only) |
Write |
|||
Grants permission to create or update a webhook |
Write |
|||
Grants permission to register a webhook with the third party specified in its configuration |
Write |
|||
Grants permission to resume the pipeline execution by retrying the last failed actions in a stage |
Write |
|||
Grants permission to rollback the stage to a previous successful execution |
Write |
|||
Grants permission to run the most recent revision through the pipeline |
Write |
|||
Grants permission to stop an in-progress pipeline execution |
Write |
|||
Grants permission to tag a CodePipeline resource |
Tagging, Write |
|||
Grants permission to remove a tag from a CodePipeline resource |
Tagging, Write |
|||
Grants permission to update an action type |
Write |
|||
Grants permission to update a pipeline with changes to the structure of the pipeline |
Write |
Resource types defined by Amazon CodePipeline
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}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName} |
||
arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version} |
||
arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName} |
||
arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName} |
||
arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName} |
Condition keys for Amazon CodePipeline
Amazon CodePipeline defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters actions based on the presence of tag key-value pairs in the request |
String |
|
Filters actions based on tag key-value pairs attached to the resource |
String |
|
Filters actions based on the presence of tag keys in the request |
ArrayOfString |