Client Args
data class ClientArgs(val brand: Output<String>? = null, val displayName: Output<String>? = null) : ConvertibleToJava<ClientArgs>
Contains the data that describes an Identity Aware Proxy owned client.
Note: Only internal org clients can be created via declarative tools. External clients must be manually created via the GCP console. This restriction is due to the existing APIs and not lack of support in this tool. To get more information about Client, see:
How-to Guides
Example Usage
Iap Client
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.iap.Brand;
import com.pulumi.gcp.iap.BrandArgs;
import com.pulumi.gcp.iap.Client;
import com.pulumi.gcp.iap.ClientArgs;
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 project = new Project("project", ProjectArgs.builder()
.projectId("my-project")
.orgId("123456789")
.build());
var projectService = new Service("projectService", ServiceArgs.builder()
.project(project.projectId())
.service("iap.googleapis.com")
.build());
var projectBrand = new Brand("projectBrand", BrandArgs.builder()
.supportEmail("support@example.com")
.applicationTitle("Cloud IAP protected Application")
.project(projectService.project())
.build());
var projectClient = new Client("projectClient", ClientArgs.builder()
.displayName("Test Client")
.brand(projectBrand.name())
.build());
}
}Content copied to clipboard
Import
Client can be imported using any of these accepted formats* {{brand}}/identityAwareProxyClients/{{client_id}} * {{brand}}/{{client_id}} In Terraform v1.5.0 and later, use an import block to import Client using one of the formats above. For exampletf import { id = "{{brand}}/identityAwareProxyClients/{{client_id}}" to = google_iap_client.default }
$ pulumi import gcp:iap/client:Client When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), Client can be imported using one of the formats above. For exampleContent copied to clipboard
$ pulumi import gcp:iap/client:Client default {{brand}}/identityAwareProxyClients/{{client_id}}Content copied to clipboard
$ pulumi import gcp:iap/client:Client default {{brand}}/{{client_id}}Content copied to clipboard