AWS App Runner 的動作、資源和條件索引鍵
AWS App Runner (服務字首:apprunner) 提供下列服務特定的操作、資源、動作和條件索引鍵,可用於 IAM 許可政策。
參考資料:
-
了解如何設定此服務。
-
檢視可供此服務使用的 API 操作清單。
-
了解如何使用 IAM 許可政策來保護此服務及其資源。
-
檢視此服務的程式設計服務授權參考
。
主題
AWS App Runner 定義的 API 操作
下表將 API 操作映射至其授權的 IAM 動作。只會列出具有指定 API 和動作靜態值的條件金鑰;如需每個動作支援的完整條件金鑰集,請參閱動作表格。
| 作業 | IAM 動作 | 條件鍵 | 可能的值 (s) | 存取層級 |
|---|---|---|---|---|
|
AssociateCustomDomain |
寫入 |
|||
|
CreateAutoScalingConfiguration |
寫入 |
|||
標記、寫入 |
||||
|
CreateConnection |
寫入 |
|||
標記、寫入 |
||||
|
CreateObservabilityConfiguration |
寫入 |
|||
標記、寫入 |
||||
|
CreateService |
寫入 |
|||
標記、寫入 |
||||
iam:PassedToService |
bullet.amazonaws.com |
寫入 |
||
|
CreateVpcConnector |
寫入 |
|||
標記、寫入 |
||||
|
CreateVpcIngressConnection |
寫入 |
|||
標記、寫入 |
||||
|
DeleteAutoScalingConfiguration |
寫入 |
|||
|
DeleteConnection |
寫入 |
|||
|
DeleteObservabilityConfiguration |
寫入 |
|||
|
DeleteService |
寫入 |
|||
寫入 |
||||
|
DeleteVpcConnector |
寫入 |
|||
|
DeleteVpcIngressConnection |
寫入 |
|||
|
DescribeAutoScalingConfiguration |
讀取 |
|||
|
DescribeCustomDomains |
讀取 |
|||
|
DescribeObservabilityConfiguration |
讀取 |
|||
|
DescribeService |
讀取 |
|||
|
DescribeVpcConnector |
讀取 |
|||
|
DescribeVpcIngressConnection |
讀取 |
|||
|
DisassociateCustomDomain |
寫入 |
|||
|
ListAutoScalingConfigurations |
清單 |
|||
|
ListConnections |
清單 |
|||
|
ListObservabilityConfigurations |
清單 |
|||
|
ListOperations |
清單 |
|||
|
ListServices |
清單 |
|||
|
ListServicesForAutoScalingConfiguration |
清單 |
|||
|
ListTagsForResource |
讀取 |
|||
|
ListVpcConnectors |
清單 |
|||
|
ListVpcIngressConnections |
清單 |
|||
|
PauseService |
寫入 |
|||
|
ResumeService |
寫入 |
|||
|
StartDeployment |
寫入 |
|||
|
TagResource |
標記、寫入 |
|||
|
UntagResource |
標記、寫入 |
|||
|
UpdateDefaultAutoScalingConfiguration |
寫入 |
|||
|
UpdateService |
寫入 |
|||
iam:PassedToService |
bullet.amazonaws.com |
寫入 |
||
|
UpdateVpcIngressConnection |
寫入 |
AWS App Runner 定義的動作
您可在 IAM 政策陳述式的 Action 元素中指定以下動作。使用政策來授予在 AWS中執行操作的許可。在政策中使用動作時,通常會允許或拒絕存取相同名稱的 API 操作或 CLI 命令。不過,在某些情況下,單一動作可控制對多個操作的存取。或者,某些操作需要多種不同的動作。
| 動作 | 說明 | 資源類型 (*必填項目) | 條件索引鍵 | 存取層級 |
|---|---|---|---|---|
准許將您自己的網域名稱與 AWS App Runner 服務的 App Runner 子網域 URL 建立關聯 |
寫入 |
|||
准許建立 AWS App Runner 自動擴展組態資源 |
寫入 |
|||
准許建立 AWS App Runner 連線資源 |
寫入 |
|||
准許建立 AWS App Runner 可觀測性組態資源 |
寫入 |
|||
准許建立 AWS App Runner 服務資源 |
apprunner:AutoScalingConfigurationArn |
寫入 |
||
|
apprunner:AutoScalingConfigurationArn |
||||
|
apprunner:AutoScalingConfigurationArn |
||||
|
apprunner:AutoScalingConfigurationArn |
||||
|
apprunner:AutoScalingConfigurationArn |
||||
准許建立 AWS App Runner VPC 連接器資源 |
寫入 |
|||
准許建立 AWS App Runner VpcIngressConnection 資源 |
寫入 |
|||
准許刪除 AWS App Runner 自動擴展組態資源 |
寫入 |
|||
准許刪除 AWS App Runner 連線資源 |
寫入 |
|||
准許刪除 AWS App Runner 可觀測性組態資源 |
寫入 |
|||
准許刪除 AWS App Runner 服務資源 |
寫入 |
|||
准許刪除 AWS App Runner VPC 連接器資源 |
寫入 |
|||
准許刪除 AWS App Runner VpcIngressConnection 資源 |
寫入 |
|||
准許擷取 AWS App Runner 自動擴展組態資源的描述 |
讀取 |
|||
准許擷取與 AWS App Runner 服務相關聯的自訂網域名稱描述 |
讀取 |
|||
准許擷取 AWS App Runner 可觀測性組態資源的描述 |
讀取 |
|||
准許擷取 AWS App Runner 服務上所發生操作的描述 |
讀取 |
|||
准許擷取 AWS App Runner 服務資源的描述 |
讀取 |
|||
准許擷取 AWS App Runner VPC 連接器資源的描述 |
讀取 |
|||
准許擷取 AWS App Runner VpcIngressConnection 資源的描述 |
讀取 |
|||
准許取消自訂網域名稱與 AWS App Runner 服務的關聯 |
寫入 |
|||
准許擷取您 中的 AWS App Runner 自動擴展組態清單 AWS 帳戶 |
清單 |
|||
准許擷取您 中的 AWS App Runner 連線清單 AWS 帳戶 |
清單 |
|||
准許擷取您 中的 AWS App Runner 可觀測性組態清單 AWS 帳戶 |
清單 |
|||
准許擷取 AWS App Runner 服務資源上發生的操作清單 |
清單 |
|||
准許擷取您 中執行中的 AWS App Runner 服務清單 AWS 帳戶 |
清單 |
|||
准許擷取您 中 App Runner 自動擴展組態的相關聯 AppRunner 服務清單 AWS AWS 帳戶 |
清單 |
|||
准許列出與 AWS App Runner 資源相關聯的標籤 |
讀取 |
|||
准許擷取您 中的 AWS App Runner VPC 連接器清單 AWS 帳戶 |
清單 |
|||
准許擷取您 中的 AWS App Runner VpcIngressConnections 清單 AWS 帳戶 |
清單 |
|||
准許暫停作用中的 AWS App Runner 服務 |
寫入 |
|||
准許繼續作用中的 AWS App Runner 服務 |
寫入 |
|||
准許啟動手動部署至 AWS App Runner 服務 |
寫入 |
|||
准許將標籤新增至 AWS App Runner 資源,或更新其標籤值 |
標記、寫入 |
|||
准許從 AWS App Runner 資源移除標籤 |
標記、寫入 |
|||
准許將 AWS App Runner 自動擴展組態更新為 中的預設值 AWS 帳戶 |
寫入 |
|||
准許更新 AWS App Runner 服務資源 |
apprunner:AutoScalingConfigurationArn |
寫入 |
||
|
apprunner:AutoScalingConfigurationArn |
||||
|
apprunner:AutoScalingConfigurationArn |
||||
|
apprunner:AutoScalingConfigurationArn |
||||
|
apprunner:AutoScalingConfigurationArn |
||||
准許更新 AWS App Runner VpcIngressConnection 資源 |
寫入 |
AWS App Runner 的僅限許可動作
下列動作是由 AWS App Runner 定義,但無法透過任何 API 操作直接叫用。它們只能在 IAM 政策陳述式中使用,以授予或拒絕許可。
| 動作 | 說明 | 資源類型 (*必填項目) | 條件索引鍵 | 存取層級 |
|---|---|---|---|---|
准許將服務與 AWS WAF Web ACL 建立關聯 |
寫入 |
|||
准許取得與 AWS App Runner 服務相關聯的 AWS WAF Web ACL |
讀取 |
|||
准許取消服務與 AWS WAF Web ACL 的關聯 |
寫入 |
|||
准許列出與 AWS WAF Web ACL 相關聯的服務 |
清單 |
AWS App Runner 定義的資源類型
此服務會定義下列資源類型,並可用在 IAM 許可政策陳述式的 Resource 元素中。
| 資源類型 | ARN | 條件索引鍵 |
|---|---|---|
arn:${Partition}:apprunner:${Region}:${Account}:autoscalingconfiguration/${AutoscalingConfigurationName}/${AutoscalingConfigurationVersion}/${AutoscalingConfigurationId} |
||
arn:${Partition}:apprunner:${Region}:${Account}:connection/${ConnectionName}/${ConnectionId} |
||
arn:${Partition}:apprunner:${Region}:${Account}:observabilityconfiguration/${ObservabilityConfigurationName}/${ObservabilityConfigurationVersion}/${ObservabilityConfigurationId} |
||
arn:${Partition}:apprunner:${Region}:${Account}:service/${ServiceName}/${ServiceId} |
||
arn:${Partition}:apprunner:${Region}:${Account}:vpcconnector/${VpcConnectorName}/${VpcConnectorVersion}/${VpcConnectorId} |
||
arn:${Partition}:apprunner:${Region}:${Account}:vpcingressconnection/${VpcIngressConnectionName}/${VpcIngressConnectionId} |
||
arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id} |
AWS App Runner 的條件索引鍵
AWS App Runner 定義了下列條件索引鍵,可用於 IAM 政策的 Condition元素。
| 條件索引鍵 | 描述 | Type |
|---|---|---|
根據相關聯 AutoScalingConfiguration 資源的 ARN,依 CreateService 和 UpdateService 動作篩選存取權 |
ARN |
|
根據相關聯 Connection 資源的 ARN,依 CreateService 和 UpdateService 動作篩選存取權 |
ARN |
|
根據相關聯 ObservabilityConfiguration 資源的 ARN,依 CreateService 和 UpdateService 動作篩選存取權 |
ARN |
|
根據相關聯 Service 資源的 ARN,依 CreateVpcIngressConnection 動作篩選存取權 |
ARN |
|
根據相關聯 VpcConnector 資源的 ARN,依 CreateService 和 UpdateService 動作篩選存取權 |
ARN |
|
根據請求中的 VPC 端點,依 CreateVpcIngressConnection 和 UpdateVpcIngressConnection 動作篩選存取權 |
String |
|
根據請求中的 VPC,依 CreateVpcIngressConnection 和 UpdateVpcIngressConnection 動作篩選存取權 |
String |
|
根據請求中的標籤鍵值對是否存在,依動作篩選存取權 |
String |
|
根據連線到資源的標籤鍵值對,依動作篩選存取權 |
String |
|
根據請求中的標籤索引鍵是否存在,依動作篩選存取權 |
ArrayOfString |