Documentation ¶
Index ¶
- type Network
- type NetworkArgs
- type NetworkArray
- type NetworkArrayInput
- type NetworkArrayOutput
- type NetworkInput
- type NetworkMap
- type NetworkMapInput
- type NetworkMapOutput
- type NetworkOutput
- func (o NetworkOutput) CreateTime() pulumi.StringOutput
- func (o NetworkOutput) Description() pulumi.StringPtrOutput
- func (o NetworkOutput) EffectiveLabels() pulumi.StringMapOutput
- func (NetworkOutput) ElementType() reflect.Type
- func (o NetworkOutput) Labels() pulumi.StringMapOutput
- func (o NetworkOutput) Location() pulumi.StringOutput
- func (o NetworkOutput) Mtu() pulumi.IntPtrOutput
- func (o NetworkOutput) Name() pulumi.StringOutput
- func (o NetworkOutput) NetworkId() pulumi.StringOutput
- func (o NetworkOutput) Project() pulumi.StringOutput
- func (o NetworkOutput) PulumiLabels() pulumi.StringMapOutput
- func (o NetworkOutput) ToNetworkOutput() NetworkOutput
- func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
- func (o NetworkOutput) UpdateTime() pulumi.StringOutput
- func (o NetworkOutput) Zone() pulumi.StringOutput
- type NetworkState
- type Subnet
- type SubnetArgs
- type SubnetArray
- type SubnetArrayInput
- type SubnetArrayOutput
- type SubnetInput
- type SubnetMap
- type SubnetMapInput
- type SubnetMapOutput
- type SubnetOutput
- func (o SubnetOutput) CreateTime() pulumi.StringOutput
- func (o SubnetOutput) Description() pulumi.StringPtrOutput
- func (o SubnetOutput) EffectiveLabels() pulumi.StringMapOutput
- func (SubnetOutput) ElementType() reflect.Type
- func (o SubnetOutput) Ipv4Cidrs() pulumi.StringArrayOutput
- func (o SubnetOutput) Ipv6Cidrs() pulumi.StringArrayOutput
- func (o SubnetOutput) Labels() pulumi.StringMapOutput
- func (o SubnetOutput) Location() pulumi.StringOutput
- func (o SubnetOutput) Name() pulumi.StringOutput
- func (o SubnetOutput) Network() pulumi.StringOutput
- func (o SubnetOutput) Project() pulumi.StringOutput
- func (o SubnetOutput) PulumiLabels() pulumi.StringMapOutput
- func (o SubnetOutput) State() pulumi.StringOutput
- func (o SubnetOutput) SubnetId() pulumi.StringOutput
- func (o SubnetOutput) ToSubnetOutput() SubnetOutput
- func (o SubnetOutput) ToSubnetOutputWithContext(ctx context.Context) SubnetOutput
- func (o SubnetOutput) UpdateTime() pulumi.StringOutput
- func (o SubnetOutput) VlanId() pulumi.IntOutput
- func (o SubnetOutput) Zone() pulumi.StringOutput
- type SubnetState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct { pulumi.CustomResourceState // The time when the subnet was created. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. CreateTime pulumi.StringOutput `pulumi:"createTime"` // A free-text description of the resource. Max length 1024 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. EffectiveLabels pulumi.StringMapOutput `pulumi:"effectiveLabels"` // Labels associated with this resource. // // **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. // Please refer to the field `effectiveLabels` for all of the labels present on the resource. Labels pulumi.StringMapOutput `pulumi:"labels"` // The Google Cloud region to which the target Distributed Cloud Edge zone belongs. Location pulumi.StringOutput `pulumi:"location"` // IP (L3) MTU value of the network. Default value is `1500`. Possible values are: `1500`, `9000`. Mtu pulumi.IntPtrOutput `pulumi:"mtu"` // The canonical name of this resource, with format // `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}` Name pulumi.StringOutput `pulumi:"name"` // A unique ID that identifies this network. // // *** NetworkId pulumi.StringOutput `pulumi:"networkId"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The combination of labels configured directly on the resource // and default labels configured on the provider. PulumiLabels pulumi.StringMapOutput `pulumi:"pulumiLabels"` // The time when the subnet was last updated. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. UpdateTime pulumi.StringOutput `pulumi:"updateTime"` // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringOutput `pulumi:"zone"` }
A Distributed Cloud Edge network, which provides L3 isolation within a zone.
To get more information about Network, see:
* [API documentation](https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/network/rest/v1/projects.locations.zones.networks) * How-to Guides
- [Create and manage networks](https://cloud.google.com/distributed-cloud/edge/latest/docs/networks#api)
## Example Usage
### Edgenetwork Network
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/edgenetwork" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{ NetworkId: pulumi.String("example-network"), Location: pulumi.String("us-west1"), Zone: pulumi.String(""), Description: pulumi.String("Example network."), Mtu: pulumi.Int(9000), Labels: pulumi.StringMap{ "environment": pulumi.String("dev"), }, }) if err != nil { return err } return nil }) }
```
## Import
Network can be imported using any of these accepted formats:
* `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}`
* `{{project}}/{{location}}/{{zone}}/{{network_id}}`
* `{{location}}/{{zone}}/{{network_id}}`
* `{{location}}/{{network_id}}`
* `{{name}}`
When using the `pulumi import` command, Network can be imported using one of the formats above. For example:
```sh $ pulumi import gcp:edgenetwork/network:Network default projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}} ```
```sh $ pulumi import gcp:edgenetwork/network:Network default {{project}}/{{location}}/{{zone}}/{{network_id}} ```
```sh $ pulumi import gcp:edgenetwork/network:Network default {{location}}/{{zone}}/{{network_id}} ```
```sh $ pulumi import gcp:edgenetwork/network:Network default {{location}}/{{network_id}} ```
```sh $ pulumi import gcp:edgenetwork/network:Network default {{name}} ```
func GetNetwork ¶
func GetNetwork(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NetworkState, opts ...pulumi.ResourceOption) (*Network, error)
GetNetwork gets an existing Network resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNetwork ¶
func NewNetwork(ctx *pulumi.Context, name string, args *NetworkArgs, opts ...pulumi.ResourceOption) (*Network, error)
NewNetwork registers a new resource with the given unique name, arguments, and options.
func (*Network) ElementType ¶
func (*Network) ToNetworkOutput ¶
func (i *Network) ToNetworkOutput() NetworkOutput
func (*Network) ToNetworkOutputWithContext ¶
func (i *Network) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
type NetworkArgs ¶
type NetworkArgs struct { // A free-text description of the resource. Max length 1024 characters. Description pulumi.StringPtrInput // Labels associated with this resource. // // **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. // Please refer to the field `effectiveLabels` for all of the labels present on the resource. Labels pulumi.StringMapInput // The Google Cloud region to which the target Distributed Cloud Edge zone belongs. Location pulumi.StringInput // IP (L3) MTU value of the network. Default value is `1500`. Possible values are: `1500`, `9000`. Mtu pulumi.IntPtrInput // A unique ID that identifies this network. // // *** NetworkId pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringInput }
The set of arguments for constructing a Network resource.
func (NetworkArgs) ElementType ¶
func (NetworkArgs) ElementType() reflect.Type
type NetworkArray ¶
type NetworkArray []NetworkInput
func (NetworkArray) ElementType ¶
func (NetworkArray) ElementType() reflect.Type
func (NetworkArray) ToNetworkArrayOutput ¶
func (i NetworkArray) ToNetworkArrayOutput() NetworkArrayOutput
func (NetworkArray) ToNetworkArrayOutputWithContext ¶
func (i NetworkArray) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput
type NetworkArrayInput ¶
type NetworkArrayInput interface { pulumi.Input ToNetworkArrayOutput() NetworkArrayOutput ToNetworkArrayOutputWithContext(context.Context) NetworkArrayOutput }
NetworkArrayInput is an input type that accepts NetworkArray and NetworkArrayOutput values. You can construct a concrete instance of `NetworkArrayInput` via:
NetworkArray{ NetworkArgs{...} }
type NetworkArrayOutput ¶
type NetworkArrayOutput struct{ *pulumi.OutputState }
func (NetworkArrayOutput) ElementType ¶
func (NetworkArrayOutput) ElementType() reflect.Type
func (NetworkArrayOutput) Index ¶
func (o NetworkArrayOutput) Index(i pulumi.IntInput) NetworkOutput
func (NetworkArrayOutput) ToNetworkArrayOutput ¶
func (o NetworkArrayOutput) ToNetworkArrayOutput() NetworkArrayOutput
func (NetworkArrayOutput) ToNetworkArrayOutputWithContext ¶
func (o NetworkArrayOutput) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput
type NetworkInput ¶
type NetworkInput interface { pulumi.Input ToNetworkOutput() NetworkOutput ToNetworkOutputWithContext(ctx context.Context) NetworkOutput }
type NetworkMap ¶
type NetworkMap map[string]NetworkInput
func (NetworkMap) ElementType ¶
func (NetworkMap) ElementType() reflect.Type
func (NetworkMap) ToNetworkMapOutput ¶
func (i NetworkMap) ToNetworkMapOutput() NetworkMapOutput
func (NetworkMap) ToNetworkMapOutputWithContext ¶
func (i NetworkMap) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput
type NetworkMapInput ¶
type NetworkMapInput interface { pulumi.Input ToNetworkMapOutput() NetworkMapOutput ToNetworkMapOutputWithContext(context.Context) NetworkMapOutput }
NetworkMapInput is an input type that accepts NetworkMap and NetworkMapOutput values. You can construct a concrete instance of `NetworkMapInput` via:
NetworkMap{ "key": NetworkArgs{...} }
type NetworkMapOutput ¶
type NetworkMapOutput struct{ *pulumi.OutputState }
func (NetworkMapOutput) ElementType ¶
func (NetworkMapOutput) ElementType() reflect.Type
func (NetworkMapOutput) MapIndex ¶
func (o NetworkMapOutput) MapIndex(k pulumi.StringInput) NetworkOutput
func (NetworkMapOutput) ToNetworkMapOutput ¶
func (o NetworkMapOutput) ToNetworkMapOutput() NetworkMapOutput
func (NetworkMapOutput) ToNetworkMapOutputWithContext ¶
func (o NetworkMapOutput) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput
type NetworkOutput ¶
type NetworkOutput struct{ *pulumi.OutputState }
func (NetworkOutput) CreateTime ¶
func (o NetworkOutput) CreateTime() pulumi.StringOutput
The time when the subnet was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
func (NetworkOutput) Description ¶
func (o NetworkOutput) Description() pulumi.StringPtrOutput
A free-text description of the resource. Max length 1024 characters.
func (NetworkOutput) EffectiveLabels ¶
func (o NetworkOutput) EffectiveLabels() pulumi.StringMapOutput
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
func (NetworkOutput) ElementType ¶
func (NetworkOutput) ElementType() reflect.Type
func (NetworkOutput) Labels ¶
func (o NetworkOutput) Labels() pulumi.StringMapOutput
Labels associated with this resource.
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effectiveLabels` for all of the labels present on the resource.
func (NetworkOutput) Location ¶
func (o NetworkOutput) Location() pulumi.StringOutput
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
func (NetworkOutput) Mtu ¶
func (o NetworkOutput) Mtu() pulumi.IntPtrOutput
IP (L3) MTU value of the network. Default value is `1500`. Possible values are: `1500`, `9000`.
func (NetworkOutput) Name ¶
func (o NetworkOutput) Name() pulumi.StringOutput
The canonical name of this resource, with format `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}`
func (NetworkOutput) NetworkId ¶
func (o NetworkOutput) NetworkId() pulumi.StringOutput
A unique ID that identifies this network.
***
func (NetworkOutput) Project ¶
func (o NetworkOutput) Project() pulumi.StringOutput
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
func (NetworkOutput) PulumiLabels ¶
func (o NetworkOutput) PulumiLabels() pulumi.StringMapOutput
The combination of labels configured directly on the resource and default labels configured on the provider.
func (NetworkOutput) ToNetworkOutput ¶
func (o NetworkOutput) ToNetworkOutput() NetworkOutput
func (NetworkOutput) ToNetworkOutputWithContext ¶
func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
func (NetworkOutput) UpdateTime ¶
func (o NetworkOutput) UpdateTime() pulumi.StringOutput
The time when the subnet was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
func (NetworkOutput) Zone ¶
func (o NetworkOutput) Zone() pulumi.StringOutput
The name of the target Distributed Cloud Edge zone.
type NetworkState ¶
type NetworkState struct { // The time when the subnet was created. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. CreateTime pulumi.StringPtrInput // A free-text description of the resource. Max length 1024 characters. Description pulumi.StringPtrInput // All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. EffectiveLabels pulumi.StringMapInput // Labels associated with this resource. // // **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. // Please refer to the field `effectiveLabels` for all of the labels present on the resource. Labels pulumi.StringMapInput // The Google Cloud region to which the target Distributed Cloud Edge zone belongs. Location pulumi.StringPtrInput // IP (L3) MTU value of the network. Default value is `1500`. Possible values are: `1500`, `9000`. Mtu pulumi.IntPtrInput // The canonical name of this resource, with format // `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}` Name pulumi.StringPtrInput // A unique ID that identifies this network. // // *** NetworkId pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The combination of labels configured directly on the resource // and default labels configured on the provider. PulumiLabels pulumi.StringMapInput // The time when the subnet was last updated. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. UpdateTime pulumi.StringPtrInput // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringPtrInput }
func (NetworkState) ElementType ¶
func (NetworkState) ElementType() reflect.Type
type Subnet ¶
type Subnet struct { pulumi.CustomResourceState // The time when the subnet was created. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. CreateTime pulumi.StringOutput `pulumi:"createTime"` // A free-text description of the resource. Max length 1024 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. EffectiveLabels pulumi.StringMapOutput `pulumi:"effectiveLabels"` // The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format. Ipv4Cidrs pulumi.StringArrayOutput `pulumi:"ipv4Cidrs"` // The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format. Ipv6Cidrs pulumi.StringArrayOutput `pulumi:"ipv6Cidrs"` // Labels associated with this resource. // // **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. // Please refer to the field `effectiveLabels` for all of the labels present on the resource. Labels pulumi.StringMapOutput `pulumi:"labels"` // The Google Cloud region to which the target Distributed Cloud Edge zone belongs. Location pulumi.StringOutput `pulumi:"location"` // The canonical name of this resource, with format // `projects/{{project}}/locations/{{location}}/zones/{{zone}}/subnets/{{subnet_id}}` Name pulumi.StringOutput `pulumi:"name"` // The ID of the network to which this router belongs. // Must be of the form: `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}` Network pulumi.StringOutput `pulumi:"network"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The combination of labels configured directly on the resource // and default labels configured on the provider. PulumiLabels pulumi.StringMapOutput `pulumi:"pulumiLabels"` // Current stage of the resource to the device by config push. State pulumi.StringOutput `pulumi:"state"` // A unique ID that identifies this subnet. // // *** SubnetId pulumi.StringOutput `pulumi:"subnetId"` // The time when the subnet was last updated. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. UpdateTime pulumi.StringOutput `pulumi:"updateTime"` // VLAN ID for this subnetwork. If not specified, one is assigned automatically. VlanId pulumi.IntOutput `pulumi:"vlanId"` // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringOutput `pulumi:"zone"` }
A Distributed Cloud Edge subnet, which provides L2 isolation within a network.
To get more information about Subnet, see:
* [API documentation](https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/network/rest/v1/projects.locations.zones.subnets) * How-to Guides
- [Create and manage subnetworks](https://cloud.google.com/distributed-cloud/edge/latest/docs/subnetworks#api)
## Example Usage
### Edgenetwork Subnet
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/edgenetwork" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleNetwork, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{ NetworkId: pulumi.String("example-network"), Location: pulumi.String("us-west1"), Zone: pulumi.String(""), Description: pulumi.String("Example network."), Mtu: pulumi.Int(9000), }) if err != nil { return err } _, err = edgenetwork.NewSubnet(ctx, "example_subnet", &edgenetwork.SubnetArgs{ SubnetId: pulumi.String("example-subnet"), Location: pulumi.String("us-west1"), Zone: pulumi.String(""), Description: pulumi.String("Example subnet."), Network: exampleNetwork.ID(), Ipv4Cidrs: pulumi.StringArray{ pulumi.String("4.4.4.1/24"), }, Labels: pulumi.StringMap{ "environment": pulumi.String("dev"), }, }) if err != nil { return err } return nil }) }
``` ### Edgenetwork Subnet With Vlan Id
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/edgenetwork" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleNetwork, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{ NetworkId: pulumi.String("example-network"), Location: pulumi.String("us-west1"), Zone: pulumi.String(""), Description: pulumi.String("Example network."), Mtu: pulumi.Int(9000), }) if err != nil { return err } _, err = edgenetwork.NewSubnet(ctx, "example_subnet_with_vlan_id", &edgenetwork.SubnetArgs{ SubnetId: pulumi.String("example-subnet-with-vlan-id"), Location: pulumi.String("us-west1"), Zone: pulumi.String(""), Description: pulumi.String("Example subnet with VLAN ID."), Network: exampleNetwork.ID(), Ipv6Cidrs: pulumi.StringArray{ pulumi.String("4444:4444:4444:4444::1/64"), }, VlanId: pulumi.Int(44), Labels: pulumi.StringMap{ "environment": pulumi.String("dev"), }, }) if err != nil { return err } return nil }) }
```
## Import
Subnet can be imported using any of these accepted formats:
* `projects/{{project}}/locations/{{location}}/zones/{{zone}}/subnets/{{subnet_id}}`
* `{{project}}/{{location}}/{{zone}}/{{subnet_id}}`
* `{{location}}/{{zone}}/{{subnet_id}}`
* `{{location}}/{{subnet_id}}`
* `{{name}}`
When using the `pulumi import` command, Subnet can be imported using one of the formats above. For example:
```sh $ pulumi import gcp:edgenetwork/subnet:Subnet default projects/{{project}}/locations/{{location}}/zones/{{zone}}/subnets/{{subnet_id}} ```
```sh $ pulumi import gcp:edgenetwork/subnet:Subnet default {{project}}/{{location}}/{{zone}}/{{subnet_id}} ```
```sh $ pulumi import gcp:edgenetwork/subnet:Subnet default {{location}}/{{zone}}/{{subnet_id}} ```
```sh $ pulumi import gcp:edgenetwork/subnet:Subnet default {{location}}/{{subnet_id}} ```
```sh $ pulumi import gcp:edgenetwork/subnet:Subnet default {{name}} ```
func GetSubnet ¶
func GetSubnet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SubnetState, opts ...pulumi.ResourceOption) (*Subnet, error)
GetSubnet gets an existing Subnet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSubnet ¶
func NewSubnet(ctx *pulumi.Context, name string, args *SubnetArgs, opts ...pulumi.ResourceOption) (*Subnet, error)
NewSubnet registers a new resource with the given unique name, arguments, and options.
func (*Subnet) ElementType ¶
func (*Subnet) ToSubnetOutput ¶
func (i *Subnet) ToSubnetOutput() SubnetOutput
func (*Subnet) ToSubnetOutputWithContext ¶
func (i *Subnet) ToSubnetOutputWithContext(ctx context.Context) SubnetOutput
type SubnetArgs ¶
type SubnetArgs struct { // A free-text description of the resource. Max length 1024 characters. Description pulumi.StringPtrInput // The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format. Ipv4Cidrs pulumi.StringArrayInput // The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format. Ipv6Cidrs pulumi.StringArrayInput // Labels associated with this resource. // // **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. // Please refer to the field `effectiveLabels` for all of the labels present on the resource. Labels pulumi.StringMapInput // The Google Cloud region to which the target Distributed Cloud Edge zone belongs. Location pulumi.StringInput // The ID of the network to which this router belongs. // Must be of the form: `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}` Network pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // A unique ID that identifies this subnet. // // *** SubnetId pulumi.StringInput // VLAN ID for this subnetwork. If not specified, one is assigned automatically. VlanId pulumi.IntPtrInput // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringInput }
The set of arguments for constructing a Subnet resource.
func (SubnetArgs) ElementType ¶
func (SubnetArgs) ElementType() reflect.Type
type SubnetArray ¶
type SubnetArray []SubnetInput
func (SubnetArray) ElementType ¶
func (SubnetArray) ElementType() reflect.Type
func (SubnetArray) ToSubnetArrayOutput ¶
func (i SubnetArray) ToSubnetArrayOutput() SubnetArrayOutput
func (SubnetArray) ToSubnetArrayOutputWithContext ¶
func (i SubnetArray) ToSubnetArrayOutputWithContext(ctx context.Context) SubnetArrayOutput
type SubnetArrayInput ¶
type SubnetArrayInput interface { pulumi.Input ToSubnetArrayOutput() SubnetArrayOutput ToSubnetArrayOutputWithContext(context.Context) SubnetArrayOutput }
SubnetArrayInput is an input type that accepts SubnetArray and SubnetArrayOutput values. You can construct a concrete instance of `SubnetArrayInput` via:
SubnetArray{ SubnetArgs{...} }
type SubnetArrayOutput ¶
type SubnetArrayOutput struct{ *pulumi.OutputState }
func (SubnetArrayOutput) ElementType ¶
func (SubnetArrayOutput) ElementType() reflect.Type
func (SubnetArrayOutput) Index ¶
func (o SubnetArrayOutput) Index(i pulumi.IntInput) SubnetOutput
func (SubnetArrayOutput) ToSubnetArrayOutput ¶
func (o SubnetArrayOutput) ToSubnetArrayOutput() SubnetArrayOutput
func (SubnetArrayOutput) ToSubnetArrayOutputWithContext ¶
func (o SubnetArrayOutput) ToSubnetArrayOutputWithContext(ctx context.Context) SubnetArrayOutput
type SubnetInput ¶
type SubnetInput interface { pulumi.Input ToSubnetOutput() SubnetOutput ToSubnetOutputWithContext(ctx context.Context) SubnetOutput }
type SubnetMap ¶
type SubnetMap map[string]SubnetInput
func (SubnetMap) ElementType ¶
func (SubnetMap) ToSubnetMapOutput ¶
func (i SubnetMap) ToSubnetMapOutput() SubnetMapOutput
func (SubnetMap) ToSubnetMapOutputWithContext ¶
func (i SubnetMap) ToSubnetMapOutputWithContext(ctx context.Context) SubnetMapOutput
type SubnetMapInput ¶
type SubnetMapInput interface { pulumi.Input ToSubnetMapOutput() SubnetMapOutput ToSubnetMapOutputWithContext(context.Context) SubnetMapOutput }
SubnetMapInput is an input type that accepts SubnetMap and SubnetMapOutput values. You can construct a concrete instance of `SubnetMapInput` via:
SubnetMap{ "key": SubnetArgs{...} }
type SubnetMapOutput ¶
type SubnetMapOutput struct{ *pulumi.OutputState }
func (SubnetMapOutput) ElementType ¶
func (SubnetMapOutput) ElementType() reflect.Type
func (SubnetMapOutput) MapIndex ¶
func (o SubnetMapOutput) MapIndex(k pulumi.StringInput) SubnetOutput
func (SubnetMapOutput) ToSubnetMapOutput ¶
func (o SubnetMapOutput) ToSubnetMapOutput() SubnetMapOutput
func (SubnetMapOutput) ToSubnetMapOutputWithContext ¶
func (o SubnetMapOutput) ToSubnetMapOutputWithContext(ctx context.Context) SubnetMapOutput
type SubnetOutput ¶
type SubnetOutput struct{ *pulumi.OutputState }
func (SubnetOutput) CreateTime ¶
func (o SubnetOutput) CreateTime() pulumi.StringOutput
The time when the subnet was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
func (SubnetOutput) Description ¶
func (o SubnetOutput) Description() pulumi.StringPtrOutput
A free-text description of the resource. Max length 1024 characters.
func (SubnetOutput) EffectiveLabels ¶
func (o SubnetOutput) EffectiveLabels() pulumi.StringMapOutput
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
func (SubnetOutput) ElementType ¶
func (SubnetOutput) ElementType() reflect.Type
func (SubnetOutput) Ipv4Cidrs ¶
func (o SubnetOutput) Ipv4Cidrs() pulumi.StringArrayOutput
The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format.
func (SubnetOutput) Ipv6Cidrs ¶
func (o SubnetOutput) Ipv6Cidrs() pulumi.StringArrayOutput
The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format.
func (SubnetOutput) Labels ¶
func (o SubnetOutput) Labels() pulumi.StringMapOutput
Labels associated with this resource.
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effectiveLabels` for all of the labels present on the resource.
func (SubnetOutput) Location ¶
func (o SubnetOutput) Location() pulumi.StringOutput
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
func (SubnetOutput) Name ¶
func (o SubnetOutput) Name() pulumi.StringOutput
The canonical name of this resource, with format `projects/{{project}}/locations/{{location}}/zones/{{zone}}/subnets/{{subnet_id}}`
func (SubnetOutput) Network ¶
func (o SubnetOutput) Network() pulumi.StringOutput
The ID of the network to which this router belongs. Must be of the form: `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}`
func (SubnetOutput) Project ¶
func (o SubnetOutput) Project() pulumi.StringOutput
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
func (SubnetOutput) PulumiLabels ¶
func (o SubnetOutput) PulumiLabels() pulumi.StringMapOutput
The combination of labels configured directly on the resource and default labels configured on the provider.
func (SubnetOutput) State ¶
func (o SubnetOutput) State() pulumi.StringOutput
Current stage of the resource to the device by config push.
func (SubnetOutput) SubnetId ¶
func (o SubnetOutput) SubnetId() pulumi.StringOutput
A unique ID that identifies this subnet.
***
func (SubnetOutput) ToSubnetOutput ¶
func (o SubnetOutput) ToSubnetOutput() SubnetOutput
func (SubnetOutput) ToSubnetOutputWithContext ¶
func (o SubnetOutput) ToSubnetOutputWithContext(ctx context.Context) SubnetOutput
func (SubnetOutput) UpdateTime ¶
func (o SubnetOutput) UpdateTime() pulumi.StringOutput
The time when the subnet was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
func (SubnetOutput) VlanId ¶
func (o SubnetOutput) VlanId() pulumi.IntOutput
VLAN ID for this subnetwork. If not specified, one is assigned automatically.
func (SubnetOutput) Zone ¶
func (o SubnetOutput) Zone() pulumi.StringOutput
The name of the target Distributed Cloud Edge zone.
type SubnetState ¶
type SubnetState struct { // The time when the subnet was created. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. CreateTime pulumi.StringPtrInput // A free-text description of the resource. Max length 1024 characters. Description pulumi.StringPtrInput // All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. EffectiveLabels pulumi.StringMapInput // The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format. Ipv4Cidrs pulumi.StringArrayInput // The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format. Ipv6Cidrs pulumi.StringArrayInput // Labels associated with this resource. // // **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. // Please refer to the field `effectiveLabels` for all of the labels present on the resource. Labels pulumi.StringMapInput // The Google Cloud region to which the target Distributed Cloud Edge zone belongs. Location pulumi.StringPtrInput // The canonical name of this resource, with format // `projects/{{project}}/locations/{{location}}/zones/{{zone}}/subnets/{{subnet_id}}` Name pulumi.StringPtrInput // The ID of the network to which this router belongs. // Must be of the form: `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}` Network pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The combination of labels configured directly on the resource // and default labels configured on the provider. PulumiLabels pulumi.StringMapInput // Current stage of the resource to the device by config push. State pulumi.StringPtrInput // A unique ID that identifies this subnet. // // *** SubnetId pulumi.StringPtrInput // The time when the subnet was last updated. // A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine // fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`. UpdateTime pulumi.StringPtrInput // VLAN ID for this subnetwork. If not specified, one is assigned automatically. VlanId pulumi.IntPtrInput // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringPtrInput }
func (SubnetState) ElementType ¶
func (SubnetState) ElementType() reflect.Type