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

com.pulumi.awsnative.greengrassv2.kotlin.inputs.DeploymentComponentUpdatePolicyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.greengrassv2.kotlin.inputs

import com.pulumi.awsnative.greengrassv2.inputs.DeploymentComponentUpdatePolicyArgs.builder
import com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentComponentUpdatePolicyAction
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property action Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
 * - `NOTIFY_COMPONENTS` – The deployment notifies each component before it stops and updates that component. Components can use the [SubscribeToComponentUpdates](https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-subscribetocomponentupdates) IPC operation to receive these notifications. Then, components can respond with the [DeferComponentUpdate](https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-defercomponentupdate) IPC operation. For more information, see the [Create deployments](https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html) in the *AWS IoT Greengrass V2 Developer Guide* .
 * - `SKIP_NOTIFY_COMPONENTS` – The deployment doesn't notify components or wait for them to be safe to update.
 * Default: `NOTIFY_COMPONENTS`
 * @property timeoutInSeconds The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
 * Default: `60`
 */
public data class DeploymentComponentUpdatePolicyArgs(
    public val action: Output? = null,
    public val timeoutInSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.greengrassv2.inputs.DeploymentComponentUpdatePolicyArgs =
        com.pulumi.awsnative.greengrassv2.inputs.DeploymentComponentUpdatePolicyArgs.builder()
            .action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .timeoutInSeconds(timeoutInSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DeploymentComponentUpdatePolicyArgs].
 */
@PulumiTagMarker
public class DeploymentComponentUpdatePolicyArgsBuilder internal constructor() {
    private var action: Output? = null

    private var timeoutInSeconds: Output? = null

    /**
     * @param value Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
     * - `NOTIFY_COMPONENTS` – The deployment notifies each component before it stops and updates that component. Components can use the [SubscribeToComponentUpdates](https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-subscribetocomponentupdates) IPC operation to receive these notifications. Then, components can respond with the [DeferComponentUpdate](https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-defercomponentupdate) IPC operation. For more information, see the [Create deployments](https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html) in the *AWS IoT Greengrass V2 Developer Guide* .
     * - `SKIP_NOTIFY_COMPONENTS` – The deployment doesn't notify components or wait for them to be safe to update.
     * Default: `NOTIFY_COMPONENTS`
     */
    @JvmName("umhuaqvvaxobieqr")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
     * Default: `60`
     */
    @JvmName("ungimdrmptaaalrd")
    public suspend fun timeoutInSeconds(`value`: Output) {
        this.timeoutInSeconds = value
    }

    /**
     * @param value Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
     * - `NOTIFY_COMPONENTS` – The deployment notifies each component before it stops and updates that component. Components can use the [SubscribeToComponentUpdates](https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-subscribetocomponentupdates) IPC operation to receive these notifications. Then, components can respond with the [DeferComponentUpdate](https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-operation-defercomponentupdate) IPC operation. For more information, see the [Create deployments](https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html) in the *AWS IoT Greengrass V2 Developer Guide* .
     * - `SKIP_NOTIFY_COMPONENTS` – The deployment doesn't notify components or wait for them to be safe to update.
     * Default: `NOTIFY_COMPONENTS`
     */
    @JvmName("hmroyatubwvtelym")
    public suspend fun action(`value`: DeploymentComponentUpdatePolicyAction?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
     * Default: `60`
     */
    @JvmName("jeybvjneyyxqlona")
    public suspend fun timeoutInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutInSeconds = mapped
    }

    internal fun build(): DeploymentComponentUpdatePolicyArgs = DeploymentComponentUpdatePolicyArgs(
        action = action,
        timeoutInSeconds = timeoutInSeconds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy