Class S3ToolSchema
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.ToolSchema
software.amazon.awscdk.services.bedrockagentcore.S3ToolSchema
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.503Z")
@Stability(Stable)
public class S3ToolSchema
extends ToolSchema
Class to define a Tool Schema from an S3 object.
Example:
S3ToolSchema toolSchema = ToolSchema.fromS3File(Bucket.fromBucketName(this, "SchemasBucket", "my-schemas-bucket"), "tools/complex-tool-schema.json", "123456789012");
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionS3ToolSchema(Location location) S3ToolSchema(Location location, String bucketOwnerAccountId) protectedS3ToolSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedS3ToolSchema(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(software.constructs.Construct scope) Bind the schema to a construct.The account ID of the S3 bucket owner for cross-account access.voidgrantPermissionsToRole(IRole role) Grant permissions to the role.Methods inherited from class software.amazon.awscdk.services.bedrockagentcore.ToolSchema
fromInline, fromLocalAsset, fromS3File, fromS3File, getInlineSchema, getS3FileMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3ToolSchema
protected S3ToolSchema(software.amazon.jsii.JsiiObjectRef objRef) -
S3ToolSchema
protected S3ToolSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3ToolSchema
@Stability(Stable) public S3ToolSchema(@NotNull Location location, @Nullable String bucketOwnerAccountId) - Parameters:
location- This parameter is required.bucketOwnerAccountId- The account ID of the S3 bucket owner for cross-account access.
-
S3ToolSchema
- Parameters:
location- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) public void bind(@NotNull software.constructs.Construct scope) Bind the schema to a construct.- Specified by:
bindin classToolSchema- Parameters:
scope- This parameter is required.
-
grantPermissionsToRole
Grant permissions to the role.- Specified by:
grantPermissionsToRolein classToolSchema- Parameters:
role- This parameter is required.
-
getBucketOwnerAccountId
The account ID of the S3 bucket owner for cross-account access.- Overrides:
getBucketOwnerAccountIdin classToolSchema
-