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

com.pulumi.aws.opsworks.kotlin.RailsAppLayerArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin

import com.pulumi.aws.opsworks.RailsAppLayerArgs.builder
import com.pulumi.aws.opsworks.kotlin.inputs.RailsAppLayerCloudwatchConfigurationArgs
import com.pulumi.aws.opsworks.kotlin.inputs.RailsAppLayerCloudwatchConfigurationArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.RailsAppLayerEbsVolumeArgs
import com.pulumi.aws.opsworks.kotlin.inputs.RailsAppLayerEbsVolumeArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.RailsAppLayerLoadBasedAutoScalingArgs
import com.pulumi.aws.opsworks.kotlin.inputs.RailsAppLayerLoadBasedAutoScalingArgsBuilder
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 Ruby on Rails application layer resource.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const app = new aws.opsworks.RailsAppLayer("app", {stackId: main.id});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * app = aws.opsworks.RailsAppLayer("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.RailsAppLayer("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.NewRailsAppLayer(ctx, "app", &opsworks.RailsAppLayerArgs{
 * 			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.RailsAppLayer;
 * import com.pulumi.aws.opsworks.RailsAppLayerArgs;
 * 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 RailsAppLayer("app", RailsAppLayerArgs.builder()
 *             .stackId(main.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   app:
 *     type: aws:opsworks:RailsAppLayer
 *     properties:
 *       stackId: ${main.id}
 * ```
 * 
 * @property appServer Keyword for the app server to use. Defaults to "apache_passenger".
 * @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 bundlerVersion When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
 * @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 manageBundler Whether OpsWorks should manage bundler. On by default.
 * @property name A human-readable name for the layer.
 * @property passengerVersion The version of Passenger to use. Defaults to "4.0.46".
 * @property rubyVersion The version of Ruby to use. Defaults to "2.0.0".
 * @property rubygemsVersion The version of RubyGems to use. Defaults to "2.2.2".
 * @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 RailsAppLayerArgs(
    public val appServer: Output? = null,
    public val autoAssignElasticIps: Output? = null,
    public val autoAssignPublicIps: Output? = null,
    public val autoHealing: Output? = null,
    public val bundlerVersion: 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 manageBundler: Output? = null,
    public val name: Output? = null,
    public val passengerVersion: Output? = null,
    public val rubyVersion: Output? = null,
    public val rubygemsVersion: 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.RailsAppLayerArgs =
        com.pulumi.aws.opsworks.RailsAppLayerArgs.builder()
            .appServer(appServer?.applyValue({ args0 -> args0 }))
            .autoAssignElasticIps(autoAssignElasticIps?.applyValue({ args0 -> args0 }))
            .autoAssignPublicIps(autoAssignPublicIps?.applyValue({ args0 -> args0 }))
            .autoHealing(autoHealing?.applyValue({ args0 -> args0 }))
            .bundlerVersion(bundlerVersion?.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()
                    })
                }),
            )
            .manageBundler(manageBundler?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .passengerVersion(passengerVersion?.applyValue({ args0 -> args0 }))
            .rubyVersion(rubyVersion?.applyValue({ args0 -> args0 }))
            .rubygemsVersion(rubygemsVersion?.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 [RailsAppLayerArgs].
 */
@PulumiTagMarker
public class RailsAppLayerArgsBuilder internal constructor() {
    private var appServer: Output? = null

    private var autoAssignElasticIps: Output? = null

    private var autoAssignPublicIps: Output? = null

    private var autoHealing: Output? = null

    private var bundlerVersion: 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 manageBundler: Output? = null

    private var name: Output? = null

    private var passengerVersion: Output? = null

    private var rubyVersion: Output? = null

    private var rubygemsVersion: Output? = null

    private var stackId: Output? = null

    private var systemPackages: Output>? = null

    private var tags: Output>? = null

    private var useEbsOptimizedInstances: Output? = null

    /**
     * @param value Keyword for the app server to use. Defaults to "apache_passenger".
     */
    @JvmName("bmdsaemswhvdmuqs")
    public suspend fun appServer(`value`: Output) {
        this.appServer = value
    }

    /**
     * @param value Whether to automatically assign an elastic IP address to the layer's instances.
     */
    @JvmName("sjhmvomsoaxmqcgu")
    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("mrbuvsbbgabqwfnt")
    public suspend fun autoAssignPublicIps(`value`: Output) {
        this.autoAssignPublicIps = value
    }

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

    /**
     * @param value When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
     */
    @JvmName("powskyrgfhtmfrqf")
    public suspend fun bundlerVersion(`value`: Output) {
        this.bundlerVersion = value
    }

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

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("dmwvklibjknsrora")
    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("fjnipbmxjdlqsand")
    public suspend fun customInstanceProfileArn(`value`: Output) {
        this.customInstanceProfileArn = value
    }

    /**
     * @param value Custom JSON attributes to apply to the layer.
     */
    @JvmName("qrtaqllqehdlfxjb")
    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("nwtppigefoqqhtdq")
    public suspend fun customSecurityGroupIds(`value`: Output>) {
        this.customSecurityGroupIds = value
    }

    @JvmName("ciuortmirdwookxr")
    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("kmnrslhbfsdoaddk")
    public suspend fun customSecurityGroupIds(values: List>) {
        this.customSecurityGroupIds = Output.all(values)
    }

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

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

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

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

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

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

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

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

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

    /**
     * @param value Whether to enable Elastic Load Balancing connection draining.
     */
    @JvmName("fckwwbdrmwgddxkj")
    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("cpewciupotlbdbdf")
    public suspend fun ebsVolumes(`value`: Output>) {
        this.ebsVolumes = value
    }

    @JvmName("vbsscmjsinfonekn")
    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("rscxheosjaldwmoa")
    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("tidfumkdtbsekeer")
    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("gfmiaujawpykxrnj")
    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("pjsksvqnfsqapfsl")
    public suspend fun instanceShutdownTimeout(`value`: Output) {
        this.instanceShutdownTimeout = value
    }

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

    /**
     * @param value Whether OpsWorks should manage bundler. On by default.
     */
    @JvmName("wotjyjunlxhysuaq")
    public suspend fun manageBundler(`value`: Output) {
        this.manageBundler = value
    }

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

    /**
     * @param value The version of Passenger to use. Defaults to "4.0.46".
     */
    @JvmName("qeosxfussqpxpmye")
    public suspend fun passengerVersion(`value`: Output) {
        this.passengerVersion = value
    }

    /**
     * @param value The version of Ruby to use. Defaults to "2.0.0".
     */
    @JvmName("udgybobgmgaxrtsd")
    public suspend fun rubyVersion(`value`: Output) {
        this.rubyVersion = value
    }

    /**
     * @param value The version of RubyGems to use. Defaults to "2.2.2".
     */
    @JvmName("tlpgdakusgxjoqfx")
    public suspend fun rubygemsVersion(`value`: Output) {
        this.rubygemsVersion = value
    }

    /**
     * @param value ID of the stack the layer will belong to.
     */
    @JvmName("xfbpnvkcuadlbgct")
    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("rkfarqlngvvbvcll")
    public suspend fun systemPackages(`value`: Output>) {
        this.systemPackages = value
    }

    @JvmName("dxduqoxvnevvpvhe")
    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("duxgevkiyoxfjwio")
    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("khfdfooebjhuadoh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param value Keyword for the app server to use. Defaults to "apache_passenger".
     */
    @JvmName("pbldcmaralrlntpx")
    public suspend fun appServer(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appServer = mapped
    }

    /**
     * @param value Whether to automatically assign an elastic IP address to the layer's instances.
     */
    @JvmName("ivatqwpxhwotpjrn")
    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("hjqyxxndevaenvvd")
    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("lxcwrkhrywoumrhx")
    public suspend fun autoHealing(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoHealing = mapped
    }

    /**
     * @param value When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
     */
    @JvmName("nnbmrrolnorfeqrm")
    public suspend fun bundlerVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bundlerVersion = mapped
    }

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("denpamelmwqeeylr")
    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("ipxmtsnssngnroct")
    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("rnnvurhfokcbpoes")
    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("qlhmytucaxukwcsw")
    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("lvpeesbiuxvpikla")
    public suspend fun customSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customSecurityGroupIds = mapped
    }

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("eijcaluxskoxvjbl")
    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("pfhlbpmeprytwpoi")
    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("optvdwnqyckmncqu")
    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("otcqdlfxwxqiytwm")
    public suspend fun ebsVolumes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RailsAppLayerEbsVolumeArgsBuilder().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("ecvwhgamrchookcw")
    public suspend fun ebsVolumes(vararg argument: suspend RailsAppLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RailsAppLayerEbsVolumeArgsBuilder().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("xktjslonvpcrnmpw")
    public suspend fun ebsVolumes(argument: suspend RailsAppLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RailsAppLayerEbsVolumeArgsBuilder().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("wvhgmbjinfegttal")
    public suspend fun ebsVolumes(vararg values: RailsAppLayerEbsVolumeArgs) {
        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("fiunuowagwulxiok")
    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("ntljgmvwphqjvgeg")
    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("qddblbnvfpjkubda")
    public suspend fun instanceShutdownTimeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceShutdownTimeout = mapped
    }

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

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

    /**
     * @param value Whether OpsWorks should manage bundler. On by default.
     */
    @JvmName("tgqixsbmwkomnkai")
    public suspend fun manageBundler(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manageBundler = mapped
    }

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

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

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

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

    /**
     * @param value ID of the stack the layer will belong to.
     */
    @JvmName("ovutpmjibsknusmm")
    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("lhredcbnebevdcvn")
    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("ixcmroaoyfxlwaug")
    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("lcacwqvqtsbovumb")
    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("ytbwlppahbmkqehp")
    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("vblpmdrubbcwkflc")
    public suspend fun useEbsOptimizedInstances(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useEbsOptimizedInstances = mapped
    }

    internal fun build(): RailsAppLayerArgs = RailsAppLayerArgs(
        appServer = appServer,
        autoAssignElasticIps = autoAssignElasticIps,
        autoAssignPublicIps = autoAssignPublicIps,
        autoHealing = autoHealing,
        bundlerVersion = bundlerVersion,
        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,
        manageBundler = manageBundler,
        name = name,
        passengerVersion = passengerVersion,
        rubyVersion = rubyVersion,
        rubygemsVersion = rubygemsVersion,
        stackId = stackId,
        systemPackages = systemPackages,
        tags = tags,
        useEbsOptimizedInstances = useEbsOptimizedInstances,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy