
com.pulumi.aws.s3.kotlin.outputs.BucketV2Grant.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.s3.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property id Canonical user id to grant for. Used only when `type` is `CanonicalUser`.
* @property permissions List of permissions to apply for grantee. Valid values are `READ`, `WRITE`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`.
* @property type Type of grantee to apply for. Valid values are `CanonicalUser` and `Group`. `AmazonCustomerByEmail` is not supported.
* @property uri Uri address to grant for. Used only when `type` is `Group`.
*/
public data class BucketV2Grant(
public val id: String? = null,
public val permissions: List,
public val type: String,
public val uri: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.s3.outputs.BucketV2Grant): BucketV2Grant =
BucketV2Grant(
id = javaType.id().map({ args0 -> args0 }).orElse(null),
permissions = javaType.permissions().map({ args0 -> args0 }),
type = javaType.type(),
uri = javaType.uri().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy