Skip to content
v2.278.0

Ipv4PrefixSpecificationProperty Struct ​

Describes an IPv4 prefix.

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 ipv4PrefixSpecificationProperty: ec2.CfnNetworkInterface.Ipv4PrefixSpecificationProperty = {
  ipv4Prefix: 'ipv4Prefix',
};
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

ipv4_prefix_specification_property = ec2.CfnNetworkInterface.Ipv4PrefixSpecificationProperty(
    ipv4_prefix="ipv4Prefix"
)
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.*;

Ipv4PrefixSpecificationProperty ipv4PrefixSpecificationProperty = Ipv4PrefixSpecificationProperty.builder()
        .ipv4Prefix("ipv4Prefix")
        .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 ipv4PrefixSpecificationProperty = new Ipv4PrefixSpecificationProperty {
    Ipv4Prefix = "ipv4Prefix"
};
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"

ipv4PrefixSpecificationProperty := &Ipv4PrefixSpecificationProperty{
	Ipv4Prefix: jsii.String("ipv4Prefix"),
}

Properties ​

ipv4Prefixstringipv4_prefixstripv4PrefixStringIpv4PrefixstringIpv4Prefix*string required #
The IPv4 prefix.

For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide .