All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.healthlake.kotlin.FhirDatastoreArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.healthlake.kotlin

import com.pulumi.awsnative.healthlake.FhirDatastoreArgs.builder
import com.pulumi.awsnative.healthlake.kotlin.enums.FhirDatastoreDatastoreTypeVersion
import com.pulumi.awsnative.healthlake.kotlin.inputs.FhirDatastoreIdentityProviderConfigurationArgs
import com.pulumi.awsnative.healthlake.kotlin.inputs.FhirDatastoreIdentityProviderConfigurationArgsBuilder
import com.pulumi.awsnative.healthlake.kotlin.inputs.FhirDatastorePreloadDataConfigArgs
import com.pulumi.awsnative.healthlake.kotlin.inputs.FhirDatastorePreloadDataConfigArgsBuilder
import com.pulumi.awsnative.healthlake.kotlin.inputs.FhirDatastoreSseConfigurationArgs
import com.pulumi.awsnative.healthlake.kotlin.inputs.FhirDatastoreSseConfigurationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * HealthLake FHIR Datastore
 * @property datastoreName The user generated name for the data store.
 * @property datastoreTypeVersion The FHIR version of the data store. The only supported version is R4.
 * @property identityProviderConfiguration The identity provider configuration that you gave when the data store was created.
 * @property preloadDataConfig The preloaded data configuration for the data store. Only data preloaded from Synthea is supported.
 * @property sseConfiguration The server-side encryption key configuration for a customer provided encryption key specified for creating a data store.
 * @property tags An array of key-value pairs to apply to this resource.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class FhirDatastoreArgs(
    public val datastoreName: Output? = null,
    public val datastoreTypeVersion: Output? = null,
    public val identityProviderConfiguration: Output? =
        null,
    public val preloadDataConfig: Output? = null,
    public val sseConfiguration: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.healthlake.FhirDatastoreArgs =
        com.pulumi.awsnative.healthlake.FhirDatastoreArgs.builder()
            .datastoreName(datastoreName?.applyValue({ args0 -> args0 }))
            .datastoreTypeVersion(
                datastoreTypeVersion?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .identityProviderConfiguration(
                identityProviderConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .preloadDataConfig(preloadDataConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sseConfiguration(sseConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FhirDatastoreArgs].
 */
@PulumiTagMarker
public class FhirDatastoreArgsBuilder internal constructor() {
    private var datastoreName: Output? = null

    private var datastoreTypeVersion: Output? = null

    private var identityProviderConfiguration: Output? =
        null

    private var preloadDataConfig: Output? = null

    private var sseConfiguration: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The user generated name for the data store.
     */
    @JvmName("kosrfgwxwfjaedrh")
    public suspend fun datastoreName(`value`: Output) {
        this.datastoreName = value
    }

    /**
     * @param value The FHIR version of the data store. The only supported version is R4.
     */
    @JvmName("favmkxhvmoupnwfy")
    public suspend fun datastoreTypeVersion(`value`: Output) {
        this.datastoreTypeVersion = value
    }

    /**
     * @param value The identity provider configuration that you gave when the data store was created.
     */
    @JvmName("nmfphhlkgdampbva")
    public suspend fun identityProviderConfiguration(`value`: Output) {
        this.identityProviderConfiguration = value
    }

    /**
     * @param value The preloaded data configuration for the data store. Only data preloaded from Synthea is supported.
     */
    @JvmName("danmugamvonpeowc")
    public suspend fun preloadDataConfig(`value`: Output) {
        this.preloadDataConfig = value
    }

    /**
     * @param value The server-side encryption key configuration for a customer provided encryption key specified for creating a data store.
     */
    @JvmName("aslewvqvtdewpedx")
    public suspend fun sseConfiguration(`value`: Output) {
        this.sseConfiguration = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("qmtlwokaftjckeeh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("kjuejlfmuorncxol")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("ruxdmkjwhlhrhefo")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The user generated name for the data store.
     */
    @JvmName("pkqeywqsgmanjakw")
    public suspend fun datastoreName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datastoreName = mapped
    }

    /**
     * @param value The FHIR version of the data store. The only supported version is R4.
     */
    @JvmName("ftjbmaqkehwslpwq")
    public suspend fun datastoreTypeVersion(`value`: FhirDatastoreDatastoreTypeVersion?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datastoreTypeVersion = mapped
    }

    /**
     * @param value The identity provider configuration that you gave when the data store was created.
     */
    @JvmName("igdlllvsjcgsgfux")
    public suspend fun identityProviderConfiguration(`value`: FhirDatastoreIdentityProviderConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityProviderConfiguration = mapped
    }

    /**
     * @param argument The identity provider configuration that you gave when the data store was created.
     */
    @JvmName("tqavdvwojdskemqv")
    public suspend fun identityProviderConfiguration(argument: suspend FhirDatastoreIdentityProviderConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = FhirDatastoreIdentityProviderConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.identityProviderConfiguration = mapped
    }

    /**
     * @param value The preloaded data configuration for the data store. Only data preloaded from Synthea is supported.
     */
    @JvmName("wprchlhjdchlyrjt")
    public suspend fun preloadDataConfig(`value`: FhirDatastorePreloadDataConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preloadDataConfig = mapped
    }

    /**
     * @param argument The preloaded data configuration for the data store. Only data preloaded from Synthea is supported.
     */
    @JvmName("qwhtsphjnoecydax")
    public suspend fun preloadDataConfig(argument: suspend FhirDatastorePreloadDataConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FhirDatastorePreloadDataConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.preloadDataConfig = mapped
    }

    /**
     * @param value The server-side encryption key configuration for a customer provided encryption key specified for creating a data store.
     */
    @JvmName("wdcaaridmiklahyx")
    public suspend fun sseConfiguration(`value`: FhirDatastoreSseConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sseConfiguration = mapped
    }

    /**
     * @param argument The server-side encryption key configuration for a customer provided encryption key specified for creating a data store.
     */
    @JvmName("smbovklettmymjfc")
    public suspend fun sseConfiguration(argument: suspend FhirDatastoreSseConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = FhirDatastoreSseConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sseConfiguration = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("uiqqbxfpnccraliv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("fibpdmvhdgilwyko")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("dbmbrwmgmfwywtip")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("jfhktslybfypcvjt")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("bvoktjwvfyhvumkq")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): FhirDatastoreArgs = FhirDatastoreArgs(
        datastoreName = datastoreName,
        datastoreTypeVersion = datastoreTypeVersion,
        identityProviderConfiguration = identityProviderConfiguration,
        preloadDataConfig = preloadDataConfig,
        sseConfiguration = sseConfiguration,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy