getProjectService

Verify the API service for the Google Cloud Platform project to see if it is enabled or not. For a list of services available, visit the API library page or run gcloud services list --available. This datasource requires the Service Usage API to use. To get more information about gcp.projects.Service, see:

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.projects.ProjectsFunctions;
import com.pulumi.gcp.projects.inputs.GetProjectServiceArgs;
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) {
final var my-project-service = ProjectsFunctions.getProjectService(GetProjectServiceArgs.builder()
.service("my-project-service")
.build());
}
}

Return

A collection of values returned by getProjectService.

Parameters

argument

A collection of arguments for invoking getProjectService.


suspend fun getProjectService(project: String? = null, service: String): GetProjectServiceResult

Return

A collection of values returned by getProjectService.

Parameters

project

The project in which the resource belongs. If it is not provided, the provider project is used.

service

The name of the Google Platform project service.

See also


Return

A collection of values returned by getProjectService.

Parameters

argument

Builder for com.pulumi.gcp.projects.kotlin.inputs.GetProjectServicePlainArgs.

See also