![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.licensemanager.kotlin.GrantArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.licensemanager.kotlin
import com.pulumi.awsnative.licensemanager.GrantArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* An example resource schema demonstrating some basic constructs and validation rules.
* @property allowedOperations Allowed operations for the grant.
* @property grantName Name for the created Grant.
* @property homeRegion Home region for the created grant.
* @property licenseArn License Arn for the grant.
* @property principals The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
* - An AWS account, which includes only the account specified.
* - An organizational unit (OU), which includes all accounts in the OU.
* - An organization, which will include all accounts across your organization.
* @property status Granted license status.
*/
public data class GrantArgs(
public val allowedOperations: Output>? = null,
public val grantName: Output? = null,
public val homeRegion: Output? = null,
public val licenseArn: Output? = null,
public val principals: Output>? = null,
public val status: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.licensemanager.GrantArgs =
com.pulumi.awsnative.licensemanager.GrantArgs.builder()
.allowedOperations(allowedOperations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.grantName(grantName?.applyValue({ args0 -> args0 }))
.homeRegion(homeRegion?.applyValue({ args0 -> args0 }))
.licenseArn(licenseArn?.applyValue({ args0 -> args0 }))
.principals(principals?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.status(status?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GrantArgs].
*/
@PulumiTagMarker
public class GrantArgsBuilder internal constructor() {
private var allowedOperations: Output>? = null
private var grantName: Output? = null
private var homeRegion: Output? = null
private var licenseArn: Output? = null
private var principals: Output>? = null
private var status: Output? = null
/**
* @param value Allowed operations for the grant.
*/
@JvmName("renncimempiqsbag")
public suspend fun allowedOperations(`value`: Output>) {
this.allowedOperations = value
}
@JvmName("gjyosdxgcqqtngcq")
public suspend fun allowedOperations(vararg values: Output) {
this.allowedOperations = Output.all(values.asList())
}
/**
* @param values Allowed operations for the grant.
*/
@JvmName("isxwswngwartvnvc")
public suspend fun allowedOperations(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy