commonMain.aws.sdk.kotlin.services.bedrockagent.model.ActionGroupExecutor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// 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
}