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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.OrchestrationExecutor.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.bedrockagent.model



/**
 * Contains details about the Lambda function containing the orchestration logic carried out upon invoking the custom orchestration.
 */
public sealed class OrchestrationExecutor {
    /**
     * The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
     */
    public data class Lambda(val value: kotlin.String) : aws.sdk.kotlin.services.bedrockagent.model.OrchestrationExecutor() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.bedrockagent.model.OrchestrationExecutor() {
    }

    /**
     * Casts this [OrchestrationExecutor] as a [Lambda] and retrieves its [kotlin.String] value. Throws an exception if the [OrchestrationExecutor] is not a
     * [Lambda].
     */
    public fun asLambda(): kotlin.String = (this as OrchestrationExecutor.Lambda).value

    /**
     * Casts this [OrchestrationExecutor] as a [Lambda] and retrieves its [kotlin.String] value. Returns null if the [OrchestrationExecutor] is not a [Lambda].
     */
    public fun asLambdaOrNull(): kotlin.String? = (this as? OrchestrationExecutor.Lambda)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy