The AWS SDK for JavaScript v2 has reached end-of-support.
We recommend that you migrate to AWS SDK for JavaScript v3. For additional details and information on how to migrate, please refer to the announcement.

Class: AWS.BedrockAgent

Inherits:
AWS.Service show all
Identifier:
bedrockagent
API Version:
2023-06-05
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Describes the API operations for creating and managing Amazon Bedrock agents.

Sending a Request Using BedrockAgent

var bedrockagent = new AWS.BedrockAgent();
bedrockagent.associateAgentKnowledgeBase(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the BedrockAgent object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var bedrockagent = new AWS.BedrockAgent({apiVersion: '2023-06-05'});

You can also set the API version globally in AWS.config.apiVersions using the bedrockagent service identifier:

AWS.config.apiVersions = {
  bedrockagent: '2023-06-05',
  // other service API versions
};

var bedrockagent = new AWS.BedrockAgent();

Version:

  • 2023-06-05

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse