View a markdown version of this page

AWSVPCFlowLogsServiceRolePolicy - AWS 托管策略

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

AWSVPCFlowLogsServiceRolePolicy

描述:提供控制服务托管资源和代表客户调用丰富日志字段所必需的 API 的权限。

AWSVPCFlowLogsServiceRolePolicy 是一项 AWS 托管式策略

使用此策略

此附加到服务相关角色的策略允许服务代表您执行操作。您无法将此策略附加到您的用户、组或角色。

策略详细信息

  • 类型: Service-linked 角色策略

  • 创建时间:世界标准时间 2026 年 5 月 11 日 15:57

  • 编辑时间:世界标准时间 2026 年 5 月 11 日 15:57

  • ARN: arn:aws:iam::aws:policy/aws-service-role/AWSVPCFlowLogsServiceRolePolicy

策略版本

策略版本:v1(默认)

此策略的默认版本是定义策略权限的版本。当使用该策略的用户或角色请求访问 AWS 资源时, AWS 会检查策略的默认版本以确定是否允许该请求。

JSON 策略文档

{ "Version" : "2012-10-17", "Statement" : [ { "Sid" : "AllowPutRuleOnSpecificSourcesAndDetailTypes", "Effect" : "Allow", "Action" : "events:PutRule", "Resource" : [ "arn:aws:events:*:*:rule/VPCFlowLogsEC2TagsManagedRule", "arn:aws:events:*:*:rule/VPCFlowLogsASGTagsManagedRule" ], "Condition" : { "ForAllValues:StringEquals" : { "events:source" : [ "aws.tag", "aws.autoscaling" ], "events:detail-type" : [ "AWS API Call via CloudTrail", "Tag Change on Resource" ] }, "Null" : { "events:source" : "false", "events:detail-type" : "false" }, "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}" } } }, { "Sid" : "AllowOtherOperationsOnRulesManagedByVPCFlowLogs", "Effect" : "Allow", "Action" : [ "events:DeleteRule", "events:DescribeRule", "events:PutTargets", "events:RemoveTargets" ], "Resource" : [ "arn:aws:events:*:*:rule/VPCFlowLogsEC2TagsManagedRule", "arn:aws:events:*:*:rule/VPCFlowLogsASGTagsManagedRule" ], "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}" } } }, { "Sid" : "AllowDescribeTagsOnAllEC2Resources", "Effect" : "Allow", "Action" : [ "tag:GetResources", "autoscaling:DescribeTags" ], "Resource" : "*" } ] }

了解更多信息