@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / ApiSchema
Represents the concept of an API Schema for a Bedrock Agent Action Group.
protectednew ApiSchema(s3File?,inlineSchema?):ApiSchema
Constructor accessible only to extending classes.
Location
string
ApiSchema
readonlyoptionalinlineSchema:string
readonlyoptionals3File:Location
abstract_render():APISchemaProperty
Internal
Format as CFN properties
This is an internal core function and should not be called directly.
APISchemaProperty
staticfromInline(schema):InlineApiSchema
Creates an API Schema from an inline string.
string
the JSON or YAML payload defining the OpenAPI schema for the action group
staticfromLocalAsset(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
staticfromS3File(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