Skip to content
v2.278.0

AclIcmp Struct ​

Properties to create Icmp.

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

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

AclIcmp aclIcmp = AclIcmp.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 aclIcmp = new AclIcmp {
    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"

aclIcmp := &AclIcmp{
	Code: jsii.Number(123),
	Type: jsii.Number(123),
}

Properties ​

codeoptionalnumbercodeoptionalint | floatcodeoptionalNumberCodeoptionaldoubleCodeoptional*float64 #
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.

typeoptionalnumbertypeoptionalint | floattypeoptionalNumberTypeoptionaldoubleTypeoptional*float64 #
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.