com.pulumi.awsnative.eventschemas.kotlin.RegistryPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.eventschemas.kotlin
import com.pulumi.awsnative.eventschemas.RegistryPolicyArgs.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
/**
* Resource Type definition for AWS::EventSchemas::RegistryPolicy
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* ### Example
* No Java example available.
* @property policy A resource-based policy.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::EventSchemas::RegistryPolicy` for more information about the expected schema for this property.
* @property registryName The name of the registry.
* @property revisionId The revision ID of the policy.
*/
public data class RegistryPolicyArgs(
public val policy: Output? = null,
public val registryName: Output? = null,
public val revisionId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.eventschemas.RegistryPolicyArgs =
com.pulumi.awsnative.eventschemas.RegistryPolicyArgs.builder()
.policy(policy?.applyValue({ args0 -> args0 }))
.registryName(registryName?.applyValue({ args0 -> args0 }))
.revisionId(revisionId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegistryPolicyArgs].
*/
@PulumiTagMarker
public class RegistryPolicyArgsBuilder internal constructor() {
private var policy: Output? = null
private var registryName: Output? = null
private var revisionId: Output? = null
/**
* @param value A resource-based policy.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::EventSchemas::RegistryPolicy` for more information about the expected schema for this property.
*/
@JvmName("jlhkwaiqguyoqmro")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The name of the registry.
*/
@JvmName("ikykxuuxtgwljxvo")
public suspend fun registryName(`value`: Output) {
this.registryName = value
}
/**
* @param value The revision ID of the policy.
*/
@JvmName("rvaorqgmoxmbotbg")
public suspend fun revisionId(`value`: Output) {
this.revisionId = value
}
/**
* @param value A resource-based policy.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::EventSchemas::RegistryPolicy` for more information about the expected schema for this property.
*/
@JvmName("hphvdkktagfymywk")
public suspend fun policy(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param value The name of the registry.
*/
@JvmName("nyukdsylyhyjvill")
public suspend fun registryName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.registryName = mapped
}
/**
* @param value The revision ID of the policy.
*/
@JvmName("bskragnxubbuctbf")
public suspend fun revisionId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.revisionId = mapped
}
internal fun build(): RegistryPolicyArgs = RegistryPolicyArgs(
policy = policy,
registryName = registryName,
revisionId = revisionId,
)
}