@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / InlineApiSchema
Represents the concept of an API Schema for a Bedrock Agent Action Group.
new InlineApiSchema(
schema
):InlineApiSchema
string
readonly
optional
inlineSchema:string
readonly
optional
s3File:Location
_render():
APISchemaProperty
Internal
This is an internal core function and should not be called directly.
APISchemaProperty
static
fromInline(schema
):InlineApiSchema
Creates an API Schema from an inline string.
string
the JSON or YAML payload defining the OpenAPI schema for the action group
static
fromLocalAsset(path
):InlineApiSchema
Creates an API Schema from a local file.
string
the path to the local file containing the OpenAPI schema for the action group
static
fromS3File(bucket
,objectKey
):S3ApiSchema
Creates an API Schema from an S3 File
IBucket
the bucket containing the local file containing the OpenAPI schema for the action group
string
object key in the bucket