Brand Args
data class BrandArgs(val applicationTitle: Output<String>? = null, val project: Output<String>? = null, val supportEmail: Output<String>? = null) : ConvertibleToJava<BrandArgs>
Example Usage
Iap Brand
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const project = new gcp.organizations.Project("project", {
projectId: "my-project",
name: "my-project",
orgId: "123456789",
});
const projectService = new gcp.projects.Service("project_service", {
project: project.projectId,
service: "iap.googleapis.com",
});
const projectBrand = new gcp.iap.Brand("project_brand", {
supportEmail: "support@example.com",
applicationTitle: "Cloud IAP protected Application",
project: projectService.project,
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
project = gcp.organizations.Project("project",
project_id="my-project",
name="my-project",
org_id="123456789")
project_service = gcp.projects.Service("project_service",
project=project.project_id,
service="iap.googleapis.com")
project_brand = gcp.iap.Brand("project_brand",
support_email="support@example.com",
application_title="Cloud IAP protected Application",
project=project_service.project)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var project = new Gcp.Organizations.Project("project", new()
{
ProjectId = "my-project",
Name = "my-project",
OrgId = "123456789",
});
var projectService = new Gcp.Projects.Service("project_service", new()
{
Project = project.ProjectId,
ServiceName = "iap.googleapis.com",
});
var projectBrand = new Gcp.Iap.Brand("project_brand", new()
{
SupportEmail = "support@example.com",
ApplicationTitle = "Cloud IAP protected Application",
Project = projectService.Project,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/iap"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/projects"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := organizations.NewProject(ctx, "project", &organizations.ProjectArgs{
ProjectId: pulumi.String("my-project"),
Name: pulumi.String("my-project"),
OrgId: pulumi.String("123456789"),
})
if err != nil {
return err
}
projectService, err := projects.NewService(ctx, "project_service", &projects.ServiceArgs{
Project: project.ProjectId,
Service: pulumi.String("iap.googleapis.com"),
})
if err != nil {
return err
}
_, err = iap.NewBrand(ctx, "project_brand", &iap.BrandArgs{
SupportEmail: pulumi.String("support@example.com"),
ApplicationTitle: pulumi.String("Cloud IAP protected Application"),
Project: projectService.Project,
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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")
.name("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());
}
}
Content copied to clipboard
resources:
project:
type: gcp:organizations:Project
properties:
projectId: my-project
name: my-project
orgId: '123456789'
projectService:
type: gcp:projects:Service
name: project_service
properties:
project: ${project.projectId}
service: iap.googleapis.com
projectBrand:
type: gcp:iap:Brand
name: project_brand
properties:
supportEmail: support@example.com
applicationTitle: Cloud IAP protected Application
project: ${projectService.project}
Content copied to clipboard
Import
Brand can be imported using any of these accepted formats:
projects/{{project_id}}/brands/{{brand_id}}
projects/{{project_number}}/brands/{{brand_id}}
{{project_number}}/{{brand_id}}
When using thepulumi import
command, Brand can be imported using one of the formats above. For example:
$ pulumi import gcp:iap/brand:Brand default projects/{{project_id}}/brands/{{brand_id}}
Content copied to clipboard
$ pulumi import gcp:iap/brand:Brand default projects/{{project_number}}/brands/{{brand_id}}
Content copied to clipboard
$ pulumi import gcp:iap/brand:Brand default {{project_number}}/{{brand_id}}
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
Application name displayed on OAuth consent screen.
Link copied to clipboard
Support email displayed on the OAuth consent screen. Can be either a user or group email. When a user email is specified, the caller must be the user with the associated email address. When a group email is specified, the caller can be either a user or a service account which is an owner of the specified group in Cloud Identity.