# IcmpProperty

Struct · External

Describes the ICMP type and code.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `code`: number — 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.

- `type`: number — 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.
