@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.927Z") @Stability(value=Stable) public class CfnNetworkAclEntry 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.ec2.*;
CfnNetworkAclEntry cfnNetworkAclEntry = CfnNetworkAclEntry.Builder.create(this, "MyCfnNetworkAclEntry")
.networkAclId("networkAclId")
.protocol(123)
.ruleAction("ruleAction")
.ruleNumber(123)
// the properties below are optional
.cidrBlock("cidrBlock")
.egress(false)
.icmp(IcmpProperty.builder()
.code(123)
.type(123)
.build())
.ipv6CidrBlock("ipv6CidrBlock")
.portRange(PortRangeProperty.builder()
.from(123)
.to(123)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnNetworkAclEntry.Builder
A fluent builder for
CfnNetworkAclEntry. |
static interface |
CfnNetworkAclEntry.IcmpProperty
Example:
|
static interface |
CfnNetworkAclEntry.PortRangeProperty
Example:
|
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 |
|---|---|
|
CfnNetworkAclEntry(software.constructs.Construct scope,
String id,
CfnNetworkAclEntryProps props)
Create a new `AWS::EC2::NetworkAclEntry`.
|
protected |
CfnNetworkAclEntry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnNetworkAclEntry(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrId() |
protected Map<String,Object> |
getCfnProperties() |
String |
getCidrBlock()
`AWS::EC2::NetworkAclEntry.CidrBlock`.
|
Object |
getEgress()
`AWS::EC2::NetworkAclEntry.Egress`.
|
Object |
getIcmp()
`AWS::EC2::NetworkAclEntry.Icmp`.
|
String |
getIpv6CidrBlock()
`AWS::EC2::NetworkAclEntry.Ipv6CidrBlock`.
|
String |
getNetworkAclId()
`AWS::EC2::NetworkAclEntry.NetworkAclId`.
|
Object |
getPortRange()
`AWS::EC2::NetworkAclEntry.PortRange`.
|
Number |
getProtocol()
`AWS::EC2::NetworkAclEntry.Protocol`.
|
String |
getRuleAction()
`AWS::EC2::NetworkAclEntry.RuleAction`.
|
Number |
getRuleNumber()
`AWS::EC2::NetworkAclEntry.RuleNumber`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCidrBlock(String value)
`AWS::EC2::NetworkAclEntry.CidrBlock`.
|
void |
setEgress(Boolean value)
`AWS::EC2::NetworkAclEntry.Egress`.
|
void |
setEgress(IResolvable value)
`AWS::EC2::NetworkAclEntry.Egress`.
|
void |
setIcmp(CfnNetworkAclEntry.IcmpProperty value)
`AWS::EC2::NetworkAclEntry.Icmp`.
|
void |
setIcmp(IResolvable value)
`AWS::EC2::NetworkAclEntry.Icmp`.
|
void |
setIpv6CidrBlock(String value)
`AWS::EC2::NetworkAclEntry.Ipv6CidrBlock`.
|
void |
setNetworkAclId(String value)
`AWS::EC2::NetworkAclEntry.NetworkAclId`.
|
void |
setPortRange(CfnNetworkAclEntry.PortRangeProperty value)
`AWS::EC2::NetworkAclEntry.PortRange`.
|
void |
setPortRange(IResolvable value)
`AWS::EC2::NetworkAclEntry.PortRange`.
|
void |
setProtocol(Number value)
`AWS::EC2::NetworkAclEntry.Protocol`.
|
void |
setRuleAction(String value)
`AWS::EC2::NetworkAclEntry.RuleAction`.
|
void |
setRuleNumber(Number value)
`AWS::EC2::NetworkAclEntry.RuleNumber`.
|
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 CfnNetworkAclEntry(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnNetworkAclEntry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnNetworkAclEntry(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnNetworkAclEntryProps 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 getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getCidrBlock()
@Stability(value=Stable)
public void setCidrBlock(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getEgress()
@Stability(value=Stable)
public void setEgress(@Nullable
Boolean value)
@Stability(value=Stable)
public void setEgress(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getIcmp()
@Stability(value=Stable)
public void setIcmp(@Nullable
CfnNetworkAclEntry.IcmpProperty value)
@Stability(value=Stable)
public void setIcmp(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getIpv6CidrBlock()
@Stability(value=Stable)
public void setIpv6CidrBlock(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getNetworkAclId()
@Stability(value=Stable)
public void setNetworkAclId(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getPortRange()
@Stability(value=Stable)
public void setPortRange(@Nullable
CfnNetworkAclEntry.PortRangeProperty value)
@Stability(value=Stable)
public void setPortRange(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public Number getProtocol()
@Stability(value=Stable)
public void setProtocol(@NotNull
Number value)
@Stability(value=Stable) @NotNull public String getRuleAction()
@Stability(value=Stable)
public void setRuleAction(@NotNull
String value)
@Stability(value=Stable) @NotNull public Number getRuleNumber()
@Stability(value=Stable)
public void setRuleNumber(@NotNull
Number value)
Copyright © 2021. All rights reserved.