All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.xray.kotlin.ResourcePolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.xray.kotlin

import com.pulumi.awsnative.xray.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * This schema provides construct and validation rules for AWS-XRay Resource Policy resource parameters.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property bypassPolicyLockoutCheck A flag to indicate whether to bypass the resource policy lockout safety check
 * @property policyDocument The resource policy document, which can be up to 5kb in size.
 * @property policyName The name of the resource policy. Must be unique within a specific AWS account.
 */
public data class ResourcePolicyArgs(
    public val bypassPolicyLockoutCheck: Output? = null,
    public val policyDocument: Output? = null,
    public val policyName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.xray.ResourcePolicyArgs =
        com.pulumi.awsnative.xray.ResourcePolicyArgs.builder()
            .bypassPolicyLockoutCheck(bypassPolicyLockoutCheck?.applyValue({ args0 -> args0 }))
            .policyDocument(policyDocument?.applyValue({ args0 -> args0 }))
            .policyName(policyName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourcePolicyArgs].
 */
@PulumiTagMarker
public class ResourcePolicyArgsBuilder internal constructor() {
    private var bypassPolicyLockoutCheck: Output? = null

    private var policyDocument: Output? = null

    private var policyName: Output? = null

    /**
     * @param value A flag to indicate whether to bypass the resource policy lockout safety check
     */
    @JvmName("yyuprwfeuprcgjgt")
    public suspend fun bypassPolicyLockoutCheck(`value`: Output) {
        this.bypassPolicyLockoutCheck = value
    }

    /**
     * @param value The resource policy document, which can be up to 5kb in size.
     */
    @JvmName("kwhhksyadfckklpn")
    public suspend fun policyDocument(`value`: Output) {
        this.policyDocument = value
    }

    /**
     * @param value The name of the resource policy. Must be unique within a specific AWS account.
     */
    @JvmName("swfifwtgtwknpmxo")
    public suspend fun policyName(`value`: Output) {
        this.policyName = value
    }

    /**
     * @param value A flag to indicate whether to bypass the resource policy lockout safety check
     */
    @JvmName("cqcilboitxdashen")
    public suspend fun bypassPolicyLockoutCheck(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bypassPolicyLockoutCheck = mapped
    }

    /**
     * @param value The resource policy document, which can be up to 5kb in size.
     */
    @JvmName("oisypxbuubpayamc")
    public suspend fun policyDocument(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyDocument = mapped
    }

    /**
     * @param value The name of the resource policy. Must be unique within a specific AWS account.
     */
    @JvmName("hkdeeqkcbrwwpnjp")
    public suspend fun policyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyName = mapped
    }

    internal fun build(): ResourcePolicyArgs = ResourcePolicyArgs(
        bypassPolicyLockoutCheck = bypassPolicyLockoutCheck,
        policyDocument = policyDocument,
        policyName = policyName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy