# AclIcmp

Properties to create Icmp.

Used as argument in: [AclTraffic.icmp](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.AclTraffic.html#icmp), [AclTraffic.icmpv6](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.AclTraffic.html#icmpv6)

- Source: [`aws-ec2/lib/network-acl-types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ec2/lib/network-acl-types.ts#L215)

## 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 aclIcmp: ec2.AclIcmp = {
  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

acl_icmp = ec2.AclIcmp(
    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.*;

AclIcmp aclIcmp = AclIcmp.builder()
        .code(123)
        .type(123)
        .build();
```

C# / .NET:

```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 aclIcmp = new AclIcmp {
    Code = 123,
    Type = 123
};
```

Golang:

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

aclIcmp := &AclIcmp{
	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. Requirement is conditional: 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.
