@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / S3ApiSchema
Class to define an API Schema from an S3 object.
new S3ApiSchema(
location):S3ApiSchema
Location
S3ApiSchema
readonlyoptionalinlineSchema:string
readonlyoptionals3File:Location
_render():
APISchemaProperty
Internal
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
S3ApiSchema