![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.datazone.kotlin.Environment.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.datazone.kotlin
import com.pulumi.awsnative.datazone.kotlin.enums.EnvironmentStatus
import com.pulumi.awsnative.datazone.kotlin.outputs.EnvironmentParameter
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
import com.pulumi.awsnative.datazone.kotlin.enums.EnvironmentStatus.Companion.toKotlin as environmentStatusToKotlin
import com.pulumi.awsnative.datazone.kotlin.outputs.EnvironmentParameter.Companion.toKotlin as environmentParameterToKotlin
/**
* Builder for [Environment].
*/
@PulumiTagMarker
public class EnvironmentResourceBuilder internal constructor() {
public var name: String? = null
public var args: EnvironmentArgs = EnvironmentArgs()
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 EnvironmentArgsBuilder.() -> Unit) {
val builder = EnvironmentArgsBuilder()
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(): Environment {
val builtJavaResource = com.pulumi.awsnative.datazone.Environment(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Environment(builtJavaResource)
}
}
/**
* Definition of AWS::DataZone::Environment Resource Type
*/
public class Environment internal constructor(
override val javaResource: com.pulumi.awsnative.datazone.Environment,
) : KotlinCustomResource(javaResource, EnvironmentMapper) {
/**
* 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 the Amazon DataZone environment is created.
*/
public val awsAccountRegion: Output
get() = javaResource.awsAccountRegion().applyValue({ args0 -> args0 })
/**
* The ID of the Amazon DataZone environment.
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* The timestamp of when the environment was created.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The Amazon DataZone user who created the environment.
*/
public val createdBy: Output
get() = javaResource.createdBy().applyValue({ args0 -> args0 })
/**
* The description of the Amazon DataZone environment.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The identifier of the Amazon DataZone domain in which the environment is created.
*/
public val domainId: Output
get() = javaResource.domainId().applyValue({ args0 -> args0 })
/**
* The identifier of the Amazon DataZone domain in which the environment would be created.
*/
public val domainIdentifier: Output
get() = javaResource.domainIdentifier().applyValue({ args0 -> args0 })
/**
* The ID of the blueprint with which the Amazon DataZone environment was created.
*/
public val environmentBlueprintId: Output
get() = javaResource.environmentBlueprintId().applyValue({ args0 -> args0 })
/**
* The ID of the environment profile with which the Amazon DataZone environment was created.
*/
public val environmentProfileId: Output
get() = javaResource.environmentProfileId().applyValue({ args0 -> args0 })
/**
* The ID of the environment profile with which the Amazon DataZone environment would be created.
*/
public val environmentProfileIdentifier: Output
get() = javaResource.environmentProfileIdentifier().applyValue({ args0 -> args0 })
/**
* The glossary terms that can be used in the Amazon DataZone environment.
*/
public val glossaryTerms: Output>?
get() = javaResource.glossaryTerms().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* The name of the environment.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The ID of the Amazon DataZone project in which the environment is created.
*/
public val projectId: Output
get() = javaResource.projectId().applyValue({ args0 -> args0 })
/**
* The ID of the Amazon DataZone project in which the environment would be created.
*/
public val projectIdentifier: Output
get() = javaResource.projectIdentifier().applyValue({ args0 -> args0 })
/**
* The provider of the Amazon DataZone environment.
*/
public val provider: Output
get() = javaResource.provider().applyValue({ args0 -> args0 })
/**
* The status of the Amazon DataZone environment.
*/
public val status: Output
get() = javaResource.status().applyValue({ args0 ->
args0.let({ args0 ->
environmentStatusToKotlin(args0)
})
})
/**
* The timestamp of when the environment was updated.
*/
public val updatedAt: Output
get() = javaResource.updatedAt().applyValue({ args0 -> args0 })
/**
* The user parameters of the Amazon DataZone environment.
*/
public val userParameters: Output>?
get() = javaResource.userParameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
environmentParameterToKotlin(args0)
})
})
}).orElse(null)
})
}
public object EnvironmentMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.datazone.Environment::class == javaResource::class
override fun map(javaResource: Resource): Environment = Environment(
javaResource as
com.pulumi.awsnative.datazone.Environment,
)
}
/**
* @see [Environment].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Environment].
*/
public suspend fun environment(name: String, block: suspend EnvironmentResourceBuilder.() -> Unit): Environment {
val builder = EnvironmentResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Environment].
* @param name The _unique_ name of the resulting resource.
*/
public fun environment(name: String): Environment {
val builder = EnvironmentResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy