Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.iap.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.iap.BrandArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ## Example Usage
* ### Iap Brand
*
* ```typescript
* 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: "[email protected]",
* applicationTitle: "Cloud IAP protected Application",
* project: projectService.project,
* });
* ```
* ```python
* 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="[email protected]",
* application_title="Cloud IAP protected Application",
* project=project_service.project)
* ```
* ```csharp
* 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 = "[email protected]",
* ApplicationTitle = "Cloud IAP protected Application",
* Project = projectService.Project,
* });
* });
* ```
* ```go
* 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("[email protected]"),
* ApplicationTitle: pulumi.String("Cloud IAP protected Application"),
* Project: projectService.Project,
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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("[email protected]")
* .applicationTitle("Cloud IAP protected Application")
* .project(projectService.project())
* .build());
* }
* }
* ```
* ```yaml
* 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: [email protected]
* applicationTitle: Cloud IAP protected Application
* project: ${projectService.project}
* ```
*
* ## 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 the `pulumi import` command, Brand can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:iap/brand:Brand default projects/{{project_id}}/brands/{{brand_id}}
* ```
* ```sh
* $ pulumi import gcp:iap/brand:Brand default projects/{{project_number}}/brands/{{brand_id}}
* ```
* ```sh
* $ pulumi import gcp:iap/brand:Brand default {{project_number}}/{{brand_id}}
* ```
* @property applicationTitle Application name displayed on OAuth consent screen.
* - - -
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property supportEmail 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.
*/
public data class BrandArgs(
public val applicationTitle: Output? = null,
public val project: Output? = null,
public val supportEmail: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.iap.BrandArgs = com.pulumi.gcp.iap.BrandArgs.builder()
.applicationTitle(applicationTitle?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.supportEmail(supportEmail?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BrandArgs].
*/
@PulumiTagMarker
public class BrandArgsBuilder internal constructor() {
private var applicationTitle: Output? = null
private var project: Output? = null
private var supportEmail: Output? = null
/**
* @param value Application name displayed on OAuth consent screen.
* - - -
*/
@JvmName("pmjeyxtwkyypebof")
public suspend fun applicationTitle(`value`: Output) {
this.applicationTitle = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("ojdfkdcjdvigekgj")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value 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.
*/
@JvmName("mctcxehuaarbxnjf")
public suspend fun supportEmail(`value`: Output) {
this.supportEmail = value
}
/**
* @param value Application name displayed on OAuth consent screen.
* - - -
*/
@JvmName("dhusfrubnvkusycd")
public suspend fun applicationTitle(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.applicationTitle = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("rawjvpvortntcnpk")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value 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.
*/
@JvmName("vojbfswsfuxedsbj")
public suspend fun supportEmail(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.supportEmail = mapped
}
internal fun build(): BrandArgs = BrandArgs(
applicationTitle = applicationTitle,
project = project,
supportEmail = supportEmail,
)
}