Class GetCoreNetworkPolicyDocumentSegmentAction.Builder
- java.lang.Object
-
- com.pulumi.aws.networkmanager.inputs.GetCoreNetworkPolicyDocumentSegmentAction.Builder
-
- Enclosing class:
- GetCoreNetworkPolicyDocumentSegmentAction
public static final class GetCoreNetworkPolicyDocumentSegmentAction.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(GetCoreNetworkPolicyDocumentSegmentAction defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetCoreNetworkPolicyDocumentSegmentAction defaults)
-
-
Method Detail
-
action
public GetCoreNetworkPolicyDocumentSegmentAction.Builder action(java.lang.String action)
- Parameters:
action- 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).- Returns:
- builder
-
description
public GetCoreNetworkPolicyDocumentSegmentAction.Builder description(@Nullable java.lang.String description)
- Parameters:
description- A user-defined string describing the segment action.- Returns:
- builder
-
destinationCidrBlocks
public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinationCidrBlocks(@Nullable java.util.List<java.lang.String> destinationCidrBlocks)
- Parameters:
destinationCidrBlocks- 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.- Returns:
- builder
-
destinationCidrBlocks
public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinationCidrBlocks(java.lang.String... destinationCidrBlocks)
- Parameters:
destinationCidrBlocks- 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.- Returns:
- builder
-
destinations
public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinations(@Nullable java.util.List<java.lang.String> destinations)
- Parameters:
destinations- A list of strings. Valid values include `["blackhole"]` or a list of attachment IDs.- Returns:
- builder
-
destinations
public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinations(java.lang.String... destinations)
- Parameters:
destinations- A list of strings. Valid values include `["blackhole"]` or a list of attachment IDs.- Returns:
- builder
-
edgeLocationAssociation
public GetCoreNetworkPolicyDocumentSegmentAction.Builder edgeLocationAssociation(@Nullable GetCoreNetworkPolicyDocumentSegmentActionEdgeLocationAssociation edgeLocationAssociation)
- Parameters:
edgeLocationAssociation- Associates routing policies with specific edge location pairs. Available in policy version `2025.11` and later. Detailed below.- Returns:
- builder
-
mode
public GetCoreNetworkPolicyDocumentSegmentAction.Builder mode(@Nullable java.lang.String mode)
- Parameters:
mode- 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`.- Returns:
- builder
-
routingPolicyNames
public GetCoreNetworkPolicyDocumentSegmentAction.Builder routingPolicyNames(@Nullable java.util.List<java.lang.String> routingPolicyNames)
- Parameters:
routingPolicyNames- 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.- Returns:
- builder
-
routingPolicyNames
public GetCoreNetworkPolicyDocumentSegmentAction.Builder routingPolicyNames(java.lang.String... routingPolicyNames)
- Parameters:
routingPolicyNames- 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.- Returns:
- builder
-
segment
public GetCoreNetworkPolicyDocumentSegmentAction.Builder segment(java.lang.String segment)
- Parameters:
segment- Name of the segment.- Returns:
- builder
-
shareWithExcepts
public GetCoreNetworkPolicyDocumentSegmentAction.Builder shareWithExcepts(@Nullable java.util.List<java.lang.String> shareWithExcepts)
- Parameters:
shareWithExcepts- A set subtraction of segments to not share with.- Returns:
- builder
-
shareWithExcepts
public GetCoreNetworkPolicyDocumentSegmentAction.Builder shareWithExcepts(java.lang.String... shareWithExcepts)
- Parameters:
shareWithExcepts- A set subtraction of segments to not share with.- Returns:
- builder
-
shareWiths
public GetCoreNetworkPolicyDocumentSegmentAction.Builder shareWiths(@Nullable java.util.List<java.lang.String> shareWiths)
- Parameters:
shareWiths- A list of strings to share with. Must be a substring is all segments. Valid values include: `["*"]` or `["<segment-names>"]`.- Returns:
- builder
-
shareWiths
public GetCoreNetworkPolicyDocumentSegmentAction.Builder shareWiths(java.lang.String... shareWiths)
- Parameters:
shareWiths- A list of strings to share with. Must be a substring is all segments. Valid values include: `["*"]` or `["<segment-names>"]`.- Returns:
- builder
-
via
public GetCoreNetworkPolicyDocumentSegmentAction.Builder via(@Nullable GetCoreNetworkPolicyDocumentSegmentActionVia via)
- Parameters:
via- The network function groups and any edge overrides associated with the action.- Returns:
- builder
-
whenSentTo
public GetCoreNetworkPolicyDocumentSegmentAction.Builder whenSentTo(@Nullable GetCoreNetworkPolicyDocumentSegmentActionWhenSentTo whenSentTo)
- Parameters:
whenSentTo- The destination segments for the `send-via` or `send-to` `action`.- Returns:
- builder
-
build
public GetCoreNetworkPolicyDocumentSegmentAction build()
-
-