ForwardingRuleArgs constructor

const ForwardingRuleArgs({
  1. Input<bool?>? allPorts,
  2. Input<bool?>? allowGlobalAccess,
  3. Input<bool?>? allowPscGlobalAccess,
  4. Input<String?>? backendService,
  5. Input<String?>? deletionPolicy,
  6. Input<String?>? description,
  7. Input<String?>? ipAddress,
  8. Input<String?>? ipCollection,
  9. Input<String?>? ipProtocol,
  10. Input<String?>? ipVersion,
  11. Input<bool?>? isMirroringCollector,
  12. Input<Map<String, String>?>? labels,
  13. Input<String?>? loadBalancingScheme,
  14. Input<String?>? name,
  15. Input<String?>? network,
  16. Input<String?>? networkTier,
  17. Input<bool?>? noAutomateDnsZone,
  18. Input<String?>? portRange,
  19. Input<List<String>?>? ports,
  20. Input<String?>? project,
  21. Input<bool?>? recreateClosedPsc,
  22. Input<String?>? region,
  23. Input<ForwardingRuleServiceDirectoryRegistrations?>? serviceDirectoryRegistrations,
  24. Input<String?>? serviceLabel,
  25. Input<List<String>?>? sourceIpRanges,
  26. Input<String?>? subnetwork,
  27. Input<String?>? target,
})

Creates a new ForwardingRuleArgs. allPorts The ports, portRange, and allPorts fields are mutually exclusive. allowGlobalAccess This field is used along with the backendService field for allowPscGlobalAccess This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. backendService Identifies the backend service to which the forwarding rule sends traffic. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. description An optional description of this resource. Provide this property when ipAddress IP address for which this forwarding rule accepts traffic. When a client ipCollection Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP ipProtocol The IP protocol to which this rule applies. ipVersion The IP address version that will be used by this forwarding rule. isMirroringCollector Indicates whether or not this load balancer can be used as a collector for labels Labels to apply to this forwarding rule. A list of key->value pairs. loadBalancingScheme Specifies the forwarding rule type. name Name of the resource; provided by the client when the resource is created. network This field is not used for external load balancing. networkTier This signifies the networking tier used for configuring noAutomateDnsZone This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field. portRange The ports, portRange, and allPorts fields are mutually exclusive. ports The ports, portRange, and allPorts fields are mutually exclusive. project The ID of the project in which the resource belongs. recreateClosedPsc This is used in PSC consumer ForwardingRule to make terraform recreate the ForwardingRule when the status is closed region A reference to the region where the regional forwarding rule resides. serviceDirectoryRegistrations Service Directory resources to register this forwarding rule with. serviceLabel An optional prefix to the service name for this Forwarding Rule. sourceIpRanges If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each sourceIpRange entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). subnetwork This field identifies the subnetwork that the load balanced IP should target The URL of the target resource to receive the matched traffic. For

Implementation

const ForwardingRuleArgs({
  this.allPorts,
  this.allowGlobalAccess,
  this.allowPscGlobalAccess,
  this.backendService,
  this.deletionPolicy,
  this.description,
  this.ipAddress,
  this.ipCollection,
  this.ipProtocol,
  this.ipVersion,
  this.isMirroringCollector,
  this.labels,
  this.loadBalancingScheme,
  this.name,
  this.network,
  this.networkTier,
  this.noAutomateDnsZone,
  this.portRange,
  this.ports,
  this.project,
  this.recreateClosedPsc,
  this.region,
  this.serviceDirectoryRegistrations,
  this.serviceLabel,
  this.sourceIpRanges,
  this.subnetwork,
  this.target,
});