Class CfnResourcePolicy
A CloudFormation AWS::Lex::ResourcePolicy
.
Inherited Members
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public class CfnResourcePolicy : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnResourcePolicy
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Amazon Lex V2 is the only supported version in AWS CloudFormation .
Specifies a new resource policy with the specified policy statements.
CloudformationResource: AWS::Lex::ResourcePolicy
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 cfnResourcePolicy = new CfnResourcePolicy(this, "MyCfnResourcePolicy", new CfnResourcePolicyProps {
Policy = policy,
ResourceArn = "resourceArn"
});
Synopsis
Constructors
CfnResourcePolicy(Construct, String, ICfnResourcePolicyProps) | Create a new |
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 |
Properties
AttrId | The identifier of the resource policy. |
AttrRevisionId | Specifies the current revision of a resource policy. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResourcePolicy(Construct, String, ICfnResourcePolicyProps)
Create a new AWS::Lex::ResourcePolicy
.
public CfnResourcePolicy(Construct scope, string id, ICfnResourcePolicyProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnResourcePolicyProps
- resource properties.
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
Properties
AttrId
The identifier of the resource policy.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
AttrRevisionId
Specifies the current revision of a resource policy.
public virtual string AttrRevisionId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: RevisionId
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
Policy
A resource policy to add to the resource.
public virtual 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 virtual string ResourceArn { get; set; }
Property Value
System.String
Remarks
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>