View a markdown version of this page

的操作、资源和条件键 Amazon Cost Explorer Service - 服务授权参考
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

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

的操作、资源和条件键 Amazon Cost Explorer Service

Amazon 成本管理器服务(服务前缀: ce) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

API 操作定义为 Amazon Cost Explorer Service

下表将 API 操作映射到它们授权的 IAM 操作。仅列出具有给定 API 和操作静态值的条件密钥;有关每个操作支持的全套条件密钥,请参阅 操作表。

操作 IAM 操作 条件键 可能的值 访问级别

CreateAnomalyMonitor

ce:CreateAnomalyMonitor

写入

ce:TagResource

标记、写入

CreateAnomalySubscription

ce:CreateAnomalySubscription

写入

ce:TagResource

标记、写入

CreateCostCategoryDefinition

ce:CreateCostCategoryDefinition

写入

ce:TagResource

标记、写入

DeleteAnomalyMonitor

ce:DeleteAnomalyMonitor

写入

DeleteAnomalySubscription

ce:DeleteAnomalySubscription

写入

DeleteCostCategoryDefinition

ce:DeleteCostCategoryDefinition

写入

DescribeCostCategoryDefinition

ce:DescribeCostCategoryDefinition

读取

GetAnomalies

ce:GetAnomalies

读取

GetAnomalyMonitors

ce:GetAnomalyMonitors

读取

GetAnomalySubscriptions

ce:GetAnomalySubscriptions

读取

GetApproximateUsageRecords

ce:GetApproximateUsageRecords

读取

GetCommitmentPurchaseAnalysis

ce:GetCommitmentPurchaseAnalysis

读取

GetCostAndUsage

ce:GetCostAndUsage

读取

aws-portal:ViewBilling

读取

GetCostAndUsageComparisons

ce:GetCostAndUsageComparisons

读取

GetCostAndUsageWithResources

ce:GetCostAndUsageWithResources

读取

aws-portal:ViewBilling

读取

GetCostCategories

ce:GetCostCategories

读取

aws-portal:ViewBilling

读取

GetCostComparisonDrivers

ce:GetCostComparisonDrivers

读取

GetCostForecast

ce:GetCostForecast

读取

aws-portal:ViewBilling

读取

GetDimensionValues

ce:GetDimensionValues

读取

aws-portal:ViewBilling

读取

GetReservationCoverage

ce:GetReservationCoverage

读取

aws-portal:ViewBilling

读取

GetReservationPurchaseRecommendation

ce:GetReservationPurchaseRecommendation

读取

aws-portal:ViewBilling

读取

GetReservationUtilization

ce:GetReservationUtilization

读取

aws-portal:ViewBilling

读取

GetRightsizingRecommendation

ce:GetRightsizingRecommendation

读取

aws-portal:ViewBilling

读取

GetSavingsPlanPurchaseRecommendationDetails

ce:GetSavingsPlanPurchaseRecommendationDetails

读取

aws-portal:ViewBilling

读取

GetSavingsPlansCoverage

ce:GetSavingsPlansCoverage

读取

aws-portal:ViewBilling

读取

GetSavingsPlansPurchaseRecommendation

ce:GetSavingsPlansPurchaseRecommendation

读取

aws-portal:ViewBilling

读取

GetSavingsPlansUtilization

ce:GetSavingsPlansUtilization

读取

aws-portal:ViewBilling

读取

GetSavingsPlansUtilizationDetails

ce:GetSavingsPlansUtilizationDetails

读取

aws-portal:ViewBilling

读取

GetTags

ce:GetTags

读取

aws-portal:ViewBilling

读取

GetUsageForecast

ce:GetUsageForecast

读取

aws-portal:ViewBilling

读取

ListCommitmentPurchaseAnalyses

ce:ListCommitmentPurchaseAnalyses

列表

ListCostAllocationTagBackfillHistory

ce:ListCostAllocationTagBackfillHistory

列表

ListCostAllocationTags

ce:ListCostAllocationTags

列表

aws-portal:ViewBilling

读取

ListCostCategoryDefinitions

ce:ListCostCategoryDefinitions

列表

ListCostCategoryResourceAssociations

ce:ListCostCategoryResourceAssociations

列表

ListSavingsPlansPurchaseRecommendationGeneration

ce:ListSavingsPlansPurchaseRecommendationGeneration

列表

ListTagsForResource

ce:ListTagsForResource

读取

ProvideAnomalyFeedback

ce:ProvideAnomalyFeedback

写入

StartCommitmentPurchaseAnalysis

ce:StartCommitmentPurchaseAnalysis

写入

StartCostAllocationTagBackfill

ce:StartCostAllocationTagBackfill

写入

StartSavingsPlansPurchaseRecommendationGeneration

ce:StartSavingsPlansPurchaseRecommendationGeneration

写入

TagResource

ce:TagResource

标记、写入

UntagResource

ce:UntagResource

标记、写入

UpdateAnomalyMonitor

ce:UpdateAnomalyMonitor

写入

UpdateAnomalySubscription

ce:UpdateAnomalySubscription

写入

UpdateCostAllocationTagsStatus

ce:UpdateCostAllocationTagsStatus

写入

aws-portal:ModifyBilling

写入

UpdateCostCategoryDefinition

ce:UpdateCostCategoryDefinition

写入

动作定义为 Amazon Cost Explorer Service

您可以在 IAM 策略语句的 Action 元素中指定以下操作。对于每个操作,该表列出了该操作支持的资源类型和条件键。可以使用策略授予在 Amazon中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作 说明 资源类型(* 为必需) 条件键 访问级别

CreateAnomalyMonitor

授予权限以创建新的异常监控

aws:RequestTag/${TagKey}

aws:TagKeys

Write

CreateAnomalySubscription

授予权限以创建新的异常订阅

aws:RequestTag/${TagKey}

aws:TagKeys

Write

CreateCostCategoryDefinition

授予权限以创建具有请求的名称和规则的新成本类别

aws:RequestTag/${TagKey}

aws:TagKeys

写入

DeleteAnomalyMonitor

授予权限以删除异常监控

anomalymonitor*

aws:ResourceTag/${TagKey}

Write

DeleteAnomalySubscription

授予权限以删除异常订阅

anomalysubscription*

aws:ResourceTag/${TagKey}

Write

DeleteCostCategoryDefinition

授予权限以删除成本类别

costcategory*

aws:ResourceTag/${TagKey}

写入

DescribeCostCategoryDefinition

授予权限以检索成本类别的名称、ARN、规则、定义和生效日期等描述

costcategory*

aws:ResourceTag/${TagKey}

读取

GetAnomalies

授予权限以检索异常

anomalymonitor*

aws:ResourceTag/${TagKey}

Read

GetAnomalyMonitors

授予权限以查询异常监控

anomalymonitor*

aws:ResourceTag/${TagKey}

Read

GetAnomalySubscriptions

授予权限以查询异常订阅

anomalysubscription*

aws:ResourceTag/${TagKey}

读取

GetApproximateUsageRecords

授予权限以检索选定资源、级别和每小时粒度首选项的大致使用记录计数(源自上个月的使用情况)

读取

GetCommitmentPurchaseAnalysis

授予权限以检索您账户的承诺购买分析

读取

GetCostAndUsage

授予权限以检索您的账户的成本和使用率指标

billingview

aws:ResourceTag/${TagKey}

读取

GetCostAndUsageComparisons

授予权限以检索您的账户的成本和使用情况比较

billingview

aws:ResourceTag/${TagKey}

读取

GetCostAndUsageWithResources

授予权限以检索您的账户资源的成本和使用率指标

billingview

aws:ResourceTag/${TagKey}

Read

GetCostCategories

授予查询指定时间段内 Cost Catagory 名称和值的权限

billingview

aws:ResourceTag/${TagKey}

读取

GetCostComparisonDrivers

授予权限以检索您账户的成本驱动因素

billingview

aws:ResourceTag/${TagKey}

读取

GetCostForecast

授予权限以检索预测时间段的成本预测

billingview

aws:ResourceTag/${TagKey}

Read

GetDimensionValues

授予权限以检索筛选条件在一段时间内的所有可用筛选条件值

billingview

aws:ResourceTag/${TagKey}

读取

GetReservationCoverage

授予权限以检索您的账户的预留范围

Read

GetReservationPurchaseRecommendation

授予权限以检索您的账户的预留建议

Read

GetReservationUtilization

授予权限以检索您的账户的预留利用率

Read

GetRightsizingRecommendation

授予权限以检索您的账户的合理调整大小建议

读取

GetSavingsPlanPurchaseRecommendationDetails

授予权限以检索账户的实惠配套建议详细信息

读取

GetSavingsPlansCoverage

授予权限以检索您账户的 Savings Plans 覆盖范围

Read

GetSavingsPlansPurchaseRecommendation

授予权限以检索您账户的 Savings Plans 建议

Read

GetSavingsPlansUtilization

授予权限以检索您账户的 Savings Plans 利用率

Read

GetSavingsPlansUtilizationDetails

授予权限以检索您账户的 Savings Plans 利用率详细信息

Read

GetTags

授予权限以查询指定时间段的标签

billingview

aws:ResourceTag/${TagKey}

Read

GetUsageForecast

授予权限以检索预测时间段的使用情况预测

billingview

aws:ResourceTag/${TagKey}

读取

ListCommitmentPurchaseAnalyses

授予权限以检索您的历史承诺购买分析的列表

列表

ListCostAllocationTagBackfillHistory

授予权限以列出成本分配标签回填历史记录

列表

ListCostAllocationTags

授予列出成本分配标签的权限

列表

ListCostCategoryDefinitions

授予权限以检索所有 Cost Categories 的名称、ARN 和生效日期

列表

ListCostCategoryResourceAssociations

授予权限以检索账户中定义的所有成本类别的资源关联

列表

ListSavingsPlansPurchaseRecommendationGeneration

授予权限以检索您的历史建议生成列表

列表

ListTagsForResource

授予列示 Cost Explorer 资源标签的权限

anomalymonitor

aws:ResourceTag/${TagKey}

读取

anomalysubscription

aws:ResourceTag/${TagKey}

costcategory

aws:ResourceTag/${TagKey}

ProvideAnomalyFeedback

授予权限以提供对检测到的异常的反馈

写入

StartCommitmentPurchaseAnalysis

授予权限以请求承诺购买分析

写入

StartCostAllocationTagBackfill

授予权限以请求成本分配标签回填

写入

StartSavingsPlansPurchaseRecommendationGeneration

授予权限以请求 Savings Plans 建议生成

写入

TagResource

授予标记 Cost Explorer 资源的权限

anomalymonitor

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

anomalysubscription

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

costcategory

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

授予从 Cost Explorer 资源中删除标签的权限

anomalymonitor

aws:ResourceTag/${TagKey}

aws:TagKeys

标记、写入

anomalysubscription

aws:ResourceTag/${TagKey}

aws:TagKeys

costcategory

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateAnomalyMonitor

授予权限以更新现有异常监控

anomalymonitor*

aws:ResourceTag/${TagKey}

Write

UpdateAnomalySubscription

授予权限以更新现有异常订阅

anomalysubscription*

aws:ResourceTag/${TagKey}

写入

UpdateCostAllocationTagsStatus

授予更新现有成本分配标签状态的权限

写入

UpdateCostCategoryDefinition

授予权限以更新现有成本类别

costcategory*

aws:ResourceTag/${TagKey}

写入

Permission-only 的操作 Amazon Cost Explorer Service

以下操作定义为 Amazon 成本管理器服务,但不能通过任何 API 操作直接调用。它们只能在 IAM 政策声明中用于授予或拒绝权限。

操作 说明 资源类型(* 为必需) 条件键 访问级别

CreateNotificationSubscription

授予创建预留到期提醒的权限

写入

CreateReport

授予创建 Cost Explorer 报告的权限

写入

DeleteNotificationSubscription

授予删除预留到期提醒的权限

写入

DeleteReport

授予删除 Cost Explorer 报告的权限

写入

DescribeNotificationSubscription

授予查看预留到期提醒的权限

读取

DescribeReport

授予查看 Cost Explorer 报告页面的权限

读取

GetConsoleActionSetEnforced

授予权限以查看是否使用现有或精细的 IAM 操作来控制对账单、成本管理和账户控制台的授权

读取

GetPreferences

授予查看“Cost Explorer 首选项”页面的权限

读取

UpdateConsoleActionSetEnforced

授予权限以更改是使用现有还是精细的 IAM 操作来控制对账单、成本管理和账户控制台的授权

写入

UpdateNotificationSubscription

授予更新预留到期提醒的权限

写入

UpdatePreferences

授予编辑“Cost Explorer 首选项”页的权限

写入

UpdateReport

授予更新 Cost Explorer 报告的权限

写入

资源类型定义为 Amazon Cost Explorer Service

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。

资源类型 ARN 条件键

anomalymonitor

arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}

aws:ResourceTag/${TagKey}

anomalysubscription

arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}

aws:ResourceTag/${TagKey}

billingview

arn:${Partition}:billing::${Account}:billingview/${ResourceId}

aws:ResourceTag/${TagKey}

costcategory

arn:${Partition}:ce::${Account}:costcategory/${Identifier}

aws:ResourceTag/${TagKey}

的条件密钥 Amazon Cost Explorer Service

Amazon Cost Explorer 服务定义了以下条件密钥,这些密钥可用于 Condition IAM 政策的元素。

条件键 描述 类型

aws:RequestTag/${TagKey}

按请求中传递的标签筛选访问权限

String

aws:ResourceTag/${TagKey}

按与资源关联的标签筛选访问权限

String

aws:TagKeys

按请求中传递的标签键筛选访问权限

ArrayOfString