GetCoreNetworkPolicyDocumentSegmentAction class
Constructors
-
GetCoreNetworkPolicyDocumentSegmentAction({required Input<String> action, Input<String?>? description, Input<List<String>?>? destinationCidrBlocks, Input<List<String>?>? destinations, Input<GetCoreNetworkPolicyDocumentSegmentActionEdgeLocationAssociation?>? edgeLocationAssociation, Input<String?>? mode, Input<List<String>?>? routingPolicyNames, required Input<String> segment, Input<List<String>?>? shareWithExcepts, Input<List<String>?>? shareWiths, Input<GetCoreNetworkPolicyDocumentSegmentActionVia?>? via, Input<GetCoreNetworkPolicyDocumentSegmentActionWhenSentTo?>? whenSentTo})
-
Creates a new GetCoreNetworkPolicyDocumentSegmentAction.
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).
description A user-defined string describing the segment action.
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.
destinations A list of strings. Valid values include ["blackhole"] or a list of attachment ids.
edgeLocationAssociation Associates routing policies with specific edge location pairs. Available in policy version 2025.11 and later. Detailed below.
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.
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.
segment Name of the segment.
shareWithExcepts A set subtraction of segments to not share with.
shareWiths A list of strings to share with. Must be a substring is all segments. Valid values include: ["*"] or ["<segment-names>"].
via The network function groups and any edge overrides associated with the action.
whenSentTo The destination segments for the send-via or send-to action.
const
-
GetCoreNetworkPolicyDocumentSegmentAction.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
action
→ Input<String>
-
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).
final
-
description
→ Input<String?>?
-
A user-defined string describing the segment action.
final
-
destinationCidrBlocks
→ Input<List<String>?>?
-
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.
final
-
destinations
→ Input<List<String>?>?
-
A list of strings. Valid values include
["blackhole"] or a list of attachment ids.
final
-
edgeLocationAssociation
→ Input<GetCoreNetworkPolicyDocumentSegmentActionEdgeLocationAssociation?>?
-
Associates routing policies with specific edge location pairs. Available in policy version
2025.11 and later. Detailed below.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
mode
→ Input<String?>?
-
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.
final
-
routingPolicyNames
→ Input<List<String>?>?
-
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.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
segment
→ Input<String>
-
Name of the segment.
final
-
shareWithExcepts
→ Input<List<String>?>?
-
A set subtraction of segments to not share with.
final
-
shareWiths
→ Input<List<String>?>?
-
A list of strings to share with. Must be a substring is all segments. Valid values include:
["*"] or ["<segment-names>"].
final
-
via
→ Input<GetCoreNetworkPolicyDocumentSegmentActionVia?>?
-
The network function groups and any edge overrides associated with the action.
final
-
whenSentTo
→ Input<GetCoreNetworkPolicyDocumentSegmentActionWhenSentTo?>?
-
The destination segments for the
send-via or send-to action.
final