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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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



/**
 * Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
 */
public sealed class ActionGroupExecutor {
    /**
     * To return the action group invocation results directly in the `InvokeAgent` response, specify `RETURN_CONTROL`.
     */
    public data class CustomControl(val value: aws.sdk.kotlin.services.bedrockagent.model.CustomControlMethod) : aws.sdk.kotlin.services.bedrockagent.model.ActionGroupExecutor() {
    }

    /**
     * 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.ActionGroupExecutor() {
    }

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

    /**
     * Casts this [ActionGroupExecutor] as a [CustomControl] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.CustomControlMethod] value. Throws an exception if the [ActionGroupExecutor] is not a
     * [CustomControl].
     */
    public fun asCustomControl(): aws.sdk.kotlin.services.bedrockagent.model.CustomControlMethod = (this as ActionGroupExecutor.CustomControl).value

    /**
     * Casts this [ActionGroupExecutor] as a [CustomControl] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.CustomControlMethod] value. Returns null if the [ActionGroupExecutor] is not a [CustomControl].
     */
    public fun asCustomControlOrNull(): aws.sdk.kotlin.services.bedrockagent.model.CustomControlMethod? = (this as? ActionGroupExecutor.CustomControl)?.value

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy