Skip to content
v2.278.0

CfnIPAMPrefixListResolverProps Struct ​

Properties for defining a CfnIPAMPrefixListResolver.

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 cfnIPAMPrefixListResolverProps: ec2.CfnIPAMPrefixListResolverProps = {
  addressFamily: 'addressFamily',

  // the properties below are optional
  description: 'description',
  ipamId: 'ipamId',
  rules: [{
    ruleType: 'ruleType',

    // the properties below are optional
    conditions: [{
      operation: 'operation',

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

cfn_ipam_prefix_list_resolver_props = ec2.CfnIPAMPrefixListResolverProps(
    address_family="addressFamily",

    # the properties below are optional
    description="description",
    ipam_id="ipamId",
    rules=[ec2.CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty(
        rule_type="ruleType",

        # the properties below are optional
        conditions=[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"
            )
        )],
        ipam_scope_id="ipamScopeId",
        resource_type="resourceType",
        static_cidr="staticCidr"
    )],
    tags=[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.*;

CfnIPAMPrefixListResolverProps cfnIPAMPrefixListResolverProps = CfnIPAMPrefixListResolverProps.builder()
        .addressFamily("addressFamily")

        // the properties below are optional
        .description("description")
        .ipamId("ipamId")
        .rules(List.of(IpamPrefixListResolverRuleProperty.builder()
                .ruleType("ruleType")

                // the properties below are optional
                .conditions(List.of(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()))
                .ipamScopeId("ipamScopeId")
                .resourceType("resourceType")
                .staticCidr("staticCidr")
                .build()))
        .tags(List.of(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 cfnIPAMPrefixListResolverProps = new CfnIPAMPrefixListResolverProps {
    AddressFamily = "addressFamily",

    // the properties below are optional
    Description = "description",
    IpamId = "ipamId",
    Rules = new [] { new IpamPrefixListResolverRuleProperty {
        RuleType = "ruleType",

        // the properties below are optional
        Conditions = new [] { 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"
            }
        } },
        IpamScopeId = "ipamScopeId",
        ResourceType = "resourceType",
        StaticCidr = "staticCidr"
    } },
    Tags = new [] { 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"

cfnIPAMPrefixListResolverProps := &CfnIPAMPrefixListResolverProps{
	AddressFamily: jsii.String("addressFamily"),

	// the properties below are optional
	Description: jsii.String("description"),
	IpamId: jsii.String("ipamId"),
	Rules: []interface{}{
		&IpamPrefixListResolverRuleProperty{
			RuleType: jsii.String("ruleType"),

			// the properties below are optional
			Conditions: []interface{}{
				&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"),
					},
				},
			},
			IpamScopeId: jsii.String("ipamScopeId"),
			ResourceType: jsii.String("resourceType"),
			StaticCidr: jsii.String("staticCidr"),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

addressFamilystringaddress_familystraddressFamilyStringAddressFamilystringAddressFamily*string required #
The address family of the address space in this Prefix List Resolver.

Either IPv4 or IPv6.

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
ipamIdoptionalstringipam_idoptionalstripamIdoptionalStringIpamIdoptionalstringIpamIdoptional*string #
The Id of the IPAM this Prefix List Resolver is a part of.
rulesoptionalIResolvable | IResolvable | CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty[]rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IpamPrefixListResolverRuleProperty]]]rulesoptionalIResolvableRulesoptionalIResolvableRulesoptionalinterface{} #
Rules define the business logic for selecting CIDRs from IPAM.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.