AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::XRay::ResourcePolicy

CfnResourcePolicy

Use `AWS::XRay::ResourcePolicy` to specify an X-Ray resource-based policy, which grants one or more AWS services and accounts permissions to access X-Ray . Each resource-based policy is associated with a specific AWS account.

Import

import { CfnResourcePolicy } from 'aws-cdk-lib/aws-xray';

Or use the module namespace:

import * as xray from 'aws-cdk-lib/aws-xray';
// xray.CfnResourcePolicy

Properties

Configuration passed to the constructor as CfnResourcePolicyProps.

policyDocumentRequired
string

The resource-based policy document, which can be up to 5kb in size.

policyNameRequired
string

The name of the resource-based policy. Must be unique within a specific AWS account.

bypassPolicyLockoutCheckOptional
boolean | IResolvable

A flag to indicate whether to bypass the resource-based policy lockout safety check.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-xray
CFN TypeAWS::XRay::ResourcePolicy
Properties3

External Links