AmazonBedrockStudioPermissionsBoundary - AWS 托管策略

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

AmazonBedrockStudioPermissionsBoundary

描述:定义 Amazon Bedrock Studio 为操作 Amazon Bedrock Studio 资源而创建的 IAM 角色的最大权限。

AmazonBedrockStudioPermissionsBoundary 是一项 AWS 托管式策略

使用此策略

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

策略详细信息

  • 类型: AWS 托管策略

  • 创建时间:2024 年 8 月 1 日 00:24 UTC

  • 编辑时间:2024 年 8 月 1 日 00:24 UTC

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

策略版本

策略版本:v1 (默认值)

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

JSON 策略文档

{ "Version" : "2012-10-17", "Statement" : [ { "Sid" : "AccessS3Buckets", "Effect" : "Allow", "Action" : [ "s3:ListBucket", "s3:ListBucketVersions", "s3:GetObject", "s3:PutObject", "s3:DeleteObject", "s3:GetObjectVersion", "s3:DeleteObjectVersion" ], "Resource" : "arn:aws:s3:::br-studio-${aws:PrincipalAccount}-*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}" } } }, { "Sid" : "AccessOpenSearchCollections", "Effect" : "Allow", "Action" : "aoss:APIAccessAll", "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}" } } }, { "Sid" : "InvokeBedrockModels", "Effect" : "Allow", "Action" : [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource" : "arn:aws:bedrock:*::foundation-model/*" }, { "Sid" : "AccessBedrockResources", "Effect" : "Allow", "Action" : [ "bedrock:InvokeAgent", "bedrock:Retrieve", "bedrock:StartIngestionJob", "bedrock:GetIngestionJob", "bedrock:ListIngestionJobs", "bedrock:ApplyGuardrail", "bedrock:ListPrompts", "bedrock:GetPrompt", "bedrock:CreatePrompt", "bedrock:DeletePrompt", "bedrock:CreatePromptVersion", "bedrock:InvokeFlow", "bedrock:ListTagsForResource", "bedrock:TagResource", "bedrock:UntagResource" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}", "aws:ResourceTag/AmazonBedrockManaged" : "true" }, "Null" : { "aws:ResourceTag/AmazonDataZoneProject" : "false" } } }, { "Sid" : "RetrieveAndGenerate", "Effect" : "Allow", "Action" : "bedrock:RetrieveAndGenerate", "Resource" : "*" }, { "Sid" : "WriteLogs", "Effect" : "Allow", "Action" : [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents" ], "Resource" : "arn:aws:logs:*:*:log-group:/aws/lambda/br-studio-*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}", "aws:ResourceTag/AmazonBedrockManaged" : "true" }, "Null" : { "aws:ResourceTag/AmazonDataZoneProject" : "false" } } }, { "Sid" : "InvokeLambdaFunctions", "Effect" : "Allow", "Action" : "lambda:InvokeFunction", "Resource" : "arn:aws:lambda:*:*:function:br-studio-*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}", "aws:ResourceTag/AmazonBedrockManaged" : "true" }, "Null" : { "aws:ResourceTag/AmazonDataZoneProject" : "false" } } }, { "Sid" : "AccessSecretsManagerSecrets", "Effect" : "Allow", "Action" : [ "secretsmanager:DescribeSecret", "secretsmanager:GetSecretValue", "secretsmanager:PutSecretValue" ], "Resource" : "arn:aws:secretsmanager:*:*:secret:br-studio/*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}", "aws:ResourceTag/AmazonBedrockManaged" : "true" }, "Null" : { "aws:ResourceTag/AmazonDataZoneProject" : "false" } } }, { "Sid" : "UseKmsKeyWithBedrock", "Effect" : "Allow", "Action" : [ "kms:Decrypt", "kms:GenerateDataKey" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}", "aws:ResourceTag/EnableBedrock" : "true" }, "Null" : { "kms:EncryptionContext:aws:bedrock:arn" : "false" } } }, { "Sid" : "UseKmsKeyWithAwsServices", "Effect" : "Allow", "Action" : [ "kms:Decrypt", "kms:GenerateDataKey" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceAccount" : "${aws:PrincipalAccount}", "aws:ResourceTag/EnableBedrock" : "true" }, "StringLike" : { "kms:ViaService" : [ "s3.*.amazonaws.com", "secretsmanager.*.amazonaws.com" ] } } } ] }

了解更多信息