Module servicenetworking
This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
Others
Resources
Resource Connection
class Connection extends CustomResourceManages 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", {
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: peeringNetwork.id,
});
const foobar = new gcp.servicenetworking.Connection("foobar", {
network: peeringNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [privateIpAlloc.name],
});constructor
new Connection(name: string, args: ConnectionArgs, opts?: pulumi.CustomResourceOptions)Create a Connection resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA 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): ConnectionGet 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 | undefinedmethod isInstance
public static isInstance(obj: any): obj is ConnectionReturns 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 ConnectionArgsThe 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 ConnectionStateInput 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’.