Documentation ¶
Index ¶
- type InterconnectAttachment
- type InterconnectAttachmentArgs
- type InterconnectAttachmentArray
- func (InterconnectAttachmentArray) ElementType() reflect.Type
- func (i InterconnectAttachmentArray) ToInterconnectAttachmentArrayOutput() InterconnectAttachmentArrayOutput
- func (i InterconnectAttachmentArray) ToInterconnectAttachmentArrayOutputWithContext(ctx context.Context) InterconnectAttachmentArrayOutput
- type InterconnectAttachmentArrayInput
- type InterconnectAttachmentArrayOutput
- func (InterconnectAttachmentArrayOutput) ElementType() reflect.Type
- func (o InterconnectAttachmentArrayOutput) Index(i pulumi.IntInput) InterconnectAttachmentOutput
- func (o InterconnectAttachmentArrayOutput) ToInterconnectAttachmentArrayOutput() InterconnectAttachmentArrayOutput
- func (o InterconnectAttachmentArrayOutput) ToInterconnectAttachmentArrayOutputWithContext(ctx context.Context) InterconnectAttachmentArrayOutput
- type InterconnectAttachmentInput
- type InterconnectAttachmentMap
- type InterconnectAttachmentMapInput
- type InterconnectAttachmentMapOutput
- func (InterconnectAttachmentMapOutput) ElementType() reflect.Type
- func (o InterconnectAttachmentMapOutput) MapIndex(k pulumi.StringInput) InterconnectAttachmentOutput
- func (o InterconnectAttachmentMapOutput) ToInterconnectAttachmentMapOutput() InterconnectAttachmentMapOutput
- func (o InterconnectAttachmentMapOutput) ToInterconnectAttachmentMapOutputWithContext(ctx context.Context) InterconnectAttachmentMapOutput
- type InterconnectAttachmentOutput
- func (o InterconnectAttachmentOutput) CreateTime() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) Description() pulumi.StringPtrOutput
- func (o InterconnectAttachmentOutput) EffectiveLabels() pulumi.StringMapOutput
- func (InterconnectAttachmentOutput) ElementType() reflect.Type
- func (o InterconnectAttachmentOutput) Interconnect() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) InterconnectAttachmentId() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) Labels() pulumi.StringMapOutput
- func (o InterconnectAttachmentOutput) Location() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) Mtu() pulumi.IntPtrOutput
- func (o InterconnectAttachmentOutput) Name() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) Network() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) Project() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) PulumiLabels() pulumi.StringMapOutput
- func (o InterconnectAttachmentOutput) ToInterconnectAttachmentOutput() InterconnectAttachmentOutput
- func (o InterconnectAttachmentOutput) ToInterconnectAttachmentOutputWithContext(ctx context.Context) InterconnectAttachmentOutput
- func (o InterconnectAttachmentOutput) UpdateTime() pulumi.StringOutput
- func (o InterconnectAttachmentOutput) VlanId() pulumi.IntOutput
- func (o InterconnectAttachmentOutput) Zone() pulumi.StringOutput
- type InterconnectAttachmentState
- 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 InterconnectAttachment ¶ added in v8.15.0
type InterconnectAttachment struct { pulumi.CustomResourceState // The time when the resource 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 ID of the underlying interconnect that this attachment's traffic will traverse through. Interconnect pulumi.StringOutput `pulumi:"interconnect"` // A unique ID that identifies this interconnect attachment. // // *** InterconnectAttachmentId pulumi.StringOutput `pulumi:"interconnectAttachmentId"` // 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 virtual edge cloud. 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}}/interconnectAttachments/{{interconnect_attachment_id}}` Name pulumi.StringOutput `pulumi:"name"` // The ID of the network to which this interconnect attachment 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"` // The time when the resource 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 provided by user. Must be site-wise unique. VlanId pulumi.IntOutput `pulumi:"vlanId"` // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringOutput `pulumi:"zone"` }
A Distributed Cloud Edge interconnect attachment, which connects routers to the northbound network.
To get more information about InterconnectAttachment, see:
* [API documentation](https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/network/rest/v1/projects.locations.zones.interconnectAttachments) * How-to Guides
- [Create and manage interconnect attachments](https://cloud.google.com/distributed-cloud/edge/latest/docs/attachments#api)
## Example Usage
### Edgenetwork Interconnect Attachment
```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.NewInterconnectAttachment(ctx, "example_interconnect_attachment", &edgenetwork.InterconnectAttachmentArgs{ InterconnectAttachmentId: pulumi.String("example-interconnect-attachment"), Location: pulumi.String("us-west1"), Zone: pulumi.String(""), Description: pulumi.String("Example interconnect attachment."), Network: exampleNetwork.ID(), Interconnect: pulumi.String("11111111-2222-3333-4444-555555555555"), VlanId: pulumi.Int(55), Mtu: pulumi.Int(9000), Labels: pulumi.StringMap{ "environment": pulumi.String("dev"), }, }) if err != nil { return err } return nil }) }
```
## Import
InterconnectAttachment can be imported using any of these accepted formats:
* `projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachment/{{interconnect_attachment_id}}`
* `{{project}}/{{location}}/{{zone}}/{{interconnect_attachment_id}}`
* `{{location}}/{{zone}}/{{interconnect_attachment_id}}`
* `{{location}}/{{interconnect_attachment_id}}`
* `{{name}}`
When using the `pulumi import` command, InterconnectAttachment can be imported using one of the formats above. For example:
```sh $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachment/{{interconnect_attachment_id}} ```
```sh $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{project}}/{{location}}/{{zone}}/{{interconnect_attachment_id}} ```
```sh $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{zone}}/{{interconnect_attachment_id}} ```
```sh $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{interconnect_attachment_id}} ```
```sh $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{name}} ```
func GetInterconnectAttachment ¶ added in v8.15.0
func GetInterconnectAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InterconnectAttachmentState, opts ...pulumi.ResourceOption) (*InterconnectAttachment, error)
GetInterconnectAttachment gets an existing InterconnectAttachment 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 NewInterconnectAttachment ¶ added in v8.15.0
func NewInterconnectAttachment(ctx *pulumi.Context, name string, args *InterconnectAttachmentArgs, opts ...pulumi.ResourceOption) (*InterconnectAttachment, error)
NewInterconnectAttachment registers a new resource with the given unique name, arguments, and options.
func (*InterconnectAttachment) ElementType ¶ added in v8.15.0
func (*InterconnectAttachment) ElementType() reflect.Type
func (*InterconnectAttachment) ToInterconnectAttachmentOutput ¶ added in v8.15.0
func (i *InterconnectAttachment) ToInterconnectAttachmentOutput() InterconnectAttachmentOutput
func (*InterconnectAttachment) ToInterconnectAttachmentOutputWithContext ¶ added in v8.15.0
func (i *InterconnectAttachment) ToInterconnectAttachmentOutputWithContext(ctx context.Context) InterconnectAttachmentOutput
type InterconnectAttachmentArgs ¶ added in v8.15.0
type InterconnectAttachmentArgs struct { // A free-text description of the resource. Max length 1024 characters. Description pulumi.StringPtrInput // The ID of the underlying interconnect that this attachment's traffic will traverse through. Interconnect pulumi.StringInput // A unique ID that identifies this interconnect attachment. // // *** InterconnectAttachmentId pulumi.StringInput // 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 virtual edge cloud. Default value is `1500`. Possible values are: `1500`, `9000`. Mtu pulumi.IntPtrInput // The ID of the network to which this interconnect attachment 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 // VLAN ID provided by user. Must be site-wise unique. VlanId pulumi.IntInput // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringInput }
The set of arguments for constructing a InterconnectAttachment resource.
func (InterconnectAttachmentArgs) ElementType ¶ added in v8.15.0
func (InterconnectAttachmentArgs) ElementType() reflect.Type
type InterconnectAttachmentArray ¶ added in v8.15.0
type InterconnectAttachmentArray []InterconnectAttachmentInput
func (InterconnectAttachmentArray) ElementType ¶ added in v8.15.0
func (InterconnectAttachmentArray) ElementType() reflect.Type
func (InterconnectAttachmentArray) ToInterconnectAttachmentArrayOutput ¶ added in v8.15.0
func (i InterconnectAttachmentArray) ToInterconnectAttachmentArrayOutput() InterconnectAttachmentArrayOutput
func (InterconnectAttachmentArray) ToInterconnectAttachmentArrayOutputWithContext ¶ added in v8.15.0
func (i InterconnectAttachmentArray) ToInterconnectAttachmentArrayOutputWithContext(ctx context.Context) InterconnectAttachmentArrayOutput
type InterconnectAttachmentArrayInput ¶ added in v8.15.0
type InterconnectAttachmentArrayInput interface { pulumi.Input ToInterconnectAttachmentArrayOutput() InterconnectAttachmentArrayOutput ToInterconnectAttachmentArrayOutputWithContext(context.Context) InterconnectAttachmentArrayOutput }
InterconnectAttachmentArrayInput is an input type that accepts InterconnectAttachmentArray and InterconnectAttachmentArrayOutput values. You can construct a concrete instance of `InterconnectAttachmentArrayInput` via:
InterconnectAttachmentArray{ InterconnectAttachmentArgs{...} }
type InterconnectAttachmentArrayOutput ¶ added in v8.15.0
type InterconnectAttachmentArrayOutput struct{ *pulumi.OutputState }
func (InterconnectAttachmentArrayOutput) ElementType ¶ added in v8.15.0
func (InterconnectAttachmentArrayOutput) ElementType() reflect.Type
func (InterconnectAttachmentArrayOutput) Index ¶ added in v8.15.0
func (o InterconnectAttachmentArrayOutput) Index(i pulumi.IntInput) InterconnectAttachmentOutput
func (InterconnectAttachmentArrayOutput) ToInterconnectAttachmentArrayOutput ¶ added in v8.15.0
func (o InterconnectAttachmentArrayOutput) ToInterconnectAttachmentArrayOutput() InterconnectAttachmentArrayOutput
func (InterconnectAttachmentArrayOutput) ToInterconnectAttachmentArrayOutputWithContext ¶ added in v8.15.0
func (o InterconnectAttachmentArrayOutput) ToInterconnectAttachmentArrayOutputWithContext(ctx context.Context) InterconnectAttachmentArrayOutput
type InterconnectAttachmentInput ¶ added in v8.15.0
type InterconnectAttachmentInput interface { pulumi.Input ToInterconnectAttachmentOutput() InterconnectAttachmentOutput ToInterconnectAttachmentOutputWithContext(ctx context.Context) InterconnectAttachmentOutput }
type InterconnectAttachmentMap ¶ added in v8.15.0
type InterconnectAttachmentMap map[string]InterconnectAttachmentInput
func (InterconnectAttachmentMap) ElementType ¶ added in v8.15.0
func (InterconnectAttachmentMap) ElementType() reflect.Type
func (InterconnectAttachmentMap) ToInterconnectAttachmentMapOutput ¶ added in v8.15.0
func (i InterconnectAttachmentMap) ToInterconnectAttachmentMapOutput() InterconnectAttachmentMapOutput
func (InterconnectAttachmentMap) ToInterconnectAttachmentMapOutputWithContext ¶ added in v8.15.0
func (i InterconnectAttachmentMap) ToInterconnectAttachmentMapOutputWithContext(ctx context.Context) InterconnectAttachmentMapOutput
type InterconnectAttachmentMapInput ¶ added in v8.15.0
type InterconnectAttachmentMapInput interface { pulumi.Input ToInterconnectAttachmentMapOutput() InterconnectAttachmentMapOutput ToInterconnectAttachmentMapOutputWithContext(context.Context) InterconnectAttachmentMapOutput }
InterconnectAttachmentMapInput is an input type that accepts InterconnectAttachmentMap and InterconnectAttachmentMapOutput values. You can construct a concrete instance of `InterconnectAttachmentMapInput` via:
InterconnectAttachmentMap{ "key": InterconnectAttachmentArgs{...} }
type InterconnectAttachmentMapOutput ¶ added in v8.15.0
type InterconnectAttachmentMapOutput struct{ *pulumi.OutputState }
func (InterconnectAttachmentMapOutput) ElementType ¶ added in v8.15.0
func (InterconnectAttachmentMapOutput) ElementType() reflect.Type
func (InterconnectAttachmentMapOutput) MapIndex ¶ added in v8.15.0
func (o InterconnectAttachmentMapOutput) MapIndex(k pulumi.StringInput) InterconnectAttachmentOutput
func (InterconnectAttachmentMapOutput) ToInterconnectAttachmentMapOutput ¶ added in v8.15.0
func (o InterconnectAttachmentMapOutput) ToInterconnectAttachmentMapOutput() InterconnectAttachmentMapOutput
func (InterconnectAttachmentMapOutput) ToInterconnectAttachmentMapOutputWithContext ¶ added in v8.15.0
func (o InterconnectAttachmentMapOutput) ToInterconnectAttachmentMapOutputWithContext(ctx context.Context) InterconnectAttachmentMapOutput
type InterconnectAttachmentOutput ¶ added in v8.15.0
type InterconnectAttachmentOutput struct{ *pulumi.OutputState }
func (InterconnectAttachmentOutput) CreateTime ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) CreateTime() pulumi.StringOutput
The time when the resource 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 (InterconnectAttachmentOutput) Description ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Description() pulumi.StringPtrOutput
A free-text description of the resource. Max length 1024 characters.
func (InterconnectAttachmentOutput) EffectiveLabels ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) 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 (InterconnectAttachmentOutput) ElementType ¶ added in v8.15.0
func (InterconnectAttachmentOutput) ElementType() reflect.Type
func (InterconnectAttachmentOutput) Interconnect ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Interconnect() pulumi.StringOutput
The ID of the underlying interconnect that this attachment's traffic will traverse through.
func (InterconnectAttachmentOutput) InterconnectAttachmentId ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) InterconnectAttachmentId() pulumi.StringOutput
A unique ID that identifies this interconnect attachment.
***
func (InterconnectAttachmentOutput) Labels ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) 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 (InterconnectAttachmentOutput) Location ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Location() pulumi.StringOutput
The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
func (InterconnectAttachmentOutput) Mtu ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Mtu() pulumi.IntPtrOutput
IP (L3) MTU value of the virtual edge cloud. Default value is `1500`. Possible values are: `1500`, `9000`.
func (InterconnectAttachmentOutput) Name ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Name() pulumi.StringOutput
The canonical name of this resource, with format `projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}`
func (InterconnectAttachmentOutput) Network ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Network() pulumi.StringOutput
The ID of the network to which this interconnect attachment belongs. Must be of the form: `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}`
func (InterconnectAttachmentOutput) Project ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Project() pulumi.StringOutput
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
func (InterconnectAttachmentOutput) PulumiLabels ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) PulumiLabels() pulumi.StringMapOutput
The combination of labels configured directly on the resource and default labels configured on the provider.
func (InterconnectAttachmentOutput) ToInterconnectAttachmentOutput ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) ToInterconnectAttachmentOutput() InterconnectAttachmentOutput
func (InterconnectAttachmentOutput) ToInterconnectAttachmentOutputWithContext ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) ToInterconnectAttachmentOutputWithContext(ctx context.Context) InterconnectAttachmentOutput
func (InterconnectAttachmentOutput) UpdateTime ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) UpdateTime() pulumi.StringOutput
The time when the resource 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 (InterconnectAttachmentOutput) VlanId ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) VlanId() pulumi.IntOutput
VLAN ID provided by user. Must be site-wise unique.
func (InterconnectAttachmentOutput) Zone ¶ added in v8.15.0
func (o InterconnectAttachmentOutput) Zone() pulumi.StringOutput
The name of the target Distributed Cloud Edge zone.
type InterconnectAttachmentState ¶ added in v8.15.0
type InterconnectAttachmentState struct { // The time when the resource 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 ID of the underlying interconnect that this attachment's traffic will traverse through. Interconnect pulumi.StringPtrInput // A unique ID that identifies this interconnect attachment. // // *** InterconnectAttachmentId 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.StringPtrInput // IP (L3) MTU value of the virtual edge cloud. 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}}/interconnectAttachments/{{interconnect_attachment_id}}` Name pulumi.StringPtrInput // The ID of the network to which this interconnect attachment 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 // The time when the resource 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 provided by user. Must be site-wise unique. VlanId pulumi.IntPtrInput // The name of the target Distributed Cloud Edge zone. Zone pulumi.StringPtrInput }
func (InterconnectAttachmentState) ElementType ¶ added in v8.15.0
func (InterconnectAttachmentState) ElementType() reflect.Type
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