@cdklabs/generative-ai-cdk-constructs • Docs
@cdklabs/generative-ai-cdk-constructs / bedrock / ApiSchema
abstract
ApiSchemaBedrock Agents Action Group API Schema definition.
new ApiSchema():
ApiSchema
abstract
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
The binding scope. Don’t be smart about trying to down-cast or assume it’s initialized. You may just use it as a construct scope.
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