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.
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.
- class
pulumi_gcp.servicenetworking.Connection(resource_name, opts=None, network=None, reserved_peering_ranges=None, service=None, __props__=None, __name__=None, __opts__=None)¶ Manages a private VPC connection with a GCP service provider. For more information see the official documentation and API.
import pulumi import pulumi_gcp as gcp peering_network = gcp.compute.Network("peeringNetwork") private_ip_alloc = gcp.compute.GlobalAddress("privateIpAlloc", purpose="VPC_PEERING", address_type="INTERNAL", prefix_length=16, network=peering_network.id) foobar = gcp.servicenetworking.Connection("foobar", network=peering_network.id, service="servicenetworking.googleapis.com", reserved_peering_ranges=[private_ip_alloc.name])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
network (pulumi.Input[str]) – Name of VPC network connected with service producers using VPC peering.
reserved_peering_ranges (pulumi.Input[list]) – 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.
service (pulumi.Input[str]) – 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’.
network: pulumi.Output[str] = None¶Name of VPC network connected with service producers using VPC peering.
reserved_peering_ranges: pulumi.Output[list] = None¶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.
service: pulumi.Output[str] = None¶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’.
- static
get(resource_name, id, opts=None, network=None, peering=None, reserved_peering_ranges=None, service=None)¶ Get an existing Connection resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
network (pulumi.Input[str]) – Name of VPC network connected with service producers using VPC peering.
reserved_peering_ranges (pulumi.Input[list]) – 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.
service (pulumi.Input[str]) – 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’.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str