![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.logs.kotlin.ResourcePolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.logs.kotlin
import com.pulumi.awsnative.logs.ResourcePolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The resource schema for AWSLogs ResourcePolicy
* @property policyDocument The policy document
* @property policyName A name for resource policy
*/
public data class ResourcePolicyArgs(
public val policyDocument: Output? = null,
public val policyName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.logs.ResourcePolicyArgs =
com.pulumi.awsnative.logs.ResourcePolicyArgs.builder()
.policyDocument(policyDocument?.applyValue({ args0 -> args0 }))
.policyName(policyName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourcePolicyArgs].
*/
@PulumiTagMarker
public class ResourcePolicyArgsBuilder internal constructor() {
private var policyDocument: Output? = null
private var policyName: Output? = null
/**
* @param value The policy document
*/
@JvmName("aeongllfcwtqsrru")
public suspend fun policyDocument(`value`: Output) {
this.policyDocument = value
}
/**
* @param value A name for resource policy
*/
@JvmName("mlcqtawvujxvmthx")
public suspend fun policyName(`value`: Output) {
this.policyName = value
}
/**
* @param value The policy document
*/
@JvmName("gmftqaqyxvvrxxxk")
public suspend fun policyDocument(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyDocument = mapped
}
/**
* @param value A name for resource policy
*/
@JvmName("iwbclbqtwtmignkv")
public suspend fun policyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyName = mapped
}
internal fun build(): ResourcePolicyArgs = ResourcePolicyArgs(
policyDocument = policyDocument,
policyName = policyName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy