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

com.pulumi.cloudflare.kotlin.WorkersScriptArgs.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.WorkersScriptArgs.builder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptAnalyticsEngineBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptAnalyticsEngineBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptD1DatabaseBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptD1DatabaseBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptKvNamespaceBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptKvNamespaceBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptPlacementArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptPlacementArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptPlainTextBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptPlainTextBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptQueueBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptQueueBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptR2BucketBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptR2BucketBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptSecretTextBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptSecretTextBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptServiceBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptServiceBindingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptWebassemblyBindingArgs
import com.pulumi.cloudflare.kotlin.inputs.WorkersScriptWebassemblyBindingArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Provides a Cloudflare worker script resource. In order for a script to be active, you'll also need to setup a `cloudflare.WorkerRoute`.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as cloudflare from "@pulumi/cloudflare";
 * import * as std from "@pulumi/std";
 * const myNamespace = new cloudflare.WorkersKvNamespace("my_namespace", {
 *     accountId: "f037e56e89293a057740de681ac9abbe",
 *     title: "example",
 * });
 * // Sets the script with the name "script_1"
 * const myScript = new cloudflare.WorkersScript("my_script", {
 *     accountId: "f037e56e89293a057740de681ac9abbe",
 *     name: "script_1",
 *     content: std.file({
 *         input: "script.js",
 *     }).then(invoke => invoke.result),
 *     kvNamespaceBindings: [{
 *         name: "MY_EXAMPLE_KV_NAMESPACE",
 *         namespaceId: myNamespace.id,
 *     }],
 *     plainTextBindings: [{
 *         name: "MY_EXAMPLE_PLAIN_TEXT",
 *         text: "foobar",
 *     }],
 *     secretTextBindings: [{
 *         name: "MY_EXAMPLE_SECRET_TEXT",
 *         text: secretFooValue,
 *     }],
 *     webassemblyBindings: [{
 *         name: "MY_EXAMPLE_WASM",
 *         module: std.filebase64({
 *             input: "example.wasm",
 *         }).then(invoke => invoke.result),
 *     }],
 *     serviceBindings: [{
 *         name: "MY_SERVICE_BINDING",
 *         service: "MY_SERVICE",
 *         environment: "production",
 *     }],
 *     r2BucketBindings: [{
 *         name: "MY_BUCKET",
 *         bucketName: "MY_BUCKET_NAME",
 *     }],
 *     analyticsEngineBindings: [{
 *         name: "MY_DATASET",
 *         dataset: "dataset1",
 *     }],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_cloudflare as cloudflare
 * import pulumi_std as std
 * my_namespace = cloudflare.WorkersKvNamespace("my_namespace",
 *     account_id="f037e56e89293a057740de681ac9abbe",
 *     title="example")
 * # Sets the script with the name "script_1"
 * my_script = cloudflare.WorkersScript("my_script",
 *     account_id="f037e56e89293a057740de681ac9abbe",
 *     name="script_1",
 *     content=std.file(input="script.js").result,
 *     kv_namespace_bindings=[{
 *         "name": "MY_EXAMPLE_KV_NAMESPACE",
 *         "namespace_id": my_namespace.id,
 *     }],
 *     plain_text_bindings=[{
 *         "name": "MY_EXAMPLE_PLAIN_TEXT",
 *         "text": "foobar",
 *     }],
 *     secret_text_bindings=[{
 *         "name": "MY_EXAMPLE_SECRET_TEXT",
 *         "text": secret_foo_value,
 *     }],
 *     webassembly_bindings=[{
 *         "name": "MY_EXAMPLE_WASM",
 *         "module": std.filebase64(input="example.wasm").result,
 *     }],
 *     service_bindings=[{
 *         "name": "MY_SERVICE_BINDING",
 *         "service": "MY_SERVICE",
 *         "environment": "production",
 *     }],
 *     r2_bucket_bindings=[{
 *         "name": "MY_BUCKET",
 *         "bucket_name": "MY_BUCKET_NAME",
 *     }],
 *     analytics_engine_bindings=[{
 *         "name": "MY_DATASET",
 *         "dataset": "dataset1",
 *     }])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Cloudflare = Pulumi.Cloudflare;
 * using Std = Pulumi.Std;
 * return await Deployment.RunAsync(() =>
 * {
 *     var myNamespace = new Cloudflare.WorkersKvNamespace("my_namespace", new()
 *     {
 *         AccountId = "f037e56e89293a057740de681ac9abbe",
 *         Title = "example",
 *     });
 *     // Sets the script with the name "script_1"
 *     var myScript = new Cloudflare.WorkersScript("my_script", new()
 *     {
 *         AccountId = "f037e56e89293a057740de681ac9abbe",
 *         Name = "script_1",
 *         Content = Std.File.Invoke(new()
 *         {
 *             Input = "script.js",
 *         }).Apply(invoke => invoke.Result),
 *         KvNamespaceBindings = new[]
 *         {
 *             new Cloudflare.Inputs.WorkersScriptKvNamespaceBindingArgs
 *             {
 *                 Name = "MY_EXAMPLE_KV_NAMESPACE",
 *                 NamespaceId = myNamespace.Id,
 *             },
 *         },
 *         PlainTextBindings = new[]
 *         {
 *             new Cloudflare.Inputs.WorkersScriptPlainTextBindingArgs
 *             {
 *                 Name = "MY_EXAMPLE_PLAIN_TEXT",
 *                 Text = "foobar",
 *             },
 *         },
 *         SecretTextBindings = new[]
 *         {
 *             new Cloudflare.Inputs.WorkersScriptSecretTextBindingArgs
 *             {
 *                 Name = "MY_EXAMPLE_SECRET_TEXT",
 *                 Text = secretFooValue,
 *             },
 *         },
 *         WebassemblyBindings = new[]
 *         {
 *             new Cloudflare.Inputs.WorkersScriptWebassemblyBindingArgs
 *             {
 *                 Name = "MY_EXAMPLE_WASM",
 *                 Module = Std.Filebase64.Invoke(new()
 *                 {
 *                     Input = "example.wasm",
 *                 }).Apply(invoke => invoke.Result),
 *             },
 *         },
 *         ServiceBindings = new[]
 *         {
 *             new Cloudflare.Inputs.WorkersScriptServiceBindingArgs
 *             {
 *                 Name = "MY_SERVICE_BINDING",
 *                 Service = "MY_SERVICE",
 *                 Environment = "production",
 *             },
 *         },
 *         R2BucketBindings = new[]
 *         {
 *             new Cloudflare.Inputs.WorkersScriptR2BucketBindingArgs
 *             {
 *                 Name = "MY_BUCKET",
 *                 BucketName = "MY_BUCKET_NAME",
 *             },
 *         },
 *         AnalyticsEngineBindings = new[]
 *         {
 *             new Cloudflare.Inputs.WorkersScriptAnalyticsEngineBindingArgs
 *             {
 *                 Name = "MY_DATASET",
 *                 Dataset = "dataset1",
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
 * 	"github.com/pulumi/pulumi-std/sdk/go/std"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		myNamespace, err := cloudflare.NewWorkersKvNamespace(ctx, "my_namespace", &cloudflare.WorkersKvNamespaceArgs{
 * 			AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
 * 			Title:     pulumi.String("example"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		invokeFile, err := std.File(ctx, &std.FileArgs{
 * 			Input: "script.js",
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		invokeFilebase641, err := std.Filebase64(ctx, &std.Filebase64Args{
 * 			Input: "example.wasm",
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		// Sets the script with the name "script_1"
 * 		_, err = cloudflare.NewWorkersScript(ctx, "my_script", &cloudflare.WorkersScriptArgs{
 * 			AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
 * 			Name:      pulumi.String("script_1"),
 * 			Content:   pulumi.String(invokeFile.Result),
 * 			KvNamespaceBindings: cloudflare.WorkersScriptKvNamespaceBindingArray{
 * 				&cloudflare.WorkersScriptKvNamespaceBindingArgs{
 * 					Name:        pulumi.String("MY_EXAMPLE_KV_NAMESPACE"),
 * 					NamespaceId: myNamespace.ID(),
 * 				},
 * 			},
 * 			PlainTextBindings: cloudflare.WorkersScriptPlainTextBindingArray{
 * 				&cloudflare.WorkersScriptPlainTextBindingArgs{
 * 					Name: pulumi.String("MY_EXAMPLE_PLAIN_TEXT"),
 * 					Text: pulumi.String("foobar"),
 * 				},
 * 			},
 * 			SecretTextBindings: cloudflare.WorkersScriptSecretTextBindingArray{
 * 				&cloudflare.WorkersScriptSecretTextBindingArgs{
 * 					Name: pulumi.String("MY_EXAMPLE_SECRET_TEXT"),
 * 					Text: pulumi.Any(secretFooValue),
 * 				},
 * 			},
 * 			WebassemblyBindings: cloudflare.WorkersScriptWebassemblyBindingArray{
 * 				&cloudflare.WorkersScriptWebassemblyBindingArgs{
 * 					Name:   pulumi.String("MY_EXAMPLE_WASM"),
 * 					Module: pulumi.String(invokeFilebase641.Result),
 * 				},
 * 			},
 * 			ServiceBindings: cloudflare.WorkersScriptServiceBindingArray{
 * 				&cloudflare.WorkersScriptServiceBindingArgs{
 * 					Name:        pulumi.String("MY_SERVICE_BINDING"),
 * 					Service:     pulumi.String("MY_SERVICE"),
 * 					Environment: pulumi.String("production"),
 * 				},
 * 			},
 * 			R2BucketBindings: cloudflare.WorkersScriptR2BucketBindingArray{
 * 				&cloudflare.WorkersScriptR2BucketBindingArgs{
 * 					Name:       pulumi.String("MY_BUCKET"),
 * 					BucketName: pulumi.String("MY_BUCKET_NAME"),
 * 				},
 * 			},
 * 			AnalyticsEngineBindings: cloudflare.WorkersScriptAnalyticsEngineBindingArray{
 * 				&cloudflare.WorkersScriptAnalyticsEngineBindingArgs{
 * 					Name:    pulumi.String("MY_DATASET"),
 * 					Dataset: pulumi.String("dataset1"),
 * 				},
 * 			},
 * 		})
 * 		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 com.pulumi.cloudflare.WorkersScript;
 * import com.pulumi.cloudflare.WorkersScriptArgs;
 * import com.pulumi.cloudflare.inputs.WorkersScriptKvNamespaceBindingArgs;
 * import com.pulumi.cloudflare.inputs.WorkersScriptPlainTextBindingArgs;
 * import com.pulumi.cloudflare.inputs.WorkersScriptSecretTextBindingArgs;
 * import com.pulumi.cloudflare.inputs.WorkersScriptWebassemblyBindingArgs;
 * import com.pulumi.cloudflare.inputs.WorkersScriptServiceBindingArgs;
 * import com.pulumi.cloudflare.inputs.WorkersScriptR2BucketBindingArgs;
 * import com.pulumi.cloudflare.inputs.WorkersScriptAnalyticsEngineBindingArgs;
 * 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 myNamespace = new WorkersKvNamespace("myNamespace", WorkersKvNamespaceArgs.builder()
 *             .accountId("f037e56e89293a057740de681ac9abbe")
 *             .title("example")
 *             .build());
 *         // Sets the script with the name "script_1"
 *         var myScript = new WorkersScript("myScript", WorkersScriptArgs.builder()
 *             .accountId("f037e56e89293a057740de681ac9abbe")
 *             .name("script_1")
 *             .content(StdFunctions.file(FileArgs.builder()
 *                 .input("script.js")
 *                 .build()).result())
 *             .kvNamespaceBindings(WorkersScriptKvNamespaceBindingArgs.builder()
 *                 .name("MY_EXAMPLE_KV_NAMESPACE")
 *                 .namespaceId(myNamespace.id())
 *                 .build())
 *             .plainTextBindings(WorkersScriptPlainTextBindingArgs.builder()
 *                 .name("MY_EXAMPLE_PLAIN_TEXT")
 *                 .text("foobar")
 *                 .build())
 *             .secretTextBindings(WorkersScriptSecretTextBindingArgs.builder()
 *                 .name("MY_EXAMPLE_SECRET_TEXT")
 *                 .text(secretFooValue)
 *                 .build())
 *             .webassemblyBindings(WorkersScriptWebassemblyBindingArgs.builder()
 *                 .name("MY_EXAMPLE_WASM")
 *                 .module(StdFunctions.filebase64(Filebase64Args.builder()
 *                     .input("example.wasm")
 *                     .build()).result())
 *                 .build())
 *             .serviceBindings(WorkersScriptServiceBindingArgs.builder()
 *                 .name("MY_SERVICE_BINDING")
 *                 .service("MY_SERVICE")
 *                 .environment("production")
 *                 .build())
 *             .r2BucketBindings(WorkersScriptR2BucketBindingArgs.builder()
 *                 .name("MY_BUCKET")
 *                 .bucketName("MY_BUCKET_NAME")
 *                 .build())
 *             .analyticsEngineBindings(WorkersScriptAnalyticsEngineBindingArgs.builder()
 *                 .name("MY_DATASET")
 *                 .dataset("dataset1")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   myNamespace:
 *     type: cloudflare:WorkersKvNamespace
 *     name: my_namespace
 *     properties:
 *       accountId: f037e56e89293a057740de681ac9abbe
 *       title: example
 *   # Sets the script with the name "script_1"
 *   myScript:
 *     type: cloudflare:WorkersScript
 *     name: my_script
 *     properties:
 *       accountId: f037e56e89293a057740de681ac9abbe
 *       name: script_1
 *       content:
 *         fn::invoke:
 *           Function: std:file
 *           Arguments:
 *             input: script.js
 *           Return: result
 *       kvNamespaceBindings:
 *         - name: MY_EXAMPLE_KV_NAMESPACE
 *           namespaceId: ${myNamespace.id}
 *       plainTextBindings:
 *         - name: MY_EXAMPLE_PLAIN_TEXT
 *           text: foobar
 *       secretTextBindings:
 *         - name: MY_EXAMPLE_SECRET_TEXT
 *           text: ${secretFooValue}
 *       webassemblyBindings:
 *         - name: MY_EXAMPLE_WASM
 *           module:
 *             fn::invoke:
 *               Function: std:filebase64
 *               Arguments:
 *                 input: example.wasm
 *               Return: result
 *       serviceBindings:
 *         - name: MY_SERVICE_BINDING
 *           service: MY_SERVICE
 *           environment: production
 *       r2BucketBindings:
 *         - name: MY_BUCKET
 *           bucketName: MY_BUCKET_NAME
 *       analyticsEngineBindings:
 *         - name: MY_DATASET
 *           dataset: dataset1
 * ```
 * 
 * ## Import
 * ```sh
 * $ pulumi import cloudflare:index/workersScript:WorkersScript example /
 * ```
 * @property accountId The account identifier to target for the resource.
 * @property analyticsEngineBindings
 * @property compatibilityDate The date to use for the compatibility flag.
 * @property compatibilityFlags Compatibility flags used for Worker Scripts.
 * @property content The script content.
 * @property d1DatabaseBindings
 * @property dispatchNamespace Name of the Workers for Platforms dispatch namespace.
 * @property kvNamespaceBindings
 * @property logpush Enabling allows Worker events to be sent to a defined Logpush destination.
 * @property module Whether to upload Worker as a module.
 * @property name The name for the script. **Modifying this attribute will force creation of a new resource.**
 * @property placements
 * @property plainTextBindings
 * @property queueBindings
 * @property r2BucketBindings
 * @property secretTextBindings
 * @property serviceBindings
 * @property tags
 * @property webassemblyBindings
 */
public data class WorkersScriptArgs(
    public val accountId: Output? = null,
    public val analyticsEngineBindings: Output>? = null,
    public val compatibilityDate: Output? = null,
    public val compatibilityFlags: Output>? = null,
    public val content: Output? = null,
    public val d1DatabaseBindings: Output>? = null,
    public val dispatchNamespace: Output? = null,
    public val kvNamespaceBindings: Output>? = null,
    public val logpush: Output? = null,
    public val module: Output? = null,
    public val name: Output? = null,
    public val placements: Output>? = null,
    public val plainTextBindings: Output>? = null,
    public val queueBindings: Output>? = null,
    public val r2BucketBindings: Output>? = null,
    public val secretTextBindings: Output>? = null,
    public val serviceBindings: Output>? = null,
    public val tags: Output>? = null,
    public val webassemblyBindings: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.WorkersScriptArgs =
        com.pulumi.cloudflare.WorkersScriptArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .analyticsEngineBindings(
                analyticsEngineBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .compatibilityDate(compatibilityDate?.applyValue({ args0 -> args0 }))
            .compatibilityFlags(compatibilityFlags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .content(content?.applyValue({ args0 -> args0 }))
            .d1DatabaseBindings(
                d1DatabaseBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .dispatchNamespace(dispatchNamespace?.applyValue({ args0 -> args0 }))
            .kvNamespaceBindings(
                kvNamespaceBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .logpush(logpush?.applyValue({ args0 -> args0 }))
            .module(module?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .placements(
                placements?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .plainTextBindings(
                plainTextBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .queueBindings(
                queueBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .r2BucketBindings(
                r2BucketBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .secretTextBindings(
                secretTextBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .serviceBindings(
                serviceBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .webassemblyBindings(
                webassemblyBindings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    private var analyticsEngineBindings: Output>? = null

    private var compatibilityDate: Output? = null

    private var compatibilityFlags: Output>? = null

    private var content: Output? = null

    private var d1DatabaseBindings: Output>? = null

    private var dispatchNamespace: Output? = null

    private var kvNamespaceBindings: Output>? = null

    private var logpush: Output? = null

    private var module: Output? = null

    private var name: Output? = null

    private var placements: Output>? = null

    private var plainTextBindings: Output>? = null

    private var queueBindings: Output>? = null

    private var r2BucketBindings: Output>? = null

    private var secretTextBindings: Output>? = null

    private var serviceBindings: Output>? = null

    private var tags: Output>? = null

    private var webassemblyBindings: Output>? = null

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("jgiyrelshovmmgjo")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value
     */
    @JvmName("cnayudslufgklqxh")
    public suspend fun analyticsEngineBindings(`value`: Output>) {
        this.analyticsEngineBindings = value
    }

    @JvmName("bjrxlmqirdymlsfe")
    public suspend fun analyticsEngineBindings(vararg values: Output) {
        this.analyticsEngineBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("qpqpesebapkisjgw")
    public suspend fun analyticsEngineBindings(values: List>) {
        this.analyticsEngineBindings = Output.all(values)
    }

    /**
     * @param value The date to use for the compatibility flag.
     */
    @JvmName("daemlavnheydskxa")
    public suspend fun compatibilityDate(`value`: Output) {
        this.compatibilityDate = value
    }

    /**
     * @param value Compatibility flags used for Worker Scripts.
     */
    @JvmName("lhwxbakvbkdoatme")
    public suspend fun compatibilityFlags(`value`: Output>) {
        this.compatibilityFlags = value
    }

    @JvmName("gfcwnhebypoenogf")
    public suspend fun compatibilityFlags(vararg values: Output) {
        this.compatibilityFlags = Output.all(values.asList())
    }

    /**
     * @param values Compatibility flags used for Worker Scripts.
     */
    @JvmName("ouxhvtdxtqttylnk")
    public suspend fun compatibilityFlags(values: List>) {
        this.compatibilityFlags = Output.all(values)
    }

    /**
     * @param value The script content.
     */
    @JvmName("nygfbivyiitshpeo")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value
     */
    @JvmName("phanopaclbwahacy")
    public suspend fun d1DatabaseBindings(`value`: Output>) {
        this.d1DatabaseBindings = value
    }

    @JvmName("somhjicfcsgxuybl")
    public suspend fun d1DatabaseBindings(vararg values: Output) {
        this.d1DatabaseBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("onfgkmoyjapcwesm")
    public suspend fun d1DatabaseBindings(values: List>) {
        this.d1DatabaseBindings = Output.all(values)
    }

    /**
     * @param value Name of the Workers for Platforms dispatch namespace.
     */
    @JvmName("gkftchyjuhlktckm")
    public suspend fun dispatchNamespace(`value`: Output) {
        this.dispatchNamespace = value
    }

    /**
     * @param value
     */
    @JvmName("ohtrgsdyemnldtyi")
    public suspend fun kvNamespaceBindings(`value`: Output>) {
        this.kvNamespaceBindings = value
    }

    @JvmName("kphraeovlhjeublf")
    public suspend fun kvNamespaceBindings(vararg values: Output) {
        this.kvNamespaceBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("tfvemadouhhseadl")
    public suspend fun kvNamespaceBindings(values: List>) {
        this.kvNamespaceBindings = Output.all(values)
    }

    /**
     * @param value Enabling allows Worker events to be sent to a defined Logpush destination.
     */
    @JvmName("vuqqdakyyqtjllci")
    public suspend fun logpush(`value`: Output) {
        this.logpush = value
    }

    /**
     * @param value Whether to upload Worker as a module.
     */
    @JvmName("ehtwvomrthixhrsx")
    public suspend fun module(`value`: Output) {
        this.module = value
    }

    /**
     * @param value The name for the script. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("brlfkjyfsjblrjev")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("tgmrukkajwpjyrwx")
    public suspend fun placements(`value`: Output>) {
        this.placements = value
    }

    @JvmName("ecpeddwnslviayya")
    public suspend fun placements(vararg values: Output) {
        this.placements = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("yrrrtusrbcbpcipa")
    public suspend fun placements(values: List>) {
        this.placements = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("lxswhyqaynshsnch")
    public suspend fun plainTextBindings(`value`: Output>) {
        this.plainTextBindings = value
    }

    @JvmName("awhqablaniroyttx")
    public suspend fun plainTextBindings(vararg values: Output) {
        this.plainTextBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("aclhaxexxndfyuej")
    public suspend fun plainTextBindings(values: List>) {
        this.plainTextBindings = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("efdobkvjlfnkuruv")
    public suspend fun queueBindings(`value`: Output>) {
        this.queueBindings = value
    }

    @JvmName("nlkodhjchyeaqvdw")
    public suspend fun queueBindings(vararg values: Output) {
        this.queueBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("avksodqsbwhhxbvt")
    public suspend fun queueBindings(values: List>) {
        this.queueBindings = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("fhiehndwklomqrro")
    public suspend fun r2BucketBindings(`value`: Output>) {
        this.r2BucketBindings = value
    }

    @JvmName("iejbxuvjyathdeww")
    public suspend fun r2BucketBindings(vararg values: Output) {
        this.r2BucketBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("pvltbxjgjpmyndvd")
    public suspend fun r2BucketBindings(values: List>) {
        this.r2BucketBindings = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("xvxbpllbrgaajvgl")
    public suspend fun secretTextBindings(`value`: Output>) {
        this.secretTextBindings = value
    }

    @JvmName("ytcfkyxrieseepqp")
    public suspend fun secretTextBindings(vararg values: Output) {
        this.secretTextBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("hjvimyalpsrkdyck")
    public suspend fun secretTextBindings(values: List>) {
        this.secretTextBindings = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("vxjgefriyiafwrie")
    public suspend fun serviceBindings(`value`: Output>) {
        this.serviceBindings = value
    }

    @JvmName("kyodgjburhefjapm")
    public suspend fun serviceBindings(vararg values: Output) {
        this.serviceBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("gosnajtnmqlmvnib")
    public suspend fun serviceBindings(values: List>) {
        this.serviceBindings = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("fdkytrjbqenpjtho")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("yehnnyctblhdyqqn")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("kboyuvmgfpvfnjjh")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("gqcusrxurqjifwks")
    public suspend fun webassemblyBindings(`value`: Output>) {
        this.webassemblyBindings = value
    }

    @JvmName("tttrxbkygoookpsx")
    public suspend fun webassemblyBindings(vararg values: Output) {
        this.webassemblyBindings = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("mfdjtvpkohxtfftv")
    public suspend fun webassemblyBindings(values: List>) {
        this.webassemblyBindings = Output.all(values)
    }

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

    /**
     * @param value
     */
    @JvmName("dbadosmobajveqru")
    public suspend fun analyticsEngineBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.analyticsEngineBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ndmidhbnqjbcepos")
    public suspend fun analyticsEngineBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptAnalyticsEngineBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.analyticsEngineBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ifieasfuytoeodlo")
    public suspend fun analyticsEngineBindings(vararg argument: suspend WorkersScriptAnalyticsEngineBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptAnalyticsEngineBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.analyticsEngineBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ookijukhbkwtsvfi")
    public suspend fun analyticsEngineBindings(argument: suspend WorkersScriptAnalyticsEngineBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptAnalyticsEngineBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.analyticsEngineBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("avvljhseqrgrltgc")
    public suspend fun analyticsEngineBindings(vararg values: WorkersScriptAnalyticsEngineBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.analyticsEngineBindings = mapped
    }

    /**
     * @param value The date to use for the compatibility flag.
     */
    @JvmName("bqqhjdtocvgftevw")
    public suspend fun compatibilityDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compatibilityDate = mapped
    }

    /**
     * @param value Compatibility flags used for Worker Scripts.
     */
    @JvmName("vognngqlujawjxos")
    public suspend fun compatibilityFlags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compatibilityFlags = mapped
    }

    /**
     * @param values Compatibility flags used for Worker Scripts.
     */
    @JvmName("nyjgtdkeuxbhlbab")
    public suspend fun compatibilityFlags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.compatibilityFlags = mapped
    }

    /**
     * @param value The script content.
     */
    @JvmName("rkvtfmrevmkeejyy")
    public suspend fun content(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value
     */
    @JvmName("xcmmfgyukoldvhfc")
    public suspend fun d1DatabaseBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.d1DatabaseBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("peaenlaqwhrslxxl")
    public suspend fun d1DatabaseBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptD1DatabaseBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.d1DatabaseBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("yebowcfoavmjompa")
    public suspend fun d1DatabaseBindings(vararg argument: suspend WorkersScriptD1DatabaseBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptD1DatabaseBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.d1DatabaseBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("uuuanknydtliioqb")
    public suspend fun d1DatabaseBindings(argument: suspend WorkersScriptD1DatabaseBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptD1DatabaseBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.d1DatabaseBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("djrirbvojxuwojxp")
    public suspend fun d1DatabaseBindings(vararg values: WorkersScriptD1DatabaseBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.d1DatabaseBindings = mapped
    }

    /**
     * @param value Name of the Workers for Platforms dispatch namespace.
     */
    @JvmName("modnmknnplouhhpn")
    public suspend fun dispatchNamespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dispatchNamespace = mapped
    }

    /**
     * @param value
     */
    @JvmName("gvkgmqynemfgktce")
    public suspend fun kvNamespaceBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kvNamespaceBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("hxahjygampqsltll")
    public suspend fun kvNamespaceBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptKvNamespaceBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.kvNamespaceBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("khtxblfwmteyqwjf")
    public suspend fun kvNamespaceBindings(vararg argument: suspend WorkersScriptKvNamespaceBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptKvNamespaceBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.kvNamespaceBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("pnaxvpftqgfxwbfu")
    public suspend fun kvNamespaceBindings(argument: suspend WorkersScriptKvNamespaceBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptKvNamespaceBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.kvNamespaceBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("sqhqqsftrvpidwxv")
    public suspend fun kvNamespaceBindings(vararg values: WorkersScriptKvNamespaceBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kvNamespaceBindings = mapped
    }

    /**
     * @param value Enabling allows Worker events to be sent to a defined Logpush destination.
     */
    @JvmName("kbqehebhkiagrsgh")
    public suspend fun logpush(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logpush = mapped
    }

    /**
     * @param value Whether to upload Worker as a module.
     */
    @JvmName("yrdolqmcdihmfoje")
    public suspend fun module(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.module = mapped
    }

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

    /**
     * @param value
     */
    @JvmName("cbkheifulpejaebd")
    public suspend fun placements(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.placements = mapped
    }

    /**
     * @param argument
     */
    @JvmName("acroiqbmoalssvln")
    public suspend fun placements(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptPlacementArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.placements = mapped
    }

    /**
     * @param argument
     */
    @JvmName("moiaqghnbtiwrwek")
    public suspend fun placements(vararg argument: suspend WorkersScriptPlacementArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptPlacementArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.placements = mapped
    }

    /**
     * @param argument
     */
    @JvmName("yhkevdymacveuolv")
    public suspend fun placements(argument: suspend WorkersScriptPlacementArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(WorkersScriptPlacementArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.placements = mapped
    }

    /**
     * @param values
     */
    @JvmName("sktfatkbvrmrklkb")
    public suspend fun placements(vararg values: WorkersScriptPlacementArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.placements = mapped
    }

    /**
     * @param value
     */
    @JvmName("vsjgkyrkoepoixcj")
    public suspend fun plainTextBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.plainTextBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("yayevagbuwffhwkg")
    public suspend fun plainTextBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptPlainTextBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.plainTextBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("uymmniiaivblipci")
    public suspend fun plainTextBindings(vararg argument: suspend WorkersScriptPlainTextBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptPlainTextBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.plainTextBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("aigusfxfupboorer")
    public suspend fun plainTextBindings(argument: suspend WorkersScriptPlainTextBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptPlainTextBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.plainTextBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("vwjklghqhgiltrtj")
    public suspend fun plainTextBindings(vararg values: WorkersScriptPlainTextBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.plainTextBindings = mapped
    }

    /**
     * @param value
     */
    @JvmName("tgfxfpsyqeclxbqa")
    public suspend fun queueBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queueBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("bmakyppveeskfkrx")
    public suspend fun queueBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptQueueBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.queueBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("lpojbetgmlyagrcw")
    public suspend fun queueBindings(vararg argument: suspend WorkersScriptQueueBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptQueueBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.queueBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("segpmfnhsekiwpsw")
    public suspend fun queueBindings(argument: suspend WorkersScriptQueueBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptQueueBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.queueBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("xacoxajlefmaxvpp")
    public suspend fun queueBindings(vararg values: WorkersScriptQueueBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queueBindings = mapped
    }

    /**
     * @param value
     */
    @JvmName("fautsdfblpcckbbl")
    public suspend fun r2BucketBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.r2BucketBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("gwnsmhprwlsrygyj")
    public suspend fun r2BucketBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptR2BucketBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.r2BucketBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("fiyagvecwmmweaog")
    public suspend fun r2BucketBindings(vararg argument: suspend WorkersScriptR2BucketBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptR2BucketBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.r2BucketBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ttmsqeejaumtognv")
    public suspend fun r2BucketBindings(argument: suspend WorkersScriptR2BucketBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptR2BucketBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.r2BucketBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("evryvdapwbhdudtq")
    public suspend fun r2BucketBindings(vararg values: WorkersScriptR2BucketBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.r2BucketBindings = mapped
    }

    /**
     * @param value
     */
    @JvmName("tjdcnfvemarknewk")
    public suspend fun secretTextBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretTextBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("fybrvvoiqsblqvtf")
    public suspend fun secretTextBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptSecretTextBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.secretTextBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("aggshxdnullmuasp")
    public suspend fun secretTextBindings(vararg argument: suspend WorkersScriptSecretTextBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptSecretTextBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.secretTextBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tfeegnlykoxtnrti")
    public suspend fun secretTextBindings(argument: suspend WorkersScriptSecretTextBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptSecretTextBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.secretTextBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("xsmujvlqyskriytw")
    public suspend fun secretTextBindings(vararg values: WorkersScriptSecretTextBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretTextBindings = mapped
    }

    /**
     * @param value
     */
    @JvmName("ibxebjpoiohxacrw")
    public suspend fun serviceBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ldxbubnwnsogbsmy")
    public suspend fun serviceBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptServiceBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tbewpsmryywelnfo")
    public suspend fun serviceBindings(vararg argument: suspend WorkersScriptServiceBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptServiceBindingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("svvcbbctmngoyeap")
    public suspend fun serviceBindings(argument: suspend WorkersScriptServiceBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptServiceBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.serviceBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("wwlgvidjpvgqcshl")
    public suspend fun serviceBindings(vararg values: WorkersScriptServiceBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceBindings = mapped
    }

    /**
     * @param value
     */
    @JvmName("kcdmfxoqkrkoqkpv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values
     */
    @JvmName("liobhjwbeffrlmlk")
    public suspend fun tags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value
     */
    @JvmName("pujcljdenadkdlyg")
    public suspend fun webassemblyBindings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webassemblyBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("etxwdypqajguwdfc")
    public suspend fun webassemblyBindings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkersScriptWebassemblyBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.webassemblyBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("guylwfgldcgudigi")
    public suspend fun webassemblyBindings(vararg argument: suspend WorkersScriptWebassemblyBindingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkersScriptWebassemblyBindingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.webassemblyBindings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("eqgdomoxuofuadyp")
    public suspend fun webassemblyBindings(argument: suspend WorkersScriptWebassemblyBindingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkersScriptWebassemblyBindingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.webassemblyBindings = mapped
    }

    /**
     * @param values
     */
    @JvmName("vgaepojdlewjxrhe")
    public suspend fun webassemblyBindings(vararg values: WorkersScriptWebassemblyBindingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.webassemblyBindings = mapped
    }

    internal fun build(): WorkersScriptArgs = WorkersScriptArgs(
        accountId = accountId,
        analyticsEngineBindings = analyticsEngineBindings,
        compatibilityDate = compatibilityDate,
        compatibilityFlags = compatibilityFlags,
        content = content,
        d1DatabaseBindings = d1DatabaseBindings,
        dispatchNamespace = dispatchNamespace,
        kvNamespaceBindings = kvNamespaceBindings,
        logpush = logpush,
        module = module,
        name = name,
        placements = placements,
        plainTextBindings = plainTextBindings,
        queueBindings = queueBindings,
        r2BucketBindings = r2BucketBindings,
        secretTextBindings = secretTextBindings,
        serviceBindings = serviceBindings,
        tags = tags,
        webassemblyBindings = webassemblyBindings,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy