![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.athena.kotlin.outputs.GetCapacityReservationResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.athena.kotlin.outputs
import com.pulumi.awsnative.athena.kotlin.enums.CapacityReservationStatus
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property allocatedDpus The number of DPUs Athena has provisioned and allocated for the reservation
* @property arn The ARN of the capacity reservation.
* @property capacityAssignmentConfiguration Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
* @property creationTime The date and time the reservation was created.
* @property lastSuccessfulAllocationTime The timestamp when the last successful allocated was made
* @property status The status of the reservation.
* @property tags An array of key-value pairs to apply to this resource.
* @property targetDpus The number of DPUs to request to be allocated to the reservation.
*/
public data class GetCapacityReservationResult(
public val allocatedDpus: Int? = null,
public val arn: String? = null,
public val capacityAssignmentConfiguration: CapacityReservationCapacityAssignmentConfiguration? =
null,
public val creationTime: String? = null,
public val lastSuccessfulAllocationTime: String? = null,
public val status: CapacityReservationStatus? = null,
public val tags: List? = null,
public val targetDpus: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.athena.outputs.GetCapacityReservationResult): GetCapacityReservationResult = GetCapacityReservationResult(
allocatedDpus = javaType.allocatedDpus().map({ args0 -> args0 }).orElse(null),
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
capacityAssignmentConfiguration = javaType.capacityAssignmentConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.athena.kotlin.outputs.CapacityReservationCapacityAssignmentConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
creationTime = javaType.creationTime().map({ args0 -> args0 }).orElse(null),
lastSuccessfulAllocationTime = javaType.lastSuccessfulAllocationTime().map({ args0 ->
args0
}).orElse(null),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.athena.kotlin.enums.CapacityReservationStatus.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
targetDpus = javaType.targetDpus().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy