CfnResourcePolicyProps

class aws_cdk.aws_bedrock.CfnResourcePolicyProps(*, policy_document, resource_arn)

Bases: object

Properties for defining a CfnResourcePolicy.

Parameters:
  • policy_document (Any) – The IAM policy document defining access permissions for the guardrail and guardrail profile resources.

  • resource_arn (str) – The ARN of the Bedrock Guardrail or Guardrail Profile resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-resourcepolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

# policy_document: Any

cfn_resource_policy_props = bedrock.CfnResourcePolicyProps(
    policy_document=policy_document,
    resource_arn="resourceArn"
)

Attributes

policy_document

The IAM policy document defining access permissions for the guardrail and guardrail profile resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-resourcepolicy.html#cfn-bedrock-resourcepolicy-policydocument

resource_arn

The ARN of the Bedrock Guardrail or Guardrail Profile resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-resourcepolicy.html#cfn-bedrock-resourcepolicy-resourcearn