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

com.pulumi.aws.opsworks.kotlin.MysqlLayerArgs.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.MysqlLayerArgs.builder
import com.pulumi.aws.opsworks.kotlin.inputs.MysqlLayerCloudwatchConfigurationArgs
import com.pulumi.aws.opsworks.kotlin.inputs.MysqlLayerCloudwatchConfigurationArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.MysqlLayerEbsVolumeArgs
import com.pulumi.aws.opsworks.kotlin.inputs.MysqlLayerEbsVolumeArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.MysqlLayerLoadBasedAutoScalingArgs
import com.pulumi.aws.opsworks.kotlin.inputs.MysqlLayerLoadBasedAutoScalingArgsBuilder
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 MySQL layer resource.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const db = new aws.opsworks.MysqlLayer("db", {stackId: main.id});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * db = aws.opsworks.MysqlLayer("db", stack_id=main["id"])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var db = new Aws.OpsWorks.MysqlLayer("db", 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.NewMysqlLayer(ctx, "db", &opsworks.MysqlLayerArgs{
 * 			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.MysqlLayer;
 * import com.pulumi.aws.opsworks.MysqlLayerArgs;
 * 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 db = new MysqlLayer("db", MysqlLayerArgs.builder()
 *             .stackId(main.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   db:
 *     type: aws:opsworks:MysqlLayer
 *     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 rootPassword Root password to use for MySQL.
 * @property rootPasswordOnAllInstances Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
 * @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 MysqlLayerArgs(
    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 rootPassword: Output? = null,
    public val rootPasswordOnAllInstances: 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.MysqlLayerArgs =
        com.pulumi.aws.opsworks.MysqlLayerArgs.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 }))
            .rootPassword(rootPassword?.applyValue({ args0 -> args0 }))
            .rootPasswordOnAllInstances(rootPasswordOnAllInstances?.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 [MysqlLayerArgs].
 */
@PulumiTagMarker
public class MysqlLayerArgsBuilder 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 rootPassword: Output? = null

    private var rootPasswordOnAllInstances: 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("aercwlkjaevcaksg")
    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("ansyapqcwxxoyimf")
    public suspend fun autoAssignPublicIps(`value`: Output) {
        this.autoAssignPublicIps = value
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @JvmName("cyubenogiqaxhyqf")
    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("inhlhiciysslutxd")
    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("pndcoycahtkqiohc")
    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("uducxdrvpdpioujt")
    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("tiasujyynnherpkd")
    public suspend fun instanceShutdownTimeout(`value`: Output) {
        this.instanceShutdownTimeout = value
    }

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

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

    /**
     * @param value Root password to use for MySQL.
     */
    @JvmName("xedgpuuycouplbvb")
    public suspend fun rootPassword(`value`: Output) {
        this.rootPassword = value
    }

    /**
     * @param value Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
     */
    @JvmName("hffhyfngvvrkrbut")
    public suspend fun rootPasswordOnAllInstances(`value`: Output) {
        this.rootPasswordOnAllInstances = value
    }

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

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

    /**
     * @param value Whether to use EBS-optimized instances.
     */
    @JvmName("yfimevkdvlhdrryo")
    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("ikramxjflnmyshsd")
    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("qkhuoejwkupkfqiu")
    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("smitginxhlhbrghj")
    public suspend fun autoHealing(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoHealing = mapped
    }

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("brvpegwdxymlsbbh")
    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("sxxbbsbabapssbsk")
    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("mogxfwvlseojeyxh")
    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("qlmgxwakktlxegmc")
    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("hhaakfgmrqaordgd")
    public suspend fun customSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customSecurityGroupIds = mapped
    }

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("wsqmtsjxnnbwkqcc")
    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("txilkoirfgcyulrq")
    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("aqpnjmvipvpclhfr")
    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("ewievrvcpaeivuhc")
    public suspend fun ebsVolumes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MysqlLayerEbsVolumeArgsBuilder().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("oxbkkuvlmnpyvefv")
    public suspend fun ebsVolumes(vararg argument: suspend MysqlLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MysqlLayerEbsVolumeArgsBuilder().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("rodpuahljgnnusut")
    public suspend fun ebsVolumes(argument: suspend MysqlLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(MysqlLayerEbsVolumeArgsBuilder().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("fpekqymixpbbxvoi")
    public suspend fun ebsVolumes(vararg values: MysqlLayerEbsVolumeArgs) {
        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("epaegoqlaawevwmq")
    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("qfhagkwkuhcoiluu")
    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("bcorgatnjnpwjvud")
    public suspend fun instanceShutdownTimeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceShutdownTimeout = mapped
    }

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

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

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

    /**
     * @param value Root password to use for MySQL.
     */
    @JvmName("uhvaordhqwmwfyww")
    public suspend fun rootPassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rootPassword = mapped
    }

    /**
     * @param value Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
     */
    @JvmName("coouapbsvpmxtrmy")
    public suspend fun rootPasswordOnAllInstances(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rootPasswordOnAllInstances = mapped
    }

    /**
     * @param value ID of the stack the layer will belong to.
     */
    @JvmName("pqkgxiuoqktaprao")
    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("yqpbevqiuyxxyapd")
    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("mcyhrfovffgygybb")
    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("fdlnkywlgaswpewi")
    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("coyrhllohxpidavd")
    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("jlwiorjwnxpqieab")
    public suspend fun useEbsOptimizedInstances(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useEbsOptimizedInstances = mapped
    }

    internal fun build(): MysqlLayerArgs = MysqlLayerArgs(
        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,
        rootPassword = rootPassword,
        rootPasswordOnAllInstances = rootPasswordOnAllInstances,
        stackId = stackId,
        systemPackages = systemPackages,
        tags = tags,
        useEbsOptimizedInstances = useEbsOptimizedInstances,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy