![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.memorydb.kotlin.Acl.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.memorydb.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [Acl].
*/
@PulumiTagMarker
public class AclResourceBuilder internal constructor() {
public var name: String? = null
public var args: AclArgs = AclArgs()
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 AclArgsBuilder.() -> Unit) {
val builder = AclArgsBuilder()
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(): Acl {
val builtJavaResource = com.pulumi.awsnative.memorydb.Acl(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Acl(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::MemoryDB::ACL
*/
public class Acl internal constructor(
override val javaResource: com.pulumi.awsnative.memorydb.Acl,
) : KotlinCustomResource(javaResource, AclMapper) {
/**
* The name of the acl.
*/
public val aclName: Output
get() = javaResource.aclName().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) of the acl.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Indicates acl status. Can be "creating", "active", "modifying", "deleting".
*/
public val status: Output
get() = javaResource.status().applyValue({ args0 -> args0 })
/**
* An array of key-value pairs to apply to this cluster.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(null)
})
/**
* List of users associated to this acl.
*/
public val userNames: Output>?
get() = javaResource.userNames().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
}
public object AclMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.memorydb.Acl::class == javaResource::class
override fun map(javaResource: Resource): Acl = Acl(
javaResource as
com.pulumi.awsnative.memorydb.Acl,
)
}
/**
* @see [Acl].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Acl].
*/
public suspend fun acl(name: String, block: suspend AclResourceBuilder.() -> Unit): Acl {
val builder = AclResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Acl].
* @param name The _unique_ name of the resulting resource.
*/
public fun acl(name: String): Acl {
val builder = AclResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy