![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.signer.kotlin.ProfilePermission.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.signer.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
/**
* Builder for [ProfilePermission].
*/
@PulumiTagMarker
public class ProfilePermissionResourceBuilder internal constructor() {
public var name: String? = null
public var args: ProfilePermissionArgs = ProfilePermissionArgs()
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 ProfilePermissionArgsBuilder.() -> Unit) {
val builder = ProfilePermissionArgsBuilder()
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(): ProfilePermission {
val builtJavaResource = com.pulumi.awsnative.signer.ProfilePermission(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ProfilePermission(builtJavaResource)
}
}
/**
* An example resource schema demonstrating some basic constructs and validation rules.
*/
public class ProfilePermission internal constructor(
override val javaResource: com.pulumi.awsnative.signer.ProfilePermission,
) : KotlinCustomResource(javaResource, ProfilePermissionMapper) {
/**
* The AWS Signer action permitted as part of cross-account permissions.
*/
public val action: Output
get() = javaResource.action().applyValue({ args0 -> args0 })
/**
* The AWS principal receiving cross-account permissions. This may be an IAM role or another AWS account ID.
*/
public val principal: Output
get() = javaResource.principal().applyValue({ args0 -> args0 })
/**
* The human-readable name of the signing profile.
*/
public val profileName: Output
get() = javaResource.profileName().applyValue({ args0 -> args0 })
/**
* The version of the signing profile.
*/
public val profileVersion: Output?
get() = javaResource.profileVersion().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A unique identifier for the cross-account permission statement.
*/
public val statementId: Output
get() = javaResource.statementId().applyValue({ args0 -> args0 })
}
public object ProfilePermissionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.signer.ProfilePermission::class == javaResource::class
override fun map(javaResource: Resource): ProfilePermission = ProfilePermission(
javaResource as
com.pulumi.awsnative.signer.ProfilePermission,
)
}
/**
* @see [ProfilePermission].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [ProfilePermission].
*/
public suspend fun profilePermission(
name: String,
block: suspend ProfilePermissionResourceBuilder.() -> Unit,
): ProfilePermission {
val builder = ProfilePermissionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [ProfilePermission].
* @param name The _unique_ name of the resulting resource.
*/
public fun profilePermission(name: String): ProfilePermission {
val builder = ProfilePermissionResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy