@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / S3ApiSchema
API Schema in an S3 object.
new S3ApiSchema(
bucket
,key
):S3ApiSchema
IBucket
string
bind(
_scope
):ApiSchemaConfig
Called when the action group is initialized to allow this object to bind to the stack, add resources and have fun.
Construct
static
fromAsset(path
):InlineApiSchema
Loads the API Schema from a local disk path.
string
Path to the Open API schema file in yaml or JSON
InlineApiSchema
with the contents of path
static
fromBucket(bucket
,key
):S3ApiSchema
API Schema as an S3 object.
IBucket
The S3 bucket
string
The object key
S3ApiSchema
with the S3 bucket and key.
static
fromInline(schema
):InlineApiSchema
Inline code for API Schema
string
The actual Open API schema
InlineApiSchema
with inline schema