com.pulumi.awsnative.datazone.kotlin.GroupProfile.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.datazone.kotlin
import com.pulumi.awsnative.datazone.kotlin.enums.GroupProfileStatus
import com.pulumi.awsnative.datazone.kotlin.enums.GroupProfileStatus.Companion.toKotlin
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 [GroupProfile].
*/
@PulumiTagMarker
public class GroupProfileResourceBuilder internal constructor() {
public var name: String? = null
public var args: GroupProfileArgs = GroupProfileArgs()
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 GroupProfileArgsBuilder.() -> Unit) {
val builder = GroupProfileArgsBuilder()
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(): GroupProfile {
val builtJavaResource = com.pulumi.awsnative.datazone.GroupProfile(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return GroupProfile(builtJavaResource)
}
}
/**
* Group profiles represent groups of Amazon DataZone users. Groups can be manually created, or mapped to Active Directory groups of enterprise customers. In Amazon DataZone, groups serve two purposes. First, a group can map to a team of users in the organizational chart, and thus reduce the administrative work of a Amazon DataZone project owner when there are new employees joining or leaving a team. Second, corporate administrators use Active Directory groups to manage and update user statuses and so Amazon DataZone domain administrators can use these group memberships to implement Amazon DataZone domain policies.
*/
public class GroupProfile internal constructor(
override val javaResource: com.pulumi.awsnative.datazone.GroupProfile,
) : KotlinCustomResource(javaResource, GroupProfileMapper) {
/**
* The ID of the Amazon DataZone group profile.
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* The identifier of the Amazon DataZone domain in which the group profile is created.
*/
public val domainId: Output
get() = javaResource.domainId().applyValue({ args0 -> args0 })
/**
* The identifier of the Amazon DataZone domain in which the group profile would be created.
*/
public val domainIdentifier: Output
get() = javaResource.domainIdentifier().applyValue({ args0 -> args0 })
/**
* The ID of the group.
*/
public val groupIdentifier: Output
get() = javaResource.groupIdentifier().applyValue({ args0 -> args0 })
/**
* The group-name of the Group Profile.
*/
public val groupName: Output
get() = javaResource.groupName().applyValue({ args0 -> args0 })
/**
* The status of a group profile.
*/
public val status: Output?
get() = javaResource.status().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
toKotlin(args0)
})
}).orElse(null)
})
}
public object GroupProfileMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.datazone.GroupProfile::class == javaResource::class
override fun map(javaResource: Resource): GroupProfile = GroupProfile(
javaResource as
com.pulumi.awsnative.datazone.GroupProfile,
)
}
/**
* @see [GroupProfile].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [GroupProfile].
*/
public suspend fun groupProfile(
name: String,
block: suspend GroupProfileResourceBuilder.() -> Unit,
): GroupProfile {
val builder = GroupProfileResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [GroupProfile].
* @param name The _unique_ name of the resulting resource.
*/
public fun groupProfile(name: String): GroupProfile {
val builder = GroupProfileResourceBuilder()
builder.name(name)
return builder.build()
}