Interface CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleConditionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleConditionProperty.Jsii$Proxy
- Enclosing class:
CfnIPAMPrefixListResolver
@Stability(Stable)
public static interface CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleConditionProperty
extends software.amazon.jsii.JsiiSerializable
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:
// 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnIPAMPrefixListResolver.IpamPrefixListResolverRuleConditionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetCidr()Condition for the IPAM Resource CIDR rule type.default StringCondition for the IPAM Pool CIDR rule type.Equals, Not equals, or Subnet Of.default StringCondition for the IPAM Resource CIDR rule type.default StringCondition for the IPAM Resource CIDR rule type.default StringCondition for the IPAM Resource CIDR rule type.default ObjectA key-value pair to associate with a resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOperation
Equals, Not equals, or Subnet Of.The subnet-of operation only applies to cidr conditions.
- See Also:
-
getCidr
Condition for the IPAM Resource CIDR rule type.CIDR (like 10.24.34.0/23).
- See Also:
-
getIpamPoolId
Condition for the IPAM Pool CIDR rule type.If not chosen, the resolver applies to all IPAM Pool CIDRs in the scope.
- See Also:
-
getResourceId
Condition for the IPAM Resource CIDR rule type.The unique ID of a resource (like vpc-1234567890abcdef0).
- See Also:
-
getResourceOwner
Condition for the IPAM Resource CIDR rule type.Resource owner (like 111122223333).
- See Also:
-
getResourceRegion
Condition for the IPAM Resource CIDR rule type.Resource region (like us-east-1).
- See Also:
-
getResourceTag
A key-value pair to associate with a resource.Returns union: either
IResolvableorCfnTag- See Also:
-
builder
@Stability(Stable) static CfnIPAMPrefixListResolver.IpamPrefixListResolverRuleConditionProperty.Builder builder()
-