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

com.pulumi.awsnative.location.kotlin.GeofenceCollectionArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.location.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.location.GeofenceCollectionArgs.builder
import com.pulumi.awsnative.location.kotlin.enums.GeofenceCollectionPricingPlan
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::Location::GeofenceCollection Resource Type
 * @property collectionName A custom name for the geofence collection.
 * Requirements:
 * - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
 * - Must be a unique geofence collection name.
 * - No spaces allowed. For example, `ExampleGeofenceCollection` .
 * @property description An optional description for the geofence collection.
 * @property kmsKeyId A key identifier for an [AWS KMS customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html) . Enter a key ID, key ARN, alias name, or alias ARN.
 * @property pricingPlan
 * @property pricingPlanDataSource This shape is deprecated since 2022-02-01: Deprecated. No longer allowed.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class GeofenceCollectionArgs(
    public val collectionName: Output? = null,
    public val description: Output? = null,
    public val kmsKeyId: Output? = null,
    public val pricingPlan: Output? = null,
    public val pricingPlanDataSource: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.location.GeofenceCollectionArgs =
        com.pulumi.awsnative.location.GeofenceCollectionArgs.builder()
            .collectionName(collectionName?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .pricingPlan(pricingPlan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .pricingPlanDataSource(pricingPlanDataSource?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GeofenceCollectionArgs].
 */
@PulumiTagMarker
public class GeofenceCollectionArgsBuilder internal constructor() {
    private var collectionName: Output? = null

    private var description: Output? = null

    private var kmsKeyId: Output? = null

    private var pricingPlan: Output? = null

    private var pricingPlanDataSource: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A custom name for the geofence collection.
     * Requirements:
     * - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique geofence collection name.
     * - No spaces allowed. For example, `ExampleGeofenceCollection` .
     */
    @JvmName("fjvywkpxwwigxaqt")
    public suspend fun collectionName(`value`: Output) {
        this.collectionName = value
    }

    /**
     * @param value An optional description for the geofence collection.
     */
    @JvmName("pvkvmfsoxnhlhtnd")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A key identifier for an [AWS KMS customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html) . Enter a key ID, key ARN, alias name, or alias ARN.
     */
    @JvmName("xeptkywstsbcjstx")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

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

    /**
     * @param value This shape is deprecated since 2022-02-01: Deprecated. No longer allowed.
     */
    @JvmName("xmdcrkcnenknwugu")
    public suspend fun pricingPlanDataSource(`value`: Output) {
        this.pricingPlanDataSource = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("vetdharschhoacyx")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("ddxblowyjqnsnryx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A custom name for the geofence collection.
     * Requirements:
     * - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
     * - Must be a unique geofence collection name.
     * - No spaces allowed. For example, `ExampleGeofenceCollection` .
     */
    @JvmName("jetkjibnhgbtapfd")
    public suspend fun collectionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.collectionName = mapped
    }

    /**
     * @param value An optional description for the geofence collection.
     */
    @JvmName("yspapieltrscbocv")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A key identifier for an [AWS KMS customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html) . Enter a key ID, key ARN, alias name, or alias ARN.
     */
    @JvmName("hkewlxtdvufjtawt")
    public suspend fun kmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyId = mapped
    }

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

    /**
     * @param value This shape is deprecated since 2022-02-01: Deprecated. No longer allowed.
     */
    @JvmName("ebejucnxwparqplt")
    public suspend fun pricingPlanDataSource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pricingPlanDataSource = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ornprjglsuvsptmv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("xwjkcbeusfjsogth")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("atordqxwfimipvnu")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("uvhaftjltbkceibn")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("ochwuxonajkcloko")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): GeofenceCollectionArgs = GeofenceCollectionArgs(
        collectionName = collectionName,
        description = description,
        kmsKeyId = kmsKeyId,
        pricingPlan = pricingPlan,
        pricingPlanDataSource = pricingPlanDataSource,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy