ApiSchema

sealed class ApiSchema

Contains details about the OpenAPI schema for the action group. For more information, see Action group OpenAPI schemas. You can either include the schema directly in the payload field or you can upload it to an S3 bucket and specify the S3 bucket location in the s3 field.

Inheritors

Types

Link copied to clipboard
data class Payload(val value: String) : ApiSchema

The JSON or YAML-formatted payload defining the OpenAPI schema for the action group.

Link copied to clipboard
data class S3(val value: S3Identifier) : ApiSchema

Contains details about the S3 object containing the OpenAPI schema for the action group.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this ApiSchema as a Payload and retrieves its kotlin.String value. Throws an exception if the ApiSchema is not a Payload.

Link copied to clipboard

Casts this ApiSchema as a Payload and retrieves its kotlin.String value. Returns null if the ApiSchema is not a Payload.

Link copied to clipboard

Casts this ApiSchema as a S3 and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.S3Identifier value. Throws an exception if the ApiSchema is not a S3.

Link copied to clipboard

Casts this ApiSchema as a S3 and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.S3Identifier value. Returns null if the ApiSchema is not a S3.