com.pulumi.cloudflare.kotlin.WorkersKvNamespaceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin
import com.pulumi.cloudflare.WorkersKvNamespaceArgs.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 the ability to manage Cloudflare Workers KV Namespace features.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cloudflare from "@pulumi/cloudflare";
* const example = new cloudflare.WorkersKvNamespace("example", {
* accountId: "f037e56e89293a057740de681ac9abbe",
* title: "test-namespace",
* });
* ```
* ```python
* import pulumi
* import pulumi_cloudflare as cloudflare
* example = cloudflare.WorkersKvNamespace("example",
* account_id="f037e56e89293a057740de681ac9abbe",
* title="test-namespace")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Cloudflare = Pulumi.Cloudflare;
* return await Deployment.RunAsync(() =>
* {
* var example = new Cloudflare.WorkersKvNamespace("example", new()
* {
* AccountId = "f037e56e89293a057740de681ac9abbe",
* Title = "test-namespace",
* });
* });
* ```
* ```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.NewWorkersKvNamespace(ctx, "example", &cloudflare.WorkersKvNamespaceArgs{
* AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
* Title: pulumi.String("test-namespace"),
* })
* 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.WorkersKvNamespace;
* import com.pulumi.cloudflare.WorkersKvNamespaceArgs;
* 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 example = new WorkersKvNamespace("example", WorkersKvNamespaceArgs.builder()
* .accountId("f037e56e89293a057740de681ac9abbe")
* .title("test-namespace")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: cloudflare:WorkersKvNamespace
* properties:
* accountId: f037e56e89293a057740de681ac9abbe
* title: test-namespace
* ```
*
* ## Import
* ```sh
* $ pulumi import cloudflare:index/workersKvNamespace:WorkersKvNamespace example /
* ```
* @property accountId The account identifier to target for the resource.
* @property title Title value of the Worker KV Namespace.
*/
public data class WorkersKvNamespaceArgs(
public val accountId: Output? = null,
public val title: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.WorkersKvNamespaceArgs =
com.pulumi.cloudflare.WorkersKvNamespaceArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.title(title?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkersKvNamespaceArgs].
*/
@PulumiTagMarker
public class WorkersKvNamespaceArgsBuilder internal constructor() {
private var accountId: Output? = null
private var title: Output? = null
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("loweyoeafrfctbel")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value Title value of the Worker KV Namespace.
*/
@JvmName("lkpvamidipvgpnat")
public suspend fun title(`value`: Output) {
this.title = value
}
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("toxpdrssimijrfsg")
public suspend fun accountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountId = mapped
}
/**
* @param value Title value of the Worker KV Namespace.
*/
@JvmName("qpijbmynqhchnhtu")
public suspend fun title(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.title = mapped
}
internal fun build(): WorkersKvNamespaceArgs = WorkersKvNamespaceArgs(
accountId = accountId,
title = title,
)
}