
com.pulumi.awsnative.connect.kotlin.RoutingProfile.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.connect.kotlin
import com.pulumi.awsnative.connect.kotlin.enums.RoutingProfileAgentAvailabilityTimer
import com.pulumi.awsnative.connect.kotlin.outputs.RoutingProfileMediaConcurrency
import com.pulumi.awsnative.connect.kotlin.outputs.RoutingProfileQueueConfig
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.connect.kotlin.enums.RoutingProfileAgentAvailabilityTimer.Companion.toKotlin as routingProfileAgentAvailabilityTimerToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.RoutingProfileMediaConcurrency.Companion.toKotlin as routingProfileMediaConcurrencyToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.RoutingProfileQueueConfig.Companion.toKotlin as routingProfileQueueConfigToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [RoutingProfile].
*/
@PulumiTagMarker
public class RoutingProfileResourceBuilder internal constructor() {
public var name: String? = null
public var args: RoutingProfileArgs = RoutingProfileArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend RoutingProfileArgsBuilder.() -> Unit) {
val builder = RoutingProfileArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): RoutingProfile {
val builtJavaResource = com.pulumi.awsnative.connect.RoutingProfile(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return RoutingProfile(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::Connect::RoutingProfile
*/
public class RoutingProfile internal constructor(
override val javaResource: com.pulumi.awsnative.connect.RoutingProfile,
) : KotlinCustomResource(javaResource, RoutingProfileMapper) {
/**
* Whether agents with this routing profile will have their routing order calculated based on longest idle time or time since their last inbound contact.
*/
public val agentAvailabilityTimer: Output?
get() = javaResource.agentAvailabilityTimer().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> routingProfileAgentAvailabilityTimerToKotlin(args0) })
}).orElse(null)
})
/**
* The identifier of the default outbound queue for this routing profile.
*/
public val defaultOutboundQueueArn: Output
get() = javaResource.defaultOutboundQueueArn().applyValue({ args0 -> args0 })
/**
* The description of the routing profile.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* The identifier of the Amazon Connect instance.
*/
public val instanceArn: Output
get() = javaResource.instanceArn().applyValue({ args0 -> args0 })
/**
* The channels agents can handle in the Contact Control Panel (CCP) for this routing profile.
*/
public val mediaConcurrencies: Output>
get() = javaResource.mediaConcurrencies().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> routingProfileMediaConcurrencyToKotlin(args0) })
})
})
/**
* The name of the routing profile.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The queues to associate with this routing profile.
*/
public val queueConfigs: Output>?
get() = javaResource.queueConfigs().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> routingProfileQueueConfigToKotlin(args0) })
})
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the routing profile.
*/
public val routingProfileArn: Output
get() = javaResource.routingProfileArn().applyValue({ args0 -> args0 })
/**
* An array of key-value pairs to apply to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object RoutingProfileMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.connect.RoutingProfile::class == javaResource::class
override fun map(javaResource: Resource): RoutingProfile = RoutingProfile(
javaResource as
com.pulumi.awsnative.connect.RoutingProfile,
)
}
/**
* @see [RoutingProfile].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [RoutingProfile].
*/
public suspend fun routingProfile(
name: String,
block: suspend RoutingProfileResourceBuilder.() -> Unit,
): RoutingProfile {
val builder = RoutingProfileResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [RoutingProfile].
* @param name The _unique_ name of the resulting resource.
*/
public fun routingProfile(name: String): RoutingProfile {
val builder = RoutingProfileResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy