
com.pulumi.awsnative.datasync.kotlin.outputs.TaskSchedule.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.datasync.kotlin.outputs
import com.pulumi.awsnative.datasync.kotlin.enums.TaskScheduleStatus
import kotlin.String
import kotlin.Suppress
/**
* Specifies the schedule you want your task to use for repeated executions.
* @property scheduleExpression A cron expression that specifies when AWS DataSync initiates a scheduled transfer from a source to a destination location
* @property status Specifies status of a schedule.
*/
public data class TaskSchedule(
public val scheduleExpression: String? = null,
public val status: TaskScheduleStatus? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.datasync.outputs.TaskSchedule): TaskSchedule = TaskSchedule(
scheduleExpression = javaType.scheduleExpression().map({ args0 -> args0 }).orElse(null),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.datasync.kotlin.enums.TaskScheduleStatus.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy