
com.pulumi.awsnative.ram.kotlin.outputs.GetPermissionResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ram.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The Amazon Resource Name (ARN) of the new permission.
* @property isResourceTypeDefault Set to true to use this as the default permission.
* @property permissionType The type of managed permission. This can be one of the following values:
* - *AWS_MANAGED_PERMISSION* – AWS created and manages this managed permission. You can associate it with your resource shares, but you can't modify it.
* - *CUSTOMER_MANAGED_PERMISSION* – You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
* @property tags Specifies a list of one or more tag key and value pairs to attach to the permission.
* @property version Version of the permission.
*/
public data class GetPermissionResult(
public val arn: String? = null,
public val isResourceTypeDefault: Boolean? = null,
public val permissionType: String? = null,
public val tags: List? = null,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ram.outputs.GetPermissionResult): GetPermissionResult = GetPermissionResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
isResourceTypeDefault = javaType.isResourceTypeDefault().map({ args0 -> args0 }).orElse(null),
permissionType = javaType.permissionType().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy