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

There is a newer version: 1.3.35
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 business logic that is carried out upon invoking the action.
 */
public sealed class 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 [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