Module servicenetworking

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

Resources

Others

Resources

Resource Connection

class Connection extends CustomResource

Manages a private VPC connection with a GCP service provider. For more information see the official documentation and API.

Example usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const peeringNetwork = new gcp.compute.Network("peeringNetwork", {});
const privateIpAlloc = new gcp.compute.GlobalAddress("privateIpAlloc", {
    addressType: "INTERNAL",
    network: peeringNetwork.selfLink,
    prefixLength: 16,
    purpose: "VPC_PEERING",
});
const foobar = new gcp.servicenetworking.Connection("foobar", {
    network: peeringNetwork.selfLink,
    reservedPeeringRanges: [privateIpAlloc.name],
    service: "servicenetworking.googleapis.com",
});

This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/service_networking_connection.html.markdown.

constructor

new Connection(name: string, args: ConnectionArgs, opts?: pulumi.CustomResourceOptions)

Create a Connection resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectionState, opts?: pulumi.CustomResourceOptions): Connection

Get an existing Connection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): boolean

Returns true if the given object is an instance of Connection. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property network

public network: pulumi.Output<string>;

Name of VPC network connected with service producers using VPC peering.

property peering

public peering: pulumi.Output<string>;

property reservedPeeringRanges

public reservedPeeringRanges: pulumi.Output<string[]>;

Named IP address range(s) of PEERING type reserved for this service provider. Note that invoking this method with a different range when connection is already established will not reallocate already provisioned service producer subnetworks.

property service

public service: pulumi.Output<string>;

Provider peering service that is managing peering connectivity for a service provider organization. For Google services that support this functionality it is ‘servicenetworking.googleapis.com’.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Others

interface ConnectionArgs

interface ConnectionArgs

The set of arguments for constructing a Connection resource.

property network

network: pulumi.Input<string>;

Name of VPC network connected with service producers using VPC peering.

property reservedPeeringRanges

reservedPeeringRanges: pulumi.Input<pulumi.Input<string>[]>;

Named IP address range(s) of PEERING type reserved for this service provider. Note that invoking this method with a different range when connection is already established will not reallocate already provisioned service producer subnetworks.

property service

service: pulumi.Input<string>;

Provider peering service that is managing peering connectivity for a service provider organization. For Google services that support this functionality it is ‘servicenetworking.googleapis.com’.

interface ConnectionState

interface ConnectionState

Input properties used for looking up and filtering Connection resources.

property network

network?: pulumi.Input<string>;

Name of VPC network connected with service producers using VPC peering.

property peering

peering?: pulumi.Input<string>;

property reservedPeeringRanges

reservedPeeringRanges?: pulumi.Input<pulumi.Input<string>[]>;

Named IP address range(s) of PEERING type reserved for this service provider. Note that invoking this method with a different range when connection is already established will not reallocate already provisioned service producer subnetworks.

property service

service?: pulumi.Input<string>;

Provider peering service that is managing peering connectivity for a service provider organization. For Google services that support this functionality it is ‘servicenetworking.googleapis.com’.