@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
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
S3ApiSchema