Please wait. This can take some minutes ...
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.
com.pulumi.azure.nginx.kotlin.ConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.nginx.kotlin
import com.pulumi.azure.nginx.ConfigurationArgs.builder
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationConfigFileArgs
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationConfigFileArgsBuilder
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationProtectedFileArgs
import com.pulumi.azure.nginx.kotlin.inputs.ConfigurationProtectedFileArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Manages the configuration for a Nginx Deployment.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* import * as std from "@pulumi/std";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-rg",
* location: "West Europe",
* });
* const examplePublicIp = new azure.network.PublicIp("example", {
* name: "example",
* resourceGroupName: example.name,
* location: example.location,
* allocationMethod: "Static",
* sku: "Standard",
* tags: {
* environment: "Production",
* },
* });
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
* name: "example-vnet",
* addressSpaces: ["10.0.0.0/16"],
* location: example.location,
* resourceGroupName: example.name,
* });
* const exampleSubnet = new azure.network.Subnet("example", {
* name: "example-subnet",
* resourceGroupName: example.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["10.0.2.0/24"],
* delegations: [{
* name: "delegation",
* serviceDelegation: {
* name: "NGINX.NGINXPLUS/nginxDeployments",
* actions: ["Microsoft.Network/virtualNetworks/subnets/join/action"],
* },
* }],
* });
* const exampleDeployment = new azure.nginx.Deployment("example", {
* name: "example-nginx",
* resourceGroupName: example.name,
* sku: "publicpreview_Monthly_gmz7xq9ge3py",
* location: example.location,
* managedResourceGroup: "example",
* diagnoseSupportEnabled: true,
* frontendPublic: {
* ipAddresses: [examplePublicIp.id],
* },
* networkInterfaces: [{
* subnetId: exampleSubnet.id,
* }],
* });
* const exampleConfiguration = new azure.nginx.Configuration("example", {
* nginxDeploymentId: exampleDeployment.id,
* rootFile: "/etc/nginx/nginx.conf",
* configFiles: [
* {
* content: std.base64encode({
* input: `http {
* server {
* listen 80;
* location / {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* include site/*.conf;
* }
* }
* `,
* }).then(invoke => invoke.result),
* virtualPath: "/etc/nginx/nginx.conf",
* },
* {
* content: std.base64encode({
* input: `location /bbb {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* `,
* }).then(invoke => invoke.result),
* virtualPath: "/etc/nginx/site/b.conf",
* },
* ],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* import pulumi_std as std
* example = azure.core.ResourceGroup("example",
* name="example-rg",
* location="West Europe")
* example_public_ip = azure.network.PublicIp("example",
* name="example",
* resource_group_name=example.name,
* location=example.location,
* allocation_method="Static",
* sku="Standard",
* tags={
* "environment": "Production",
* })
* example_virtual_network = azure.network.VirtualNetwork("example",
* name="example-vnet",
* address_spaces=["10.0.0.0/16"],
* location=example.location,
* resource_group_name=example.name)
* example_subnet = azure.network.Subnet("example",
* name="example-subnet",
* resource_group_name=example.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["10.0.2.0/24"],
* delegations=[{
* "name": "delegation",
* "service_delegation": {
* "name": "NGINX.NGINXPLUS/nginxDeployments",
* "actions": ["Microsoft.Network/virtualNetworks/subnets/join/action"],
* },
* }])
* example_deployment = azure.nginx.Deployment("example",
* name="example-nginx",
* resource_group_name=example.name,
* sku="publicpreview_Monthly_gmz7xq9ge3py",
* location=example.location,
* managed_resource_group="example",
* diagnose_support_enabled=True,
* frontend_public={
* "ip_addresses": [example_public_ip.id],
* },
* network_interfaces=[{
* "subnet_id": example_subnet.id,
* }])
* example_configuration = azure.nginx.Configuration("example",
* nginx_deployment_id=example_deployment.id,
* root_file="/etc/nginx/nginx.conf",
* config_files=[
* {
* "content": std.base64encode(input="""http {
* server {
* listen 80;
* location / {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* include site/*.conf;
* }
* }
* """).result,
* "virtual_path": "/etc/nginx/nginx.conf",
* },
* {
* "content": std.base64encode(input="""location /bbb {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* """).result,
* "virtual_path": "/etc/nginx/site/b.conf",
* },
* ])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* using Std = Pulumi.Std;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-rg",
* Location = "West Europe",
* });
* var examplePublicIp = new Azure.Network.PublicIp("example", new()
* {
* Name = "example",
* ResourceGroupName = example.Name,
* Location = example.Location,
* AllocationMethod = "Static",
* Sku = "Standard",
* Tags =
* {
* { "environment", "Production" },
* },
* });
* var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
* {
* Name = "example-vnet",
* AddressSpaces = new[]
* {
* "10.0.0.0/16",
* },
* Location = example.Location,
* ResourceGroupName = example.Name,
* });
* var exampleSubnet = new Azure.Network.Subnet("example", new()
* {
* Name = "example-subnet",
* ResourceGroupName = example.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "10.0.2.0/24",
* },
* Delegations = new[]
* {
* new Azure.Network.Inputs.SubnetDelegationArgs
* {
* Name = "delegation",
* ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
* {
* Name = "NGINX.NGINXPLUS/nginxDeployments",
* Actions = new[]
* {
* "Microsoft.Network/virtualNetworks/subnets/join/action",
* },
* },
* },
* },
* });
* var exampleDeployment = new Azure.Nginx.Deployment("example", new()
* {
* Name = "example-nginx",
* ResourceGroupName = example.Name,
* Sku = "publicpreview_Monthly_gmz7xq9ge3py",
* Location = example.Location,
* ManagedResourceGroup = "example",
* DiagnoseSupportEnabled = true,
* FrontendPublic = new Azure.Nginx.Inputs.DeploymentFrontendPublicArgs
* {
* IpAddresses = new[]
* {
* examplePublicIp.Id,
* },
* },
* NetworkInterfaces = new[]
* {
* new Azure.Nginx.Inputs.DeploymentNetworkInterfaceArgs
* {
* SubnetId = exampleSubnet.Id,
* },
* },
* });
* var exampleConfiguration = new Azure.Nginx.Configuration("example", new()
* {
* NginxDeploymentId = exampleDeployment.Id,
* RootFile = "/etc/nginx/nginx.conf",
* ConfigFiles = new[]
* {
* new Azure.Nginx.Inputs.ConfigurationConfigFileArgs
* {
* Content = Std.Base64encode.Invoke(new()
* {
* Input = @"http {
* server {
* listen 80;
* location / {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* include site/*.conf;
* }
* }
* ",
* }).Apply(invoke => invoke.Result),
* VirtualPath = "/etc/nginx/nginx.conf",
* },
* new Azure.Nginx.Inputs.ConfigurationConfigFileArgs
* {
* Content = Std.Base64encode.Invoke(new()
* {
* Input = @"location /bbb {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* ",
* }).Apply(invoke => invoke.Result),
* VirtualPath = "/etc/nginx/site/b.conf",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/nginx"
* "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 {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-rg"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
* Name: pulumi.String("example"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* AllocationMethod: pulumi.String("Static"),
* Sku: pulumi.String("Standard"),
* Tags: pulumi.StringMap{
* "environment": pulumi.String("Production"),
* },
* })
* if err != nil {
* return err
* }
* exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
* Name: pulumi.String("example-vnet"),
* AddressSpaces: pulumi.StringArray{
* pulumi.String("10.0.0.0/16"),
* },
* Location: example.Location,
* ResourceGroupName: example.Name,
* })
* if err != nil {
* return err
* }
* exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
* Name: pulumi.String("example-subnet"),
* ResourceGroupName: example.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.0.2.0/24"),
* },
* Delegations: network.SubnetDelegationArray{
* &network.SubnetDelegationArgs{
* Name: pulumi.String("delegation"),
* ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
* Name: pulumi.String("NGINX.NGINXPLUS/nginxDeployments"),
* Actions: pulumi.StringArray{
* pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* exampleDeployment, err := nginx.NewDeployment(ctx, "example", &nginx.DeploymentArgs{
* Name: pulumi.String("example-nginx"),
* ResourceGroupName: example.Name,
* Sku: pulumi.String("publicpreview_Monthly_gmz7xq9ge3py"),
* Location: example.Location,
* ManagedResourceGroup: pulumi.String("example"),
* DiagnoseSupportEnabled: pulumi.Bool(true),
* FrontendPublic: &nginx.DeploymentFrontendPublicArgs{
* IpAddresses: pulumi.StringArray{
* examplePublicIp.ID(),
* },
* },
* NetworkInterfaces: nginx.DeploymentNetworkInterfaceArray{
* &nginx.DeploymentNetworkInterfaceArgs{
* SubnetId: exampleSubnet.ID(),
* },
* },
* })
* if err != nil {
* return err
* }
* invokeBase64encode, err := std.Base64encode(ctx, &std.Base64encodeArgs{
* Input: `http {
* server {
* listen 80;
* location / {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* include site/*.conf;
* }
* }
* `,
* }, nil)
* if err != nil {
* return err
* }
* invokeBase64encode1, err := std.Base64encode(ctx, &std.Base64encodeArgs{
* Input: `location /bbb {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* `,
* }, nil)
* if err != nil {
* return err
* }
* _, err = nginx.NewConfiguration(ctx, "example", &nginx.ConfigurationArgs{
* NginxDeploymentId: exampleDeployment.ID(),
* RootFile: pulumi.String("/etc/nginx/nginx.conf"),
* ConfigFiles: nginx.ConfigurationConfigFileArray{
* &nginx.ConfigurationConfigFileArgs{
* Content: pulumi.String(invokeBase64encode.Result),
* VirtualPath: pulumi.String("/etc/nginx/nginx.conf"),
* },
* &nginx.ConfigurationConfigFileArgs{
* Content: pulumi.String(invokeBase64encode1.Result),
* VirtualPath: pulumi.String("/etc/nginx/site/b.conf"),
* },
* },
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.network.PublicIp;
* import com.pulumi.azure.network.PublicIpArgs;
* import com.pulumi.azure.network.VirtualNetwork;
* import com.pulumi.azure.network.VirtualNetworkArgs;
* import com.pulumi.azure.network.Subnet;
* import com.pulumi.azure.network.SubnetArgs;
* import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
* import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
* import com.pulumi.azure.nginx.Deployment;
* import com.pulumi.azure.nginx.DeploymentArgs;
* import com.pulumi.azure.nginx.inputs.DeploymentFrontendPublicArgs;
* import com.pulumi.azure.nginx.inputs.DeploymentNetworkInterfaceArgs;
* import com.pulumi.azure.nginx.Configuration;
* import com.pulumi.azure.nginx.ConfigurationArgs;
* import com.pulumi.azure.nginx.inputs.ConfigurationConfigFileArgs;
* 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 ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-rg")
* .location("West Europe")
* .build());
* var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
* .name("example")
* .resourceGroupName(example.name())
* .location(example.location())
* .allocationMethod("Static")
* .sku("Standard")
* .tags(Map.of("environment", "Production"))
* .build());
* var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
* .name("example-vnet")
* .addressSpaces("10.0.0.0/16")
* .location(example.location())
* .resourceGroupName(example.name())
* .build());
* var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
* .name("example-subnet")
* .resourceGroupName(example.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("10.0.2.0/24")
* .delegations(SubnetDelegationArgs.builder()
* .name("delegation")
* .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
* .name("NGINX.NGINXPLUS/nginxDeployments")
* .actions("Microsoft.Network/virtualNetworks/subnets/join/action")
* .build())
* .build())
* .build());
* var exampleDeployment = new Deployment("exampleDeployment", DeploymentArgs.builder()
* .name("example-nginx")
* .resourceGroupName(example.name())
* .sku("publicpreview_Monthly_gmz7xq9ge3py")
* .location(example.location())
* .managedResourceGroup("example")
* .diagnoseSupportEnabled(true)
* .frontendPublic(DeploymentFrontendPublicArgs.builder()
* .ipAddresses(examplePublicIp.id())
* .build())
* .networkInterfaces(DeploymentNetworkInterfaceArgs.builder()
* .subnetId(exampleSubnet.id())
* .build())
* .build());
* var exampleConfiguration = new Configuration("exampleConfiguration", ConfigurationArgs.builder()
* .nginxDeploymentId(exampleDeployment.id())
* .rootFile("/etc/nginx/nginx.conf")
* .configFiles(
* ConfigurationConfigFileArgs.builder()
* .content(StdFunctions.base64encode(Base64encodeArgs.builder()
* .input("""
* http {
* server {
* listen 80;
* location / {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* include site/*.conf;
* }
* }
* """)
* .build()).result())
* .virtualPath("/etc/nginx/nginx.conf")
* .build(),
* ConfigurationConfigFileArgs.builder()
* .content(StdFunctions.base64encode(Base64encodeArgs.builder()
* .input("""
* location /bbb {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* """)
* .build()).result())
* .virtualPath("/etc/nginx/site/b.conf")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-rg
* location: West Europe
* examplePublicIp:
* type: azure:network:PublicIp
* name: example
* properties:
* name: example
* resourceGroupName: ${example.name}
* location: ${example.location}
* allocationMethod: Static
* sku: Standard
* tags:
* environment: Production
* exampleVirtualNetwork:
* type: azure:network:VirtualNetwork
* name: example
* properties:
* name: example-vnet
* addressSpaces:
* - 10.0.0.0/16
* location: ${example.location}
* resourceGroupName: ${example.name}
* exampleSubnet:
* type: azure:network:Subnet
* name: example
* properties:
* name: example-subnet
* resourceGroupName: ${example.name}
* virtualNetworkName: ${exampleVirtualNetwork.name}
* addressPrefixes:
* - 10.0.2.0/24
* delegations:
* - name: delegation
* serviceDelegation:
* name: NGINX.NGINXPLUS/nginxDeployments
* actions:
* - Microsoft.Network/virtualNetworks/subnets/join/action
* exampleDeployment:
* type: azure:nginx:Deployment
* name: example
* properties:
* name: example-nginx
* resourceGroupName: ${example.name}
* sku: publicpreview_Monthly_gmz7xq9ge3py
* location: ${example.location}
* managedResourceGroup: example
* diagnoseSupportEnabled: true
* frontendPublic:
* ipAddresses:
* - ${examplePublicIp.id}
* networkInterfaces:
* - subnetId: ${exampleSubnet.id}
* exampleConfiguration:
* type: azure:nginx:Configuration
* name: example
* properties:
* nginxDeploymentId: ${exampleDeployment.id}
* rootFile: /etc/nginx/nginx.conf
* configFiles:
* - content:
* fn::invoke:
* Function: std:base64encode
* Arguments:
* input: |
* http {
* server {
* listen 80;
* location / {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* include site/*.conf;
* }
* }
* Return: result
* virtualPath: /etc/nginx/nginx.conf
* - content:
* fn::invoke:
* Function: std:base64encode
* Arguments:
* input: |
* location /bbb {
* default_type text/html;
* return 200 '
* this one will be updated
* at 10:38 am
* ';
* }
* Return: result
* virtualPath: /etc/nginx/site/b.conf
* ```
*
* ## Import
* An Nginx Configuration can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:nginx/configuration:Configuration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Nginx.NginxPlus/nginxDeployments/dep1/configurations/default
* ```
* @property configFiles One or more `config_file` blocks as defined below.
* @property nginxDeploymentId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
* @property packageData Specifies the package data for this configuration.
* @property protectedFiles One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
* @property rootFile Specifies the root file path of this Nginx Configuration.
* */*/*/*/*/*/
*/
public data class ConfigurationArgs(
public val configFiles: Output>? = null,
public val nginxDeploymentId: Output? = null,
public val packageData: Output? = null,
public val protectedFiles: Output>? = null,
public val rootFile: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.nginx.ConfigurationArgs =
com.pulumi.azure.nginx.ConfigurationArgs.builder()
.configFiles(
configFiles?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.nginxDeploymentId(nginxDeploymentId?.applyValue({ args0 -> args0 }))
.packageData(packageData?.applyValue({ args0 -> args0 }))
.protectedFiles(
protectedFiles?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.rootFile(rootFile?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConfigurationArgs].
*/
@PulumiTagMarker
public class ConfigurationArgsBuilder internal constructor() {
private var configFiles: Output>? = null
private var nginxDeploymentId: Output? = null
private var packageData: Output? = null
private var protectedFiles: Output>? = null
private var rootFile: Output? = null
/**
* @param value One or more `config_file` blocks as defined below.
*/
@JvmName("tjwekiceaumucmvn")
public suspend fun configFiles(`value`: Output>) {
this.configFiles = value
}
@JvmName("gpyqjcnwcyquaqwv")
public suspend fun configFiles(vararg values: Output) {
this.configFiles = Output.all(values.asList())
}
/**
* @param values One or more `config_file` blocks as defined below.
*/
@JvmName("jsiwutojkcjtyfaf")
public suspend fun configFiles(values: List>) {
this.configFiles = Output.all(values)
}
/**
* @param value The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
*/
@JvmName("ibbihdplknxhwuei")
public suspend fun nginxDeploymentId(`value`: Output) {
this.nginxDeploymentId = value
}
/**
* @param value Specifies the package data for this configuration.
*/
@JvmName("xgsxececybciaiam")
public suspend fun packageData(`value`: Output) {
this.packageData = value
}
/**
* @param value One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
*/
@JvmName("ejoooibfdypopbdm")
public suspend fun protectedFiles(`value`: Output>) {
this.protectedFiles = value
}
@JvmName("yunxyqkjeydydgni")
public suspend fun protectedFiles(vararg values: Output) {
this.protectedFiles = Output.all(values.asList())
}
/**
* @param values One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
*/
@JvmName("ntwsafvviycvfhwp")
public suspend fun protectedFiles(values: List>) {
this.protectedFiles = Output.all(values)
}
/**
* @param value Specifies the root file path of this Nginx Configuration.
*/
@JvmName("wryhagboamldkuyd")
public suspend fun rootFile(`value`: Output) {
this.rootFile = value
}
/**
* @param value One or more `config_file` blocks as defined below.
*/
@JvmName("kkmavemgaqseqpuy")
public suspend fun configFiles(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.configFiles = mapped
}
/**
* @param argument One or more `config_file` blocks as defined below.
*/
@JvmName("ejceeofculjpfpbm")
public suspend fun configFiles(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ConfigurationConfigFileArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.configFiles = mapped
}
/**
* @param argument One or more `config_file` blocks as defined below.
*/
@JvmName("pmfbenowlowkmoni")
public suspend fun configFiles(vararg argument: suspend ConfigurationConfigFileArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ConfigurationConfigFileArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.configFiles = mapped
}
/**
* @param argument One or more `config_file` blocks as defined below.
*/
@JvmName("mbynkruavjrpwumi")
public suspend fun configFiles(argument: suspend ConfigurationConfigFileArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
ConfigurationConfigFileArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.configFiles = mapped
}
/**
* @param values One or more `config_file` blocks as defined below.
*/
@JvmName("pufrjpqpyojmhndq")
public suspend fun configFiles(vararg values: ConfigurationConfigFileArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.configFiles = mapped
}
/**
* @param value The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
*/
@JvmName("ysdslfmnahlyipmm")
public suspend fun nginxDeploymentId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nginxDeploymentId = mapped
}
/**
* @param value Specifies the package data for this configuration.
*/
@JvmName("aupbegffyxfhjtwy")
public suspend fun packageData(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.packageData = mapped
}
/**
* @param value One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
*/
@JvmName("lnnqqdpmfwldnmmi")
public suspend fun protectedFiles(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protectedFiles = mapped
}
/**
* @param argument One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
*/
@JvmName("pcwgojeilmiefkue")
public suspend fun protectedFiles(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ConfigurationProtectedFileArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.protectedFiles = mapped
}
/**
* @param argument One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
*/
@JvmName("jynwbucinstpluev")
public suspend fun protectedFiles(vararg argument: suspend ConfigurationProtectedFileArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ConfigurationProtectedFileArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.protectedFiles = mapped
}
/**
* @param argument One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
*/
@JvmName("amqmhwmynfslpdto")
public suspend fun protectedFiles(argument: suspend ConfigurationProtectedFileArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
ConfigurationProtectedFileArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.protectedFiles = mapped
}
/**
* @param values One or more `protected_file` blocks with sensitive information as defined below. If specified `config_file` must also be specified.
*/
@JvmName("efpstxhmmlifwpwf")
public suspend fun protectedFiles(vararg values: ConfigurationProtectedFileArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protectedFiles = mapped
}
/**
* @param value Specifies the root file path of this Nginx Configuration.
*/
@JvmName("sxtysasmssnurdfi")
public suspend fun rootFile(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rootFile = mapped
}
internal fun build(): ConfigurationArgs = ConfigurationArgs(
configFiles = configFiles,
nginxDeploymentId = nginxDeploymentId,
packageData = packageData,
protectedFiles = protectedFiles,
rootFile = rootFile,
)
}