Class CfnResourcePolicyProps
Properties for defining a CfnResourcePolicy
.
Inheritance
System.Object
CfnResourcePolicyProps
Implements
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourcePolicyProps : Object, ICfnResourcePolicyProps
Syntax (vb)
Public Class CfnResourcePolicyProps
Inherits Object
Implements ICfnResourcePolicyProps
Remarks
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.CloudTrail;
var resourcePolicy;
var cfnResourcePolicyProps = new CfnResourcePolicyProps {
ResourceArn = "resourceArn",
ResourcePolicy = resourcePolicy
};
Synopsis
Constructors
CfnResourcePolicyProps() |
Properties
ResourceArn | The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. |
ResourcePolicy | A JSON-formatted string for an AWS resource-based policy. |
Constructors
CfnResourcePolicyProps()
public CfnResourcePolicyProps()
Properties
ResourceArn
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
public string ResourceArn { get; set; }
Property Value
System.String
Remarks
The following is the format of a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel
.
ResourcePolicy
A JSON-formatted string for an AWS resource-based policy.
public object ResourcePolicy { get; set; }
Property Value
System.Object
Remarks
The following are requirements for the resource policy: