interface IpamPrefixListResolverRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnIPAMPrefixListResolverPropsMixin.IpamPrefixListResolverRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnIPAMPrefixListResolverPropsMixin_IpamPrefixListResolverRuleProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnIPAMPrefixListResolverPropsMixin.IpamPrefixListResolverRuleProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnIPAMPrefixListResolverPropsMixin.IpamPrefixListResolverRuleProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnIPAMPrefixListResolverPropsMixin » IpamPrefixListResolverRuleProperty |
CIDR selection rules define the business logic for selecting CIDRs from IPAM.
If a CIDR matches any of the rules, it will be included. If a rule has multiple conditions, the CIDR has to match every condition of that rule. You can create a prefix list resolver without rules, but you'll need to add at least one rule before it can actually automate your prefix list updates.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const ipamPrefixListResolverRuleProperty: ec2_mixins.CfnIPAMPrefixListResolverPropsMixin.IpamPrefixListResolverRuleProperty = {
conditions: [{
cidr: 'cidr',
ipamPoolId: 'ipamPoolId',
operation: 'operation',
resourceId: 'resourceId',
resourceOwner: 'resourceOwner',
resourceRegion: 'resourceRegion',
resourceTag: {
key: 'key',
value: 'value',
},
}],
ipamScopeId: 'ipamScopeId',
resourceType: 'resourceType',
ruleType: 'ruleType',
staticCidr: 'staticCidr',
};
Properties
| Name | Type | Description |
|---|---|---|
| conditions? | IResolvable | (IResolvable | Ipam)[] | Two of the rule types allow you to add conditions to the rules. |
| ipam | string | This rule will only match resources that are in this IPAM Scope. |
| resource | string | The resourceType property only applies to ipam-resource-cidr rules; |
| rule | string | There are three rule types: (1) Static CIDR: A fixed list of CIDRs that don't change (like a manual list replicated across Regions). |
| static | string | A fixed CIDR that doesn't change. |
conditions?
Type:
IResolvable | (IResolvable | Ipam)[]
(optional)
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.
ipamScopeId?
Type:
string
(optional)
This rule will only match resources that are in this IPAM Scope.
resourceType?
Type:
string
(optional)
The resourceType property only applies to ipam-resource-cidr rules;
this property specifies what type of resources this rule will apply to, such as VPCs or Subnets.
ruleType?
Type:
string
(optional)
There are three rule types: (1) Static CIDR: A fixed list of CIDRs that don't change (like a manual list replicated across Regions).
(2) IPAM pool CIDR: CIDRs from specific IPAM pools (like all CIDRs from your IPAM production pool). (3) IPAM resource CIDR: CIDRs for AWS resources like VPCs, subnets, and EIPs within a specific IPAM scope.
staticCidr?
Type:
string
(optional)
A fixed CIDR that doesn't change.

.NET
Go
Java
Python
TypeScript