Shared VPCService Project Args
data class SharedVPCServiceProjectArgs(val deletionPolicy: Output<String>? = null, val hostProject: Output<String>? = null, val serviceProject: Output<String>? = null) : ConvertibleToJava<SharedVPCServiceProjectArgs>
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".
Note: If Shared VPC Admin role is set at the folder level, use the google-beta provider. The google provider only supports this permission at project or organizational level currently. 0
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.SharedVPCServiceProject;
import com.pulumi.gcp.compute.SharedVPCServiceProjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var service1 = new SharedVPCServiceProject("service1", SharedVPCServiceProjectArgs.builder()
.hostProject("host-project-id")
.serviceProject("service-project-id-1")
.build());
}
}
Content copied to clipboard
Import
Google Compute Engine Shared VPC service project feature can be imported using the host_project
and service_project
, e.g.
$ pulumi import gcp:compute/sharedVPCServiceProject:SharedVPCServiceProject service1 host-project-id/service-project-id-1
Content copied to clipboard
Constructors
Link copied to clipboard
fun SharedVPCServiceProjectArgs(deletionPolicy: Output<String>? = null, hostProject: Output<String>? = null, serviceProject: Output<String>? = null)