com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
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.osconfig.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property content A a file with this content. The size of the content
* is limited to 1024 characters.
* @property file A remote or local source. Structure is
* documented below.
* @property path The absolute path of the file within the VM.
* @property permissions Consists of three octal digits which represent, in
* order, the permissions of the owner, group, and other users for the file
* (similarly to the numeric mode used in the linux chmod utility). Each digit
* represents a three bit number with the 4 bit corresponding to the read
* permissions, the 2 bit corresponds to the write bit, and the one bit
* corresponds to the execute permission. Default behavior is 755. Below are
* some examples of permissions and their associated values: read, write, and
* execute: 7 read and execute: 5 read and write: 6 read only: 4
* @property state Desired state of the file. Possible values are:
* `DESIRED_STATE_UNSPECIFIED`, `PRESENT`, `ABSENT`, `CONTENTS_MATCH`.
*/
public data class OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs(
public val content: Output? = null,
public val `file`: Output? = null,
public val path: Output,
public val permissions: Output? = null,
public val state: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs =
com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs.builder()
.content(content?.applyValue({ args0 -> args0 }))
.`file`(`file`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.path(path.applyValue({ args0 -> args0 }))
.permissions(permissions?.applyValue({ args0 -> args0 }))
.state(state.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs].
*/
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgsBuilder internal constructor() {
private var content: Output? = null
private var `file`: Output? = null
private var path: Output? = null
private var permissions: Output? = null
private var state: Output? = null
/**
* @param value A a file with this content. The size of the content
* is limited to 1024 characters.
*/
@JvmName("tdlyksqyjspqlpab")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value A remote or local source. Structure is
* documented below.
*/
@JvmName("woxuiglasedmnvmu")
public suspend fun `file`(`value`: Output) {
this.`file` = value
}
/**
* @param value The absolute path of the file within the VM.
*/
@JvmName("plgndxyvwawkfoxf")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Consists of three octal digits which represent, in
* order, the permissions of the owner, group, and other users for the file
* (similarly to the numeric mode used in the linux chmod utility). Each digit
* represents a three bit number with the 4 bit corresponding to the read
* permissions, the 2 bit corresponds to the write bit, and the one bit
* corresponds to the execute permission. Default behavior is 755. Below are
* some examples of permissions and their associated values: read, write, and
* execute: 7 read and execute: 5 read and write: 6 read only: 4
*/
@JvmName("waqudrgrxelynnno")
public suspend fun permissions(`value`: Output) {
this.permissions = value
}
/**
* @param value Desired state of the file. Possible values are:
* `DESIRED_STATE_UNSPECIFIED`, `PRESENT`, `ABSENT`, `CONTENTS_MATCH`.
*/
@JvmName("eenacsvpnjglfech")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value A a file with this content. The size of the content
* is limited to 1024 characters.
*/
@JvmName("xuixurjrmohbbtdp")
public suspend fun content(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.content = mapped
}
/**
* @param value A remote or local source. Structure is
* documented below.
*/
@JvmName("qalekjipvekqcgwt")
public suspend fun `file`(`value`: OsPolicyAssignmentOsPolicyResourceGroupResourceFileFileArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`file` = mapped
}
/**
* @param argument A remote or local source. Structure is
* documented below.
*/
@JvmName("kasoqcjygcyakckt")
public suspend fun `file`(argument: suspend OsPolicyAssignmentOsPolicyResourceGroupResourceFileFileArgsBuilder.() -> Unit) {
val toBeMapped =
OsPolicyAssignmentOsPolicyResourceGroupResourceFileFileArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.`file` = mapped
}
/**
* @param value The absolute path of the file within the VM.
*/
@JvmName("hubgysdkdaqssfrc")
public suspend fun path(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Consists of three octal digits which represent, in
* order, the permissions of the owner, group, and other users for the file
* (similarly to the numeric mode used in the linux chmod utility). Each digit
* represents a three bit number with the 4 bit corresponding to the read
* permissions, the 2 bit corresponds to the write bit, and the one bit
* corresponds to the execute permission. Default behavior is 755. Below are
* some examples of permissions and their associated values: read, write, and
* execute: 7 read and execute: 5 read and write: 6 read only: 4
*/
@JvmName("mcwknrewwbdysnbo")
public suspend fun permissions(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.permissions = mapped
}
/**
* @param value Desired state of the file. Possible values are:
* `DESIRED_STATE_UNSPECIFIED`, `PRESENT`, `ABSENT`, `CONTENTS_MATCH`.
*/
@JvmName("miyqiidpnkfkvxsy")
public suspend fun state(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs =
OsPolicyAssignmentOsPolicyResourceGroupResourceFileArgs(
content = content,
`file` = `file`,
path = path ?: throw PulumiNullFieldException("path"),
permissions = permissions,
state = state ?: throw PulumiNullFieldException("state"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy