文件 AWS 開發套件範例 GitHub 儲存庫中有更多可用的 AWS SDK 範例
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
為組織的管理帳戶授予 Compute Optimizer Automation 唯讀存取權的政策
下列程式碼範例示範如何針對組織的管理帳戶,此以許可為基礎的政策授予 Compute Optimizer Automation 的唯讀存取權
- JSON
-
-
{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "aco-automation:GetEnrollmentConfiguration", "aco-automation:GetAutomationEvent", "aco-automation:GetAutomationRule", "aco-automation:ListAccounts", "aco-automation:ListAutomationEvents", "aco-automation:ListAutomationEventSteps", "aco-automation:ListAutomationEventSummaries", "aco-automation:ListAutomationRules", "aco-automation:ListAutomationRulePreview", "aco-automation:ListAutomationRulePreviewSummaries", "aco-automation:ListRecommendedActions", "aco-automation:ListRecommendedActionSummaries", "aco-automation:ListTagsForResource", "ec2:DescribeVolumes" ], "Resource": "*" } ] }
授予獨立 AWS 帳戶 Compute Optimizer Automation 完整存取權的許可政策
授予獨立 AWS 帳戶 Compute Optimizer Automation 唯讀存取權的許可政策