Skip to content
v2.278.0

IpamPrefixListResolverRuleConditionProperty Struct ​

Two of the rule types allow you to add conditions to the rules.

(1) For IPAM Pool CIDR rules, you can specify an ipamPoolId; if not specified, the rule will apply to all IPAM Pool CIDRs in the scope. (2) For IPAM Resource CIDR rules, you can specify resourceId, resourceOwner, resourceRegion, cidr, or resourceTag.

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 ipamPrefixListResolverRuleConditionProperty: ec2.CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleConditionProperty = {
  operation: 'operation',

  // the properties below are optional
  cidr: 'cidr',
  ipamPoolId: 'ipamPoolId',
  resourceId: 'resourceId',
  resourceOwner: 'resourceOwner',
  resourceRegion: 'resourceRegion',
  resourceTag: {
    key: 'key',
    value: 'value',
  },
};
python
from aws_cdk import CfnTag
# 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

ipam_prefix_list_resolver_rule_condition_property = ec2.CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleConditionProperty(
    operation="operation",

    # the properties below are optional
    cidr="cidr",
    ipam_pool_id="ipamPoolId",
    resource_id="resourceId",
    resource_owner="resourceOwner",
    resource_region="resourceRegion",
    resource_tag=CfnTag(
        key="key",
        value="value"
    )
)
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.*;

IpamPrefixListResolverRuleConditionProperty ipamPrefixListResolverRuleConditionProperty = IpamPrefixListResolverRuleConditionProperty.builder()
        .operation("operation")

        // the properties below are optional
        .cidr("cidr")
        .ipamPoolId("ipamPoolId")
        .resourceId("resourceId")
        .resourceOwner("resourceOwner")
        .resourceRegion("resourceRegion")
        .resourceTag(CfnTag.builder()
                .key("key")
                .value("value")
                .build())
        .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 ipamPrefixListResolverRuleConditionProperty = new IpamPrefixListResolverRuleConditionProperty {
    Operation = "operation",

    // the properties below are optional
    Cidr = "cidr",
    IpamPoolId = "ipamPoolId",
    ResourceId = "resourceId",
    ResourceOwner = "resourceOwner",
    ResourceRegion = "resourceRegion",
    ResourceTag = new CfnTag {
        Key = "key",
        Value = "value"
    }
};
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"

ipamPrefixListResolverRuleConditionProperty := &IpamPrefixListResolverRuleConditionProperty{
	Operation: jsii.String("operation"),

	// the properties below are optional
	Cidr: jsii.String("cidr"),
	IpamPoolId: jsii.String("ipamPoolId"),
	ResourceId: jsii.String("resourceId"),
	ResourceOwner: jsii.String("resourceOwner"),
	ResourceRegion: jsii.String("resourceRegion"),
	ResourceTag: &CfnTag{
		Key: jsii.String("key"),
		Value: jsii.String("value"),
	},
}

Properties ​

cidroptionalstringcidroptionalstrcidroptionalStringCidroptionalstringCidroptional*string #
Condition for the IPAM Resource CIDR rule type.

CIDR (like 10.24.34.0/23).

ipamPoolIdoptionalstringipam_pool_idoptionalstripamPoolIdoptionalStringIpamPoolIdoptionalstringIpamPoolIdoptional*string #
Condition for the IPAM Pool CIDR rule type.

If not chosen, the resolver applies to all IPAM Pool CIDRs in the scope.

operationstringoperationstroperationStringOperationstringOperation*string required #
Equals, Not equals, or Subnet Of.

The subnet-of operation only applies to cidr conditions.

resourceIdoptionalstringresource_idoptionalstrresourceIdoptionalStringResourceIdoptionalstringResourceIdoptional*string #
Condition for the IPAM Resource CIDR rule type.

The unique ID of a resource (like vpc-1234567890abcdef0).

resourceOwneroptionalstringresource_owneroptionalstrresourceOwneroptionalStringResourceOwneroptionalstringResourceOwneroptional*string #
Condition for the IPAM Resource CIDR rule type.

Resource owner (like 111122223333).

resourceRegionoptionalstringresource_regionoptionalstrresourceRegionoptionalStringResourceRegionoptionalstringResourceRegionoptional*string #
Condition for the IPAM Resource CIDR rule type.

Resource region (like us-east-1).

resourceTagoptionalIResolvable | CfnTagresource_tagoptionaltyping.Union[IResolvable, CfnTag]resourceTagoptionalIResolvableResourceTagoptionalIResolvableResourceTagoptionalinterface{} #
A key-value pair to associate with a resource.