All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.scheduler.kotlin.outputs.GetScheduleResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.scheduler.kotlin.outputs

import com.pulumi.awsnative.scheduler.kotlin.enums.ScheduleState
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property arn The Amazon Resource Name (ARN) of the schedule.
 * @property description The description of the schedule.
 * @property endDate The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the EndDate you specify.
 * @property flexibleTimeWindow Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
 * @property groupName The name of the schedule group to associate with this schedule. If you omit this, the default schedule group is used.
 * @property kmsKeyArn The ARN for a KMS Key that will be used to encrypt customer data.
 * @property scheduleExpression The scheduling expression.
 * @property scheduleExpressionTimezone The timezone in which the scheduling expression is evaluated.
 * @property startDate The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the StartDate you specify.
 * @property state Specifies whether the schedule is enabled or disabled.
 * *Allowed Values* : `ENABLED` | `DISABLED`
 * @property target The schedule's target details.
 */
public data class GetScheduleResult(
    public val arn: String? = null,
    public val description: String? = null,
    public val endDate: String? = null,
    public val flexibleTimeWindow: ScheduleFlexibleTimeWindow? = null,
    public val groupName: String? = null,
    public val kmsKeyArn: String? = null,
    public val scheduleExpression: String? = null,
    public val scheduleExpressionTimezone: String? = null,
    public val startDate: String? = null,
    public val state: ScheduleState? = null,
    public val target: ScheduleTarget? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.scheduler.outputs.GetScheduleResult): GetScheduleResult = GetScheduleResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            endDate = javaType.endDate().map({ args0 -> args0 }).orElse(null),
            flexibleTimeWindow = javaType.flexibleTimeWindow().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.scheduler.kotlin.outputs.ScheduleFlexibleTimeWindow.Companion.toKotlin(args0)
                })
            }).orElse(null),
            groupName = javaType.groupName().map({ args0 -> args0 }).orElse(null),
            kmsKeyArn = javaType.kmsKeyArn().map({ args0 -> args0 }).orElse(null),
            scheduleExpression = javaType.scheduleExpression().map({ args0 -> args0 }).orElse(null),
            scheduleExpressionTimezone = javaType.scheduleExpressionTimezone().map({ args0 ->
                args0
            }).orElse(null),
            startDate = javaType.startDate().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.scheduler.kotlin.enums.ScheduleState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            target = javaType.target().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.scheduler.kotlin.outputs.ScheduleTarget.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy