com.pulumi.awsnative.location.kotlin.GeofenceCollectionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.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