IcmpProperty Struct
Describes the ICMP type and code.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const icmpProperty: ec2.CfnNetworkAclEntry.IcmpProperty = {
code: 123,
type: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
icmp_property = ec2.CfnNetworkAclEntry.IcmpProperty(
code=123,
type=123
)
java
// 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.*;
IcmpProperty icmpProperty = IcmpProperty.builder()
.code(123)
.type(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var icmpProperty = new IcmpProperty {
Code = 123,
Type = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
icmpProperty := &IcmpProperty{
Code: jsii.Number(123),
Type: jsii.Number(123),
}
Properties
The Internet Control Message Protocol (ICMP) code.
You can use -1 to specify all ICMP codes for the given ICMP type. Required if you specify 1 (ICMP) for the protocol parameter.
The Internet Control Message Protocol (ICMP) type.
You can use -1 to specify all ICMP types. Conditional requirement: Required if you specify 1 (ICMP) for the CreateNetworkAclEntry protocol parameter.