import * as pulumi from "@pulumi/pulumi"; import * as enums from "../../types/enums"; /** * Creates a new network peering between the peer network and VMware Engine network provided in a `NetworkPeering` resource. * Auto-naming is currently not supported for this resource. */ export declare class NetworkPeering extends pulumi.CustomResource { /** * Get an existing NetworkPeering resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): NetworkPeering; /** * Returns true if the given object is an instance of NetworkPeering. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NetworkPeering; /** * Creation time of this resource. */ readonly createTime: pulumi.Output; /** * Optional. User-provided description for this network peering. */ readonly description: pulumi.Output; /** * Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'. */ readonly exchangeSubnetRoutes: pulumi.Output; /** * Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true. */ readonly exportCustomRoutes: pulumi.Output; /** * Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field. */ readonly exportCustomRoutesWithPublicIp: pulumi.Output; /** * Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true. */ readonly importCustomRoutes: pulumi.Output; /** * Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and are not controlled by this field. */ readonly importCustomRoutesWithPublicIp: pulumi.Output; /** * The resource name of the network peering. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/global/networkPeerings/my-peering` */ readonly name: pulumi.Output; /** * Required. The user-provided identifier of the new `NetworkPeering`. This identifier must be unique among `NetworkPeering` resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements: * Only contains 1-63 alphanumeric characters and hyphens * Begins with an alphabetical character * Ends with a non-hyphen character * Not formatted as a UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) */ readonly networkPeeringId: pulumi.Output; /** * Optional. Maximum transmission unit (MTU) in bytes. The default value is `1500`. If a value of `0` is provided for this field, VMware Engine uses the default value instead. */ readonly peerMtu: pulumi.Output; /** * The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form: `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`. Otherwise specify the name in the form: `projects/{project}/global/networks/{network_id}`, where `{project}` can either be a project number or a project ID. */ readonly peerNetwork: pulumi.Output; /** * The type of the network to peer with the VMware Engine network. */ readonly peerNetworkType: pulumi.Output; readonly project: pulumi.Output; /** * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ readonly requestId: pulumi.Output; /** * State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate. */ readonly state: pulumi.Output; /** * Output Only. Details about the current state of the network peering. */ readonly stateDetails: pulumi.Output; /** * System-generated unique identifier for the resource. */ readonly uid: pulumi.Output; /** * Last update time of this resource. */ readonly updateTime: pulumi.Output; /** * The relative resource name of the VMware Engine network. Specify the name in the following form: `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` where `{project}` can either be a project number or a project ID. */ readonly vmwareEngineNetwork: pulumi.Output; /** * Create a NetworkPeering resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NetworkPeeringArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a NetworkPeering resource. */ export interface NetworkPeeringArgs { /** * Optional. User-provided description for this network peering. */ description?: pulumi.Input; /** * Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'. */ exchangeSubnetRoutes?: pulumi.Input; /** * Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true. */ exportCustomRoutes?: pulumi.Input; /** * Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field. */ exportCustomRoutesWithPublicIp?: pulumi.Input; /** * Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true. */ importCustomRoutes?: pulumi.Input; /** * Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and are not controlled by this field. */ importCustomRoutesWithPublicIp?: pulumi.Input; /** * Required. The user-provided identifier of the new `NetworkPeering`. This identifier must be unique among `NetworkPeering` resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements: * Only contains 1-63 alphanumeric characters and hyphens * Begins with an alphabetical character * Ends with a non-hyphen character * Not formatted as a UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) */ networkPeeringId: pulumi.Input; /** * Optional. Maximum transmission unit (MTU) in bytes. The default value is `1500`. If a value of `0` is provided for this field, VMware Engine uses the default value instead. */ peerMtu?: pulumi.Input; /** * The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form: `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`. Otherwise specify the name in the form: `projects/{project}/global/networks/{network_id}`, where `{project}` can either be a project number or a project ID. */ peerNetwork: pulumi.Input; /** * The type of the network to peer with the VMware Engine network. */ peerNetworkType: pulumi.Input; project?: pulumi.Input; /** * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ requestId?: pulumi.Input; /** * The relative resource name of the VMware Engine network. Specify the name in the following form: `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` where `{project}` can either be a project number or a project ID. */ vmwareEngineNetwork: pulumi.Input; }