Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule google_compute_forwarding_rule}.
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
computeforwardingrule.NewComputeForwardingRule(scope Construct, id *string, config ComputeForwardingRuleConfig) ComputeForwardingRule
Name | Type | Description |
---|---|---|
scope |
github.com/aws/constructs-go/constructs/v10.Construct |
The scope in which to define this construct. |
id |
*string |
The scoped construct ID. |
config |
ComputeForwardingRuleConfig |
No description. |
- Type: github.com/aws/constructs-go/constructs/v10.Construct
The scope in which to define this construct.
- Type: *string
The scoped construct ID.
Must be unique amongst siblings in the same scope
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
AddOverride |
No description. |
OverrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
ToHclTerraform |
No description. |
ToMetadata |
No description. |
ToTerraform |
Adds this resource to the terraform JSON output. |
AddMoveTarget |
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. |
GetAnyMapAttribute |
No description. |
GetBooleanAttribute |
No description. |
GetBooleanMapAttribute |
No description. |
GetListAttribute |
No description. |
GetNumberAttribute |
No description. |
GetNumberListAttribute |
No description. |
GetNumberMapAttribute |
No description. |
GetStringAttribute |
No description. |
GetStringMapAttribute |
No description. |
HasResourceMove |
No description. |
ImportFrom |
No description. |
InterpolationForAttribute |
No description. |
MoveFromId |
Move the resource corresponding to "id" to this resource. |
MoveTo |
Moves this resource to the target resource given by moveTarget. |
MoveToId |
Moves this resource to the resource corresponding to "id". |
PutServiceDirectoryRegistrations |
No description. |
PutTimeouts |
No description. |
ResetAllowGlobalAccess |
No description. |
ResetAllowPscGlobalAccess |
No description. |
ResetAllPorts |
No description. |
ResetBackendService |
No description. |
ResetDescription |
No description. |
ResetId |
No description. |
ResetIpAddress |
No description. |
ResetIpProtocol |
No description. |
ResetIpVersion |
No description. |
ResetIsMirroringCollector |
No description. |
ResetLabels |
No description. |
ResetLoadBalancingScheme |
No description. |
ResetNetwork |
No description. |
ResetNetworkTier |
No description. |
ResetNoAutomateDnsZone |
No description. |
ResetPortRange |
No description. |
ResetPorts |
No description. |
ResetProject |
No description. |
ResetRecreateClosedPsc |
No description. |
ResetRegion |
No description. |
ResetServiceDirectoryRegistrations |
No description. |
ResetServiceLabel |
No description. |
ResetSourceIpRanges |
No description. |
ResetSubnetwork |
No description. |
ResetTarget |
No description. |
ResetTimeouts |
No description. |
func ToString() *string
Returns a string representation of this construct.
func AddOverride(path *string, value interface{})
- Type: *string
- Type: interface{}
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
- Type: *string
The new logical ID to use for this stack element.
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
func ToHclTerraform() interface{}
func ToMetadata() interface{}
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
func AddMoveTarget(moveTarget *string)
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
- Type: *string
The string move target that will correspond to this resource.
func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
- Type: *string
func GetBooleanAttribute(terraformAttribute *string) IResolvable
- Type: *string
func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
- Type: *string
func GetListAttribute(terraformAttribute *string) *[]*string
- Type: *string
func GetNumberAttribute(terraformAttribute *string) *f64
- Type: *string
func GetNumberListAttribute(terraformAttribute *string) *[]*f64
- Type: *string
func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64
- Type: *string
func GetStringAttribute(terraformAttribute *string) *string
- Type: *string
func GetStringMapAttribute(terraformAttribute *string) *map[string]*string
- Type: *string
func HasResourceMove() interface{}
func ImportFrom(id *string, provider TerraformProvider)
- Type: *string
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider
func InterpolationForAttribute(terraformAttribute *string) IResolvable
- Type: *string
func MoveFromId(id *string)
Move the resource corresponding to "id" to this resource.
Note that the resource being moved from must be marked as moved using it's instance function.
- Type: *string
Full id of resource being moved from, e.g. "aws_s3_bucket.example".
func MoveTo(moveTarget *string, index interface{})
Moves this resource to the target resource given by moveTarget.
- Type: *string
The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.
- Type: interface{}
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.
func MoveToId(id *string)
Moves this resource to the resource corresponding to "id".
- Type: *string
Full id of resource to move to, e.g. "aws_s3_bucket.example".
func PutServiceDirectoryRegistrations(value ComputeForwardingRuleServiceDirectoryRegistrations)
func PutTimeouts(value ComputeForwardingRuleTimeouts)
func ResetAllowGlobalAccess()
func ResetAllowPscGlobalAccess()
func ResetAllPorts()
func ResetBackendService()
func ResetDescription()
func ResetId()
func ResetIpAddress()
func ResetIpProtocol()
func ResetIpVersion()
func ResetIsMirroringCollector()
func ResetLabels()
func ResetLoadBalancingScheme()
func ResetNetwork()
func ResetNetworkTier()
func ResetNoAutomateDnsZone()
func ResetPortRange()
func ResetPorts()
func ResetProject()
func ResetRecreateClosedPsc()
func ResetRegion()
func ResetServiceDirectoryRegistrations()
func ResetServiceLabel()
func ResetSourceIpRanges()
func ResetSubnetwork()
func ResetTarget()
func ResetTimeouts()
Name | Description |
---|---|
IsConstruct |
Checks if x is a construct. |
IsTerraformElement |
No description. |
IsTerraformResource |
No description. |
GenerateConfigForImport |
Generates CDKTF code for importing a ComputeForwardingRule resource upon running "cdktf plan ". |
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
computeforwardingrule.ComputeForwardingRule_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: interface{}
Any object.
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
computeforwardingrule.ComputeForwardingRule_IsTerraformElement(x interface{}) *bool
- Type: interface{}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
computeforwardingrule.ComputeForwardingRule_IsTerraformResource(x interface{}) *bool
- Type: interface{}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
computeforwardingrule.ComputeForwardingRule_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource
Generates CDKTF code for importing a ComputeForwardingRule resource upon running "cdktf plan ".
- Type: github.com/aws/constructs-go/constructs/v10.Construct
The scope in which to define this construct.
- Type: *string
The construct id used in the generated config for the ComputeForwardingRule to import.
- Type: *string
The id of the existing ComputeForwardingRule that should be imported.
Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#import import section} in the documentation of this resource for the id to use
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider
? Optional instance of the provider where the ComputeForwardingRule to import is found.
Name | Type | Description |
---|---|---|
Node |
github.com/aws/constructs-go/constructs/v10.Node |
The tree node. |
CdktfStack |
github.com/hashicorp/terraform-cdk-go/cdktf.TerraformStack |
No description. |
Fqn |
*string |
No description. |
FriendlyUniqueId |
*string |
No description. |
TerraformMetaArguments |
*map[string]interface{} |
No description. |
TerraformResourceType |
*string |
No description. |
TerraformGeneratorMetadata |
github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProviderGeneratorMetadata |
No description. |
Connection |
interface{} |
No description. |
Count |
interface{} |
No description. |
DependsOn |
*[]*string |
No description. |
ForEach |
github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator |
No description. |
Lifecycle |
github.com/hashicorp/terraform-cdk-go/cdktf.TerraformResourceLifecycle |
No description. |
Provider |
github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider |
No description. |
Provisioners |
*[]interface{} |
No description. |
BaseForwardingRule |
*string |
No description. |
CreationTimestamp |
*string |
No description. |
EffectiveLabels |
github.com/hashicorp/terraform-cdk-go/cdktf.StringMap |
No description. |
ForwardingRuleId |
*f64 |
No description. |
LabelFingerprint |
*string |
No description. |
PscConnectionId |
*string |
No description. |
PscConnectionStatus |
*string |
No description. |
SelfLink |
*string |
No description. |
ServiceDirectoryRegistrations |
ComputeForwardingRuleServiceDirectoryRegistrationsOutputReference |
No description. |
ServiceName |
*string |
No description. |
TerraformLabels |
github.com/hashicorp/terraform-cdk-go/cdktf.StringMap |
No description. |
Timeouts |
ComputeForwardingRuleTimeoutsOutputReference |
No description. |
AllowGlobalAccessInput |
interface{} |
No description. |
AllowPscGlobalAccessInput |
interface{} |
No description. |
AllPortsInput |
interface{} |
No description. |
BackendServiceInput |
*string |
No description. |
DescriptionInput |
*string |
No description. |
IdInput |
*string |
No description. |
IpAddressInput |
*string |
No description. |
IpProtocolInput |
*string |
No description. |
IpVersionInput |
*string |
No description. |
IsMirroringCollectorInput |
interface{} |
No description. |
LabelsInput |
*map[string]*string |
No description. |
LoadBalancingSchemeInput |
*string |
No description. |
NameInput |
*string |
No description. |
NetworkInput |
*string |
No description. |
NetworkTierInput |
*string |
No description. |
NoAutomateDnsZoneInput |
interface{} |
No description. |
PortRangeInput |
*string |
No description. |
PortsInput |
*[]*string |
No description. |
ProjectInput |
*string |
No description. |
RecreateClosedPscInput |
interface{} |
No description. |
RegionInput |
*string |
No description. |
ServiceDirectoryRegistrationsInput |
ComputeForwardingRuleServiceDirectoryRegistrations |
No description. |
ServiceLabelInput |
*string |
No description. |
SourceIpRangesInput |
*[]*string |
No description. |
SubnetworkInput |
*string |
No description. |
TargetInput |
*string |
No description. |
TimeoutsInput |
interface{} |
No description. |
AllowGlobalAccess |
interface{} |
No description. |
AllowPscGlobalAccess |
interface{} |
No description. |
AllPorts |
interface{} |
No description. |
BackendService |
*string |
No description. |
Description |
*string |
No description. |
Id |
*string |
No description. |
IpAddress |
*string |
No description. |
IpProtocol |
*string |
No description. |
IpVersion |
*string |
No description. |
IsMirroringCollector |
interface{} |
No description. |
Labels |
*map[string]*string |
No description. |
LoadBalancingScheme |
*string |
No description. |
Name |
*string |
No description. |
Network |
*string |
No description. |
NetworkTier |
*string |
No description. |
NoAutomateDnsZone |
interface{} |
No description. |
PortRange |
*string |
No description. |
Ports |
*[]*string |
No description. |
Project |
*string |
No description. |
RecreateClosedPsc |
interface{} |
No description. |
Region |
*string |
No description. |
ServiceLabel |
*string |
No description. |
SourceIpRanges |
*[]*string |
No description. |
Subnetwork |
*string |
No description. |
Target |
*string |
No description. |
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
func CdktfStack() TerraformStack
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformStack
func Fqn() *string
- Type: *string
func FriendlyUniqueId() *string
- Type: *string
func TerraformMetaArguments() *map[string]interface{}
- Type: *map[string]interface{}
func TerraformResourceType() *string
- Type: *string
func TerraformGeneratorMetadata() TerraformProviderGeneratorMetadata
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProviderGeneratorMetadata
func Connection() interface{}
- Type: interface{}
func Count() interface{}
- Type: interface{}
func DependsOn() *[]*string
- Type: *[]*string
func ForEach() ITerraformIterator
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator
func Lifecycle() TerraformResourceLifecycle
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformResourceLifecycle
func Provider() TerraformProvider
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider
func Provisioners() *[]interface{}
- Type: *[]interface{}
func BaseForwardingRule() *string
- Type: *string
func CreationTimestamp() *string
- Type: *string
func EffectiveLabels() StringMap
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.StringMap
func ForwardingRuleId() *f64
- Type: *f64
func LabelFingerprint() *string
- Type: *string
func PscConnectionId() *string
- Type: *string
func PscConnectionStatus() *string
- Type: *string
func SelfLink() *string
- Type: *string
func ServiceDirectoryRegistrations() ComputeForwardingRuleServiceDirectoryRegistrationsOutputReference
func ServiceName() *string
- Type: *string
func TerraformLabels() StringMap
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.StringMap
func Timeouts() ComputeForwardingRuleTimeoutsOutputReference
func AllowGlobalAccessInput() interface{}
- Type: interface{}
func AllowPscGlobalAccessInput() interface{}
- Type: interface{}
func AllPortsInput() interface{}
- Type: interface{}
func BackendServiceInput() *string
- Type: *string
func DescriptionInput() *string
- Type: *string
func IdInput() *string
- Type: *string
func IpAddressInput() *string
- Type: *string
func IpProtocolInput() *string
- Type: *string
func IpVersionInput() *string
- Type: *string
func IsMirroringCollectorInput() interface{}
- Type: interface{}
func LabelsInput() *map[string]*string
- Type: *map[string]*string
func LoadBalancingSchemeInput() *string
- Type: *string
func NameInput() *string
- Type: *string
func NetworkInput() *string
- Type: *string
func NetworkTierInput() *string
- Type: *string
func NoAutomateDnsZoneInput() interface{}
- Type: interface{}
func PortRangeInput() *string
- Type: *string
func PortsInput() *[]*string
- Type: *[]*string
func ProjectInput() *string
- Type: *string
func RecreateClosedPscInput() interface{}
- Type: interface{}
func RegionInput() *string
- Type: *string
func ServiceDirectoryRegistrationsInput() ComputeForwardingRuleServiceDirectoryRegistrations
func ServiceLabelInput() *string
- Type: *string
func SourceIpRangesInput() *[]*string
- Type: *[]*string
func SubnetworkInput() *string
- Type: *string
func TargetInput() *string
- Type: *string
func TimeoutsInput() interface{}
- Type: interface{}
func AllowGlobalAccess() interface{}
- Type: interface{}
func AllowPscGlobalAccess() interface{}
- Type: interface{}
func AllPorts() interface{}
- Type: interface{}
func BackendService() *string
- Type: *string
func Description() *string
- Type: *string
func Id() *string
- Type: *string
func IpAddress() *string
- Type: *string
func IpProtocol() *string
- Type: *string
func IpVersion() *string
- Type: *string
func IsMirroringCollector() interface{}
- Type: interface{}
func Labels() *map[string]*string
- Type: *map[string]*string
func LoadBalancingScheme() *string
- Type: *string
func Name() *string
- Type: *string
func Network() *string
- Type: *string
func NetworkTier() *string
- Type: *string
func NoAutomateDnsZone() interface{}
- Type: interface{}
func PortRange() *string
- Type: *string
func Ports() *[]*string
- Type: *[]*string
func Project() *string
- Type: *string
func RecreateClosedPsc() interface{}
- Type: interface{}
func Region() *string
- Type: *string
func ServiceLabel() *string
- Type: *string
func SourceIpRanges() *[]*string
- Type: *[]*string
func Subnetwork() *string
- Type: *string
func Target() *string
- Type: *string
Name | Type | Description |
---|---|---|
TfResourceType |
*string |
No description. |
func TfResourceType() *string
- Type: *string
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
&computeforwardingrule.ComputeForwardingRuleConfig {
Connection: interface{},
Count: interface{},
DependsOn: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable,
ForEach: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator,
Lifecycle: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformResourceLifecycle,
Provider: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider,
Provisioners: *[]interface{},
Name: *string,
AllowGlobalAccess: interface{},
AllowPscGlobalAccess: interface{},
AllPorts: interface{},
BackendService: *string,
Description: *string,
Id: *string,
IpAddress: *string,
IpProtocol: *string,
IpVersion: *string,
IsMirroringCollector: interface{},
Labels: *map[string]*string,
LoadBalancingScheme: *string,
Network: *string,
NetworkTier: *string,
NoAutomateDnsZone: interface{},
PortRange: *string,
Ports: *[]*string,
Project: *string,
RecreateClosedPsc: interface{},
Region: *string,
ServiceDirectoryRegistrations: github.com/cdktf/cdktf-provider-google-go/google/v14.computeForwardingRule.ComputeForwardingRuleServiceDirectoryRegistrations,
ServiceLabel: *string,
SourceIpRanges: *[]*string,
Subnetwork: *string,
Target: *string,
Timeouts: github.com/cdktf/cdktf-provider-google-go/google/v14.computeForwardingRule.ComputeForwardingRuleTimeouts,
}
Name | Type | Description |
---|---|---|
Connection |
interface{} |
No description. |
Count |
interface{} |
No description. |
DependsOn |
*[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable |
No description. |
ForEach |
github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator |
No description. |
Lifecycle |
github.com/hashicorp/terraform-cdk-go/cdktf.TerraformResourceLifecycle |
No description. |
Provider |
github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider |
No description. |
Provisioners |
*[]interface{} |
No description. |
Name |
*string |
Name of the resource; |
AllowGlobalAccess |
interface{} |
This field is used along with the 'backend_service' field for internal load balancing or with the 'target' field for internal TargetInstance. |
AllowPscGlobalAccess |
interface{} |
This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. |
AllPorts |
interface{} |
The 'ports', 'portRange', and 'allPorts' fields are mutually exclusive. |
BackendService |
*string |
Identifies the backend service to which the forwarding rule sends traffic. |
Description |
*string |
An optional description of this resource. Provide this property when you create the resource. |
Id |
*string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#id ComputeForwardingRule#id}. |
IpAddress |
*string |
IP address for which this forwarding rule accepts traffic. |
IpProtocol |
*string |
The IP protocol to which this rule applies. |
IpVersion |
*string |
The IP address version that will be used by this forwarding rule. Valid options are IPV4 and IPV6. |
IsMirroringCollector |
interface{} |
Indicates whether or not this load balancer can be used as a collector for packet mirroring. |
Labels |
*map[string]*string |
Labels to apply to this forwarding rule. A list of key->value pairs. |
LoadBalancingScheme |
*string |
Specifies the forwarding rule type. |
Network |
*string |
This field is not used for external load balancing. |
NetworkTier |
*string |
This signifies the networking tier used for configuring this load balancer and can only take the following values: 'PREMIUM', 'STANDARD'. |
NoAutomateDnsZone |
interface{} |
This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. |
PortRange |
*string |
The 'ports', 'portRange', and 'allPorts' fields are mutually exclusive. |
Ports |
*[]*string |
The 'ports', 'portRange', and 'allPorts' fields are mutually exclusive. |
Project |
*string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#project ComputeForwardingRule#project}. |
RecreateClosedPsc |
interface{} |
This is used in PSC consumer ForwardingRule to make terraform recreate the ForwardingRule when the status is closed. |
Region |
*string |
A reference to the region where the regional forwarding rule resides. |
ServiceDirectoryRegistrations |
ComputeForwardingRuleServiceDirectoryRegistrations |
service_directory_registrations block. |
ServiceLabel |
*string |
An optional prefix to the service name for this Forwarding Rule. |
SourceIpRanges |
*[]*string |
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. |
Subnetwork |
*string |
This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6. |
Target |
*string |
The URL of the target resource to receive the matched traffic. |
Timeouts |
ComputeForwardingRuleTimeouts |
timeouts block. |
Connection interface{}
- Type: interface{}
Count interface{}
- Type: interface{}
DependsOn *[]ITerraformDependable
- Type: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable
ForEach ITerraformIterator
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator
Lifecycle TerraformResourceLifecycle
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformResourceLifecycle
Provider TerraformProvider
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider
Provisioners *[]interface{}
- Type: *[]interface{}
Name *string
- Type: *string
Name of the resource;
provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
Specifically, the name must be 1-63 characters long and match the regular expression 'a-z?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#name ComputeForwardingRule#name}
AllowGlobalAccess interface{}
- Type: interface{}
This field is used along with the 'backend_service' field for internal load balancing or with the 'target' field for internal TargetInstance.
If the field is set to 'TRUE', clients can access ILB from all regions.
Otherwise only allows access from clients in the same region as the internal load balancer.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#allow_global_access ComputeForwardingRule#allow_global_access}
AllowPscGlobalAccess interface{}
- Type: interface{}
This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#allow_psc_global_access ComputeForwardingRule#allow_psc_global_access}
AllPorts interface{}
- Type: interface{}
The 'ports', 'portRange', and 'allPorts' fields are mutually exclusive.
Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule.
The 'allPorts' field has the following limitations:
- It requires that the forwarding rule 'IPProtocol' be TCP, UDP, SCTP, or L3_DEFAULT.
- It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal and external protocol forwarding.
- Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The L3_DEFAULT protocol requires 'allPorts' be set to true.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#all_ports ComputeForwardingRule#all_ports}
BackendService *string
- Type: *string
Identifies the backend service to which the forwarding rule sends traffic.
Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#backend_service ComputeForwardingRule#backend_service}
Description *string
- Type: *string
An optional description of this resource. Provide this property when you create the resource.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#description ComputeForwardingRule#description}
Id *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#id ComputeForwardingRule#id}.
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
IpAddress *string
- Type: *string
IP address for which this forwarding rule accepts traffic.
When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced 'target' or 'backendService'.
While creating a forwarding rule, specifying an 'IPAddress' is required under the following circumstances:
- When the 'target' is set to 'targetGrpcProxy' and 'validateForProxyless' is set to 'true', the 'IPAddress' should be set to '0.0.0.0'.
- When the 'target' is a Private Service Connect Google APIs bundle, you must specify an 'IPAddress'.
Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address.
Use one of the following formats to specify an IP address while creating a forwarding rule:
-
IP address number, as in '100.1.2.3'
-
IPv6 address range, as in '2600:1234::/96'
-
Full resource URL, as in 'https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name'
-
Partial URL or by name, as in:
- 'projects/project_id/regions/region/addresses/address-name'
- 'regions/region/addresses/address-name'
- 'global/addresses/address-name'
- 'address-name'
The forwarding rule's 'target' or 'backendService', and in most cases, also the 'loadBalancingScheme', determine the type of IP address that you can use. For detailed information, see IP address specifications.
When reading an 'IPAddress', the API always returns the IP address number.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#ip_address ComputeForwardingRule#ip_address}
IpProtocol *string
- Type: *string
The IP protocol to which this rule applies.
For protocol forwarding, valid options are 'TCP', 'UDP', 'ESP', 'AH', 'SCTP', 'ICMP' and 'L3_DEFAULT'.
The valid IP protocols are different for different load balancing products as described in Load balancing features.
A Forwarding Rule with protocol L3_DEFAULT can attach with target instance or backend service with UNSPECIFIED protocol. A forwarding rule with "L3_DEFAULT" IPProtocal cannot be attached to a backend service with TCP or UDP. Possible values: ["TCP", "UDP", "ESP", "AH", "SCTP", "ICMP", "L3_DEFAULT"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#ip_protocol ComputeForwardingRule#ip_protocol}
IpVersion *string
- Type: *string
The IP address version that will be used by this forwarding rule. Valid options are IPV4 and IPV6.
If not set, the IPv4 address will be used by default. Possible values: ["IPV4", "IPV6"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#ip_version ComputeForwardingRule#ip_version}
IsMirroringCollector interface{}
- Type: interface{}
Indicates whether or not this load balancer can be used as a collector for packet mirroring.
To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a 'PacketMirroring' rule applies to them.
This can only be set to true for load balancers that have their 'loadBalancingScheme' set to 'INTERNAL'.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#is_mirroring_collector ComputeForwardingRule#is_mirroring_collector}
Labels *map[string]*string
- Type: *map[string]*string
Labels to apply to this forwarding rule. A list of key->value pairs.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#labels ComputeForwardingRule#labels}
LoadBalancingScheme *string
- Type: *string
Specifies the forwarding rule type.
For more information about forwarding rules, refer to Forwarding rule concepts. Default value: "EXTERNAL" Possible values: ["EXTERNAL", "EXTERNAL_MANAGED", "INTERNAL", "INTERNAL_MANAGED"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#load_balancing_scheme ComputeForwardingRule#load_balancing_scheme}
Network *string
- Type: *string
This field is not used for external load balancing.
For Internal TCP/UDP Load Balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used.
For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#network ComputeForwardingRule#network}
NetworkTier *string
- Type: *string
This signifies the networking tier used for configuring this load balancer and can only take the following values: 'PREMIUM', 'STANDARD'.
For regional ForwardingRule, the valid values are 'PREMIUM' and 'STANDARD'. For GlobalForwardingRule, the valid value is 'PREMIUM'.
If this field is not specified, it is assumed to be 'PREMIUM'. If 'IPAddress' is specified, this value must be equal to the networkTier of the Address. Possible values: ["PREMIUM", "STANDARD"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#network_tier ComputeForwardingRule#network_tier}
NoAutomateDnsZone interface{}
- Type: interface{}
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.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#no_automate_dns_zone ComputeForwardingRule#no_automate_dns_zone}
PortRange *string
- Type: *string
The 'ports', 'portRange', and 'allPorts' fields are mutually exclusive.
Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule.
The 'portRange' field has the following limitations:
- It requires that the forwarding rule 'IPProtocol' be TCP, UDP, or SCTP, and
- It's applicable only to the following products: external passthrough Network Load Balancers, internal and external proxy Network Load Balancers, internal and external Application Load Balancers, external protocol forwarding, and Classic VPN.
- Some products have restrictions on what ports can be used. See port specifications for details.
For external forwarding rules, two or more forwarding rules cannot use the same '[IPAddress, IPProtocol]' pair, and cannot have overlapping 'portRange's.
For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same '[IPAddress, IPProtocol]' pair, and cannot have overlapping 'portRange's.
Ports *[]*string
- Type: *[]*string
The 'ports', 'portRange', and 'allPorts' fields are mutually exclusive.
Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule.
The 'ports' field has the following limitations:
- It requires that the forwarding rule 'IPProtocol' be TCP, UDP, or SCTP, and
- It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal protocol forwarding.
- You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous.
For external forwarding rules, two or more forwarding rules cannot use the same '[IPAddress, IPProtocol]' pair if they share at least one port number.
For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same '[IPAddress, IPProtocol]' pair if they share at least one port number.
Project *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#project ComputeForwardingRule#project}.
RecreateClosedPsc interface{}
- Type: interface{}
This is used in PSC consumer ForwardingRule to make terraform recreate the ForwardingRule when the status is closed.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#recreate_closed_psc ComputeForwardingRule#recreate_closed_psc}
Region *string
- Type: *string
A reference to the region where the regional forwarding rule resides.
This field is not applicable to global forwarding rules.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#region ComputeForwardingRule#region}
ServiceDirectoryRegistrations ComputeForwardingRuleServiceDirectoryRegistrations
service_directory_registrations block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#service_directory_registrations ComputeForwardingRule#service_directory_registrations}
ServiceLabel *string
- Type: *string
An optional prefix to the service name for this Forwarding Rule.
If specified, will be the first label of the fully qualified service name.
The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression 'a-z?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
This field is only used for INTERNAL load balancing.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#service_label ComputeForwardingRule#service_label}
SourceIpRanges *[]*string
- Type: *[]*string
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).
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#source_ip_ranges ComputeForwardingRule#source_ip_ranges}
Subnetwork *string
- Type: *string
This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6.
If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#subnetwork ComputeForwardingRule#subnetwork}
Target *string
- Type: *string
The URL of the target resource to receive the matched traffic.
For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource.
The forwarded traffic must be of a type appropriate to the target object.
- For load balancers, see the "Target" column in Port specifications.
- For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle:
- 'vpc-sc' - APIs that support VPC Service Controls.
- 'all-apis' - All supported Google APIs.
For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#target ComputeForwardingRule#target}
Timeouts ComputeForwardingRuleTimeouts
timeouts block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#timeouts ComputeForwardingRule#timeouts}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
&computeforwardingrule.ComputeForwardingRuleServiceDirectoryRegistrations {
Namespace: *string,
Service: *string,
}
Name | Type | Description |
---|---|---|
Namespace |
*string |
Service Directory namespace to register the forwarding rule under. |
Service |
*string |
Service Directory service to register the forwarding rule under. |
Namespace *string
- Type: *string
Service Directory namespace to register the forwarding rule under.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#namespace ComputeForwardingRule#namespace}
Service *string
- Type: *string
Service Directory service to register the forwarding rule under.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#service ComputeForwardingRule#service}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
&computeforwardingrule.ComputeForwardingRuleTimeouts {
Create: *string,
Delete: *string,
Update: *string,
}
Name | Type | Description |
---|---|---|
Create |
*string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#create ComputeForwardingRule#create}. |
Delete |
*string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#delete ComputeForwardingRule#delete}. |
Update |
*string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#update ComputeForwardingRule#update}. |
Create *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#create ComputeForwardingRule#create}.
Delete *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#delete ComputeForwardingRule#delete}.
Update *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_forwarding_rule#update ComputeForwardingRule#update}.
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
computeforwardingrule.NewComputeForwardingRuleServiceDirectoryRegistrationsOutputReference(terraformResource IInterpolatingParent, terraformAttribute *string) ComputeForwardingRuleServiceDirectoryRegistrationsOutputReference
Name | Type | Description |
---|---|---|
terraformResource |
github.com/hashicorp/terraform-cdk-go/cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
*string |
The attribute on the parent resource this class is referencing. |
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.IInterpolatingParent
The parent resource.
- Type: *string
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
ComputeFqn |
No description. |
GetAnyMapAttribute |
No description. |
GetBooleanAttribute |
No description. |
GetBooleanMapAttribute |
No description. |
GetListAttribute |
No description. |
GetNumberAttribute |
No description. |
GetNumberListAttribute |
No description. |
GetNumberMapAttribute |
No description. |
GetStringAttribute |
No description. |
GetStringMapAttribute |
No description. |
InterpolationForAttribute |
No description. |
Resolve |
Produce the Token's value at resolution time. |
ToString |
Return a string representation of this resolvable object. |
ResetNamespace |
No description. |
ResetService |
No description. |
func ComputeFqn() *string
func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
- Type: *string
func GetBooleanAttribute(terraformAttribute *string) IResolvable
- Type: *string
func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
- Type: *string
func GetListAttribute(terraformAttribute *string) *[]*string
- Type: *string
func GetNumberAttribute(terraformAttribute *string) *f64
- Type: *string
func GetNumberListAttribute(terraformAttribute *string) *[]*f64
- Type: *string
func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64
- Type: *string
func GetStringAttribute(terraformAttribute *string) *string
- Type: *string
func GetStringMapAttribute(terraformAttribute *string) *map[string]*string
- Type: *string
func InterpolationForAttribute(property *string) IResolvable
- Type: *string
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.IResolveContext
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
func ResetNamespace()
func ResetService()
Name | Type | Description |
---|---|---|
CreationStack |
*[]*string |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn |
*string |
No description. |
NamespaceInput |
*string |
No description. |
ServiceInput |
*string |
No description. |
Namespace |
*string |
No description. |
Service |
*string |
No description. |
InternalValue |
ComputeForwardingRuleServiceDirectoryRegistrations |
No description. |
func CreationStack() *[]*string
- Type: *[]*string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
func Fqn() *string
- Type: *string
func NamespaceInput() *string
- Type: *string
func ServiceInput() *string
- Type: *string
func Namespace() *string
- Type: *string
func Service() *string
- Type: *string
func InternalValue() ComputeForwardingRuleServiceDirectoryRegistrations
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computeforwardingrule"
computeforwardingrule.NewComputeForwardingRuleTimeoutsOutputReference(terraformResource IInterpolatingParent, terraformAttribute *string) ComputeForwardingRuleTimeoutsOutputReference
Name | Type | Description |
---|---|---|
terraformResource |
github.com/hashicorp/terraform-cdk-go/cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
*string |
The attribute on the parent resource this class is referencing. |
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.IInterpolatingParent
The parent resource.
- Type: *string
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
ComputeFqn |
No description. |
GetAnyMapAttribute |
No description. |
GetBooleanAttribute |
No description. |
GetBooleanMapAttribute |
No description. |
GetListAttribute |
No description. |
GetNumberAttribute |
No description. |
GetNumberListAttribute |
No description. |
GetNumberMapAttribute |
No description. |
GetStringAttribute |
No description. |
GetStringMapAttribute |
No description. |
InterpolationForAttribute |
No description. |
Resolve |
Produce the Token's value at resolution time. |
ToString |
Return a string representation of this resolvable object. |
ResetCreate |
No description. |
ResetDelete |
No description. |
ResetUpdate |
No description. |
func ComputeFqn() *string
func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
- Type: *string
func GetBooleanAttribute(terraformAttribute *string) IResolvable
- Type: *string
func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
- Type: *string
func GetListAttribute(terraformAttribute *string) *[]*string
- Type: *string
func GetNumberAttribute(terraformAttribute *string) *f64
- Type: *string
func GetNumberListAttribute(terraformAttribute *string) *[]*f64
- Type: *string
func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64
- Type: *string
func GetStringAttribute(terraformAttribute *string) *string
- Type: *string
func GetStringMapAttribute(terraformAttribute *string) *map[string]*string
- Type: *string
func InterpolationForAttribute(property *string) IResolvable
- Type: *string
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
- Type: github.com/hashicorp/terraform-cdk-go/cdktf.IResolveContext
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
func ResetCreate()
func ResetDelete()
func ResetUpdate()
Name | Type | Description |
---|---|---|
CreationStack |
*[]*string |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn |
*string |
No description. |
CreateInput |
*string |
No description. |
DeleteInput |
*string |
No description. |
UpdateInput |
*string |
No description. |
Create |
*string |
No description. |
Delete |
*string |
No description. |
Update |
*string |
No description. |
InternalValue |
interface{} |
No description. |
func CreationStack() *[]*string
- Type: *[]*string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
func Fqn() *string
- Type: *string
func CreateInput() *string
- Type: *string
func DeleteInput() *string
- Type: *string
func UpdateInput() *string
- Type: *string
func Create() *string
- Type: *string
func Delete() *string
- Type: *string
func Update() *string
- Type: *string
func InternalValue() interface{}
- Type: interface{}