AmazonRedshiftQueryEditor - AWS 托管策略

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

AmazonRedshiftQueryEditor

描述:提供对 Amazon Redshift 查询编辑器和通过保存的查询的完全访问权限。 AWS Management Console

AmazonRedshiftQueryEditor是一个AWS 托管策略

使用此策略

您可以将 AmazonRedshiftQueryEditor 附加到您的用户、组和角色。

策略详细信息

  • 类型: AWS 托管策略

  • 创建时间:2018 年 10 月 4 日 22:50 UTC

  • 编辑时间:2021 年 2 月 16 日 19:33 UTC

  • ARN: arn:aws:iam::aws:policy/AmazonRedshiftQueryEditor

策略版本

策略版本:v4(默认)

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

JSON 策略文档

{ "Version" : "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "redshift:GetClusterCredentials", "redshift:ListSchemas", "redshift:ListTables", "redshift:ListDatabases", "redshift:ExecuteQuery", "redshift:FetchResults", "redshift:CancelQuery", "redshift:DescribeClusters", "redshift:DescribeQuery", "redshift:DescribeTable", "redshift:ViewQueriesFromConsole", "redshift:DescribeSavedQueries", "redshift:CreateSavedQuery", "redshift:DeleteSavedQueries", "redshift:ModifySavedQuery" ], "Resource" : "*" }, { "Sid" : "DataAPIPermissions", "Action" : [ "redshift-data:ExecuteStatement", "redshift-data:ListDatabases", "redshift-data:ListSchemas", "redshift-data:ListTables", "redshift-data:DescribeTable" ], "Effect" : "Allow", "Resource" : "*" }, { "Sid" : "DataAPIIAMSessionPermissionsRestriction", "Action" : [ "redshift-data:GetStatementResult", "redshift-data:CancelStatement", "redshift-data:DescribeStatement", "redshift-data:ListStatements" ], "Effect" : "Allow", "Resource" : "*", "Condition" : { "StringEquals" : { "redshift-data:statement-owner-iam-userid" : "${aws:userid}" } } }, { "Sid" : "SecretsManagerListPermissions", "Action" : [ "secretsmanager:ListSecrets" ], "Effect" : "Allow", "Resource" : "*" }, { "Sid" : "SecretsManagerCreateGetPermissions", "Action" : [ "secretsmanager:CreateSecret", "secretsmanager:GetSecretValue", "secretsmanager:TagResource" ], "Effect" : "Allow", "Resource" : "arn:aws:secretsmanager:*:*:secret:*", "Condition" : { "StringEquals" : { "secretsmanager:ResourceTag/RedshiftQueryOwner" : "${aws:userid}" } } } ] }

了解更多信息