@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:18.622Z") @Stability(value=Stable) public class CfnRuleGroup extends CfnResource implements IInspectable
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.networkfirewall.*;
IPSetProperty pSetProperty;
CfnRuleGroup cfnRuleGroup = CfnRuleGroup.Builder.create(this, "MyCfnRuleGroup")
.capacity(123)
.ruleGroupName("ruleGroupName")
.type("type")
// the properties below are optional
.description("description")
.ruleGroup(RuleGroupProperty.builder()
.rulesSource(RulesSourceProperty.builder()
.rulesSourceList(RulesSourceListProperty.builder()
.generatedRulesType("generatedRulesType")
.targets(List.of("targets"))
.targetTypes(List.of("targetTypes"))
.build())
.rulesString("rulesString")
.statefulRules(List.of(StatefulRuleProperty.builder()
.action("action")
.header(HeaderProperty.builder()
.destination("destination")
.destinationPort("destinationPort")
.direction("direction")
.protocol("protocol")
.source("source")
.sourcePort("sourcePort")
.build())
.ruleOptions(List.of(RuleOptionProperty.builder()
.keyword("keyword")
// the properties below are optional
.settings(List.of("settings"))
.build()))
.build()))
.statelessRulesAndCustomActions(StatelessRulesAndCustomActionsProperty.builder()
.statelessRules(List.of(StatelessRuleProperty.builder()
.priority(123)
.ruleDefinition(RuleDefinitionProperty.builder()
.actions(List.of("actions"))
.matchAttributes(MatchAttributesProperty.builder()
.destinationPorts(List.of(PortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build()))
.destinations(List.of(AddressProperty.builder()
.addressDefinition("addressDefinition")
.build()))
.protocols(List.of(123))
.sourcePorts(List.of(PortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build()))
.sources(List.of(AddressProperty.builder()
.addressDefinition("addressDefinition")
.build()))
.tcpFlags(List.of(TCPFlagFieldProperty.builder()
.flags(List.of("flags"))
// the properties below are optional
.masks(List.of("masks"))
.build()))
.build())
.build())
.build()))
// the properties below are optional
.customActions(List.of(CustomActionProperty.builder()
.actionDefinition(ActionDefinitionProperty.builder()
.publishMetricAction(PublishMetricActionProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.value("value")
.build()))
.build())
.build())
.actionName("actionName")
.build()))
.build())
.build())
// the properties below are optional
.ruleVariables(RuleVariablesProperty.builder()
.ipSets(Map.of(
"ipSetsKey", pSetProperty))
.portSets(Map.of(
"portSetsKey", PortSetProperty.builder()
.definition(List.of("definition"))
.build()))
.build())
.statefulRuleOptions(StatefulRuleOptionsProperty.builder()
.ruleOrder("ruleOrder")
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnRuleGroup(software.constructs.Construct scope,
String id,
CfnRuleGroupProps props)
Create a new `AWS::NetworkFirewall::RuleGroup`.
|
protected |
CfnRuleGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnRuleGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrRuleGroupArn() |
String |
getAttrRuleGroupId() |
Number |
getCapacity()
`AWS::NetworkFirewall::RuleGroup.Capacity`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
`AWS::NetworkFirewall::RuleGroup.Description`.
|
Object |
getRuleGroup()
`AWS::NetworkFirewall::RuleGroup.RuleGroup`.
|
String |
getRuleGroupName()
`AWS::NetworkFirewall::RuleGroup.RuleGroupName`.
|
TagManager |
getTags()
`AWS::NetworkFirewall::RuleGroup.Tags`.
|
String |
getType()
`AWS::NetworkFirewall::RuleGroup.Type`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCapacity(Number value)
`AWS::NetworkFirewall::RuleGroup.Capacity`.
|
void |
setDescription(String value)
`AWS::NetworkFirewall::RuleGroup.Description`.
|
void |
setRuleGroup(CfnRuleGroup.RuleGroupProperty value)
`AWS::NetworkFirewall::RuleGroup.RuleGroup`.
|
void |
setRuleGroup(IResolvable value)
`AWS::NetworkFirewall::RuleGroup.RuleGroup`.
|
void |
setRuleGroupName(String value)
`AWS::NetworkFirewall::RuleGroup.RuleGroupName`.
|
void |
setType(String value)
`AWS::NetworkFirewall::RuleGroup.Type`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnRuleGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnRuleGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnRuleGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnRuleGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrRuleGroupArn()
@Stability(value=Stable) @NotNull public String getAttrRuleGroupId()
@Stability(value=Stable) @NotNull public Number getCapacity()
@Stability(value=Stable)
public void setCapacity(@NotNull
Number value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getRuleGroup()
@Stability(value=Stable)
public void setRuleGroup(@Nullable
CfnRuleGroup.RuleGroupProperty value)
@Stability(value=Stable)
public void setRuleGroup(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getRuleGroupName()
@Stability(value=Stable)
public void setRuleGroupName(@NotNull
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getType()
@Stability(value=Stable)
public void setType(@NotNull
String value)
Copyright © 2021. All rights reserved.