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

com.pulumi.awsnative.greengrassv2.kotlin.outputs.DeploymentPolicies.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.greengrassv2.kotlin.outputs

import com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentPoliciesFailureHandlingPolicy
import kotlin.Suppress

/**
 *
 * @property componentUpdatePolicy The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.
 * @property configurationValidationPolicy The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.
 * @property failureHandlingPolicy The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.
 * Default: `ROLLBACK`
 */
public data class DeploymentPolicies(
    public val componentUpdatePolicy: DeploymentComponentUpdatePolicy? = null,
    public val configurationValidationPolicy: DeploymentConfigurationValidationPolicy? = null,
    public val failureHandlingPolicy: DeploymentPoliciesFailureHandlingPolicy? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.greengrassv2.outputs.DeploymentPolicies): DeploymentPolicies = DeploymentPolicies(
            componentUpdatePolicy = javaType.componentUpdatePolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.greengrassv2.kotlin.outputs.DeploymentComponentUpdatePolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            configurationValidationPolicy = javaType.configurationValidationPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.greengrassv2.kotlin.outputs.DeploymentConfigurationValidationPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            failureHandlingPolicy = javaType.failureHandlingPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.greengrassv2.kotlin.enums.DeploymentPoliciesFailureHandlingPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy