gcp logo
Google Cloud Classic v6.51.0, Mar 7 23

gcp.iap.Brand

OAuth brand data. Only “Organization Internal” brands can be created programmatically via API. To convert it into an external brands please use the GCP Console.

Note: Brands can only be created once for a Google Cloud project and the underlying Google API doesn’t not support DELETE or PATCH methods. Destroying a provider-managed Brand will remove it from state but will not delete it from Google Cloud.

To get more information about Brand, see:

Example Usage

Iap Brand

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var project = new Gcp.Organizations.Project("project", new()
    {
        ProjectId = "tf-test",
        OrgId = "123456789",
    });

    var projectService = new Gcp.Projects.Service("projectService", new()
    {
        Project = project.ProjectId,
        ServiceName = "iap.googleapis.com",
    });

    var projectBrand = new Gcp.Iap.Brand("projectBrand", new()
    {
        SupportEmail = "support@example.com",
        ApplicationTitle = "Cloud IAP protected Application",
        Project = projectService.Project,
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/iap"
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
	"github.com/pulumi/pulumi-gcp/sdk/v6/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("tf-test"),
			OrgId:     pulumi.String("123456789"),
		})
		if err != nil {
			return err
		}
		projectService, err := projects.NewService(ctx, "projectService", &projects.ServiceArgs{
			Project: project.ProjectId,
			Service: pulumi.String("iap.googleapis.com"),
		})
		if err != nil {
			return err
		}
		_, err = iap.NewBrand(ctx, "projectBrand", &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
	})
}
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("tf-test")
            .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());

    }
}
import pulumi
import pulumi_gcp as gcp

project = gcp.organizations.Project("project",
    project_id="tf-test",
    org_id="123456789")
project_service = gcp.projects.Service("projectService",
    project=project.project_id,
    service="iap.googleapis.com")
project_brand = gcp.iap.Brand("projectBrand",
    support_email="support@example.com",
    application_title="Cloud IAP protected Application",
    project=project_service.project)
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const project = new gcp.organizations.Project("project", {
    projectId: "tf-test",
    orgId: "123456789",
});
const projectService = new gcp.projects.Service("projectService", {
    project: project.projectId,
    service: "iap.googleapis.com",
});
const projectBrand = new gcp.iap.Brand("projectBrand", {
    supportEmail: "support@example.com",
    applicationTitle: "Cloud IAP protected Application",
    project: projectService.project,
});
resources:
  project:
    type: gcp:organizations:Project
    properties:
      projectId: tf-test
      orgId: '123456789'
  projectService:
    type: gcp:projects:Service
    properties:
      project: ${project.projectId}
      service: iap.googleapis.com
  projectBrand:
    type: gcp:iap:Brand
    properties:
      supportEmail: support@example.com
      applicationTitle: Cloud IAP protected Application
      project: ${projectService.project}

Create Brand Resource

new Brand(name: string, args: BrandArgs, opts?: CustomResourceOptions);
@overload
def Brand(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          application_title: Optional[str] = None,
          project: Optional[str] = None,
          support_email: Optional[str] = None)
@overload
def Brand(resource_name: str,
          args: BrandArgs,
          opts: Optional[ResourceOptions] = None)
func NewBrand(ctx *Context, name string, args BrandArgs, opts ...ResourceOption) (*Brand, error)
public Brand(string name, BrandArgs args, CustomResourceOptions? opts = null)
public Brand(String name, BrandArgs args)
public Brand(String name, BrandArgs args, CustomResourceOptions options)
type: gcp:iap:Brand
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BrandArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args BrandArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BrandArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BrandArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BrandArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Brand Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Brand resource accepts the following input properties:

ApplicationTitle string

Application name displayed on OAuth consent screen.

SupportEmail string

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.

Project string

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

ApplicationTitle string

Application name displayed on OAuth consent screen.

SupportEmail string

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.

Project string

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

applicationTitle String

Application name displayed on OAuth consent screen.

supportEmail String

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.

project String

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

applicationTitle string

Application name displayed on OAuth consent screen.

supportEmail string

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.

project string

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

application_title str

Application name displayed on OAuth consent screen.

support_email str

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.

project str

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

applicationTitle String

Application name displayed on OAuth consent screen.

supportEmail String

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.

project String

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

Outputs

All input properties are implicitly available as output properties. Additionally, the Brand resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

OrgInternalOnly bool

Whether the brand is only intended for usage inside the GSuite organization only.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

OrgInternalOnly bool

Whether the brand is only intended for usage inside the GSuite organization only.

id String

The provider-assigned unique ID for this managed resource.

name String

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

orgInternalOnly Boolean

Whether the brand is only intended for usage inside the GSuite organization only.

id string

The provider-assigned unique ID for this managed resource.

name string

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

orgInternalOnly boolean

Whether the brand is only intended for usage inside the GSuite organization only.

id str

The provider-assigned unique ID for this managed resource.

name str

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

org_internal_only bool

Whether the brand is only intended for usage inside the GSuite organization only.

id String

The provider-assigned unique ID for this managed resource.

name String

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

orgInternalOnly Boolean

Whether the brand is only intended for usage inside the GSuite organization only.

Look up Existing Brand Resource

Get an existing Brand resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BrandState, opts?: CustomResourceOptions): Brand
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application_title: Optional[str] = None,
        name: Optional[str] = None,
        org_internal_only: Optional[bool] = None,
        project: Optional[str] = None,
        support_email: Optional[str] = None) -> Brand
func GetBrand(ctx *Context, name string, id IDInput, state *BrandState, opts ...ResourceOption) (*Brand, error)
public static Brand Get(string name, Input<string> id, BrandState? state, CustomResourceOptions? opts = null)
public static Brand get(String name, Output<String> id, BrandState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApplicationTitle string

Application name displayed on OAuth consent screen.

Name string

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

OrgInternalOnly bool

Whether the brand is only intended for usage inside the GSuite organization only.

Project string

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

SupportEmail string

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.

ApplicationTitle string

Application name displayed on OAuth consent screen.

Name string

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

OrgInternalOnly bool

Whether the brand is only intended for usage inside the GSuite organization only.

Project string

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

SupportEmail string

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.

applicationTitle String

Application name displayed on OAuth consent screen.

name String

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

orgInternalOnly Boolean

Whether the brand is only intended for usage inside the GSuite organization only.

project String

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

supportEmail String

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.

applicationTitle string

Application name displayed on OAuth consent screen.

name string

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

orgInternalOnly boolean

Whether the brand is only intended for usage inside the GSuite organization only.

project string

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

supportEmail string

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.

application_title str

Application name displayed on OAuth consent screen.

name str

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

org_internal_only bool

Whether the brand is only intended for usage inside the GSuite organization only.

project str

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

support_email str

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.

applicationTitle String

Application name displayed on OAuth consent screen.

name String

Output only. Identifier of the brand, in the format projects/{project_number}/brands/{brand_id} NOTE: The name can also be expressed as projects/{project_id}/brands/{brand_id}, e.g. when importing. NOTE: The brand identification corresponds to the project number as only one brand can be created per project.

orgInternalOnly Boolean

Whether the brand is only intended for usage inside the GSuite organization only.

project String

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

supportEmail String

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.

Import

Brand can be imported using any of these accepted formats

 $ pulumi import gcp:iap/brand:Brand default projects/{{project_id}}/brands/{{brand_id}}
 $ pulumi import gcp:iap/brand:Brand default projects/{{project_number}}/brands/{{brand_id}}
 $ pulumi import gcp:iap/brand:Brand default {{project_number}}/{{brand_id}}

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.