

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 的操作、资源和条件键 AWS CodePipeline
<a name="list_awscodepipeline"></a>

AWS CodePipeline （服务前缀:`codepipeline`）提供以下特定于服务的资源、操作和条件上下文密钥，供在 IAM 权限策略中使用。

参考：
+ 了解如何[配置该服务](https://docs.aws.amazon.com/codepipeline/latest/userguide/)。
+ 查看[适用于该服务的 API 操作列表](https://docs.aws.amazon.com/codepipeline/latest/APIReference/)。
+ 了解如何[使用 IAM](https://docs.aws.amazon.com/codepipeline/latest/userguide/security-iam.html) 权限策略保护该服务及其资源。

**Topics**
+ [操作定义为 AWS CodePipeline](#awscodepipeline-actions-as-permissions)
+ [由定义的资源类型 AWS CodePipeline](#awscodepipeline-resources-for-iam-policies)
+ [的条件密钥 AWS CodePipeline](#awscodepipeline-policy-keys)

## 操作定义为 AWS CodePipeline
<a name="awscodepipeline-actions-as-permissions"></a>

您可以在 IAM 策略语句的 `Action` 元素中指定以下操作。可以使用策略授予在 AWS中执行操作的权限。您在策略中使用一项操作时，通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下，单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作表的**访问级别**列描述如何对操作进行分类（列出、读取、权限管理或标记）。此分类可以帮助您了解当您在策略中使用操作时，相应操作授予的访问级别。有关访问级别的更多信息，请参阅[策略摘要中的访问级别](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_understand-policy-summary-access-level-summaries.html)。

操作表的**资源类型**列指示每项操作是否支持资源级权限。如果该列没有任何值，您必须在策略语句的 `Resource` 元素中指定策略应用的所有资源（“\*”）。通过在 IAM policy 中使用条件来筛选访问权限，以控制是否可以在资源或请求中使用特定标签键。如果操作具有一个或多个必需资源，则调用方必须具有使用这些资源来使用该操作的权限。必需资源在表中以星号 (\*) 表示。如果您在 IAM policy 中使用 `Resource` 元素限制资源访问权限，则必须为每种必需的资源类型添加 ARN 或模式。某些操作支持多种资源类型。如果资源类型是可选的（未指示为必需），则可以选择使用一种可选资源类型。

操作表的**条件键**列包括可以在策略语句的 `Condition` 元素中指定的键。有关与服务资源关联的条件键的更多信息，请参阅资源类型表的**条件键**列。

操作表的**依赖操作**列显示成功调用操作可能需要的其他权限。除了操作本身的权限以外，可能还需要这些权限。若某个操作指定依赖操作，则这些依赖关系可能适用于为该操作定义的其他资源，而不仅仅是表中列出的第一个资源。

**注意**  
资源条件键在[资源类型](#awscodepipeline-resources-for-iam-policies)表中列出。您可以在操作表的**资源类型（\* 为必需）**列中找到应用于某项操作的资源类型的链接。资源类型表中的资源类型包括**条件密钥**列，这是应用于操作表中操作的资源条件键。

有关下表中各列的详细信息，请参阅[操作表](reference_policies_actions-resources-contextkeys.html#actions_table)。


****  


- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_AcknowledgeJob.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_AcknowledgeJob.html) **
  - **描述:** 授予查看有关指定作业的信息以及作业工作线程是否已收到该作业的权限
  - **访问级别:** Write
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_AcknowledgeThirdPartyJob.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_AcknowledgeThirdPartyJob.html) **
  - **描述:** 授予确认作业工作线程是否已收到指定作业的权限（仅限合作伙伴操作）
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_CreateCustomActionType.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_CreateCustomActionType.html) **
  - **描述:** 授予创建自定义操作的权限，您可以在与您的关联的管道中使用该操作 AWS 账户
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-actiontype](#awscodepipeline-actiontype)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#awscodepipeline-aws_RequestTag___TagKey_](#awscodepipeline-aws_RequestTag___TagKey_) <br /> [#awscodepipeline-aws_TagKeys](#awscodepipeline-aws_TagKeys)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_CreatePipeline.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_CreatePipeline.html) **
  - **描述:** 授予权限以创建唯一命名管道
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#awscodepipeline-aws_RequestTag___TagKey_](#awscodepipeline-aws_RequestTag___TagKey_) <br /> [#awscodepipeline-aws_TagKeys](#awscodepipeline-aws_TagKeys)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeleteCustomActionType.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeleteCustomActionType.html) **
  - **描述:** 授予权限以删除自定义操作
  - **访问级别:** Write
  - **资源类型（\* 为必需）:**  [#awscodepipeline-actiontype](#awscodepipeline-actiontype) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeletePipeline.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeletePipeline.html) **
  - **描述:** 授予删除指定管道的权限
  - **访问级别:** Write
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeleteWebhook.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeleteWebhook.html) **
  - **描述:** 授予删除指定 Webhook 的权限
  - **访问级别:** Write
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeregisterWebhookWithThirdParty.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DeregisterWebhookWithThirdParty.html) **
  - **描述:** 授予删除在其配置中指定了第三方的 Webhook 的注册权限
  - **访问级别:** Write
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DisableStageTransition.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_DisableStageTransition.html) **
  - **描述:** 授予阻止修订过渡到管道中的下一个阶段的权限
  - **访问级别:** Write
  - **资源类型（\* 为必需）:**  [#awscodepipeline-stage](#awscodepipeline-stage) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_EnableStageTransition.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_EnableStageTransition.html) **
  - **描述:** 授予允许修订过渡到管道中的下一阶段的权限
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-stage](#awscodepipeline-stage) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetActionType.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetActionType.html) **
  - **描述:** 授予权限以查看有关操作类型的信息
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetJobDetails.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetJobDetails.html) **
  - **描述:** 授予权限以查看任务相关信息（仅自定义操作）
  - **访问级别:** Read
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetPipeline.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetPipeline.html) **
  - **描述:** 授予检索管道结构相关信息的权限
  - **访问级别:** Read
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetPipelineExecution.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetPipelineExecution.html) **
  - **描述:** 授予查看管道执行信息的权限，这些信息包括有关构件的详细信息、管道执行 ID 以及管道的名称、版本和状态。
  - **访问级别:** Read
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetPipelineState.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetPipelineState.html) **
  - **描述:** 授予查看管道阶段和操作的当前状态信息的权限
  - **访问级别:** Read
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetThirdPartyJobDetails.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GetThirdPartyJobDetails.html) **
  - **描述:** 授予查看第三方操作的作业详细信息的权限（仅限合作伙伴操作）
  - **访问级别:** Read
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListActionExecutions.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListActionExecutions.html) **
  - **描述:** 授予列出管道中发生的操作执行的权限
  - **访问级别:** Read
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListActionTypes.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListActionTypes.html) **
  - **描述:** 授予列出账户中管道的所有可用操作类型摘要的权限
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListDeployActionExecutionTargets.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListDeployActionExecutionTargets.html) **
  - **描述:** 授予权限以列出管道中发生的部署操作执行的部署详细信息
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListPipelineExecutions.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListPipelineExecutions.html) **
  - **描述:** 授予列出管道的最近执行摘要的权限
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListPipelines.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListPipelines.html) **
  - **描述:** 授予列出与您关联的所有管道摘要的权限 AWS 账户
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListRuleExecutions.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListRuleExecutions.html) **
  - **描述:** 授予权限以列出管道中发生的规则执行
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListRuleTypes.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListRuleTypes.html) **
  - **描述:** 授予权限以列出账户中管道的所有可用规则类型摘要
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListTagsForResource.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListTagsForResource.html) **
  - **描述:** 授予列出 CodePipeline 资源标签的权限
  - **访问级别:** 读取
  - **资源类型（\* 为必需）:**  [#awscodepipeline-actiontype](#awscodepipeline-actiontype)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook)  / **条件键:**  / **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListWebhooks.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListWebhooks.html) **
  - **描述:** 授予列出与你关联的所有 webhook 的权限 AWS 账户
  - **访问级别:** 列表
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_OverrideStageCondition.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_OverrideStageCondition.html) **
  - **描述:** 授予权限以通过重写阶段条件来恢复管道执行
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-stage](#awscodepipeline-stage) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PollForJobs.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PollForJobs.html) **
  - **描述:** 授予权限以查看有关任何 CodePipeline 要处理的任务的信息
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-actiontype](#awscodepipeline-actiontype) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PollForThirdPartyJobs.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PollForThirdPartyJobs.html) **
  - **描述:** 授予确定是否存在任何可供作业工作线程执行操作的第三方作业的权限（仅限合作伙伴操作）
  - **访问级别:** Write
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutActionRevision.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutActionRevision.html) **
  - **描述:** 授予编辑管道中操作的权限
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-action](#awscodepipeline-action) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutApprovalResult.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutApprovalResult.html) **
  - **描述:** 授予对手动批准请求作出回应（已批准或已拒绝）的权限 CodePipeline
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-action](#awscodepipeline-action) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutJobFailureResult.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutJobFailureResult.html) **
  - **描述:** 授予表示作业工作线程返回给管道的作业失败的权限（仅限自定义操作）
  - **访问级别:** Write
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutJobSuccessResult.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutJobSuccessResult.html) **
  - **描述:** 授予表示作业工作线程返回给管道的作业成功的权限（仅限自定义操作）
  - **访问级别:** Write
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutThirdPartyJobFailureResult.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutThirdPartyJobFailureResult.html) **
  - **描述:** 授予表示作业工作线程返回给管道的第三方作业失败的权限（仅限合作伙伴操作）
  - **访问级别:** Write
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutThirdPartyJobSuccessResult.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutThirdPartyJobSuccessResult.html) **
  - **描述:** 授予表示作业工作线程返回给管道的第三方作业成功的权限（仅限合作伙伴操作）
  - **访问级别:** Write
  - **资源类型（\* 为必需）:** 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutWebhook.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutWebhook.html) **
  - **描述:** 授予权限以创建或更新 Webhook
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#awscodepipeline-aws_RequestTag___TagKey_](#awscodepipeline-aws_RequestTag___TagKey_) <br /> [#awscodepipeline-aws_TagKeys](#awscodepipeline-aws_TagKeys)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_RegisterWebhookWithThirdParty.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_RegisterWebhookWithThirdParty.html) **
  - **描述:** 授予权限以注册在其配置中指定了第三方的 Webhook
  - **访问级别:** Write
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_RetryStageExecution.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_RetryStageExecution.html) **
  - **描述:** 授予通过重试阶段中最后一个失败的操作来恢复管道执行的权限
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-stage](#awscodepipeline-stage) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_RollbackStage.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_RollbackStage.html) **
  - **描述:** 授予权限以将阶段回滚到之前的成功执行
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-stage](#awscodepipeline-stage) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_StartPipelineExecution.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_StartPipelineExecution.html) **
  - **描述:** 授予通过管道运行最新修订的权限
  - **访问级别:** Write
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_StopPipelineExecution.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_StopPipelineExecution.html) **
  - **描述:** 授予停止正在进行的管道执行的权限
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_TagResource.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_TagResource.html) **
  - **描述:** 授予为 CodePipeline 资源添加标签的权限
  - **访问级别:** 标签
  - **资源类型（\* 为必需）:**  [#awscodepipeline-actiontype](#awscodepipeline-actiontype)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#awscodepipeline-aws_RequestTag___TagKey_](#awscodepipeline-aws_RequestTag___TagKey_) <br /> [#awscodepipeline-aws_TagKeys](#awscodepipeline-aws_TagKeys)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_UntagResource.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_UntagResource.html) **
  - **描述:** 授予从 CodePipeline 资源中移除标签的权限
  - **访问级别:** 标签
  - **资源类型（\* 为必需）:**  [#awscodepipeline-actiontype](#awscodepipeline-actiontype)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  [#awscodepipeline-webhook](#awscodepipeline-webhook)  / **条件键:**  / **相关操作:** 
  - **资源类型（\* 为必需）:**  / **条件键:**  [#awscodepipeline-aws_TagKeys](#awscodepipeline-aws_TagKeys)  / **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_UpdateActionType.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_UpdateActionType.html) **
  - **描述:** 授予权限以更新操作类型
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-actiontype](#awscodepipeline-actiontype) 
  - **条件键:** 
  - **相关操作:** 

- **  [https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_UpdatePipeline.html](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_UpdatePipeline.html) **
  - **描述:** 授予权限以通过更改管道结构来更新管道
  - **访问级别:** 写入
  - **资源类型（\* 为必需）:**  [#awscodepipeline-pipeline](#awscodepipeline-pipeline) 
  - **条件键:** 
  - **相关操作:** 



## 由定义的资源类型 AWS CodePipeline
<a name="awscodepipeline-resources-for-iam-policies"></a>

以下资源类型是由该服务定义的，可以在 IAM 权限策略语句的 `Resource` 元素中使用这些资源类型。[操作表](#awscodepipeline-actions-as-permissions)中的每个操作指定了可以使用该操作指定的资源类型。您也可以在策略中包含条件键，从而定义资源类型。这些键显示在资源类型表的最后一列。有关下表中各列的详细信息，请参阅[资源类型表](reference_policies_actions-resources-contextkeys.html#resources_table)。


****  

| 资源类型 | ARN | 条件键 | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format](https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format)  |  arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}  |  [#awscodepipeline-aws_ResourceTag___TagKey_](#awscodepipeline-aws_ResourceTag___TagKey_)  | 
|   [https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format](https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format)  |  arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}  |  [#awscodepipeline-aws_ResourceTag___TagKey_](#awscodepipeline-aws_ResourceTag___TagKey_)  | 
|   [https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format](https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format)  |  arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}  |  [#awscodepipeline-aws_ResourceTag___TagKey_](#awscodepipeline-aws_ResourceTag___TagKey_)  | 
|   [https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format](https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format)  |  arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}  |  [#awscodepipeline-aws_ResourceTag___TagKey_](#awscodepipeline-aws_ResourceTag___TagKey_)  | 
|   [https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format](https://docs.aws.amazon.com/codepipeline/latest/userguide/iam-access-control-identity-based.html#ACP_ARN_Format)  |  arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}  |  [#awscodepipeline-aws_ResourceTag___TagKey_](#awscodepipeline-aws_ResourceTag___TagKey_)  | 

## 的条件密钥 AWS CodePipeline
<a name="awscodepipeline-policy-keys"></a>

AWS CodePipeline 定义了可在 IAM 策略`Condition`元素中使用的以下条件键。您可以使用这些键进一步细化应用策略语句的条件。有关下表中各列的详细信息，请参阅[条件键表](reference_policies_actions-resources-contextkeys.html#context_keys_table)。

要查看适用于所有服务的全局条件键，请参阅 [AWS 全局条件上下文键](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html)。


****  

| 条件键 | 描述 | 类型 | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag)  | 根据在请求中是否具有标签键值对以筛选操作 | 字符串 | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag)  | 根据附加到资源的标签键值对筛选操作 | 字符串 | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys)  | 根据在请求中是否具有标签键以筛选操作 | ArrayOfString | 