Show / Hide Table of Contents

Class SharedVPCServiceProject

Enables the Google Compute Engine Shared VPC feature for a project, assigning it as a Shared VPC service project associated with a given host project.

For more information, see, the Project API documentation, where the Shared VPC feature is referred to by its former name "XPN".

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var service1 = new Gcp.Compute.SharedVPCServiceProject("service1", new Gcp.Compute.SharedVPCServiceProjectArgs
    {
        HostProject = "host-project-id",
        ServiceProject = "service-project-id-1",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SharedVPCServiceProject
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class SharedVPCServiceProject : CustomResource

Constructors

View Source

SharedVPCServiceProject(String, SharedVPCServiceProjectArgs, CustomResourceOptions)

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

Declaration
public SharedVPCServiceProject(string name, SharedVPCServiceProjectArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SharedVPCServiceProjectArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

HostProject

The ID of a host project to associate.

Declaration
public Output<string> HostProject { get; }
Property Value
Type Description
Output<System.String>
View Source

ServiceProject

The ID of the project that will serve as a Shared VPC service project.

Declaration
public Output<string> ServiceProject { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, SharedVPCServiceProjectState, CustomResourceOptions)

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

Declaration
public static SharedVPCServiceProject Get(string name, Input<string> id, SharedVPCServiceProjectState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SharedVPCServiceProjectState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
SharedVPCServiceProject
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.