com.pulumi.aws.autoscaling.kotlin.inputs.GetAmiIdsPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.autoscaling.kotlin.inputs
import com.pulumi.aws.autoscaling.inputs.GetAmiIdsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getAmiIds.
* @property filters Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
* @property names List of autoscaling group names
*/
public data class GetAmiIdsPlainArgs(
public val filters: List? = null,
public val names: List? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.autoscaling.inputs.GetAmiIdsPlainArgs =
com.pulumi.aws.autoscaling.inputs.GetAmiIdsPlainArgs.builder()
.filters(filters?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.names(names?.let({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [GetAmiIdsPlainArgs].
*/
@PulumiTagMarker
public class GetAmiIdsPlainArgsBuilder internal constructor() {
private var filters: List? = null
private var names: List? = null
/**
* @param value Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
*/
@JvmName("kocdpnxoefsaovfb")
public suspend fun filters(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.filters = mapped
}
/**
* @param argument Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
*/
@JvmName("nmpdnkwleeiogfjk")
public suspend fun filters(argument: List Unit>) {
val toBeMapped = argument.toList().map { GetAmiIdsFilterBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
*/
@JvmName("dkodbxmojksmgcsn")
public suspend fun filters(vararg argument: suspend GetAmiIdsFilterBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { GetAmiIdsFilterBuilder().applySuspend { it() }.build() }
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
*/
@JvmName("cocluvcnujbjjirl")
public suspend fun filters(argument: suspend GetAmiIdsFilterBuilder.() -> Unit) {
val toBeMapped = listOf(GetAmiIdsFilterBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param values Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
*/
@JvmName("fiiiykqpsisimbyo")
public suspend fun filters(vararg values: GetAmiIdsFilter) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.filters = mapped
}
/**
* @param value List of autoscaling group names
*/
@JvmName("gitjabcnwgjlwsix")
public suspend fun names(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.names = mapped
}
/**
* @param values List of autoscaling group names
*/
@JvmName("elaorehejqoohjql")
public suspend fun names(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.names = mapped
}
internal fun build(): GetAmiIdsPlainArgs = GetAmiIdsPlainArgs(
filters = filters,
names = names,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy