![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.datasync.kotlin.outputs.TaskSchedule.kt Maven / Gradle / Ivy
@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