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

com.pulumi.aws.ebs.kotlin.inputs.GetSnapshotIdsPlainArgs.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.ebs.kotlin.inputs

import com.pulumi.aws.ebs.inputs.GetSnapshotIdsPlainArgs.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 getSnapshotIds.
 * @property filters One or more name/value pairs to filter off of. There are
 * several valid keys, for a full reference, check out
 * [describe-volumes in the AWS CLI reference][1].
 * @property owners Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
 * @property restorableByUserIds One or more AWS accounts IDs that can create volumes from the snapshot.
 */
public data class GetSnapshotIdsPlainArgs(
    public val filters: List? = null,
    public val owners: List? = null,
    public val restorableByUserIds: List? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ebs.inputs.GetSnapshotIdsPlainArgs =
        com.pulumi.aws.ebs.inputs.GetSnapshotIdsPlainArgs.builder()
            .filters(filters?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .owners(owners?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .restorableByUserIds(restorableByUserIds?.let({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [GetSnapshotIdsPlainArgs].
 */
@PulumiTagMarker
public class GetSnapshotIdsPlainArgsBuilder internal constructor() {
    private var filters: List? = null

    private var owners: List? = null

    private var restorableByUserIds: List? = null

    /**
     * @param value One or more name/value pairs to filter off of. There are
     * several valid keys, for a full reference, check out
     * [describe-volumes in the AWS CLI reference][1].
     */
    @JvmName("qwilqoeqflfstosb")
    public suspend fun filters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param argument One or more name/value pairs to filter off of. There are
     * several valid keys, for a full reference, check out
     * [describe-volumes in the AWS CLI reference][1].
     */
    @JvmName("tpylbiucfjponxkk")
    public suspend fun filters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetSnapshotIdsFilterBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument One or more name/value pairs to filter off of. There are
     * several valid keys, for a full reference, check out
     * [describe-volumes in the AWS CLI reference][1].
     */
    @JvmName("cgiihorsflsxqwlq")
    public suspend fun filters(vararg argument: suspend GetSnapshotIdsFilterBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetSnapshotIdsFilterBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument One or more name/value pairs to filter off of. There are
     * several valid keys, for a full reference, check out
     * [describe-volumes in the AWS CLI reference][1].
     */
    @JvmName("bkxdhmxnuakmyobl")
    public suspend fun filters(argument: suspend GetSnapshotIdsFilterBuilder.() -> Unit) {
        val toBeMapped = listOf(GetSnapshotIdsFilterBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param values One or more name/value pairs to filter off of. There are
     * several valid keys, for a full reference, check out
     * [describe-volumes in the AWS CLI reference][1].
     */
    @JvmName("ynqjeowreebsqjdn")
    public suspend fun filters(vararg values: GetSnapshotIdsFilter) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param value Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
     */
    @JvmName("glwxohaxrhtxevun")
    public suspend fun owners(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.owners = mapped
    }

    /**
     * @param values Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
     */
    @JvmName("vfbrgudjuivbvksc")
    public suspend fun owners(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.owners = mapped
    }

    /**
     * @param value One or more AWS accounts IDs that can create volumes from the snapshot.
     */
    @JvmName("kmmfjstebatpsoml")
    public suspend fun restorableByUserIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.restorableByUserIds = mapped
    }

    /**
     * @param values One or more AWS accounts IDs that can create volumes from the snapshot.
     */
    @JvmName("vyxiekosywymvlao")
    public suspend fun restorableByUserIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.restorableByUserIds = mapped
    }

    internal fun build(): GetSnapshotIdsPlainArgs = GetSnapshotIdsPlainArgs(
        filters = filters,
        owners = owners,
        restorableByUserIds = restorableByUserIds,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy