![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.vpclattice.kotlin.ResourcePolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.vpclattice.kotlin
import com.pulumi.awsnative.vpclattice.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Retrieves information about the resource policy. The resource policy is an IAM policy created by AWS RAM on behalf of the resource owner when they share a resource.
* @property policy The Amazon Resource Name (ARN) of the service network or service.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::VpcLattice::ResourcePolicy` for more information about the expected schema for this property.
* @property resourceArn An IAM policy.
*/
public data class ResourcePolicyArgs(
public val policy: Output? = null,
public val resourceArn: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.vpclattice.ResourcePolicyArgs =
com.pulumi.awsnative.vpclattice.ResourcePolicyArgs.builder()
.policy(policy?.applyValue({ args0 -> args0 }))
.resourceArn(resourceArn?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourcePolicyArgs].
*/
@PulumiTagMarker
public class ResourcePolicyArgsBuilder internal constructor() {
private var policy: Output? = null
private var resourceArn: Output? = null
/**
* @param value The Amazon Resource Name (ARN) of the service network or service.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::VpcLattice::ResourcePolicy` for more information about the expected schema for this property.
*/
@JvmName("kxrqdphlfqstckwo")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value An IAM policy.
*/
@JvmName("eqvdooovqpcoidqt")
public suspend fun resourceArn(`value`: Output) {
this.resourceArn = value
}
/**
* @param value The Amazon Resource Name (ARN) of the service network or service.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::VpcLattice::ResourcePolicy` for more information about the expected schema for this property.
*/
@JvmName("vkgyjfuhooavyjme")
public suspend fun policy(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param value An IAM policy.
*/
@JvmName("pcpgekhqhovuuqlk")
public suspend fun resourceArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceArn = mapped
}
internal fun build(): ResourcePolicyArgs = ResourcePolicyArgs(
policy = policy,
resourceArn = resourceArn,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy