Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork google_compute_subnetwork}.
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.NewComputeSubnetwork(scope Construct, id *string, config ComputeSubnetworkConfig) ComputeSubnetwork
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 |
ComputeSubnetworkConfig |
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
- 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. |
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 PutLogConfig(value ComputeSubnetworkLogConfig)
func PutSecondaryIpRange(value interface{})
- Type: interface{}
func PutTimeouts(value ComputeSubnetworkTimeouts)
func ResetDescription()
func ResetExternalIpv6Prefix()
func ResetId()
func ResetIpCidrRange()
func ResetIpv6AccessType()
func ResetLogConfig()
func ResetPrivateIpGoogleAccess()
func ResetPrivateIpv6GoogleAccess()
func ResetProject()
func ResetPurpose()
func ResetRegion()
func ResetReservedInternalRange()
func ResetRole()
func ResetSecondaryIpRange()
func ResetSendSecondaryIpRangeIfEmpty()
func ResetStackType()
func 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 ". |
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.ComputeSubnetwork_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/computesubnetwork"
computesubnetwork.ComputeSubnetwork_IsTerraformElement(x interface{}) *bool
- Type: interface{}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.ComputeSubnetwork_IsTerraformResource(x interface{}) *bool
- Type: interface{}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.ComputeSubnetwork_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource
Generates CDKTF code for importing a ComputeSubnetwork 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 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.14.1/docs/resources/compute_subnetwork#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 ComputeSubnetwork 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. |
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 |
*f64 |
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 |
interface{} |
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 |
interface{} |
No description. |
SendSecondaryIpRangeIfEmptyInput |
interface{} |
No description. |
StackTypeInput |
*string |
No description. |
TimeoutsInput |
interface{} |
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 |
interface{} |
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 |
interface{} |
No description. |
StackType |
*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 CreationTimestamp() *string
- Type: *string
func Fingerprint() *string
- Type: *string
func GatewayAddress() *string
- Type: *string
func InternalIpv6Prefix() *string
- Type: *string
func Ipv6CidrRange() *string
- Type: *string
func LogConfig() ComputeSubnetworkLogConfigOutputReference
func SecondaryIpRange() ComputeSubnetworkSecondaryIpRangeList
func SelfLink() *string
- Type: *string
func SubnetworkId() *f64
- Type: *f64
func Timeouts() ComputeSubnetworkTimeoutsOutputReference
func DescriptionInput() *string
- Type: *string
func ExternalIpv6PrefixInput() *string
- Type: *string
func IdInput() *string
- Type: *string
func IpCidrRangeInput() *string
- Type: *string
func Ipv6AccessTypeInput() *string
- Type: *string
func LogConfigInput() ComputeSubnetworkLogConfig
func NameInput() *string
- Type: *string
func NetworkInput() *string
- Type: *string
func PrivateIpGoogleAccessInput() interface{}
- Type: interface{}
func PrivateIpv6GoogleAccessInput() *string
- Type: *string
func ProjectInput() *string
- Type: *string
func PurposeInput() *string
- Type: *string
func RegionInput() *string
- Type: *string
func ReservedInternalRangeInput() *string
- Type: *string
func RoleInput() *string
- Type: *string
func SecondaryIpRangeInput() interface{}
- Type: interface{}
func SendSecondaryIpRangeIfEmptyInput() interface{}
- Type: interface{}
func StackTypeInput() *string
- Type: *string
func TimeoutsInput() interface{}
- Type: interface{}
func Description() *string
- Type: *string
func ExternalIpv6Prefix() *string
- Type: *string
func Id() *string
- Type: *string
func IpCidrRange() *string
- Type: *string
func Ipv6AccessType() *string
- Type: *string
func Name() *string
- Type: *string
func Network() *string
- Type: *string
func PrivateIpGoogleAccess() interface{}
- Type: interface{}
func PrivateIpv6GoogleAccess() *string
- Type: *string
func Project() *string
- Type: *string
func Purpose() *string
- Type: *string
func Region() *string
- Type: *string
func ReservedInternalRange() *string
- Type: *string
func Role() *string
- Type: *string
func SendSecondaryIpRangeIfEmpty() interface{}
- Type: interface{}
func StackType() *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/computesubnetwork"
&computesubnetwork.ComputeSubnetworkConfig {
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,
Network: *string,
Description: *string,
ExternalIpv6Prefix: *string,
Id: *string,
IpCidrRange: *string,
Ipv6AccessType: *string,
LogConfig: github.com/cdktf/cdktf-provider-google-go/google/v14.computeSubnetwork.ComputeSubnetworkLogConfig,
PrivateIpGoogleAccess: interface{},
PrivateIpv6GoogleAccess: *string,
Project: *string,
Purpose: *string,
Region: *string,
ReservedInternalRange: *string,
Role: *string,
SecondaryIpRange: interface{},
SendSecondaryIpRangeIfEmpty: interface{},
StackType: *string,
Timeouts: github.com/cdktf/cdktf-provider-google-go/google/v14.computeSubnetwork.ComputeSubnetworkTimeouts,
}
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 |
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.14.1/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 |
interface{} |
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.14.1/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 |
interface{} |
secondary_ip_range block. |
SendSecondaryIpRangeIfEmpty |
interface{} |
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. |
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
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.14.1/docs/resources/compute_subnetwork#name ComputeSubnetwork#name}
Network *string
- 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.14.1/docs/resources/compute_subnetwork#network ComputeSubnetwork#network}
Description *string
- 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.14.1/docs/resources/compute_subnetwork#description ComputeSubnetwork#description}
ExternalIpv6Prefix *string
- 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.14.1/docs/resources/compute_subnetwork#external_ipv6_prefix ComputeSubnetwork#external_ipv6_prefix}
Id *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/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.
IpCidrRange *string
- 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.14.1/docs/resources/compute_subnetwork#ip_cidr_range ComputeSubnetwork#ip_cidr_range}
Ipv6AccessType *string
- 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.14.1/docs/resources/compute_subnetwork#ipv6_access_type ComputeSubnetwork#ipv6_access_type}
LogConfig ComputeSubnetworkLogConfig
log_config block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#log_config ComputeSubnetwork#log_config}
PrivateIpGoogleAccess interface{}
- Type: interface{}
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.14.1/docs/resources/compute_subnetwork#private_ip_google_access ComputeSubnetwork#private_ip_google_access}
PrivateIpv6GoogleAccess *string
- 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.14.1/docs/resources/compute_subnetwork#private_ipv6_google_access ComputeSubnetwork#private_ipv6_google_access}
Project *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#project ComputeSubnetwork#project}.
Purpose *string
- 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.14.1/docs/resources/compute_subnetwork#purpose ComputeSubnetwork#purpose}
Region *string
- Type: *string
The GCP region for this subnetwork.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#region ComputeSubnetwork#region}
ReservedInternalRange *string
- 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.14.1/docs/resources/compute_subnetwork#reserved_internal_range ComputeSubnetwork#reserved_internal_range}
Role *string
- 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.14.1/docs/resources/compute_subnetwork#role ComputeSubnetwork#role}
SecondaryIpRange interface{}
- Type: interface{}
secondary_ip_range block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#secondary_ip_range ComputeSubnetwork#secondary_ip_range}
SendSecondaryIpRangeIfEmpty interface{}
- Type: interface{}
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.14.1/docs/resources/compute_subnetwork#send_secondary_ip_range_if_empty ComputeSubnetwork#send_secondary_ip_range_if_empty}
StackType *string
- 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"]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#stack_type ComputeSubnetwork#stack_type}
Timeouts ComputeSubnetworkTimeouts
timeouts block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#timeouts ComputeSubnetwork#timeouts}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
&computesubnetwork.ComputeSubnetworkLogConfig {
AggregationInterval: *string,
FilterExpr: *string,
FlowSampling: *f64,
Metadata: *string,
MetadataFields: *[]*string,
}
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 |
*f64 |
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. |
AggregationInterval *string
- 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.14.1/docs/resources/compute_subnetwork#aggregation_interval ComputeSubnetwork#aggregation_interval}
FilterExpr *string
- 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.14.1/docs/resources/compute_subnetwork#filter_expr ComputeSubnetwork#filter_expr}
FlowSampling *f64
- Type: *f64
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.14.1/docs/resources/compute_subnetwork#flow_sampling ComputeSubnetwork#flow_sampling}
Metadata *string
- 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.14.1/docs/resources/compute_subnetwork#metadata ComputeSubnetwork#metadata}
MetadataFields *[]*string
- 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.14.1/docs/resources/compute_subnetwork#metadata_fields ComputeSubnetwork#metadata_fields}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
&computesubnetwork.ComputeSubnetworkSecondaryIpRange {
RangeName: *string,
IpCidrRange: *string,
ReservedInternalRange: *string,
}
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}'. |
RangeName *string
- 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.14.1/docs/resources/compute_subnetwork#range_name ComputeSubnetwork#range_name}
IpCidrRange *string
- 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.14.1/docs/resources/compute_subnetwork#ip_cidr_range ComputeSubnetwork#ip_cidr_range}
ReservedInternalRange *string
- 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.14.1/docs/resources/compute_subnetwork#reserved_internal_range ComputeSubnetwork#reserved_internal_range}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
&computesubnetwork.ComputeSubnetworkTimeouts {
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_subnetwork#create ComputeSubnetwork#create}. |
Delete |
*string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#delete ComputeSubnetwork#delete}. |
Update |
*string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#update ComputeSubnetwork#update}. |
Create *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#create ComputeSubnetwork#create}.
Delete *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#delete ComputeSubnetwork#delete}.
Update *string
- Type: *string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/compute_subnetwork#update ComputeSubnetwork#update}.
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.NewComputeSubnetworkLogConfigOutputReference(terraformResource IInterpolatingParent, terraformAttribute *string) ComputeSubnetworkLogConfigOutputReference
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. |
ResetAggregationInterval |
No description. |
ResetFilterExpr |
No description. |
ResetFlowSampling |
No description. |
ResetMetadata |
No description. |
ResetMetadataFields |
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 ResetAggregationInterval()
func ResetFilterExpr()
func ResetFlowSampling()
func ResetMetadata()
func 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 |
*f64 |
No description. |
MetadataFieldsInput |
*[]*string |
No description. |
MetadataInput |
*string |
No description. |
AggregationInterval |
*string |
No description. |
FilterExpr |
*string |
No description. |
FlowSampling |
*f64 |
No description. |
Metadata |
*string |
No description. |
MetadataFields |
*[]*string |
No description. |
InternalValue |
ComputeSubnetworkLogConfig |
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 AggregationIntervalInput() *string
- Type: *string
func FilterExprInput() *string
- Type: *string
func FlowSamplingInput() *f64
- Type: *f64
func MetadataFieldsInput() *[]*string
- Type: *[]*string
func MetadataInput() *string
- Type: *string
func AggregationInterval() *string
- Type: *string
func FilterExpr() *string
- Type: *string
func FlowSampling() *f64
- Type: *f64
func Metadata() *string
- Type: *string
func MetadataFields() *[]*string
- Type: *[]*string
func InternalValue() ComputeSubnetworkLogConfig
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.NewComputeSubnetworkSecondaryIpRangeList(terraformResource IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) ComputeSubnetworkSecondaryIpRangeList
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. |
wrapsSet |
*bool |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: github.com/hashicorp/terraform-cdk-go/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. |
func AllWithMapKey(mapKeyAttributeName *string) DynamicListTerraformIterator
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
- Type: *string
func ComputeFqn() *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 Get(index *f64) ComputeSubnetworkSecondaryIpRangeOutputReference
- Type: *f64
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 |
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 InternalValue() interface{}
- Type: interface{}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.NewComputeSubnetworkSecondaryIpRangeOutputReference(terraformResource IInterpolatingParent, terraformAttribute *string, complexObjectIndex *f64, complexObjectIsFromSet *bool) ComputeSubnetworkSecondaryIpRangeOutputReference
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. |
complexObjectIndex |
*f64 |
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: github.com/hashicorp/terraform-cdk-go/cdktf.IInterpolatingParent
The parent resource.
- Type: *string
The attribute on the parent resource this class is referencing.
- Type: *f64
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. |
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 ResetIpCidrRange()
func 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 |
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 IpCidrRangeInput() *string
- Type: *string
func RangeNameInput() *string
- Type: *string
func ReservedInternalRangeInput() *string
- Type: *string
func IpCidrRange() *string
- Type: *string
func RangeName() *string
- Type: *string
func ReservedInternalRange() *string
- Type: *string
func InternalValue() interface{}
- Type: interface{}
import "github.com/cdktf/cdktf-provider-google-go/google/v14/computesubnetwork"
computesubnetwork.NewComputeSubnetworkTimeoutsOutputReference(terraformResource IInterpolatingParent, terraformAttribute *string) ComputeSubnetworkTimeoutsOutputReference
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{}