Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property dailyMaintenanceWindow Time window specified for daily maintenance operations.
* Specify `start_time` in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format "HH:MM”,
* where HH : \[00-23\] and MM : \[00-59\] GMT. For example:
* Examples:
* @property maintenanceExclusions Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows. A cluster can have up to 20 maintenance exclusions at a time [Maintenance Window and Exclusions](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions)
* @property recurringWindow Time window for recurring maintenance operations.
* Specify `start_time` and `end_time` in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) "Zulu" date format. The start time's date is
* the initial date that the window starts, and the end time is used for calculating duration. Specify `recurrence` in
* [RFC5545](https://tools.ietf.org/html/rfc5545#section-3.8.5.3) RRULE format, to specify when this recurs.
* Note that GKE may accept other formats, but will return values in UTC, causing a permanent diff.
* Examples:
* ```
* maintenance_policy {
* recurring_window {
* start_time = "2019-08-01T02:00:00Z"
* end_time = "2019-08-01T06:00:00Z"
* recurrence = "FREQ=DAILY"
* }
* }
* ```
* ```
* maintenance_policy {
* recurring_window {
* start_time = "2019-01-01T09:00:00Z"
* end_time = "2019-01-01T17:00:00Z"
* recurrence = "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR"
* }
* }
* ```
*/
public data class ClusterMaintenancePolicyArgs(
public val dailyMaintenanceWindow: Output? =
null,
public val maintenanceExclusions: Output>? =
null,
public val recurringWindow: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyArgs =
com.pulumi.gcp.container.inputs.ClusterMaintenancePolicyArgs.builder()
.dailyMaintenanceWindow(
dailyMaintenanceWindow?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.maintenanceExclusions(
maintenanceExclusions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.recurringWindow(
recurringWindow?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ClusterMaintenancePolicyArgs].
*/
@PulumiTagMarker
public class ClusterMaintenancePolicyArgsBuilder internal constructor() {
private var dailyMaintenanceWindow: Output? =
null
private var maintenanceExclusions: Output>? =
null
private var recurringWindow: Output? = null
/**
* @param value Time window specified for daily maintenance operations.
* Specify `start_time` in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format "HH:MM”,
* where HH : \[00-23\] and MM : \[00-59\] GMT. For example:
* Examples:
*/
@JvmName("cbpuikokaxiautuv")
public suspend fun dailyMaintenanceWindow(`value`: Output) {
this.dailyMaintenanceWindow = value
}
/**
* @param value Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows. A cluster can have up to 20 maintenance exclusions at a time [Maintenance Window and Exclusions](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions)
*/
@JvmName("mpbhkpabmtyvyhxk")
public suspend fun maintenanceExclusions(`value`: Output>) {
this.maintenanceExclusions = value
}
@JvmName("yargiqwfxvmwiclf")
public suspend fun maintenanceExclusions(vararg values: Output) {
this.maintenanceExclusions = Output.all(values.asList())
}
/**
* @param values Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows. A cluster can have up to 20 maintenance exclusions at a time [Maintenance Window and Exclusions](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions)
*/
@JvmName("kxntgylargaiplhf")
public suspend fun maintenanceExclusions(values: List