All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.cloudflare.kotlin.PagesDomainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.PagesDomainArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides a resource for managing Cloudflare Pages domains.
 * > A DNS record for the domain is not automatically created. You need to create
 *    a `cloudflare.Record` resource for the domain you want to use.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as cloudflare from "@pulumi/cloudflare";
 * const my_domain = new cloudflare.PagesDomain("my-domain", {
 *     accountId: "f037e56e89293a057740de681ac9abbe",
 *     projectName: "my-example-project",
 *     domain: "example.com",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_cloudflare as cloudflare
 * my_domain = cloudflare.PagesDomain("my-domain",
 *     account_id="f037e56e89293a057740de681ac9abbe",
 *     project_name="my-example-project",
 *     domain="example.com")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Cloudflare = Pulumi.Cloudflare;
 * return await Deployment.RunAsync(() =>
 * {
 *     var my_domain = new Cloudflare.PagesDomain("my-domain", new()
 *     {
 *         AccountId = "f037e56e89293a057740de681ac9abbe",
 *         ProjectName = "my-example-project",
 *         Domain = "example.com",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := cloudflare.NewPagesDomain(ctx, "my-domain", &cloudflare.PagesDomainArgs{
 * 			AccountId:   pulumi.String("f037e56e89293a057740de681ac9abbe"),
 * 			ProjectName: pulumi.String("my-example-project"),
 * 			Domain:      pulumi.String("example.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.cloudflare.PagesDomain;
 * import com.pulumi.cloudflare.PagesDomainArgs;
 * 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 my_domain = new PagesDomain("my-domain", PagesDomainArgs.builder()
 *             .accountId("f037e56e89293a057740de681ac9abbe")
 *             .projectName("my-example-project")
 *             .domain("example.com")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   my-domain:
 *     type: cloudflare:PagesDomain
 *     properties:
 *       accountId: f037e56e89293a057740de681ac9abbe
 *       projectName: my-example-project
 *       domain: example.com
 * ```
 * 
 * ## Import
 * ```sh
 * $ pulumi import cloudflare:index/pagesDomain:PagesDomain example //
 * ```
 * @property accountId The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
 * @property domain Custom domain. **Modifying this attribute will force creation of a new resource.**
 * @property projectName Name of the Pages Project. **Modifying this attribute will force creation of a new resource.**
 */
public data class PagesDomainArgs(
    public val accountId: Output? = null,
    public val domain: Output? = null,
    public val projectName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.PagesDomainArgs =
        com.pulumi.cloudflare.PagesDomainArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .domain(domain?.applyValue({ args0 -> args0 }))
            .projectName(projectName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PagesDomainArgs].
 */
@PulumiTagMarker
public class PagesDomainArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var domain: Output? = null

    private var projectName: Output? = null

    /**
     * @param value The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("ysdaqmdcoqexxlov")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value Custom domain. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("rtxipbduomqyscvn")
    public suspend fun domain(`value`: Output) {
        this.domain = value
    }

    /**
     * @param value Name of the Pages Project. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("qdbmabsmjbsddjvf")
    public suspend fun projectName(`value`: Output) {
        this.projectName = value
    }

    /**
     * @param value The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("ofddfiillaqjhqiy")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value Custom domain. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("xvmlajkihdxhfmey")
    public suspend fun domain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domain = mapped
    }

    /**
     * @param value Name of the Pages Project. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("ibrorghmjmbcgnyc")
    public suspend fun projectName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectName = mapped
    }

    internal fun build(): PagesDomainArgs = PagesDomainArgs(
        accountId = accountId,
        domain = domain,
        projectName = projectName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy