@cdklabs/generative-ai-cdk-constructs • Docs
@cdklabs/generative-ai-cdk-constructs / bedrock / InlineApiSchema
API Schema from a string value.
new InlineApiSchema(
schema
):InlineApiSchema
• schema: 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.
• _scope: Construct
static
fromAsset(path
):InlineApiSchema
Loads the API Schema from a local disk path.
• 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.
• bucket: IBucket
The S3 bucket
• key: string
The object key
S3ApiSchema
with the S3 bucket and key.
static
fromInline(schema
):InlineApiSchema
Inline code for API Schema
• schema: string
The actual Open API schema
InlineApiSchema
with inline schema