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

com.pulumi.awsnative.redshift.kotlin.outputs.GetScheduledActionResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.redshift.kotlin.outputs

import com.pulumi.awsnative.redshift.kotlin.enums.ScheduledActionState
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property enable If true, the schedule is enabled. If false, the scheduled action does not trigger.
 * @property endTime The end time in UTC of the scheduled action. After this time, the scheduled action does not trigger.
 * @property iamRole The IAM role to assume to run the target action.
 * @property nextInvocations List of times when the scheduled action will run.
 * @property schedule The schedule in `at( )` or `cron( )` format.
 * @property scheduledActionDescription The description of the scheduled action.
 * @property startTime The start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger.
 * @property state The state of the scheduled action.
 * @property targetAction A JSON format string of the Amazon Redshift API operation with input parameters.
 */
public data class GetScheduledActionResult(
    public val enable: Boolean? = null,
    public val endTime: String? = null,
    public val iamRole: String? = null,
    public val nextInvocations: List? = null,
    public val schedule: String? = null,
    public val scheduledActionDescription: String? = null,
    public val startTime: String? = null,
    public val state: ScheduledActionState? = null,
    public val targetAction: ScheduledActionType? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.redshift.outputs.GetScheduledActionResult): GetScheduledActionResult = GetScheduledActionResult(
            enable = javaType.enable().map({ args0 -> args0 }).orElse(null),
            endTime = javaType.endTime().map({ args0 -> args0 }).orElse(null),
            iamRole = javaType.iamRole().map({ args0 -> args0 }).orElse(null),
            nextInvocations = javaType.nextInvocations().map({ args0 -> args0 }),
            schedule = javaType.schedule().map({ args0 -> args0 }).orElse(null),
            scheduledActionDescription = javaType.scheduledActionDescription().map({ args0 ->
                args0
            }).orElse(null),
            startTime = javaType.startTime().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.redshift.kotlin.enums.ScheduledActionState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            targetAction = javaType.targetAction().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.redshift.kotlin.outputs.ScheduledActionType.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy