com.pulumi.gcp.firebase.kotlin.HostingCustomDomainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.firebase.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.firebase.HostingCustomDomainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ## Example Usage
* ### Firebasehosting Customdomain Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.firebase.HostingCustomDomain("default", {
* project: "my-project-name",
* siteId: "site-id",
* customDomain: "custom.domain.com",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.firebase.HostingCustomDomain("default",
* project="my-project-name",
* site_id="site-id",
* custom_domain="custom.domain.com")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.Firebase.HostingCustomDomain("default", new()
* {
* Project = "my-project-name",
* SiteId = "site-id",
* CustomDomain = "custom.domain.com",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := firebase.NewHostingCustomDomain(ctx, "default", &firebase.HostingCustomDomainArgs{
* Project: pulumi.String("my-project-name"),
* SiteId: pulumi.String("site-id"),
* CustomDomain: pulumi.String("custom.domain.com"),
* })
* 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.firebase.HostingCustomDomain;
* import com.pulumi.gcp.firebase.HostingCustomDomainArgs;
* 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 default_ = new HostingCustomDomain("default", HostingCustomDomainArgs.builder()
* .project("my-project-name")
* .siteId("site-id")
* .customDomain("custom.domain.com")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:firebase:HostingCustomDomain
* properties:
* project: my-project-name
* siteId: site-id
* customDomain: custom.domain.com
* ```
*
* ### Firebasehosting Customdomain Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.firebase.HostingSite("default", {
* project: "my-project-name",
* siteId: "site-id-full",
* });
* const defaultHostingCustomDomain = new gcp.firebase.HostingCustomDomain("default", {
* project: "my-project-name",
* siteId: _default.siteId,
* customDomain: "source.domain.com",
* certPreference: "GROUPED",
* redirectTarget: "destination.domain.com",
* waitDnsVerification: false,
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.firebase.HostingSite("default",
* project="my-project-name",
* site_id="site-id-full")
* default_hosting_custom_domain = gcp.firebase.HostingCustomDomain("default",
* project="my-project-name",
* site_id=default.site_id,
* custom_domain="source.domain.com",
* cert_preference="GROUPED",
* redirect_target="destination.domain.com",
* wait_dns_verification=False)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.Firebase.HostingSite("default", new()
* {
* Project = "my-project-name",
* SiteId = "site-id-full",
* });
* var defaultHostingCustomDomain = new Gcp.Firebase.HostingCustomDomain("default", new()
* {
* Project = "my-project-name",
* SiteId = @default.SiteId,
* CustomDomain = "source.domain.com",
* CertPreference = "GROUPED",
* RedirectTarget = "destination.domain.com",
* WaitDnsVerification = false,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := firebase.NewHostingSite(ctx, "default", &firebase.HostingSiteArgs{
* Project: pulumi.String("my-project-name"),
* SiteId: pulumi.String("site-id-full"),
* })
* if err != nil {
* return err
* }
* _, err = firebase.NewHostingCustomDomain(ctx, "default", &firebase.HostingCustomDomainArgs{
* Project: pulumi.String("my-project-name"),
* SiteId: _default.SiteId,
* CustomDomain: pulumi.String("source.domain.com"),
* CertPreference: pulumi.String("GROUPED"),
* RedirectTarget: pulumi.String("destination.domain.com"),
* WaitDnsVerification: pulumi.Bool(false),
* })
* 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.firebase.HostingSite;
* import com.pulumi.gcp.firebase.HostingSiteArgs;
* import com.pulumi.gcp.firebase.HostingCustomDomain;
* import com.pulumi.gcp.firebase.HostingCustomDomainArgs;
* 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 default_ = new HostingSite("default", HostingSiteArgs.builder()
* .project("my-project-name")
* .siteId("site-id-full")
* .build());
* var defaultHostingCustomDomain = new HostingCustomDomain("defaultHostingCustomDomain", HostingCustomDomainArgs.builder()
* .project("my-project-name")
* .siteId(default_.siteId())
* .customDomain("source.domain.com")
* .certPreference("GROUPED")
* .redirectTarget("destination.domain.com")
* .waitDnsVerification(false)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:firebase:HostingSite
* properties:
* project: my-project-name
* siteId: site-id-full
* defaultHostingCustomDomain:
* type: gcp:firebase:HostingCustomDomain
* name: default
* properties:
* project: my-project-name
* siteId: ${default.siteId}
* customDomain: source.domain.com
* certPreference: GROUPED
* redirectTarget: destination.domain.com
* waitDnsVerification: false
* ```
*
* ### Firebasehosting Customdomain Cloud Run
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.firebase.HostingSite("default", {
* project: "my-project-name",
* siteId: "site-id",
* });
* const defaultService = new gcp.cloudrunv2.Service("default", {
* project: "my-project-name",
* name: "cloud-run-service-via-hosting",
* location: "us-central1",
* ingress: "INGRESS_TRAFFIC_ALL",
* template: {
* containers: [{
* image: "us-docker.pkg.dev/cloudrun/container/hello",
* }],
* },
* });
* const defaultHostingVersion = new gcp.firebase.HostingVersion("default", {
* siteId: _default.siteId,
* config: {
* rewrites: [{
* glob: "/hello/**",
* run: {
* serviceId: defaultService.name,
* region: defaultService.location,
* },
* }],
* },
* });
* const defaultHostingRelease = new gcp.firebase.HostingRelease("default", {
* siteId: _default.siteId,
* versionName: defaultHostingVersion.name,
* message: "Cloud Run Integration",
* });
* const defaultHostingCustomDomain = new gcp.firebase.HostingCustomDomain("default", {
* project: "my-project-name",
* siteId: _default.siteId,
* customDomain: "run.custom.domain.com",
* waitDnsVerification: false,
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.firebase.HostingSite("default",
* project="my-project-name",
* site_id="site-id")
* default_service = gcp.cloudrunv2.Service("default",
* project="my-project-name",
* name="cloud-run-service-via-hosting",
* location="us-central1",
* ingress="INGRESS_TRAFFIC_ALL",
* template=gcp.cloudrunv2.ServiceTemplateArgs(
* containers=[gcp.cloudrunv2.ServiceTemplateContainerArgs(
* image="us-docker.pkg.dev/cloudrun/container/hello",
* )],
* ))
* default_hosting_version = gcp.firebase.HostingVersion("default",
* site_id=default.site_id,
* config=gcp.firebase.HostingVersionConfigArgs(
* rewrites=[gcp.firebase.HostingVersionConfigRewriteArgs(
* glob="/hello/**",
* run=gcp.firebase.HostingVersionConfigRewriteRunArgs(
* service_id=default_service.name,
* region=default_service.location,
* ),
* )],
* ))
* default_hosting_release = gcp.firebase.HostingRelease("default",
* site_id=default.site_id,
* version_name=default_hosting_version.name,
* message="Cloud Run Integration")
* default_hosting_custom_domain = gcp.firebase.HostingCustomDomain("default",
* project="my-project-name",
* site_id=default.site_id,
* custom_domain="run.custom.domain.com",
* wait_dns_verification=False)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.Firebase.HostingSite("default", new()
* {
* Project = "my-project-name",
* SiteId = "site-id",
* });
* var defaultService = new Gcp.CloudRunV2.Service("default", new()
* {
* Project = "my-project-name",
* Name = "cloud-run-service-via-hosting",
* Location = "us-central1",
* Ingress = "INGRESS_TRAFFIC_ALL",
* Template = new Gcp.CloudRunV2.Inputs.ServiceTemplateArgs
* {
* Containers = new[]
* {
* new Gcp.CloudRunV2.Inputs.ServiceTemplateContainerArgs
* {
* Image = "us-docker.pkg.dev/cloudrun/container/hello",
* },
* },
* },
* });
* var defaultHostingVersion = new Gcp.Firebase.HostingVersion("default", new()
* {
* SiteId = @default.SiteId,
* Config = new Gcp.Firebase.Inputs.HostingVersionConfigArgs
* {
* Rewrites = new[]
* {
* new Gcp.Firebase.Inputs.HostingVersionConfigRewriteArgs
* {
* Glob = "/hello/**",
* Run = new Gcp.Firebase.Inputs.HostingVersionConfigRewriteRunArgs
* {
* ServiceId = defaultService.Name,
* Region = defaultService.Location,
* },
* },
* },
* },
* });
* var defaultHostingRelease = new Gcp.Firebase.HostingRelease("default", new()
* {
* SiteId = @default.SiteId,
* VersionName = defaultHostingVersion.Name,
* Message = "Cloud Run Integration",
* });
* var defaultHostingCustomDomain = new Gcp.Firebase.HostingCustomDomain("default", new()
* {
* Project = "my-project-name",
* SiteId = @default.SiteId,
* CustomDomain = "run.custom.domain.com",
* WaitDnsVerification = false,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudrunv2"
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := firebase.NewHostingSite(ctx, "default", &firebase.HostingSiteArgs{
* Project: pulumi.String("my-project-name"),
* SiteId: pulumi.String("site-id"),
* })
* if err != nil {
* return err
* }
* defaultService, err := cloudrunv2.NewService(ctx, "default", &cloudrunv2.ServiceArgs{
* Project: pulumi.String("my-project-name"),
* Name: pulumi.String("cloud-run-service-via-hosting"),
* Location: pulumi.String("us-central1"),
* Ingress: pulumi.String("INGRESS_TRAFFIC_ALL"),
* Template: &cloudrunv2.ServiceTemplateArgs{
* Containers: cloudrunv2.ServiceTemplateContainerArray{
* &cloudrunv2.ServiceTemplateContainerArgs{
* Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
* },
* },
* },
* })
* if err != nil {
* return err
* }
* defaultHostingVersion, err := firebase.NewHostingVersion(ctx, "default", &firebase.HostingVersionArgs{
* SiteId: _default.SiteId,
* Config: &firebase.HostingVersionConfigArgs{
* Rewrites: firebase.HostingVersionConfigRewriteArray{
* &firebase.HostingVersionConfigRewriteArgs{
* Glob: pulumi.String("/hello/**"),
* Run: &firebase.HostingVersionConfigRewriteRunArgs{
* ServiceId: defaultService.Name,
* Region: defaultService.Location,
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* _, err = firebase.NewHostingRelease(ctx, "default", &firebase.HostingReleaseArgs{
* SiteId: _default.SiteId,
* VersionName: defaultHostingVersion.Name,
* Message: pulumi.String("Cloud Run Integration"),
* })
* if err != nil {
* return err
* }
* _, err = firebase.NewHostingCustomDomain(ctx, "default", &firebase.HostingCustomDomainArgs{
* Project: pulumi.String("my-project-name"),
* SiteId: _default.SiteId,
* CustomDomain: pulumi.String("run.custom.domain.com"),
* WaitDnsVerification: pulumi.Bool(false),
* })
* 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.firebase.HostingSite;
* import com.pulumi.gcp.firebase.HostingSiteArgs;
* import com.pulumi.gcp.cloudrunv2.Service;
* import com.pulumi.gcp.cloudrunv2.ServiceArgs;
* import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateArgs;
* import com.pulumi.gcp.firebase.HostingVersion;
* import com.pulumi.gcp.firebase.HostingVersionArgs;
* import com.pulumi.gcp.firebase.inputs.HostingVersionConfigArgs;
* import com.pulumi.gcp.firebase.HostingRelease;
* import com.pulumi.gcp.firebase.HostingReleaseArgs;
* import com.pulumi.gcp.firebase.HostingCustomDomain;
* import com.pulumi.gcp.firebase.HostingCustomDomainArgs;
* 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 default_ = new HostingSite("default", HostingSiteArgs.builder()
* .project("my-project-name")
* .siteId("site-id")
* .build());
* var defaultService = new Service("defaultService", ServiceArgs.builder()
* .project("my-project-name")
* .name("cloud-run-service-via-hosting")
* .location("us-central1")
* .ingress("INGRESS_TRAFFIC_ALL")
* .template(ServiceTemplateArgs.builder()
* .containers(ServiceTemplateContainerArgs.builder()
* .image("us-docker.pkg.dev/cloudrun/container/hello")
* .build())
* .build())
* .build());
* var defaultHostingVersion = new HostingVersion("defaultHostingVersion", HostingVersionArgs.builder()
* .siteId(default_.siteId())
* .config(HostingVersionConfigArgs.builder()
* .rewrites(HostingVersionConfigRewriteArgs.builder()
* .glob("/hello/**")
* .run(HostingVersionConfigRewriteRunArgs.builder()
* .serviceId(defaultService.name())
* .region(defaultService.location())
* .build())
* .build())
* .build())
* .build());
* var defaultHostingRelease = new HostingRelease("defaultHostingRelease", HostingReleaseArgs.builder()
* .siteId(default_.siteId())
* .versionName(defaultHostingVersion.name())
* .message("Cloud Run Integration")
* .build());
* var defaultHostingCustomDomain = new HostingCustomDomain("defaultHostingCustomDomain", HostingCustomDomainArgs.builder()
* .project("my-project-name")
* .siteId(default_.siteId())
* .customDomain("run.custom.domain.com")
* .waitDnsVerification(false)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:firebase:HostingSite
* properties:
* project: my-project-name
* siteId: site-id
* defaultService:
* type: gcp:cloudrunv2:Service
* name: default
* properties:
* project: my-project-name
* name: cloud-run-service-via-hosting
* location: us-central1
* ingress: INGRESS_TRAFFIC_ALL
* template:
* containers:
* - image: us-docker.pkg.dev/cloudrun/container/hello
* defaultHostingVersion:
* type: gcp:firebase:HostingVersion
* name: default
* properties:
* siteId: ${default.siteId}
* config:
* rewrites:
* - glob: /hello/**
* run:
* serviceId: ${defaultService.name}
* region: ${defaultService.location}
* defaultHostingRelease:
* type: gcp:firebase:HostingRelease
* name: default
* properties:
* siteId: ${default.siteId}
* versionName: ${defaultHostingVersion.name}
* message: Cloud Run Integration
* defaultHostingCustomDomain:
* type: gcp:firebase:HostingCustomDomain
* name: default
* properties:
* project: my-project-name
* siteId: ${default.siteId}
* customDomain: run.custom.domain.com
* waitDnsVerification: false
* ```
*
* ## Import
* CustomDomain can be imported using any of these accepted formats:
* * `projects/{{project}}/sites/{{site_id}}/customDomains/{{custom_domain}}`
* * `sites/{{site_id}}/customDomains/{{custom_domain}}`
* * `{{project}}/{{site_id}}/{{custom_domain}}`
* * `{{site_id}}/{{custom_domain}}`
* When using the `pulumi import` command, CustomDomain can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:firebase/hostingCustomDomain:HostingCustomDomain default projects/{{project}}/sites/{{site_id}}/customDomains/{{custom_domain}}
* ```
* ```sh
* $ pulumi import gcp:firebase/hostingCustomDomain:HostingCustomDomain default sites/{{site_id}}/customDomains/{{custom_domain}}
* ```
* ```sh
* $ pulumi import gcp:firebase/hostingCustomDomain:HostingCustomDomain default {{project}}/{{site_id}}/{{custom_domain}}
* ```
* ```sh
* $ pulumi import gcp:firebase/hostingCustomDomain:HostingCustomDomain default {{site_id}}/{{custom_domain}}
* ```
* @property certPreference A field that lets you specify which SSL certificate type Hosting creates
* for your domain name. Spark plan `CustomDomain`s only have access to the
* `GROUPED` cert type, while Blaze plan can select any option.
* Possible values are: `GROUPED`, `PROJECT_GROUPED`, `DEDICATED`.
* @property customDomain The ID of the `CustomDomain`, which is the domain name you'd like to use with Firebase Hosting.
* - - -
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property redirectTarget A domain name that this CustomDomain should direct traffic towards. If
* specified, Hosting will respond to requests against this CustomDomain
* with an HTTP 301 code, and route traffic to the specified `redirect_target`
* instead.
* @property siteId The ID of the site in which to create this custom domain association.
* @property waitDnsVerification
* */*/*/*/*/*/
*/
public data class HostingCustomDomainArgs(
public val certPreference: Output? = null,
public val customDomain: Output? = null,
public val project: Output? = null,
public val redirectTarget: Output? = null,
public val siteId: Output? = null,
public val waitDnsVerification: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.firebase.HostingCustomDomainArgs =
com.pulumi.gcp.firebase.HostingCustomDomainArgs.builder()
.certPreference(certPreference?.applyValue({ args0 -> args0 }))
.customDomain(customDomain?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.redirectTarget(redirectTarget?.applyValue({ args0 -> args0 }))
.siteId(siteId?.applyValue({ args0 -> args0 }))
.waitDnsVerification(waitDnsVerification?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HostingCustomDomainArgs].
*/
@PulumiTagMarker
public class HostingCustomDomainArgsBuilder internal constructor() {
private var certPreference: Output? = null
private var customDomain: Output? = null
private var project: Output? = null
private var redirectTarget: Output? = null
private var siteId: Output? = null
private var waitDnsVerification: Output? = null
/**
* @param value A field that lets you specify which SSL certificate type Hosting creates
* for your domain name. Spark plan `CustomDomain`s only have access to the
* `GROUPED` cert type, while Blaze plan can select any option.
* Possible values are: `GROUPED`, `PROJECT_GROUPED`, `DEDICATED`.
*/
@JvmName("teogxnefxdqftlsc")
public suspend fun certPreference(`value`: Output) {
this.certPreference = value
}
/**
* @param value The ID of the `CustomDomain`, which is the domain name you'd like to use with Firebase Hosting.
* - - -
*/
@JvmName("aoublydjttpadwix")
public suspend fun customDomain(`value`: Output) {
this.customDomain = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("uguunqxmfvvaydkg")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value A domain name that this CustomDomain should direct traffic towards. If
* specified, Hosting will respond to requests against this CustomDomain
* with an HTTP 301 code, and route traffic to the specified `redirect_target`
* instead.
*/
@JvmName("uwmscekbvekgykgh")
public suspend fun redirectTarget(`value`: Output) {
this.redirectTarget = value
}
/**
* @param value The ID of the site in which to create this custom domain association.
*/
@JvmName("uatiiuiuggxpmwls")
public suspend fun siteId(`value`: Output) {
this.siteId = value
}
/**
* @param value
*/
@JvmName("kbbdamjkufjoggtb")
public suspend fun waitDnsVerification(`value`: Output) {
this.waitDnsVerification = value
}
/**
* @param value A field that lets you specify which SSL certificate type Hosting creates
* for your domain name. Spark plan `CustomDomain`s only have access to the
* `GROUPED` cert type, while Blaze plan can select any option.
* Possible values are: `GROUPED`, `PROJECT_GROUPED`, `DEDICATED`.
*/
@JvmName("xsurmdwkghxnfggr")
public suspend fun certPreference(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certPreference = mapped
}
/**
* @param value The ID of the `CustomDomain`, which is the domain name you'd like to use with Firebase Hosting.
* - - -
*/
@JvmName("msflxmukktfdrhfu")
public suspend fun customDomain(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customDomain = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("wquveorkvxmmiyam")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value A domain name that this CustomDomain should direct traffic towards. If
* specified, Hosting will respond to requests against this CustomDomain
* with an HTTP 301 code, and route traffic to the specified `redirect_target`
* instead.
*/
@JvmName("pdqqgfvrojkvftll")
public suspend fun redirectTarget(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.redirectTarget = mapped
}
/**
* @param value The ID of the site in which to create this custom domain association.
*/
@JvmName("nljbumfnmtniufdp")
public suspend fun siteId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.siteId = mapped
}
/**
* @param value
*/
@JvmName("hucgmvgolbsbrvdl")
public suspend fun waitDnsVerification(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.waitDnsVerification = mapped
}
internal fun build(): HostingCustomDomainArgs = HostingCustomDomainArgs(
certPreference = certPreference,
customDomain = customDomain,
project = project,
redirectTarget = redirectTarget,
siteId = siteId,
waitDnsVerification = waitDnsVerification,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy