![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.acmpca.kotlin.Permission.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.acmpca.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [Permission].
*/
@PulumiTagMarker
public class PermissionResourceBuilder internal constructor() {
public var name: String? = null
public var args: PermissionArgs = PermissionArgs()
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 PermissionArgsBuilder.() -> Unit) {
val builder = PermissionArgsBuilder()
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(): Permission {
val builtJavaResource = com.pulumi.awsnative.acmpca.Permission(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Permission(builtJavaResource)
}
}
/**
* Permission set on private certificate authority
*/
public class Permission internal constructor(
override val javaResource: com.pulumi.awsnative.acmpca.Permission,
) : KotlinCustomResource(javaResource, PermissionMapper) {
/**
* The actions that the specified AWS service principal can use. Actions IssueCertificate, GetCertificate and ListPermissions must be provided.
*/
public val actions: Output>
get() = javaResource.actions().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* The Amazon Resource Name (ARN) of the Private Certificate Authority that grants the permission.
*/
public val certificateAuthorityArn: Output
get() = javaResource.certificateAuthorityArn().applyValue({ args0 -> args0 })
/**
* The AWS service or identity that receives the permission. At this time, the only valid principal is acm.amazonaws.com.
*/
public val principal: Output
get() = javaResource.principal().applyValue({ args0 -> args0 })
/**
* The ID of the calling account.
*/
public val sourceAccount: Output?
get() = javaResource.sourceAccount().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
}
public object PermissionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.acmpca.Permission::class == javaResource::class
override fun map(javaResource: Resource): Permission = Permission(
javaResource as
com.pulumi.awsnative.acmpca.Permission,
)
}
/**
* @see [Permission].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Permission].
*/
public suspend fun permission(name: String, block: suspend PermissionResourceBuilder.() -> Unit): Permission {
val builder = PermissionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Permission].
* @param name The _unique_ name of the resulting resource.
*/
public fun permission(name: String): Permission {
val builder = PermissionResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy