View a markdown version of this page

AWS::Bedrock::ResourcePolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::Bedrock::ResourcePolicy

Adds a resource policy for a Bedrock resource.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Bedrock::ResourcePolicy", "Properties" : { "PolicyDocument" : Json, "ResourceArn" : String } }

YAML

Type: AWS::Bedrock::ResourcePolicy Properties: PolicyDocument: Json ResourceArn: String

Properties

PolicyDocument

The JSON string representing the Bedrock resource policy.

Required: Yes

Type: Json

Update requires: No interruption

ResourceArn

The ARN of the Bedrock resource to which this resource policy applies.

Required: Yes

Type: String

Pattern: ^arn:aws(-[a-z]+)*:bedrock:[a-z0-9-]+:[0-9]{12}:(guardrail|guardrail-profile)/[a-z0-9]+$

Minimum: 1

Maximum: 2048

Update requires: Replacement

Return values

Ref