Class CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty>
- Enclosing interface:
CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty
@Stability(Stable)
public static final class CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conditions(List<? extends Object> conditions) conditions(IResolvable conditions) ipamScopeId(String ipamScopeId) resourceType(String resourceType) staticCidr(String staticCidr)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ruleType
@Stability(Stable) public CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder ruleType(String ruleType) - Parameters:
ruleType- There are three rule types: (1) Static CIDR: A fixed list of CIDRs that don't change (like a manual list replicated across Regions). This parameter is required. (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.- Returns:
this
-
conditions
@Stability(Stable) public CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder conditions(IResolvable conditions) - Parameters:
conditions- 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.- Returns:
this
-
conditions
@Stability(Stable) public CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder conditions(List<? extends Object> conditions) - Parameters:
conditions- 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.- Returns:
this
-
ipamScopeId
@Stability(Stable) public CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder ipamScopeId(String ipamScopeId) - Parameters:
ipamScopeId- This rule will only match resources that are in this IPAM Scope.- Returns:
this
-
resourceType
@Stability(Stable) public CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder resourceType(String resourceType) - Parameters:
resourceType- 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.- Returns:
this
-
staticCidr
@Stability(Stable) public CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty.Builder staticCidr(String staticCidr) - Parameters:
staticCidr- A fixed CIDR that doesn't change.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty>- Returns:
- a new instance of
CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-