![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.finspace.kotlin.Environment.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.finspace.kotlin
import com.pulumi.awsnative.finspace.kotlin.enums.EnvironmentFederationMode
import com.pulumi.awsnative.finspace.kotlin.enums.EnvironmentStatus
import com.pulumi.awsnative.finspace.kotlin.outputs.EnvironmentFederationParameters
import com.pulumi.awsnative.finspace.kotlin.outputs.EnvironmentSuperuserParameters
import com.pulumi.awsnative.kotlin.outputs.CreateOnlyTag
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.finspace.kotlin.enums.EnvironmentFederationMode.Companion.toKotlin as environmentFederationModeToKotlin
import com.pulumi.awsnative.finspace.kotlin.enums.EnvironmentStatus.Companion.toKotlin as environmentStatusToKotlin
import com.pulumi.awsnative.finspace.kotlin.outputs.EnvironmentFederationParameters.Companion.toKotlin as environmentFederationParametersToKotlin
import com.pulumi.awsnative.finspace.kotlin.outputs.EnvironmentSuperuserParameters.Companion.toKotlin as environmentSuperuserParametersToKotlin
import com.pulumi.awsnative.kotlin.outputs.CreateOnlyTag.Companion.toKotlin as createOnlyTagToKotlin
/**
* 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.finspace.Environment(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Environment(builtJavaResource)
}
}
/**
* An example resource schema demonstrating some basic constructs and validation rules.
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
*/
public class Environment internal constructor(
override val javaResource: com.pulumi.awsnative.finspace.Environment,
) : KotlinCustomResource(javaResource, EnvironmentMapper) {
/**
* AWS account ID associated with the Environment
*/
public val awsAccountId: Output
get() = javaResource.awsAccountId().applyValue({ args0 -> args0 })
/**
* ARNs of FinSpace Data Bundles to install
*/
public val dataBundles: Output>?
get() = javaResource.dataBundles().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* ID for FinSpace created account used to store Environment artifacts
*/
public val dedicatedServiceAccountId: Output
get() = javaResource.dedicatedServiceAccountId().applyValue({ args0 -> args0 })
/**
* Description of the Environment
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* ARN of the Environment
*/
public val environmentArn: Output
get() = javaResource.environmentArn().applyValue({ args0 -> args0 })
/**
* Unique identifier for representing FinSpace Environment
*/
public val environmentId: Output
get() = javaResource.environmentId().applyValue({ args0 -> args0 })
/**
* URL used to login to the Environment
*/
public val environmentUrl: Output
get() = javaResource.environmentUrl().applyValue({ args0 -> args0 })
/**
* Federation mode used with the Environment
*/
public val federationMode: Output?
get() = javaResource.federationMode().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> environmentFederationModeToKotlin(args0) })
}).orElse(null)
})
/**
* Configuration information when authentication mode is FEDERATED.
*/
public val federationParameters: Output?
get() = javaResource.federationParameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> environmentFederationParametersToKotlin(args0) })
}).orElse(null)
})
/**
* KMS key used to encrypt customer data within FinSpace Environment infrastructure
*/
public val kmsKeyId: Output?
get() = javaResource.kmsKeyId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Name of the Environment
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* SageMaker Studio Domain URL associated with the Environment
*/
public val sageMakerStudioDomainUrl: Output
get() = javaResource.sageMakerStudioDomainUrl().applyValue({ args0 -> args0 })
/**
* State of the Environment
*/
public val status: Output
get() = javaResource.status().applyValue({ args0 ->
args0.let({ args0 ->
environmentStatusToKotlin(args0)
})
})
/**
* Configuration information for the superuser.
*/
public val superuserParameters: Output?
get() = javaResource.superuserParameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> environmentSuperuserParametersToKotlin(args0) })
}).orElse(null)
})
/**
* An array of key-value pairs to apply to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> createOnlyTagToKotlin(args0) })
})
}).orElse(null)
})
}
public object EnvironmentMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.finspace.Environment::class == javaResource::class
override fun map(javaResource: Resource): Environment = Environment(
javaResource as
com.pulumi.awsnative.finspace.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