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",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class SharedVPCServiceProject : CustomResource
Constructors
View SourceSharedVPCServiceProject(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 SourceHostProject
The ID of a host project to associate.
Declaration
public Output<string> HostProject { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |