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
Warning: All arguments including
secret
will be stored in the raw state as plain-text.
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
$ 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