![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.sqs.kotlin.QueueInlinePolicy.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sqs.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
/**
* Builder for [QueueInlinePolicy].
*/
@PulumiTagMarker
public class QueueInlinePolicyResourceBuilder internal constructor() {
public var name: String? = null
public var args: QueueInlinePolicyArgs = QueueInlinePolicyArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend QueueInlinePolicyArgsBuilder.() -> Unit) {
val builder = QueueInlinePolicyArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): QueueInlinePolicy {
val builtJavaResource = com.pulumi.awsnative.sqs.QueueInlinePolicy(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return QueueInlinePolicy(builtJavaResource)
}
}
/**
* Schema for SQS QueueInlinePolicy
*/
public class QueueInlinePolicy internal constructor(
override val javaResource: com.pulumi.awsnative.sqs.QueueInlinePolicy,
) : KotlinCustomResource(javaResource, QueueInlinePolicyMapper) {
/**
* 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.
*/
public val policyDocument: Output
get() = javaResource.policyDocument().applyValue({ args0 -> args0 })
/**
* The URL of the SQS queue.
*/
public val queue: Output
get() = javaResource.queue().applyValue({ args0 -> args0 })
}
public object QueueInlinePolicyMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.sqs.QueueInlinePolicy::class == javaResource::class
override fun map(javaResource: Resource): QueueInlinePolicy = QueueInlinePolicy(
javaResource as
com.pulumi.awsnative.sqs.QueueInlinePolicy,
)
}
/**
* @see [QueueInlinePolicy].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [QueueInlinePolicy].
*/
public suspend fun queueInlinePolicy(
name: String,
block: suspend QueueInlinePolicyResourceBuilder.() -> Unit,
): QueueInlinePolicy {
val builder = QueueInlinePolicyResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [QueueInlinePolicy].
* @param name The _unique_ name of the resulting resource.
*/
public fun queueInlinePolicy(name: String): QueueInlinePolicy {
val builder = QueueInlinePolicyResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy