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

com.pulumi.awsnative.appflow.kotlin.outputs.FlowScheduledTriggerProperties.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.appflow.kotlin.outputs

import com.pulumi.awsnative.appflow.kotlin.enums.FlowScheduledTriggerPropertiesDataPullMode
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * Details required for scheduled trigger type
 * @property dataPullMode Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow run.
 * @property firstExecutionFrom Specifies the date range for the records to import from the connector in the first flow run.
 * @property flowErrorDeactivationThreshold Defines how many times a scheduled flow fails consecutively before Amazon AppFlow deactivates it.
 * @property scheduleEndTime The time at which the scheduled flow ends. The time is formatted as a timestamp that follows the ISO 8601 standard, such as `2022-04-27T13:00:00-07:00` .
 * @property scheduleExpression The scheduling expression that determines the rate at which the schedule will run, for example `rate(5minutes)` .
 * @property scheduleOffset Specifies the optional offset that is added to the time interval for a schedule-triggered flow.
 * @property scheduleStartTime The time at which the scheduled flow starts. The time is formatted as a timestamp that follows the ISO 8601 standard, such as `2022-04-26T13:00:00-07:00` .
 * @property timeZone Specifies the time zone used when referring to the dates and times of a scheduled flow, such as `America/New_York` . This time zone is only a descriptive label. It doesn't affect how Amazon AppFlow interprets the timestamps that you specify to schedule the flow.
 * If you want to schedule a flow by using times in a particular time zone, indicate the time zone as a UTC offset in your timestamps. For example, the UTC offsets for the `America/New_York` timezone are `-04:00` EDT and `-05:00 EST` .
 */
public data class FlowScheduledTriggerProperties(
    public val dataPullMode: FlowScheduledTriggerPropertiesDataPullMode? = null,
    public val firstExecutionFrom: Double? = null,
    public val flowErrorDeactivationThreshold: Int? = null,
    public val scheduleEndTime: Double? = null,
    public val scheduleExpression: String,
    public val scheduleOffset: Double? = null,
    public val scheduleStartTime: Double? = null,
    public val timeZone: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.appflow.outputs.FlowScheduledTriggerProperties): FlowScheduledTriggerProperties = FlowScheduledTriggerProperties(
            dataPullMode = javaType.dataPullMode().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.appflow.kotlin.enums.FlowScheduledTriggerPropertiesDataPullMode.Companion.toKotlin(args0)
                })
            }).orElse(null),
            firstExecutionFrom = javaType.firstExecutionFrom().map({ args0 -> args0 }).orElse(null),
            flowErrorDeactivationThreshold = javaType.flowErrorDeactivationThreshold().map({ args0 ->
                args0
            }).orElse(null),
            scheduleEndTime = javaType.scheduleEndTime().map({ args0 -> args0 }).orElse(null),
            scheduleExpression = javaType.scheduleExpression(),
            scheduleOffset = javaType.scheduleOffset().map({ args0 -> args0 }).orElse(null),
            scheduleStartTime = javaType.scheduleStartTime().map({ args0 -> args0 }).orElse(null),
            timeZone = javaType.timeZone().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy