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

com.pulumi.aws.opsworks.kotlin.NodejsAppLayerArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin

import com.pulumi.aws.opsworks.NodejsAppLayerArgs.builder
import com.pulumi.aws.opsworks.kotlin.inputs.NodejsAppLayerCloudwatchConfigurationArgs
import com.pulumi.aws.opsworks.kotlin.inputs.NodejsAppLayerCloudwatchConfigurationArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.NodejsAppLayerEbsVolumeArgs
import com.pulumi.aws.opsworks.kotlin.inputs.NodejsAppLayerEbsVolumeArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.NodejsAppLayerLoadBasedAutoScalingArgs
import com.pulumi.aws.opsworks.kotlin.inputs.NodejsAppLayerLoadBasedAutoScalingArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides an OpsWorks NodeJS application layer resource.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const app = new aws.opsworks.NodejsAppLayer("app", {stackId: main.id});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * app = aws.opsworks.NodejsAppLayer("app", stack_id=main["id"])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var app = new Aws.OpsWorks.NodejsAppLayer("app", new()
 *     {
 *         StackId = main.Id,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := opsworks.NewNodejsAppLayer(ctx, "app", &opsworks.NodejsAppLayerArgs{
 * 			StackId: pulumi.Any(main.Id),
 * 		})
 * 		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.aws.opsworks.NodejsAppLayer;
 * import com.pulumi.aws.opsworks.NodejsAppLayerArgs;
 * 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 app = new NodejsAppLayer("app", NodejsAppLayerArgs.builder()
 *             .stackId(main.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   app:
 *     type: aws:opsworks:NodejsAppLayer
 *     properties:
 *       stackId: ${main.id}
 * ```
 * 
 * @property autoAssignElasticIps Whether to automatically assign an elastic IP address to the layer's instances.
 * @property autoAssignPublicIps For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
 * @property autoHealing Whether to enable auto-healing for the layer.
 * @property cloudwatchConfiguration
 * @property customConfigureRecipes
 * @property customDeployRecipes
 * @property customInstanceProfileArn The ARN of an IAM profile that will be used for the layer's instances.
 * @property customJson Custom JSON attributes to apply to the layer.
 * @property customSecurityGroupIds Ids for a set of security groups to apply to the layer's instances.
 * @property customSetupRecipes
 * @property customShutdownRecipes
 * @property customUndeployRecipes
 * @property drainElbOnShutdown Whether to enable Elastic Load Balancing connection draining.
 * @property ebsVolumes `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
 * @property elasticLoadBalancer Name of an Elastic Load Balancer to attach to this layer
 * @property installUpdatesOnBoot Whether to install OS and package updates on each instance when it boots.
 * @property instanceShutdownTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
 * @property loadBasedAutoScaling
 * @property name A human-readable name for the layer.
 * @property nodejsVersion The version of NodeJS to use. Defaults to "0.10.38".
 * @property stackId ID of the stack the layer will belong to.
 * @property systemPackages Names of a set of system packages to install on the layer's instances.
 * @property tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 * The following extra optional arguments, all lists of Chef recipe names, allow
 * custom Chef recipes to be applied to layer instances at the five different
 * lifecycle events, if custom cookbooks are enabled on the layer's stack:
 * @property useEbsOptimizedInstances Whether to use EBS-optimized instances.
 */
public data class NodejsAppLayerArgs(
    public val autoAssignElasticIps: Output? = null,
    public val autoAssignPublicIps: Output? = null,
    public val autoHealing: Output? = null,
    public val cloudwatchConfiguration: Output? = null,
    public val customConfigureRecipes: Output>? = null,
    public val customDeployRecipes: Output>? = null,
    public val customInstanceProfileArn: Output? = null,
    public val customJson: Output? = null,
    public val customSecurityGroupIds: Output>? = null,
    public val customSetupRecipes: Output>? = null,
    public val customShutdownRecipes: Output>? = null,
    public val customUndeployRecipes: Output>? = null,
    public val drainElbOnShutdown: Output? = null,
    public val ebsVolumes: Output>? = null,
    public val elasticLoadBalancer: Output? = null,
    public val installUpdatesOnBoot: Output? = null,
    public val instanceShutdownTimeout: Output? = null,
    public val loadBasedAutoScaling: Output? = null,
    public val name: Output? = null,
    public val nodejsVersion: Output? = null,
    public val stackId: Output? = null,
    public val systemPackages: Output>? = null,
    public val tags: Output>? = null,
    public val useEbsOptimizedInstances: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.NodejsAppLayerArgs =
        com.pulumi.aws.opsworks.NodejsAppLayerArgs.builder()
            .autoAssignElasticIps(autoAssignElasticIps?.applyValue({ args0 -> args0 }))
            .autoAssignPublicIps(autoAssignPublicIps?.applyValue({ args0 -> args0 }))
            .autoHealing(autoHealing?.applyValue({ args0 -> args0 }))
            .cloudwatchConfiguration(
                cloudwatchConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .customConfigureRecipes(
                customConfigureRecipes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .customDeployRecipes(customDeployRecipes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .customInstanceProfileArn(customInstanceProfileArn?.applyValue({ args0 -> args0 }))
            .customJson(customJson?.applyValue({ args0 -> args0 }))
            .customSecurityGroupIds(
                customSecurityGroupIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .customSetupRecipes(customSetupRecipes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .customShutdownRecipes(customShutdownRecipes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .customUndeployRecipes(customUndeployRecipes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .drainElbOnShutdown(drainElbOnShutdown?.applyValue({ args0 -> args0 }))
            .ebsVolumes(
                ebsVolumes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .elasticLoadBalancer(elasticLoadBalancer?.applyValue({ args0 -> args0 }))
            .installUpdatesOnBoot(installUpdatesOnBoot?.applyValue({ args0 -> args0 }))
            .instanceShutdownTimeout(instanceShutdownTimeout?.applyValue({ args0 -> args0 }))
            .loadBasedAutoScaling(
                loadBasedAutoScaling?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .nodejsVersion(nodejsVersion?.applyValue({ args0 -> args0 }))
            .stackId(stackId?.applyValue({ args0 -> args0 }))
            .systemPackages(systemPackages?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .useEbsOptimizedInstances(useEbsOptimizedInstances?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodejsAppLayerArgs].
 */
@PulumiTagMarker
public class NodejsAppLayerArgsBuilder internal constructor() {
    private var autoAssignElasticIps: Output? = null

    private var autoAssignPublicIps: Output? = null

    private var autoHealing: Output? = null

    private var cloudwatchConfiguration: Output? = null

    private var customConfigureRecipes: Output>? = null

    private var customDeployRecipes: Output>? = null

    private var customInstanceProfileArn: Output? = null

    private var customJson: Output? = null

    private var customSecurityGroupIds: Output>? = null

    private var customSetupRecipes: Output>? = null

    private var customShutdownRecipes: Output>? = null

    private var customUndeployRecipes: Output>? = null

    private var drainElbOnShutdown: Output? = null

    private var ebsVolumes: Output>? = null

    private var elasticLoadBalancer: Output? = null

    private var installUpdatesOnBoot: Output? = null

    private var instanceShutdownTimeout: Output? = null

    private var loadBasedAutoScaling: Output? = null

    private var name: Output? = null

    private var nodejsVersion: Output? = null

    private var stackId: Output? = null

    private var systemPackages: Output>? = null

    private var tags: Output>? = null

    private var useEbsOptimizedInstances: Output? = null

    /**
     * @param value Whether to automatically assign an elastic IP address to the layer's instances.
     */
    @JvmName("ojfdegajyfgbroxl")
    public suspend fun autoAssignElasticIps(`value`: Output) {
        this.autoAssignElasticIps = value
    }

    /**
     * @param value For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
     */
    @JvmName("lfvuitkkwnffvgdn")
    public suspend fun autoAssignPublicIps(`value`: Output) {
        this.autoAssignPublicIps = value
    }

    /**
     * @param value Whether to enable auto-healing for the layer.
     */
    @JvmName("nkqsewxfrulriuui")
    public suspend fun autoHealing(`value`: Output) {
        this.autoHealing = value
    }

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

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

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

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

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

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

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

    /**
     * @param value The ARN of an IAM profile that will be used for the layer's instances.
     */
    @JvmName("mxlbsllkqjwakwhu")
    public suspend fun customInstanceProfileArn(`value`: Output) {
        this.customInstanceProfileArn = value
    }

    /**
     * @param value Custom JSON attributes to apply to the layer.
     */
    @JvmName("rwbyqfoiagmtnmos")
    public suspend fun customJson(`value`: Output) {
        this.customJson = value
    }

    /**
     * @param value Ids for a set of security groups to apply to the layer's instances.
     */
    @JvmName("veoyaosfnuqnjtbt")
    public suspend fun customSecurityGroupIds(`value`: Output>) {
        this.customSecurityGroupIds = value
    }

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

    /**
     * @param values Ids for a set of security groups to apply to the layer's instances.
     */
    @JvmName("argbqrblocewuusi")
    public suspend fun customSecurityGroupIds(values: List>) {
        this.customSecurityGroupIds = Output.all(values)
    }

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

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

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

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

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

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

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

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

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

    /**
     * @param value Whether to enable Elastic Load Balancing connection draining.
     */
    @JvmName("lfkxipqydstkiscn")
    public suspend fun drainElbOnShutdown(`value`: Output) {
        this.drainElbOnShutdown = value
    }

    /**
     * @param value `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
     */
    @JvmName("atlfwevugtulejov")
    public suspend fun ebsVolumes(`value`: Output>) {
        this.ebsVolumes = value
    }

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

    /**
     * @param values `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
     */
    @JvmName("qisppsqtxoqffikv")
    public suspend fun ebsVolumes(values: List>) {
        this.ebsVolumes = Output.all(values)
    }

    /**
     * @param value Name of an Elastic Load Balancer to attach to this layer
     */
    @JvmName("xnncbcxfymatnvdf")
    public suspend fun elasticLoadBalancer(`value`: Output) {
        this.elasticLoadBalancer = value
    }

    /**
     * @param value Whether to install OS and package updates on each instance when it boots.
     */
    @JvmName("tepcmikktndmohds")
    public suspend fun installUpdatesOnBoot(`value`: Output) {
        this.installUpdatesOnBoot = value
    }

    /**
     * @param value The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
     */
    @JvmName("bdkmbenyoutgruni")
    public suspend fun instanceShutdownTimeout(`value`: Output) {
        this.instanceShutdownTimeout = value
    }

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

    /**
     * @param value A human-readable name for the layer.
     */
    @JvmName("wmkpngnlcsxuejcn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The version of NodeJS to use. Defaults to "0.10.38".
     */
    @JvmName("xnqcptmnfhobxujl")
    public suspend fun nodejsVersion(`value`: Output) {
        this.nodejsVersion = value
    }

    /**
     * @param value ID of the stack the layer will belong to.
     */
    @JvmName("aeantysfkprcyvsg")
    public suspend fun stackId(`value`: Output) {
        this.stackId = value
    }

    /**
     * @param value Names of a set of system packages to install on the layer's instances.
     */
    @JvmName("dkhomvjtgywccmwx")
    public suspend fun systemPackages(`value`: Output>) {
        this.systemPackages = value
    }

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

    /**
     * @param values Names of a set of system packages to install on the layer's instances.
     */
    @JvmName("nnhnhsbumqgfklgg")
    public suspend fun systemPackages(values: List>) {
        this.systemPackages = Output.all(values)
    }

    /**
     * @param value A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * The following extra optional arguments, all lists of Chef recipe names, allow
     * custom Chef recipes to be applied to layer instances at the five different
     * lifecycle events, if custom cookbooks are enabled on the layer's stack:
     */
    @JvmName("wrnprlwusmsvibba")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Whether to use EBS-optimized instances.
     */
    @JvmName("dvngktipmywritck")
    public suspend fun useEbsOptimizedInstances(`value`: Output) {
        this.useEbsOptimizedInstances = value
    }

    /**
     * @param value Whether to automatically assign an elastic IP address to the layer's instances.
     */
    @JvmName("eteywhnvnookwrth")
    public suspend fun autoAssignElasticIps(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoAssignElasticIps = mapped
    }

    /**
     * @param value For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
     */
    @JvmName("parqiuyctbojjiqx")
    public suspend fun autoAssignPublicIps(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoAssignPublicIps = mapped
    }

    /**
     * @param value Whether to enable auto-healing for the layer.
     */
    @JvmName("cpdtebolcxwyoqcg")
    public suspend fun autoHealing(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoHealing = mapped
    }

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

    /**
     * @param argument
     */
    @JvmName("dbswjbnlksccnroe")
    public suspend fun cloudwatchConfiguration(argument: suspend NodejsAppLayerCloudwatchConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = NodejsAppLayerCloudwatchConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cloudwatchConfiguration = mapped
    }

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

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

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

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

    /**
     * @param value The ARN of an IAM profile that will be used for the layer's instances.
     */
    @JvmName("dcvpotjcbgqrnsxy")
    public suspend fun customInstanceProfileArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customInstanceProfileArn = mapped
    }

    /**
     * @param value Custom JSON attributes to apply to the layer.
     */
    @JvmName("bsakeissncjalpof")
    public suspend fun customJson(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customJson = mapped
    }

    /**
     * @param value Ids for a set of security groups to apply to the layer's instances.
     */
    @JvmName("jybmvvpmufumbaqa")
    public suspend fun customSecurityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customSecurityGroupIds = mapped
    }

    /**
     * @param values Ids for a set of security groups to apply to the layer's instances.
     */
    @JvmName("tvyskuiinysyibxj")
    public suspend fun customSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customSecurityGroupIds = mapped
    }

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

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

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

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

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

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

    /**
     * @param value Whether to enable Elastic Load Balancing connection draining.
     */
    @JvmName("kxplpvkfdietveyc")
    public suspend fun drainElbOnShutdown(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.drainElbOnShutdown = mapped
    }

    /**
     * @param value `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
     */
    @JvmName("ubamgukqbhnvloye")
    public suspend fun ebsVolumes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ebsVolumes = mapped
    }

    /**
     * @param argument `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
     */
    @JvmName("xaajomdnklbicsxr")
    public suspend fun ebsVolumes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NodejsAppLayerEbsVolumeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ebsVolumes = mapped
    }

    /**
     * @param argument `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
     */
    @JvmName("gempcmwxhwargusc")
    public suspend fun ebsVolumes(vararg argument: suspend NodejsAppLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NodejsAppLayerEbsVolumeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ebsVolumes = mapped
    }

    /**
     * @param argument `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
     */
    @JvmName("osisttrqdwquklrj")
    public suspend fun ebsVolumes(argument: suspend NodejsAppLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NodejsAppLayerEbsVolumeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ebsVolumes = mapped
    }

    /**
     * @param values `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
     */
    @JvmName("yoctrdjghqtinsrx")
    public suspend fun ebsVolumes(vararg values: NodejsAppLayerEbsVolumeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ebsVolumes = mapped
    }

    /**
     * @param value Name of an Elastic Load Balancer to attach to this layer
     */
    @JvmName("ltdsntkuuitenklt")
    public suspend fun elasticLoadBalancer(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.elasticLoadBalancer = mapped
    }

    /**
     * @param value Whether to install OS and package updates on each instance when it boots.
     */
    @JvmName("uemmduulsoodivsu")
    public suspend fun installUpdatesOnBoot(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.installUpdatesOnBoot = mapped
    }

    /**
     * @param value The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
     */
    @JvmName("higmcoukmnbrqmgb")
    public suspend fun instanceShutdownTimeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceShutdownTimeout = mapped
    }

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

    /**
     * @param argument
     */
    @JvmName("yxypssncubyvjmqb")
    public suspend fun loadBasedAutoScaling(argument: suspend NodejsAppLayerLoadBasedAutoScalingArgsBuilder.() -> Unit) {
        val toBeMapped = NodejsAppLayerLoadBasedAutoScalingArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.loadBasedAutoScaling = mapped
    }

    /**
     * @param value A human-readable name for the layer.
     */
    @JvmName("wvhlqihesvshkaft")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The version of NodeJS to use. Defaults to "0.10.38".
     */
    @JvmName("xqtdkkgotyioxvjw")
    public suspend fun nodejsVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodejsVersion = mapped
    }

    /**
     * @param value ID of the stack the layer will belong to.
     */
    @JvmName("oqprjtdfyqpdnmde")
    public suspend fun stackId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stackId = mapped
    }

    /**
     * @param value Names of a set of system packages to install on the layer's instances.
     */
    @JvmName("lvupwnrurupdubyw")
    public suspend fun systemPackages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemPackages = mapped
    }

    /**
     * @param values Names of a set of system packages to install on the layer's instances.
     */
    @JvmName("ksgjvlyyijdlhhse")
    public suspend fun systemPackages(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.systemPackages = mapped
    }

    /**
     * @param value A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * The following extra optional arguments, all lists of Chef recipe names, allow
     * custom Chef recipes to be applied to layer instances at the five different
     * lifecycle events, if custom cookbooks are enabled on the layer's stack:
     */
    @JvmName("ghsteuwjdfualedn")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * The following extra optional arguments, all lists of Chef recipe names, allow
     * custom Chef recipes to be applied to layer instances at the five different
     * lifecycle events, if custom cookbooks are enabled on the layer's stack:
     */
    @JvmName("tvqcgtklylwrmkwk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Whether to use EBS-optimized instances.
     */
    @JvmName("lshliedykxfwmbjo")
    public suspend fun useEbsOptimizedInstances(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useEbsOptimizedInstances = mapped
    }

    internal fun build(): NodejsAppLayerArgs = NodejsAppLayerArgs(
        autoAssignElasticIps = autoAssignElasticIps,
        autoAssignPublicIps = autoAssignPublicIps,
        autoHealing = autoHealing,
        cloudwatchConfiguration = cloudwatchConfiguration,
        customConfigureRecipes = customConfigureRecipes,
        customDeployRecipes = customDeployRecipes,
        customInstanceProfileArn = customInstanceProfileArn,
        customJson = customJson,
        customSecurityGroupIds = customSecurityGroupIds,
        customSetupRecipes = customSetupRecipes,
        customShutdownRecipes = customShutdownRecipes,
        customUndeployRecipes = customUndeployRecipes,
        drainElbOnShutdown = drainElbOnShutdown,
        ebsVolumes = ebsVolumes,
        elasticLoadBalancer = elasticLoadBalancer,
        installUpdatesOnBoot = installUpdatesOnBoot,
        instanceShutdownTimeout = instanceShutdownTimeout,
        loadBasedAutoScaling = loadBasedAutoScaling,
        name = name,
        nodejsVersion = nodejsVersion,
        stackId = stackId,
        systemPackages = systemPackages,
        tags = tags,
        useEbsOptimizedInstances = useEbsOptimizedInstances,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy