class S3ApiSchema
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.S3ApiSchema |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#S3ApiSchema |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.S3ApiSchema |
Python | aws_cdk.aws_bedrock_agentcore_alpha.S3ApiSchema |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป S3ApiSchema |
Extends
Api
Class to define an API Schema from an S3 object.
Example
const bucket = s3.Bucket.fromBucketName(this, "ExistingBucket", "my-schema-bucket");
const s3Schema = agentcore.ApiSchema.fromS3File(bucket, "schemas/action-group.yaml");
Initializer
new S3ApiSchema(location: Location, bucketOwnerAccountId?: string)
Parameters
- location
Location - bucketOwnerAccountId
stringโ The account ID of the S3 bucket owner for cross-account access.
Properties
| Name | Type | Description |
|---|---|---|
| bucket | string | The account ID of the S3 bucket owner for cross-account access. |
| inline | string | The inline OpenAPI schema definition as a string, if using an inline schema. |
| s3 | Location | The S3 location of the API schema file, if using an S3-based schema. |
bucketOwnerAccountId?
Type:
string
(optional)
The account ID of the S3 bucket owner for cross-account access.
inlineSchema?
Type:
string
(optional)
The inline OpenAPI schema definition as a string, if using an inline schema.
Can be in JSON or YAML format.
s3File?
Type:
Location
(optional)
The S3 location of the API schema file, if using an S3-based schema.
Contains the bucket name and object key information.
Methods
| Name | Description |
|---|---|
| bind(scope) | Bind the schema to a construct. |
| grant | Grant permissions to the role. |
bind(scope)
public bind(scope: Construct): void
Parameters
- scope
Construct
Bind the schema to a construct.
grantPermissionsToRole(role)
public grantPermissionsToRole(role: IRole): void
Parameters
- role
IRole
Grant permissions to the role.

.NET
Go
Java
Python
TypeScript (