Documentation ¶
Index ¶
- type Args
- type DataArgs
- type DataSource
- type Resource
- func (gcn *Resource) Attributes() googleComputeNetworkAttributes
- func (gcn *Resource) Configuration() interface{}
- func (gcn *Resource) DependOn() terra.Reference
- func (gcn *Resource) Dependencies() terra.Dependencies
- func (gcn *Resource) ImportState(state io.Reader) error
- func (gcn *Resource) LifecycleManagement() *terra.Lifecycle
- func (gcn *Resource) LocalName() string
- func (gcn *Resource) State() (*googleComputeNetworkState, bool)
- func (gcn *Resource) StateMust() *googleComputeNetworkState
- func (gcn *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // AutoCreateSubnetworks: bool, optional AutoCreateSubnetworks terra.BoolValue `hcl:"auto_create_subnetworks,attr"` // DeleteDefaultRoutesOnCreate: bool, optional DeleteDefaultRoutesOnCreate terra.BoolValue `hcl:"delete_default_routes_on_create,attr"` // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // EnableUlaInternalIpv6: bool, optional EnableUlaInternalIpv6 terra.BoolValue `hcl:"enable_ula_internal_ipv6,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // InternalIpv6Range: string, optional InternalIpv6Range terra.StringValue `hcl:"internal_ipv6_range,attr"` // Mtu: number, optional Mtu terra.NumberValue `hcl:"mtu,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // NetworkFirewallPolicyEnforcementOrder: string, optional NetworkFirewallPolicyEnforcementOrder terra.StringValue `hcl:"network_firewall_policy_enforcement_order,attr"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` // RoutingMode: string, optional RoutingMode terra.StringValue `hcl:"routing_mode,attr"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for google_compute_network.
type DataArgs ¶
type DataArgs struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` }
DataArgs contains the configurations for google_compute_network.
type DataSource ¶
DataSource represents the Terraform data resource google_compute_network.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (gcn *DataSource) Attributes() dataGoogleComputeNetworkAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (gcn *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (gcn *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (gcn *DataSource) LocalName() string
LocalName returns the local name for DataSource.
type Resource ¶
type Resource struct { Name string Args Args DependsOn terra.Dependencies Lifecycle *terra.Lifecycle // contains filtered or unexported fields }
Resource represents the Terraform resource google_compute_network.
func (*Resource) Attributes ¶
func (gcn *Resource) Attributes() googleComputeNetworkAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gcn *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gcn *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
type Timeouts ¶
type Timeouts struct { // Create: string, optional Create terra.StringValue `hcl:"create,attr"` // Delete: string, optional Delete terra.StringValue `hcl:"delete,attr"` // Update: string, optional Update terra.StringValue `hcl:"update,attr"` }
type TimeoutsAttributes ¶
type TimeoutsAttributes struct {
// contains filtered or unexported fields
}
func (TimeoutsAttributes) Create ¶
func (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
func (TimeoutsAttributes) InternalRef ¶
func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
func (TimeoutsAttributes) InternalTokens ¶
func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (TimeoutsAttributes) InternalWithRef ¶
func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
func (TimeoutsAttributes) Update ¶
func (t TimeoutsAttributes) Update() terra.StringValue