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

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

package com.pulumi.aws.opsworks.kotlin

import com.pulumi.aws.opsworks.GangliaLayerArgs.builder
import com.pulumi.aws.opsworks.kotlin.inputs.GangliaLayerCloudwatchConfigurationArgs
import com.pulumi.aws.opsworks.kotlin.inputs.GangliaLayerCloudwatchConfigurationArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.GangliaLayerEbsVolumeArgs
import com.pulumi.aws.opsworks.kotlin.inputs.GangliaLayerEbsVolumeArgsBuilder
import com.pulumi.aws.opsworks.kotlin.inputs.GangliaLayerLoadBasedAutoScalingArgs
import com.pulumi.aws.opsworks.kotlin.inputs.GangliaLayerLoadBasedAutoScalingArgsBuilder
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 Ganglia layer resource.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const monitor = new aws.opsworks.GangliaLayer("monitor", {
 *     stackId: main.id,
 *     password: "foobarbaz",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * monitor = aws.opsworks.GangliaLayer("monitor",
 *     stack_id=main["id"],
 *     password="foobarbaz")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var monitor = new Aws.OpsWorks.GangliaLayer("monitor", new()
 *     {
 *         StackId = main.Id,
 *         Password = "foobarbaz",
 *     });
 * });
 * ```
 * ```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.NewGangliaLayer(ctx, "monitor", &opsworks.GangliaLayerArgs{
 * 			StackId:  pulumi.Any(main.Id),
 * 			Password: pulumi.String("foobarbaz"),
 * 		})
 * 		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.GangliaLayer;
 * import com.pulumi.aws.opsworks.GangliaLayerArgs;
 * 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 monitor = new GangliaLayer("monitor", GangliaLayerArgs.builder()
 *             .stackId(main.id())
 *             .password("foobarbaz")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   monitor:
 *     type: aws:opsworks:GangliaLayer
 *     properties:
 *       stackId: ${main.id}
 *       password: foobarbaz
 * ```
 * 
 * @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 password The password to use for Ganglia.
 * @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 url The URL path to use for Ganglia. Defaults to "/ganglia".
 * @property useEbsOptimizedInstances Whether to use EBS-optimized instances.
 * @property username The username to use for Ganglia. Defaults to "opsworks".
 */
public data class GangliaLayerArgs(
    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 password: Output? = null,
    public val stackId: Output? = null,
    public val systemPackages: Output>? = null,
    public val tags: Output>? = null,
    public val url: Output? = null,
    public val useEbsOptimizedInstances: Output? = null,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.GangliaLayerArgs =
        com.pulumi.aws.opsworks.GangliaLayerArgs.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 }))
            .password(password?.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() }))
            .url(url?.applyValue({ args0 -> args0 }))
            .useEbsOptimizedInstances(useEbsOptimizedInstances?.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GangliaLayerArgs].
 */
@PulumiTagMarker
public class GangliaLayerArgsBuilder 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 password: Output? = null

    private var stackId: Output? = null

    private var systemPackages: Output>? = null

    private var tags: Output>? = null

    private var url: Output? = null

    private var useEbsOptimizedInstances: Output? = null

    private var username: Output? = null

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @JvmName("drtjvkxjpywllgon")
    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("yygedscoswqwbpth")
    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("wsohkmltrlbsdwyd")
    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("axppbufskihqcemx")
    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("chqebqmwedutgmwj")
    public suspend fun instanceShutdownTimeout(`value`: Output) {
        this.instanceShutdownTimeout = value
    }

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

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

    /**
     * @param value The password to use for Ganglia.
     */
    @JvmName("glawkgofgwlxeamw")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

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

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

    /**
     * @param value The URL path to use for Ganglia. Defaults to "/ganglia".
     */
    @JvmName("isgcvmgowiywpmau")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

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

    /**
     * @param value The username to use for Ganglia. Defaults to "opsworks".
     */
    @JvmName("hhnmejigxxcxgdsh")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

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

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("wajjwmeinhbqyumc")
    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("pjfoewhiiixqmkss")
    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("uxfxceafndncdxmq")
    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("benjlorphaaimonf")
    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("pryevsvfnoyxhlco")
    public suspend fun customSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customSecurityGroupIds = mapped
    }

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

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

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

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

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

    /**
     * @param values
     */
    @JvmName("eyfyyexfjrrdhqum")
    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("bjpaohdrfpxsawqr")
    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("ykwsojwhgsqxweqk")
    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("cjxfnwlbsogsvrgo")
    public suspend fun ebsVolumes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GangliaLayerEbsVolumeArgsBuilder().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("qdjfseeifcwdkpjo")
    public suspend fun ebsVolumes(vararg argument: suspend GangliaLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GangliaLayerEbsVolumeArgsBuilder().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("oijpgxipiykreuiq")
    public suspend fun ebsVolumes(argument: suspend GangliaLayerEbsVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(GangliaLayerEbsVolumeArgsBuilder().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("lodqbakfetfgednq")
    public suspend fun ebsVolumes(vararg values: GangliaLayerEbsVolumeArgs) {
        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("ymmfkouowjkfjprp")
    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("fuwroywpanlkarka")
    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("tqdxbgunydtdblre")
    public suspend fun instanceShutdownTimeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceShutdownTimeout = mapped
    }

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

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

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

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

    /**
     * @param value ID of the stack the layer will belong to.
     */
    @JvmName("gcjrxyvwkgsdqlhf")
    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("wyqhilfldsqpsali")
    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("ygklkjnahjqdejvh")
    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("oqwrsdvcjmqagied")
    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("vnhjbwrweguoasch")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The URL path to use for Ganglia. Defaults to "/ganglia".
     */
    @JvmName("bvtvielbnoqaiomp")
    public suspend fun url(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.url = mapped
    }

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

    /**
     * @param value The username to use for Ganglia. Defaults to "opsworks".
     */
    @JvmName("mjibqodeyhdpbugv")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): GangliaLayerArgs = GangliaLayerArgs(
        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,
        password = password,
        stackId = stackId,
        systemPackages = systemPackages,
        tags = tags,
        url = url,
        useEbsOptimizedInstances = useEbsOptimizedInstances,
        username = username,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy