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

com.pulumi.awsnative.sqs.kotlin.QueueInlinePolicyArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sqs.kotlin

import com.pulumi.awsnative.sqs.QueueInlinePolicyArgs.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

/**
 * Schema for SQS QueueInlinePolicy
 * @property policyDocument A policy document that contains permissions to add to the specified SQS queue
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SQS::QueueInlinePolicy` for more information about the expected schema for this property.
 * @property queue The URL of the SQS queue.
 */
public data class QueueInlinePolicyArgs(
    public val policyDocument: Output? = null,
    public val queue: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sqs.QueueInlinePolicyArgs =
        com.pulumi.awsnative.sqs.QueueInlinePolicyArgs.builder()
            .policyDocument(policyDocument?.applyValue({ args0 -> args0 }))
            .queue(queue?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [QueueInlinePolicyArgs].
 */
@PulumiTagMarker
public class QueueInlinePolicyArgsBuilder internal constructor() {
    private var policyDocument: Output? = null

    private var queue: Output? = null

    /**
     * @param value A policy document that contains permissions to add to the specified SQS queue
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SQS::QueueInlinePolicy` for more information about the expected schema for this property.
     */
    @JvmName("wyulyfjvkyhqggwt")
    public suspend fun policyDocument(`value`: Output) {
        this.policyDocument = value
    }

    /**
     * @param value The URL of the SQS queue.
     */
    @JvmName("visqjwqnfekyllkb")
    public suspend fun queue(`value`: Output) {
        this.queue = value
    }

    /**
     * @param value A policy document that contains permissions to add to the specified SQS queue
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SQS::QueueInlinePolicy` for more information about the expected schema for this property.
     */
    @JvmName("hrytfvbvofhmeokm")
    public suspend fun policyDocument(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyDocument = mapped
    }

    /**
     * @param value The URL of the SQS queue.
     */
    @JvmName("cyderyvaxtsxoain")
    public suspend fun queue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queue = mapped
    }

    internal fun build(): QueueInlinePolicyArgs = QueueInlinePolicyArgs(
        policyDocument = policyDocument,
        queue = queue,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy