Interface ICfnResourcePolicyProps
Properties for defining a CfnResourcePolicy
.
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public interface ICfnResourcePolicyProps
Syntax (vb)
Public Interface 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
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. |
Properties
Policy
A resource policy to add to the resource.
object Policy { get; }
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.
string ResourceArn { get; }
Property Value
System.String