Class 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 .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.XRay
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourcePolicy : CfnResource, IInspectable
Syntax (vb)
Public Class CfnResourcePolicy
Inherits CfnResource
Implements IInspectable
Remarks
Each resource-based policy is associated with a specific AWS account.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html
CloudformationResource: AWS::XRay::ResourcePolicy
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.XRay;
var cfnResourcePolicy = new CfnResourcePolicy(this, "MyCfnResourcePolicy", new CfnResourcePolicyProps {
PolicyDocument = "policyDocument",
PolicyName = "policyName",
// the properties below are optional
BypassPolicyLockoutCheck = false
});
Synopsis
Constructors
CfnResourcePolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnResourcePolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnResourcePolicy(Construct, String, ICfnResourcePolicyProps) |
Properties
BypassPolicyLockoutCheck | A flag to indicate whether to bypass the resource-based policy lockout safety check. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
PolicyDocument | The resource-based policy document, which can be up to 5kb in size. |
PolicyName | The name of the resource-based policy. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResourcePolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnResourcePolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnResourcePolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnResourcePolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnResourcePolicy(Construct, String, ICfnResourcePolicyProps)
public CfnResourcePolicy(Construct scope, string id, ICfnResourcePolicyProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnResourcePolicyProps
Resource properties.
Properties
BypassPolicyLockoutCheck
A flag to indicate whether to bypass the resource-based policy lockout safety check.
public virtual object BypassPolicyLockoutCheck { get; set; }
Property Value
System.Object
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
PolicyDocument
The resource-based policy document, which can be up to 5kb in size.
public virtual string PolicyDocument { get; set; }
Property Value
System.String
PolicyName
The name of the resource-based policy.
public virtual string PolicyName { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>