![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.vpclattice.kotlin.AuthPolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.vpclattice.kotlin
import com.pulumi.awsnative.vpclattice.AuthPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Creates or updates the auth policy.
* @property policy The auth policy.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::VpcLattice::AuthPolicy` for more information about the expected schema for this property.
* @property resourceIdentifier The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
*/
public data class AuthPolicyArgs(
public val policy: Output? = null,
public val resourceIdentifier: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.vpclattice.AuthPolicyArgs =
com.pulumi.awsnative.vpclattice.AuthPolicyArgs.builder()
.policy(policy?.applyValue({ args0 -> args0 }))
.resourceIdentifier(resourceIdentifier?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AuthPolicyArgs].
*/
@PulumiTagMarker
public class AuthPolicyArgsBuilder internal constructor() {
private var policy: Output? = null
private var resourceIdentifier: Output? = null
/**
* @param value The auth policy.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::VpcLattice::AuthPolicy` for more information about the expected schema for this property.
*/
@JvmName("hypgnfqrelnhppin")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
*/
@JvmName("drdkgftjdgaperqb")
public suspend fun resourceIdentifier(`value`: Output) {
this.resourceIdentifier = value
}
/**
* @param value The auth policy.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::VpcLattice::AuthPolicy` for more information about the expected schema for this property.
*/
@JvmName("svrfxreecyldjcus")
public suspend fun policy(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param value The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
*/
@JvmName("mxcyvyxralkesfrm")
public suspend fun resourceIdentifier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceIdentifier = mapped
}
internal fun build(): AuthPolicyArgs = AuthPolicyArgs(
policy = policy,
resourceIdentifier = resourceIdentifier,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy