Skip to content
v2.277.0

IcmpTypeCodeProperty Struct ​

ICMP protocol: The ICMP type and code.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fms as fms } from 'aws-cdk-lib';
const icmpTypeCodeProperty: fms.CfnPolicy.IcmpTypeCodeProperty = {
  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_fms as fms

icmp_type_code_property = fms.CfnPolicy.IcmpTypeCodeProperty(
    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.fms.*;

IcmpTypeCodeProperty icmpTypeCodeProperty = IcmpTypeCodeProperty.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.FMS;

var icmpTypeCodeProperty = new IcmpTypeCodeProperty {
    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"

icmpTypeCodeProperty := &IcmpTypeCodeProperty{
	Code: jsii.Number(123),
	Type: jsii.Number(123),
}

Properties ​

codenumbercodeint | floatcodeNumberCodedoubleCode*float64required#
ICMP code.
typenumbertypeint | floattypeNumberTypedoubleType*float64required#
ICMP type.