![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.datazone.kotlin.EnvironmentProfile.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.datazone.kotlin
import com.pulumi.awsnative.datazone.kotlin.outputs.EnvironmentProfileEnvironmentParameter
import com.pulumi.awsnative.datazone.kotlin.outputs.EnvironmentProfileEnvironmentParameter.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
import kotlin.collections.List
/**
* Builder for [EnvironmentProfile].
*/
@PulumiTagMarker
public class EnvironmentProfileResourceBuilder internal constructor() {
public var name: String? = null
public var args: EnvironmentProfileArgs = EnvironmentProfileArgs()
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 EnvironmentProfileArgsBuilder.() -> Unit) {
val builder = EnvironmentProfileArgsBuilder()
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(): EnvironmentProfile {
val builtJavaResource =
com.pulumi.awsnative.datazone.EnvironmentProfile(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return EnvironmentProfile(builtJavaResource)
}
}
/**
* AWS Datazone Environment Profile is pre-configured set of resources and blueprints that provide reusable templates for creating environments.
*/
public class EnvironmentProfile internal constructor(
override val javaResource: com.pulumi.awsnative.datazone.EnvironmentProfile,
) : KotlinCustomResource(javaResource, EnvironmentProfileMapper) {
/**
* The AWS account in which the Amazon DataZone environment is created.
*/
public val awsAccountId: Output
get() = javaResource.awsAccountId().applyValue({ args0 -> args0 })
/**
* The AWS region in which this environment profile is created.
*/
public val awsAccountRegion: Output
get() = javaResource.awsAccountRegion().applyValue({ args0 -> args0 })
/**
* The ID of this Amazon DataZone environment profile.
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* The timestamp of when this environment profile was created.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The Amazon DataZone user who created this environment profile.
*/
public val createdBy: Output
get() = javaResource.createdBy().applyValue({ args0 -> args0 })
/**
* The description of this Amazon DataZone environment profile.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The ID of the Amazon DataZone domain in which this environment profile is created.
*/
public val domainId: Output
get() = javaResource.domainId().applyValue({ args0 -> args0 })
/**
* The ID of the Amazon DataZone domain in which this environment profile is created.
*/
public val domainIdentifier: Output
get() = javaResource.domainIdentifier().applyValue({ args0 -> args0 })
/**
* The ID of the blueprint with which this environment profile is created.
*/
public val environmentBlueprintId: Output
get() = javaResource.environmentBlueprintId().applyValue({ args0 -> args0 })
/**
* The ID of the blueprint with which this environment profile is created.
*/
public val environmentBlueprintIdentifier: Output
get() = javaResource.environmentBlueprintIdentifier().applyValue({ args0 -> args0 })
/**
* The name of this Amazon DataZone environment profile.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The identifier of the project in which to create the environment profile.
*/
public val projectId: Output
get() = javaResource.projectId().applyValue({ args0 -> args0 })
/**
* The identifier of the project in which to create the environment profile.
*/
public val projectIdentifier: Output
get() = javaResource.projectIdentifier().applyValue({ args0 -> args0 })
/**
* The timestamp of when this environment profile was updated.
*/
public val updatedAt: Output
get() = javaResource.updatedAt().applyValue({ args0 -> args0 })
/**
* The user parameters of this Amazon DataZone environment profile.
*/
public val userParameters: Output>?
get() = javaResource.userParameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
}).orElse(null)
})
}
public object EnvironmentProfileMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.datazone.EnvironmentProfile::class == javaResource::class
override fun map(javaResource: Resource): EnvironmentProfile = EnvironmentProfile(
javaResource as
com.pulumi.awsnative.datazone.EnvironmentProfile,
)
}
/**
* @see [EnvironmentProfile].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [EnvironmentProfile].
*/
public suspend fun environmentProfile(
name: String,
block: suspend EnvironmentProfileResourceBuilder.() -> Unit,
): EnvironmentProfile {
val builder = EnvironmentProfileResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [EnvironmentProfile].
* @param name The _unique_ name of the resulting resource.
*/
public fun environmentProfile(name: String): EnvironmentProfile {
val builder = EnvironmentProfileResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy