Skip to content
v2.278.0

CidrRangeSpecificationsProperty Struct ​

CIDR range specifications, used when the reporting granularity is 'cidr'.

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 cidrRangeSpecificationsProperty: ec2.CfnFcaPolicy.CidrRangeSpecificationsProperty = {
  prefixes: [{
    cidrLabel: 'cidrLabel',
    cidrRange: 'cidrRange',
  }],
  prefixesType: 'prefixesType',
};
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

cidr_range_specifications_property = ec2.CfnFcaPolicy.CidrRangeSpecificationsProperty(
    prefixes=[ec2.CfnFcaPolicy.CidrMappingProperty(
        cidr_label="cidrLabel",
        cidr_range="cidrRange"
    )],
    prefixes_type="prefixesType"
)
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.*;

CidrRangeSpecificationsProperty cidrRangeSpecificationsProperty = CidrRangeSpecificationsProperty.builder()
        .prefixes(List.of(CidrMappingProperty.builder()
                .cidrLabel("cidrLabel")
                .cidrRange("cidrRange")
                .build()))
        .prefixesType("prefixesType")
        .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 cidrRangeSpecificationsProperty = new CidrRangeSpecificationsProperty {
    Prefixes = new [] { new CidrMappingProperty {
        CidrLabel = "cidrLabel",
        CidrRange = "cidrRange"
    } },
    PrefixesType = "prefixesType"
};
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"

cidrRangeSpecificationsProperty := &CidrRangeSpecificationsProperty{
	Prefixes: []interface{}{
		&CidrMappingProperty{
			CidrLabel: jsii.String("cidrLabel"),
			CidrRange: jsii.String("cidrRange"),
		},
	},
	PrefixesType: jsii.String("prefixesType"),
}

Properties ​

prefixesIResolvable | IResolvable | CfnFcaPolicy.CidrMappingProperty[]prefixestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CidrMappingProperty]]]prefixesIResolvablePrefixesIResolvablePrefixesinterface{} required #
The CIDR range to label mappings.
prefixesTypestringprefixes_typestrprefixesTypeStringPrefixesTypestringPrefixesType*string required #
The type of prefixes the mappings apply to.