Class GetCoreNetworkPolicyDocumentSegmentAction


  • public final class GetCoreNetworkPolicyDocumentSegmentAction
    extends com.pulumi.resources.InvokeArgs
    • Method Detail

      • action

        public java.lang.String action()
        Returns:
        Action to take for the chosen segment. Valid values: `create-route`, `share`, `send-via`, `send-to`, and `associate-routing-policy` (available in policy version `2025.11` and later).
      • description

        public java.util.Optional<java.lang.String> description()
        Returns:
        A user-defined string describing the segment action.
      • destinationCidrBlocks

        public java.util.Optional<java.util.List<java.lang.String>> destinationCidrBlocks()
        Returns:
        List of strings containing CIDRs. You can define the IPv4 and IPv6 CIDR notation for each AWS Region. For example, `10.1.0.0/16` or `2001:db8::/56`. This is an array of CIDR notation strings.
      • destinations

        public java.util.Optional<java.util.List<java.lang.String>> destinations()
        Returns:
        A list of strings. Valid values include `["blackhole"]` or a list of attachment IDs.
      • mode

        public java.util.Optional<java.lang.String> mode()
        Returns:
        String. When `action` is `share`, a `mode` value of `attachment-route` places the attachment and return routes in each of the `shareWith` segments. When `action` is `send-via`, indicates the mode used for packets. Valid values: `attachment-route`, `single-hop`, `dual-hop`.
      • routingPolicyNames

        public java.util.Optional<java.util.List<java.lang.String>> routingPolicyNames()
        Returns:
        A list of routing policy names to apply to segment sharing. The routing policies control how routes are propagated between the shared segments. Only applicable when `action` is `share`. Available in policy version `2025.11` and later.
      • segment

        public java.lang.String segment()
        Returns:
        Name of the segment.
      • shareWithExcepts

        public java.util.Optional<java.util.List<java.lang.String>> shareWithExcepts()
        Returns:
        A set subtraction of segments to not share with.
      • shareWiths

        public java.util.Optional<java.util.List<java.lang.String>> shareWiths()
        Returns:
        A list of strings to share with. Must be a substring is all segments. Valid values include: `["*"]` or `["<segment-names>"]`.