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

com.pulumi.aws.opsworks.kotlin.MemcachedLayerArgs.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.MemcachedLayerArgs.builder
import com.pulumi.aws.opsworks.kotlin.inputs.MemcachedLayerCloudwatchConfigurationArgs
import com.pulumi.aws.opsworks.kotlin.inputs.MemcachedLayerCloudwatchConfigurationArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.MemcachedLayerEbsVolumeArgs
import com.pulumi.aws.opsworks.kotlin.inputs.MemcachedLayerEbsVolumeArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.MemcachedLayerLoadBasedAutoScalingArgs
import com.pulumi.aws.opsworks.kotlin.inputs.MemcachedLayerLoadBasedAutoScalingArgsBuilder
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 memcached layer resource.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const cache = new aws.opsworks.MemcachedLayer("cache", {stackId: main.id});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * cache = aws.opsworks.MemcachedLayer("cache", stack_id=main["id"])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var cache = new Aws.OpsWorks.MemcachedLayer("cache", 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.NewMemcachedLayer(ctx, "cache", &opsworks.MemcachedLayerArgs{
 * 			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.MemcachedLayer;
 * import com.pulumi.aws.opsworks.MemcachedLayerArgs;
 * 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 cache = new MemcachedLayer("cache", MemcachedLayerArgs.builder()
 *             .stackId(main.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   cache:
 *     type: aws:opsworks:MemcachedLayer
 *     properties:
 *       stackId: ${main.id}
 * ```
 * 
 * @property allocatedMemory Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
 * @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 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 MemcachedLayerArgs(
    public val allocatedMemory: Output? = null,
    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 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.MemcachedLayerArgs =
        com.pulumi.aws.opsworks.MemcachedLayerArgs.builder()
            .allocatedMemory(allocatedMemory?.applyValue({ args0 -> args0 }))
            .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 }))
            .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 [MemcachedLayerArgs].
 */
@PulumiTagMarker
public class MemcachedLayerArgsBuilder internal constructor() {
    private var allocatedMemory: Output? = null

    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 stackId: Output? = null

    private var systemPackages: Output>? = null

    private var tags: Output>? = null

    private var useEbsOptimizedInstances: Output? = null

    /**
     * @param value Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
     */
    @JvmName("hpyjvryveeusrgkc")
    public suspend fun allocatedMemory(`value`: Output) {
        this.allocatedMemory = value
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @JvmName("ohuoglyqfwveocwu")
    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("bblmogtqqmpapurs")
    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("jiivktqqqhvcwmyo")
    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("uedbquoxkaitbxgy")
    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("aolmbalyovsveucy")
    public suspend fun instanceShutdownTimeout(`value`: Output) {
        this.instanceShutdownTimeout = value
    }

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

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

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

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

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

    /**
     * @param value Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
     */
    @JvmName("jhknckblofkubbhm")
    public suspend fun allocatedMemory(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allocatedMemory = mapped
    }

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

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("ntjjdbehxpeowmjo")
    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("yixpwifywkigxoxc")
    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("bgqfggohjhcmdyxm")
    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("vvlmiwawsfisyvcq")
    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("anhxkimqhfgnmpod")
    public suspend fun customSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customSecurityGroupIds = mapped
    }

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("bvjxbdbwhougvssw")
    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("uicmrxinmmkqijrn")
    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("xrmasyfvnuykvsri")
    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("asbwvprlxwfmvwxy")
    public suspend fun ebsVolumes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MemcachedLayerEbsVolumeArgsBuilder().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("dyauvlbrmksjkfig")
    public suspend fun ebsVolumes(vararg argument: suspend MemcachedLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MemcachedLayerEbsVolumeArgsBuilder().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("fkiecesohybbqwow")
    public suspend fun ebsVolumes(argument: suspend MemcachedLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MemcachedLayerEbsVolumeArgsBuilder().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("ydfhdehyhscpcytc")
    public suspend fun ebsVolumes(vararg values: MemcachedLayerEbsVolumeArgs) {
        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("dleowyntngwyjlkl")
    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("xmadydnbaptentja")
    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("iqduqikcsgijarpp")
    public suspend fun instanceShutdownTimeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceShutdownTimeout = mapped
    }

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

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

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

    /**
     * @param value ID of the stack the layer will belong to.
     */
    @JvmName("fwlcqwyixqadvtfw")
    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("lpuowudkydjmxtlj")
    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("ewcsgcjfxsxjebmv")
    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("qfbqfdggbbrnrejw")
    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("yoslaqjvhduxhgih")
    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("btduolxeyqiijrhi")
    public suspend fun useEbsOptimizedInstances(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useEbsOptimizedInstances = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy