GetCoreNetworkPolicyDocumentSegmentAction constructor

const GetCoreNetworkPolicyDocumentSegmentAction({
  1. required Input<String> action,
  2. Input<String?>? description,
  3. Input<List<String>?>? destinationCidrBlocks,
  4. Input<List<String>?>? destinations,
  5. Input<GetCoreNetworkPolicyDocumentSegmentActionEdgeLocationAssociation?>? edgeLocationAssociation,
  6. Input<String?>? mode,
  7. Input<List<String>?>? routingPolicyNames,
  8. required Input<String> segment,
  9. Input<List<String>?>? shareWithExcepts,
  10. Input<List<String>?>? shareWiths,
  11. Input<GetCoreNetworkPolicyDocumentSegmentActionVia?>? via,
  12. 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 ["&lt;segment-names&gt;"]. 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.

Implementation

const GetCoreNetworkPolicyDocumentSegmentAction({
  required this.action,
  this.description,
  this.destinationCidrBlocks,
  this.destinations,
  this.edgeLocationAssociation,
  this.mode,
  this.routingPolicyNames,
  required this.segment,
  this.shareWithExcepts,
  this.shareWiths,
  this.via,
  this.whenSentTo,
});