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

commonMain.aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationOutput.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model



/**
 * The configuration of the data source.
 */
public sealed class DataSourceConfigurationOutput {
    /**
     * The configuration of the Amazon Web Services Glue data source.
     */
    public data class GlueRunConfiguration(val value: aws.sdk.kotlin.services.datazone.model.GlueRunConfigurationOutput) : aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationOutput() {
    }

    /**
     * The configuration of the Amazon Redshift data source.
     */
    public data class RedshiftRunConfiguration(val value: aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationOutput) : aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationOutput() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.DataSourceConfigurationOutput() {
    }

    /**
     * Casts this [DataSourceConfigurationOutput] as a [GlueRunConfiguration] and retrieves its [aws.sdk.kotlin.services.datazone.model.GlueRunConfigurationOutput] value. Throws an exception if the [DataSourceConfigurationOutput] is not a
     * [GlueRunConfiguration].
     */
    public fun asGlueRunConfiguration(): aws.sdk.kotlin.services.datazone.model.GlueRunConfigurationOutput = (this as DataSourceConfigurationOutput.GlueRunConfiguration).value

    /**
     * Casts this [DataSourceConfigurationOutput] as a [GlueRunConfiguration] and retrieves its [aws.sdk.kotlin.services.datazone.model.GlueRunConfigurationOutput] value. Returns null if the [DataSourceConfigurationOutput] is not a [GlueRunConfiguration].
     */
    public fun asGlueRunConfigurationOrNull(): aws.sdk.kotlin.services.datazone.model.GlueRunConfigurationOutput? = (this as? DataSourceConfigurationOutput.GlueRunConfiguration)?.value

    /**
     * Casts this [DataSourceConfigurationOutput] as a [RedshiftRunConfiguration] and retrieves its [aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationOutput] value. Throws an exception if the [DataSourceConfigurationOutput] is not a
     * [RedshiftRunConfiguration].
     */
    public fun asRedshiftRunConfiguration(): aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationOutput = (this as DataSourceConfigurationOutput.RedshiftRunConfiguration).value

    /**
     * Casts this [DataSourceConfigurationOutput] as a [RedshiftRunConfiguration] and retrieves its [aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationOutput] value. Returns null if the [DataSourceConfigurationOutput] is not a [RedshiftRunConfiguration].
     */
    public fun asRedshiftRunConfigurationOrNull(): aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationOutput? = (this as? DataSourceConfigurationOutput.RedshiftRunConfiguration)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy