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

com.pulumi.awsnative.bedrock.kotlin.outputs.GetDataSourceResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.bedrock.kotlin.outputs

import com.pulumi.awsnative.bedrock.kotlin.enums.DataSourceDataDeletionPolicy
import com.pulumi.awsnative.bedrock.kotlin.enums.DataSourceStatus
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property createdAt The time at which the data source was created.
 * @property dataDeletionPolicy The data deletion policy for the data source.
 * @property dataSourceConfiguration The connection configuration for the data source.
 * @property dataSourceId Identifier for a resource.
 * @property dataSourceStatus The status of the data source. The following statuses are possible:
 * - Available – The data source has been created and is ready for ingestion into the knowledge base.
 * - Deleting – The data source is being deleted.
 * @property description Description of the Resource.
 * @property failureReasons The details of the failure reasons related to the data source.
 * @property name The name of the data source.
 * @property serverSideEncryptionConfiguration Contains details about the configuration of the server-side encryption.
 * @property updatedAt The time at which the knowledge base was last updated.
 */
public data class GetDataSourceResult(
    public val createdAt: String? = null,
    public val dataDeletionPolicy: DataSourceDataDeletionPolicy? = null,
    public val dataSourceConfiguration: DataSourceConfiguration? = null,
    public val dataSourceId: String? = null,
    public val dataSourceStatus: DataSourceStatus? = null,
    public val description: String? = null,
    public val failureReasons: List? = null,
    public val name: String? = null,
    public val serverSideEncryptionConfiguration: DataSourceServerSideEncryptionConfiguration? = null,
    public val updatedAt: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.GetDataSourceResult): GetDataSourceResult = GetDataSourceResult(
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            dataDeletionPolicy = javaType.dataDeletionPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.enums.DataSourceDataDeletionPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            dataSourceConfiguration = javaType.dataSourceConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.DataSourceConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            dataSourceId = javaType.dataSourceId().map({ args0 -> args0 }).orElse(null),
            dataSourceStatus = javaType.dataSourceStatus().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.enums.DataSourceStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            failureReasons = javaType.failureReasons().map({ args0 -> args0 }),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            serverSideEncryptionConfiguration = javaType.serverSideEncryptionConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.bedrock.kotlin.outputs.DataSourceServerSideEncryptionConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            updatedAt = javaType.updatedAt().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy