Class CfnResourcePolicyProps
Properties for defining a CfnResourcePolicy
.
Inheritance
System.Object
CfnResourcePolicyProps
Implements
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public class CfnResourcePolicyProps : Object, ICfnResourcePolicyProps
Syntax (vb)
Public Class CfnResourcePolicyProps
Inherits Object
Implements ICfnResourcePolicyProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lex-resourcepolicy.html
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.Lex;
var policy;
var cfnResourcePolicyProps = new CfnResourcePolicyProps {
Policy = policy,
ResourceArn = "resourceArn"
};
Synopsis
Constructors
CfnResourcePolicyProps() |
Properties
Policy | A resource policy to add to the resource. |
ResourceArn | The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. |
Constructors
CfnResourcePolicyProps()
public CfnResourcePolicyProps()
Properties
Policy
A resource policy to add to the resource.
public object Policy { get; set; }
Property Value
System.Object
Remarks
The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow IAM syntax. If the policy isn't valid, Amazon Lex returns a validation exception.
ResourceArn
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
public string ResourceArn { get; set; }
Property Value
System.String