Interface RuleScope
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RuleScope.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:00.755Z")
@Stability(Stable)
public interface RuleScope
extends software.amazon.jsii.JsiiSerializable
The scope and id in which a given SecurityGroup rule should be defined.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; SecurityGroup securityGroup; RuleScope ruleScope = RuleScope.builder() .id("id") .scope(securityGroup) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleScope.Builder
builder()
getId()
The construct ID to use for the rule.getScope()
The SecurityGroup in which a rule should be scoped.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getId
The construct ID to use for the rule. -
getScope
The SecurityGroup in which a rule should be scoped. -
builder
- Returns:
- a
RuleScope.Builder
ofRuleScope
-