Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork google_compute_subnetwork}.
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetwork(Construct Scope, string Id, ComputeSubnetworkConfig Config);
Name | Type | Description |
---|---|---|
Scope |
Constructs.Construct |
The scope in which to define this construct. |
Id |
string |
The scoped construct ID. |
Config |
ComputeSubnetworkConfig |
No description. |
- Type: Constructs.Construct
The scope in which to define this construct.
- Type: string
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: ComputeSubnetworkConfig
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". |
PutLogConfig |
No description. |
PutSecondaryIpRange |
No description. |
PutTimeouts |
No description. |
ResetDescription |
No description. |
ResetExternalIpv6Prefix |
No description. |
ResetId |
No description. |
ResetIpCidrRange |
No description. |
ResetIpv6AccessType |
No description. |
ResetLogConfig |
No description. |
ResetPrivateIpGoogleAccess |
No description. |
ResetPrivateIpv6GoogleAccess |
No description. |
ResetProject |
No description. |
ResetPurpose |
No description. |
ResetRegion |
No description. |
ResetReservedInternalRange |
No description. |
ResetRole |
No description. |
ResetSecondaryIpRange |
No description. |
ResetSendSecondaryIpRangeIfEmpty |
No description. |
ResetStackType |
No description. |
ResetTimeouts |
No description. |
private string ToString()
Returns a string representation of this construct.
private void AddOverride(string Path, object Value)
- Type: string
- Type: object
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
- Type: string
The new logical ID to use for this stack element.
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
private object ToHclTerraform()
private object ToMetadata()
private object ToTerraform()
Adds this resource to the terraform JSON output.
private void AddMoveTarget(string MoveTarget)
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.
private System.Collections.Generic.IDictionary<string, object> GetAnyMapAttribute(string TerraformAttribute)
- Type: string
private IResolvable GetBooleanAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, bool> GetBooleanMapAttribute(string TerraformAttribute)
- Type: string
private string[] GetListAttribute(string TerraformAttribute)
- Type: string
private double GetNumberAttribute(string TerraformAttribute)
- Type: string
private double[] GetNumberListAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, double> GetNumberMapAttribute(string TerraformAttribute)
- Type: string
private string GetStringAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, string> GetStringMapAttribute(string TerraformAttribute)
- Type: string
private object HasResourceMove()
private void ImportFrom(string Id, TerraformProvider Provider = null)
- Type: string
- Type: HashiCorp.Cdktf.TerraformProvider
private IResolvable InterpolationForAttribute(string TerraformAttribute)
- Type: string
private void MoveFromId(string Id)
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".
private void MoveTo(string MoveTarget, object Index = null)
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: object
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.
private void MoveToId(string Id)
Moves this resource to the resource corresponding to "id".
- Type: string
Full id of resource to move to, e.g. "aws_s3_bucket.example".
private void PutLogConfig(ComputeSubnetworkLogConfig Value)
private void PutSecondaryIpRange(object Value)
- Type: object
private void PutTimeouts(ComputeSubnetworkTimeouts Value)
private void ResetDescription()
private void ResetExternalIpv6Prefix()
private void ResetId()
private void ResetIpCidrRange()
private void ResetIpv6AccessType()
private void ResetLogConfig()
private void ResetPrivateIpGoogleAccess()
private void ResetPrivateIpv6GoogleAccess()
private void ResetProject()
private void ResetPurpose()
private void ResetRegion()
private void ResetReservedInternalRange()
private void ResetRole()
private void ResetSecondaryIpRange()
private void ResetSendSecondaryIpRangeIfEmpty()
private void ResetStackType()
private void ResetTimeouts()
Name | Description |
---|---|
IsConstruct |
Checks if x is a construct. |
IsTerraformElement |
No description. |
IsTerraformResource |
No description. |
GenerateConfigForImport |
Generates CDKTF code for importing a ComputeSubnetwork resource upon running "cdktf plan ". |
using HashiCorp.Cdktf.Providers.Google;
ComputeSubnetwork.IsConstruct(object X);
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: object
Any object.
using HashiCorp.Cdktf.Providers.Google;
ComputeSubnetwork.IsTerraformElement(object X);
- Type: object
using HashiCorp.Cdktf.Providers.Google;
ComputeSubnetwork.IsTerraformResource(object X);
- Type: object
using HashiCorp.Cdktf.Providers.Google;
ComputeSubnetwork.GenerateConfigForImport(Construct Scope, string ImportToId, string ImportFromId, TerraformProvider Provider = null);
Generates CDKTF code for importing a ComputeSubnetwork resource upon running "cdktf plan ".
- Type: Constructs.Construct
The scope in which to define this construct.
- Type: string
The construct id used in the generated config for the ComputeSubnetwork to import.
- Type: string
The id of the existing ComputeSubnetwork that should be imported.
Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#import import section} in the documentation of this resource for the id to use
- Type: HashiCorp.Cdktf.TerraformProvider
? Optional instance of the provider where the ComputeSubnetwork to import is found.
Name | Type | Description |
---|---|---|
Node |
Constructs.Node |
The tree node. |
CdktfStack |
HashiCorp.Cdktf.TerraformStack |
No description. |
Fqn |
string |
No description. |
FriendlyUniqueId |
string |
No description. |
TerraformMetaArguments |
System.Collections.Generic.IDictionary<string, object> |
No description. |
TerraformResourceType |
string |
No description. |
TerraformGeneratorMetadata |
HashiCorp.Cdktf.TerraformProviderGeneratorMetadata |
No description. |
Connection |
object |
No description. |
Count |
object |
No description. |
DependsOn |
string[] |
No description. |
ForEach |
HashiCorp.Cdktf.ITerraformIterator |
No description. |
Lifecycle |
HashiCorp.Cdktf.TerraformResourceLifecycle |
No description. |
Provider |
HashiCorp.Cdktf.TerraformProvider |
No description. |
Provisioners |
object[] |
No description. |
CreationTimestamp |
string |
No description. |
Fingerprint |
string |
No description. |
GatewayAddress |
string |
No description. |
InternalIpv6Prefix |
string |
No description. |
Ipv6CidrRange |
string |
No description. |
LogConfig |
ComputeSubnetworkLogConfigOutputReference |
No description. |
SecondaryIpRange |
ComputeSubnetworkSecondaryIpRangeList |
No description. |
SelfLink |
string |
No description. |
SubnetworkId |
double |
No description. |
Timeouts |
ComputeSubnetworkTimeoutsOutputReference |
No description. |
DescriptionInput |
string |
No description. |
ExternalIpv6PrefixInput |
string |
No description. |
IdInput |
string |
No description. |
IpCidrRangeInput |
string |
No description. |
Ipv6AccessTypeInput |
string |
No description. |
LogConfigInput |
ComputeSubnetworkLogConfig |
No description. |
NameInput |
string |
No description. |
NetworkInput |
string |
No description. |
PrivateIpGoogleAccessInput |
object |
No description. |
PrivateIpv6GoogleAccessInput |
string |
No description. |
ProjectInput |
string |
No description. |
PurposeInput |
string |
No description. |
RegionInput |
string |
No description. |
ReservedInternalRangeInput |
string |
No description. |
RoleInput |
string |
No description. |
SecondaryIpRangeInput |
object |
No description. |
SendSecondaryIpRangeIfEmptyInput |
object |
No description. |
StackTypeInput |
string |
No description. |
TimeoutsInput |
object |
No description. |
Description |
string |
No description. |
ExternalIpv6Prefix |
string |
No description. |
Id |
string |
No description. |
IpCidrRange |
string |
No description. |
Ipv6AccessType |
string |
No description. |
Name |
string |
No description. |
Network |
string |
No description. |
PrivateIpGoogleAccess |
object |
No description. |
PrivateIpv6GoogleAccess |
string |
No description. |
Project |
string |
No description. |
Purpose |
string |
No description. |
Region |
string |
No description. |
ReservedInternalRange |
string |
No description. |
Role |
string |
No description. |
SendSecondaryIpRangeIfEmpty |
object |
No description. |
StackType |
string |
No description. |
public Node Node { get; }
- Type: Constructs.Node
The tree node.
public TerraformStack CdktfStack { get; }
- Type: HashiCorp.Cdktf.TerraformStack
public string Fqn { get; }
- Type: string
public string FriendlyUniqueId { get; }
- Type: string
public System.Collections.Generic.IDictionary<string, object> TerraformMetaArguments { get; }
- Type: System.Collections.Generic.IDictionary<string, object>
public string TerraformResourceType { get; }
- Type: string
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
- Type: HashiCorp.Cdktf.TerraformProviderGeneratorMetadata
public object Connection { get; }
- Type: object
public object Count { get; }
- Type: object
public string[] DependsOn { get; }
- Type: string[]
public ITerraformIterator ForEach { get; }
- Type: HashiCorp.Cdktf.ITerraformIterator
public TerraformResourceLifecycle Lifecycle { get; }
- Type: HashiCorp.Cdktf.TerraformResourceLifecycle
public TerraformProvider Provider { get; }
- Type: HashiCorp.Cdktf.TerraformProvider
public object[] Provisioners { get; }
- Type: object[]
public string CreationTimestamp { get; }
- Type: string
public string Fingerprint { get; }
- Type: string
public string GatewayAddress { get; }
- Type: string
public string InternalIpv6Prefix { get; }
- Type: string
public string Ipv6CidrRange { get; }
- Type: string
public ComputeSubnetworkLogConfigOutputReference LogConfig { get; }
public ComputeSubnetworkSecondaryIpRangeList SecondaryIpRange { get; }
public string SelfLink { get; }
- Type: string
public double SubnetworkId { get; }
- Type: double
public ComputeSubnetworkTimeoutsOutputReference Timeouts { get; }
public string DescriptionInput { get; }
- Type: string
public string ExternalIpv6PrefixInput { get; }
- Type: string
public string IdInput { get; }
- Type: string
public string IpCidrRangeInput { get; }
- Type: string
public string Ipv6AccessTypeInput { get; }
- Type: string
public ComputeSubnetworkLogConfig LogConfigInput { get; }
public string NameInput { get; }
- Type: string
public string NetworkInput { get; }
- Type: string
public object PrivateIpGoogleAccessInput { get; }
- Type: object
public string PrivateIpv6GoogleAccessInput { get; }
- Type: string
public string ProjectInput { get; }
- Type: string
public string PurposeInput { get; }
- Type: string
public string RegionInput { get; }
- Type: string
public string ReservedInternalRangeInput { get; }
- Type: string
public string RoleInput { get; }
- Type: string
public object SecondaryIpRangeInput { get; }
- Type: object
public object SendSecondaryIpRangeIfEmptyInput { get; }
- Type: object
public string StackTypeInput { get; }
- Type: string
public object TimeoutsInput { get; }
- Type: object
public string Description { get; }
- Type: string
public string ExternalIpv6Prefix { get; }
- Type: string
public string Id { get; }
- Type: string
public string IpCidrRange { get; }
- Type: string
public string Ipv6AccessType { get; }
- Type: string
public string Name { get; }
- Type: string
public string Network { get; }
- Type: string
public object PrivateIpGoogleAccess { get; }
- Type: object
public string PrivateIpv6GoogleAccess { get; }
- Type: string
public string Project { get; }
- Type: string
public string Purpose { get; }
- Type: string
public string Region { get; }
- Type: string
public string ReservedInternalRange { get; }
- Type: string
public string Role { get; }
- Type: string
public object SendSecondaryIpRangeIfEmpty { get; }
- Type: object
public string StackType { get; }
- Type: string
Name | Type | Description |
---|---|---|
TfResourceType |
string |
No description. |
public string TfResourceType { get; }
- Type: string
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkConfig {
object Connection = null,
object Count = null,
ITerraformDependable[] DependsOn = null,
ITerraformIterator ForEach = null,
TerraformResourceLifecycle Lifecycle = null,
TerraformProvider Provider = null,
object[] Provisioners = null,
string Name,
string Network,
string Description = null,
string ExternalIpv6Prefix = null,
string Id = null,
string IpCidrRange = null,
string Ipv6AccessType = null,
ComputeSubnetworkLogConfig LogConfig = null,
object PrivateIpGoogleAccess = null,
string PrivateIpv6GoogleAccess = null,
string Project = null,
string Purpose = null,
string Region = null,
string ReservedInternalRange = null,
string Role = null,
object SecondaryIpRange = null,
object SendSecondaryIpRangeIfEmpty = null,
string StackType = null,
ComputeSubnetworkTimeouts Timeouts = null
};
Name | Type | Description |
---|---|---|
Connection |
object |
No description. |
Count |
object |
No description. |
DependsOn |
HashiCorp.Cdktf.ITerraformDependable[] |
No description. |
ForEach |
HashiCorp.Cdktf.ITerraformIterator |
No description. |
Lifecycle |
HashiCorp.Cdktf.TerraformResourceLifecycle |
No description. |
Provider |
HashiCorp.Cdktf.TerraformProvider |
No description. |
Provisioners |
object[] |
No description. |
Name |
string |
The name of the resource, provided by the client when initially creating the resource. |
Network |
string |
The network this subnet belongs to. Only networks that are in the distributed mode can have subnetworks. |
Description |
string |
An optional description of this resource. |
ExternalIpv6Prefix |
string |
The range of external IPv6 addresses that are owned by this subnetwork. |
Id |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#id ComputeSubnetwork#id}. |
IpCidrRange |
string |
The range of internal addresses that are owned by this subnetwork. |
Ipv6AccessType |
string |
The access type of IPv6 address this subnet holds. |
LogConfig |
ComputeSubnetworkLogConfig |
log_config block. |
PrivateIpGoogleAccess |
object |
When enabled, VMs in this subnetwork without external IP addresses can access Google APIs and services by using Private Google Access. |
PrivateIpv6GoogleAccess |
string |
The private IPv6 google access type for the VMs in this subnet. |
Project |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#project ComputeSubnetwork#project}. |
Purpose |
string |
The purpose of the resource. |
Region |
string |
The GCP region for this subnetwork. |
ReservedInternalRange |
string |
The ID of the reserved internal range. Must be prefixed with 'networkconnectivity.googleapis.com' E.g. 'networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}'. |
Role |
string |
The role of subnetwork. |
SecondaryIpRange |
object |
secondary_ip_range block. |
SendSecondaryIpRangeIfEmpty |
object |
Controls the removal behavior of secondary_ip_range. |
StackType |
string |
The stack type for this subnet to identify whether the IPv6 feature is enabled or not. |
Timeouts |
ComputeSubnetworkTimeouts |
timeouts block. |
public object Connection { get; set; }
- Type: object
public object Count { get; set; }
- Type: object
public ITerraformDependable[] DependsOn { get; set; }
- Type: HashiCorp.Cdktf.ITerraformDependable[]
public ITerraformIterator ForEach { get; set; }
- Type: HashiCorp.Cdktf.ITerraformIterator
public TerraformResourceLifecycle Lifecycle { get; set; }
- Type: HashiCorp.Cdktf.TerraformResourceLifecycle
public TerraformProvider Provider { get; set; }
- Type: HashiCorp.Cdktf.TerraformProvider
public object[] Provisioners { get; set; }
- Type: object[]
public string Name { get; set; }
- Type: string
The name of the resource, provided by the client when initially creating the resource.
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.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#name ComputeSubnetwork#name}
public string Network { get; set; }
- Type: string
The network this subnet belongs to. Only networks that are in the distributed mode can have subnetworks.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#network ComputeSubnetwork#network}
public string Description { get; set; }
- Type: string
An optional description of this resource.
Provide this property when you create the resource. This field can be set only at resource creation time.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#description ComputeSubnetwork#description}
public string ExternalIpv6Prefix { get; set; }
- Type: string
The range of external IPv6 addresses that are owned by this subnetwork.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#external_ipv6_prefix ComputeSubnetwork#external_ipv6_prefix}
public string Id { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#id ComputeSubnetwork#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.
public string IpCidrRange { get; set; }
- Type: string
The range of internal addresses that are owned by this subnetwork.
Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. Field is optional when 'reserved_internal_range' is defined, otherwise required.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#ip_cidr_range ComputeSubnetwork#ip_cidr_range}
public string Ipv6AccessType { get; set; }
- Type: string
The access type of IPv6 address this subnet holds.
It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path. Possible values: ["EXTERNAL", "INTERNAL"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#ipv6_access_type ComputeSubnetwork#ipv6_access_type}
public ComputeSubnetworkLogConfig LogConfig { get; set; }
log_config block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#log_config ComputeSubnetwork#log_config}
public object PrivateIpGoogleAccess { get; set; }
- Type: object
When enabled, VMs in this subnetwork without external IP addresses can access Google APIs and services by using Private Google Access.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#private_ip_google_access ComputeSubnetwork#private_ip_google_access}
public string PrivateIpv6GoogleAccess { get; set; }
- Type: string
The private IPv6 google access type for the VMs in this subnet.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#private_ipv6_google_access ComputeSubnetwork#private_ipv6_google_access}
public string Project { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#project ComputeSubnetwork#project}.
public string Purpose { get; set; }
- Type: string
The purpose of the resource.
This field can be either 'PRIVATE', 'REGIONAL_MANAGED_PROXY', 'GLOBAL_MANAGED_PROXY', 'PRIVATE_SERVICE_CONNECT' or 'PRIVATE_NAT'(Beta). A subnet with purpose set to 'REGIONAL_MANAGED_PROXY' is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnetwork in a given region with purpose set to 'GLOBAL_MANAGED_PROXY' is a proxy-only subnet and is shared between all the cross-regional Envoy-based load balancers. A subnetwork with purpose set to 'PRIVATE_SERVICE_CONNECT' reserves the subnet for hosting a Private Service Connect published service. A subnetwork with purpose set to 'PRIVATE_NAT' is used as source range for Private NAT gateways. Note that 'REGIONAL_MANAGED_PROXY' is the preferred setting for all regional Envoy load balancers. If unspecified, the purpose defaults to 'PRIVATE'.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#purpose ComputeSubnetwork#purpose}
public string Region { get; set; }
- Type: string
The GCP region for this subnetwork.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#region ComputeSubnetwork#region}
public string ReservedInternalRange { get; set; }
- Type: string
The ID of the reserved internal range. Must be prefixed with 'networkconnectivity.googleapis.com' E.g. 'networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}'.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#reserved_internal_range ComputeSubnetwork#reserved_internal_range}
public string Role { get; set; }
- Type: string
The role of subnetwork.
Currently, this field is only used when 'purpose' is 'REGIONAL_MANAGED_PROXY'. The value can be set to 'ACTIVE' or 'BACKUP'. An 'ACTIVE' subnetwork is one that is currently being used for Envoy-based load balancers in a region. A 'BACKUP' subnetwork is one that is ready to be promoted to 'ACTIVE' or is currently draining. Possible values: ["ACTIVE", "BACKUP"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#role ComputeSubnetwork#role}
public object SecondaryIpRange { get; set; }
- Type: object
secondary_ip_range block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#secondary_ip_range ComputeSubnetwork#secondary_ip_range}
public object SendSecondaryIpRangeIfEmpty { get; set; }
- Type: object
Controls the removal behavior of secondary_ip_range.
When false, removing secondary_ip_range from config will not produce a diff as the provider will default to the API's value. When true, the provider will treat removing secondary_ip_range as sending an empty list of secondary IP ranges to the API. Defaults to false.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#send_secondary_ip_range_if_empty ComputeSubnetwork#send_secondary_ip_range_if_empty}
public string StackType { get; set; }
- Type: string
The stack type for this subnet to identify whether the IPv6 feature is enabled or not.
If not specified IPV4_ONLY will be used. Possible values: ["IPV4_ONLY", "IPV4_IPV6", "IPV6_ONLY"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#stack_type ComputeSubnetwork#stack_type}
public ComputeSubnetworkTimeouts Timeouts { get; set; }
timeouts block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#timeouts ComputeSubnetwork#timeouts}
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkLogConfig {
string AggregationInterval = null,
string FilterExpr = null,
double FlowSampling = null,
string Metadata = null,
string[] MetadataFields = null
};
Name | Type | Description |
---|---|---|
AggregationInterval |
string |
Can only be specified if VPC flow logging for this subnetwork is enabled. |
FilterExpr |
string |
Export filter used to define which VPC flow logs should be logged, as as CEL expression. |
FlowSampling |
double |
Can only be specified if VPC flow logging for this subnetwork is enabled. |
Metadata |
string |
Can only be specified if VPC flow logging for this subnetwork is enabled. |
MetadataFields |
string[] |
List of metadata fields that should be added to reported logs. |
public string AggregationInterval { get; set; }
- Type: string
Can only be specified if VPC flow logging for this subnetwork is enabled.
Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. Default value: "INTERVAL_5_SEC" Possible values: ["INTERVAL_5_SEC", "INTERVAL_30_SEC", "INTERVAL_1_MIN", "INTERVAL_5_MIN", "INTERVAL_10_MIN", "INTERVAL_15_MIN"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#aggregation_interval ComputeSubnetwork#aggregation_interval}
public string FilterExpr { get; set; }
- Type: string
Export filter used to define which VPC flow logs should be logged, as as CEL expression.
See https://cloud.google.com/vpc/docs/flow-logs#filtering for details on how to format this field. The default value is 'true', which evaluates to include everything.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#filter_expr ComputeSubnetwork#filter_expr}
public double FlowSampling { get; set; }
- Type: double
Can only be specified if VPC flow logging for this subnetwork is enabled.
The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 which means half of all collected logs are reported.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#flow_sampling ComputeSubnetwork#flow_sampling}
public string Metadata { get; set; }
- Type: string
Can only be specified if VPC flow logging for this subnetwork is enabled.
Configures whether metadata fields should be added to the reported VPC flow logs. Default value: "INCLUDE_ALL_METADATA" Possible values: ["EXCLUDE_ALL_METADATA", "INCLUDE_ALL_METADATA", "CUSTOM_METADATA"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#metadata ComputeSubnetwork#metadata}
public string[] MetadataFields { get; set; }
- Type: string[]
List of metadata fields that should be added to reported logs.
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" is set to CUSTOM_METADATA.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#metadata_fields ComputeSubnetwork#metadata_fields}
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkSecondaryIpRange {
string RangeName,
string IpCidrRange = null,
string ReservedInternalRange = null
};
Name | Type | Description |
---|---|---|
RangeName |
string |
The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. |
IpCidrRange |
string |
The range of IP addresses belonging to this subnetwork secondary range. |
ReservedInternalRange |
string |
The ID of the reserved internal range. Must be prefixed with 'networkconnectivity.googleapis.com' E.g. 'networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}'. |
public string RangeName { get; set; }
- Type: string
The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance.
The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#range_name ComputeSubnetwork#range_name}
public string IpCidrRange { get; set; }
- Type: string
The range of IP addresses belonging to this subnetwork secondary range.
Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. Field is optional when 'reserved_internal_range' is defined, otherwise required.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#ip_cidr_range ComputeSubnetwork#ip_cidr_range}
public string ReservedInternalRange { get; set; }
- Type: string
The ID of the reserved internal range. Must be prefixed with 'networkconnectivity.googleapis.com' E.g. 'networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}'.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#reserved_internal_range ComputeSubnetwork#reserved_internal_range}
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkTimeouts {
string Create = null,
string Delete = null,
string Update = null
};
Name | Type | Description |
---|---|---|
Create |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#create ComputeSubnetwork#create}. |
Delete |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#delete ComputeSubnetwork#delete}. |
Update |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#update ComputeSubnetwork#update}. |
public string Create { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#create ComputeSubnetwork#create}.
public string Delete { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#delete ComputeSubnetwork#delete}.
public string Update { get; set; }
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.17.0/docs/resources/compute_subnetwork#update ComputeSubnetwork#update}.
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkLogConfigOutputReference(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource |
HashiCorp.Cdktf.IInterpolatingParent |
The parent resource. |
TerraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
- Type: HashiCorp.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. |
ResetAggregationInterval |
No description. |
ResetFilterExpr |
No description. |
ResetFlowSampling |
No description. |
ResetMetadata |
No description. |
ResetMetadataFields |
No description. |
private string ComputeFqn()
private System.Collections.Generic.IDictionary<string, object> GetAnyMapAttribute(string TerraformAttribute)
- Type: string
private IResolvable GetBooleanAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, bool> GetBooleanMapAttribute(string TerraformAttribute)
- Type: string
private string[] GetListAttribute(string TerraformAttribute)
- Type: string
private double GetNumberAttribute(string TerraformAttribute)
- Type: string
private double[] GetNumberListAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, double> GetNumberMapAttribute(string TerraformAttribute)
- Type: string
private string GetStringAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, string> GetStringMapAttribute(string TerraformAttribute)
- Type: string
private IResolvable InterpolationForAttribute(string Property)
- Type: string
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
- Type: HashiCorp.Cdktf.IResolveContext
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
private void ResetAggregationInterval()
private void ResetFilterExpr()
private void ResetFlowSampling()
private void ResetMetadata()
private void ResetMetadataFields()
Name | Type | Description |
---|---|---|
CreationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn |
string |
No description. |
AggregationIntervalInput |
string |
No description. |
FilterExprInput |
string |
No description. |
FlowSamplingInput |
double |
No description. |
MetadataFieldsInput |
string[] |
No description. |
MetadataInput |
string |
No description. |
AggregationInterval |
string |
No description. |
FilterExpr |
string |
No description. |
FlowSampling |
double |
No description. |
Metadata |
string |
No description. |
MetadataFields |
string[] |
No description. |
InternalValue |
ComputeSubnetworkLogConfig |
No description. |
public string[] CreationStack { get; }
- 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.
public string Fqn { get; }
- Type: string
public string AggregationIntervalInput { get; }
- Type: string
public string FilterExprInput { get; }
- Type: string
public double FlowSamplingInput { get; }
- Type: double
public string[] MetadataFieldsInput { get; }
- Type: string[]
public string MetadataInput { get; }
- Type: string
public string AggregationInterval { get; }
- Type: string
public string FilterExpr { get; }
- Type: string
public double FlowSampling { get; }
- Type: double
public string Metadata { get; }
- Type: string
public string[] MetadataFields { get; }
- Type: string[]
public ComputeSubnetworkLogConfig InternalValue { get; }
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkSecondaryIpRangeList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource |
HashiCorp.Cdktf.IInterpolatingParent |
The parent resource. |
TerraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
WrapsSet |
bool |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: HashiCorp.Cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
AllWithMapKey |
Creating an iterator for this complex list. |
ComputeFqn |
No description. |
Resolve |
Produce the Token's value at resolution time. |
ToString |
Return a string representation of this resolvable object. |
Get |
No description. |
private DynamicListTerraformIterator AllWithMapKey(string MapKeyAttributeName)
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
- Type: string
private string ComputeFqn()
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
- Type: HashiCorp.Cdktf.IResolveContext
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
private ComputeSubnetworkSecondaryIpRangeOutputReference Get(double Index)
- Type: double
the index of the item to return.
Name | Type | Description |
---|---|---|
CreationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn |
string |
No description. |
InternalValue |
object |
No description. |
public string[] CreationStack { get; }
- 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.
public string Fqn { get; }
- Type: string
public object InternalValue { get; }
- Type: object
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkSecondaryIpRangeOutputReference(IInterpolatingParent TerraformResource, string TerraformAttribute, double ComplexObjectIndex, bool ComplexObjectIsFromSet);
Name | Type | Description |
---|---|---|
TerraformResource |
HashiCorp.Cdktf.IInterpolatingParent |
The parent resource. |
TerraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
ComplexObjectIndex |
double |
the index of this item in the list. |
ComplexObjectIsFromSet |
bool |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: HashiCorp.Cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
- Type: double
the index of this item in the list.
- Type: bool
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
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. |
ResetIpCidrRange |
No description. |
ResetReservedInternalRange |
No description. |
private string ComputeFqn()
private System.Collections.Generic.IDictionary<string, object> GetAnyMapAttribute(string TerraformAttribute)
- Type: string
private IResolvable GetBooleanAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, bool> GetBooleanMapAttribute(string TerraformAttribute)
- Type: string
private string[] GetListAttribute(string TerraformAttribute)
- Type: string
private double GetNumberAttribute(string TerraformAttribute)
- Type: string
private double[] GetNumberListAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, double> GetNumberMapAttribute(string TerraformAttribute)
- Type: string
private string GetStringAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, string> GetStringMapAttribute(string TerraformAttribute)
- Type: string
private IResolvable InterpolationForAttribute(string Property)
- Type: string
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
- Type: HashiCorp.Cdktf.IResolveContext
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
private void ResetIpCidrRange()
private void ResetReservedInternalRange()
Name | Type | Description |
---|---|---|
CreationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn |
string |
No description. |
IpCidrRangeInput |
string |
No description. |
RangeNameInput |
string |
No description. |
ReservedInternalRangeInput |
string |
No description. |
IpCidrRange |
string |
No description. |
RangeName |
string |
No description. |
ReservedInternalRange |
string |
No description. |
InternalValue |
object |
No description. |
public string[] CreationStack { get; }
- 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.
public string Fqn { get; }
- Type: string
public string IpCidrRangeInput { get; }
- Type: string
public string RangeNameInput { get; }
- Type: string
public string ReservedInternalRangeInput { get; }
- Type: string
public string IpCidrRange { get; }
- Type: string
public string RangeName { get; }
- Type: string
public string ReservedInternalRange { get; }
- Type: string
public object InternalValue { get; }
- Type: object
using HashiCorp.Cdktf.Providers.Google;
new ComputeSubnetworkTimeoutsOutputReference(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource |
HashiCorp.Cdktf.IInterpolatingParent |
The parent resource. |
TerraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
- Type: HashiCorp.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. |
private string ComputeFqn()
private System.Collections.Generic.IDictionary<string, object> GetAnyMapAttribute(string TerraformAttribute)
- Type: string
private IResolvable GetBooleanAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, bool> GetBooleanMapAttribute(string TerraformAttribute)
- Type: string
private string[] GetListAttribute(string TerraformAttribute)
- Type: string
private double GetNumberAttribute(string TerraformAttribute)
- Type: string
private double[] GetNumberListAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, double> GetNumberMapAttribute(string TerraformAttribute)
- Type: string
private string GetStringAttribute(string TerraformAttribute)
- Type: string
private System.Collections.Generic.IDictionary<string, string> GetStringMapAttribute(string TerraformAttribute)
- Type: string
private IResolvable InterpolationForAttribute(string Property)
- Type: string
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
- Type: HashiCorp.Cdktf.IResolveContext
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
private void ResetCreate()
private void ResetDelete()
private void 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 |
object |
No description. |
public string[] CreationStack { get; }
- 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.
public string Fqn { get; }
- Type: string
public string CreateInput { get; }
- Type: string
public string DeleteInput { get; }
- Type: string
public string UpdateInput { get; }
- Type: string
public string Create { get; }
- Type: string
public string Delete { get; }
- Type: string
public string Update { get; }
- Type: string
public object InternalValue { get; }
- Type: object