Class RuleScope
The scope and id in which a given SecurityGroup rule should be defined.
Inheritance
System.Object
RuleScope
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RuleScope : Object, IRuleScope
Syntax (vb)
Public Class RuleScope
Inherits Object
Implements IRuleScope
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.EC2;
SecurityGroup securityGroup;
var ruleScope = new RuleScope {
Id = "id",
Scope = securityGroup
};
Synopsis
Constructors
RuleScope() |
Properties
Id | The construct ID to use for the rule. |
Scope | The SecurityGroup in which a rule should be scoped. |
Constructors
RuleScope()
public RuleScope()
Properties
Id
The construct ID to use for the rule.
public string Id { get; set; }
Property Value
System.String
Scope
The SecurityGroup in which a rule should be scoped.
public ISecurityGroup Scope { get; set; }
Property Value