Skip to content

Commit

Permalink
This release provides additional support for enabling Aurora Limitles…
Browse files Browse the repository at this point in the history
…s Database DB clusters.

Add support for the dual stack endpoints.
This release adds support to stop an ongoing ingestion job using the StopIngestionJob API in Agents for Amazon Bedrock.
  • Loading branch information
aws-sdk-cpp-automation committed Oct 1, 2024
1 parent ef4ea97 commit bc5593b
Show file tree
Hide file tree
Showing 54 changed files with 1,057 additions and 143 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.416
1.11.417
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@ namespace BedrockAgent
}

/**
* <p>Creates a knowledge base that contains data sources from which information
* can be queried and used by LLMs. To create a knowledge base, you must first set
* up your data sources and configure a supported vector store. For more
* information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup.html">Set
* up your data for ingestion</a>.</p> <p>If you prefer to let Amazon
* Bedrock create and manage a vector store for you in Amazon OpenSearch Service,
* use the console. For more information, see <a
* <p>Creates a knowledge base. A knowledge base contains your data sources so that
* Large Language Models (LLMs) can use your data. To create a knowledge base, you
* must first set up your data sources and configure a supported vector store. For
* more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowlege-base-prereq.html">Set
* up a knowledge base</a>.</p> <p>If you prefer to let Amazon Bedrock
* create and manage a vector store for you in Amazon OpenSearch Service, use the
* console. For more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-create">Create
* a knowledge base</a>.</p> <ul> <li> <p>Provide the <code>name</code> and
* an optional <code>description</code>.</p> </li> <li> <p>Provide the Amazon
Expand Down Expand Up @@ -977,8 +977,9 @@ namespace BedrockAgent
}

/**
* <p>Gets information about a ingestion job, in which a data source is added to a
* knowledge base.</p><p><h3>See Also:</h3> <a
* <p>Gets information about a data ingestion job. Data sources are ingested into
* your knowledge base so that Large Lanaguage Models (LLMs) can use your
* data.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GetIngestionJob">AWS
* API Reference</a></p>
*/
Expand Down Expand Up @@ -1298,8 +1299,8 @@ namespace BedrockAgent
}

/**
* <p>Lists the ingestion jobs for a data source and information about each of
* them.</p><p><h3>See Also:</h3> <a
* <p>Lists the data ingestion jobs for a data source. The list also includes
* information about each job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListIngestionJobs">AWS
* API Reference</a></p>
*/
Expand All @@ -1324,8 +1325,8 @@ namespace BedrockAgent
}

/**
* <p>Lists the knowledge bases in an account and information about each of
* them.</p><p><h3>See Also:</h3> <a
* <p>Lists the knowledge bases in an account. The list also includesinformation
* about each knowledge base.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListKnowledgeBases">AWS
* API Reference</a></p>
*/
Expand Down Expand Up @@ -1461,8 +1462,9 @@ namespace BedrockAgent
}

/**
* <p>Begins an ingestion job, in which a data source is added to a knowledge
* base.</p><p><h3>See Also:</h3> <a
* <p>Begins a data ingestion job. Data sources are ingested into your knowledge
* base so that Large Language Models (LLMs) can use your data.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/StartIngestionJob">AWS
* API Reference</a></p>
*/
Expand All @@ -1486,6 +1488,33 @@ namespace BedrockAgent
return SubmitAsync(&BedrockAgentClient::StartIngestionJob, request, handler, context);
}

/**
* <p>Stops a currently running data ingestion job. You can send a
* <code>StartIngestionJob</code> request again to ingest the rest of your data
* when you are ready.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/StopIngestionJob">AWS
* API Reference</a></p>
*/
virtual Model::StopIngestionJobOutcome StopIngestionJob(const Model::StopIngestionJobRequest& request) const;

/**
* A Callable wrapper for StopIngestionJob that returns a future to the operation so that it can be executed in parallel to other requests.
*/
template<typename StopIngestionJobRequestT = Model::StopIngestionJobRequest>
Model::StopIngestionJobOutcomeCallable StopIngestionJobCallable(const StopIngestionJobRequestT& request) const
{
return SubmitCallable(&BedrockAgentClient::StopIngestionJob, request);
}

/**
* An Async wrapper for StopIngestionJob that queues the request into a thread executor and triggers associated callback when operation has finished.
*/
template<typename StopIngestionJobRequestT = Model::StopIngestionJobRequest>
void StopIngestionJobAsync(const StopIngestionJobRequestT& request, const StopIngestionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
{
return SubmitAsync(&BedrockAgentClient::StopIngestionJob, request, handler, context);
}

/**
* <p>Associate tags with a resource. For more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
#include <aws/bedrock-agent/model/PrepareAgentResult.h>
#include <aws/bedrock-agent/model/PrepareFlowResult.h>
#include <aws/bedrock-agent/model/StartIngestionJobResult.h>
#include <aws/bedrock-agent/model/StopIngestionJobResult.h>
#include <aws/bedrock-agent/model/TagResourceResult.h>
#include <aws/bedrock-agent/model/UntagResourceResult.h>
#include <aws/bedrock-agent/model/UpdateAgentResult.h>
Expand Down Expand Up @@ -173,6 +174,7 @@ namespace Aws
class PrepareAgentRequest;
class PrepareFlowRequest;
class StartIngestionJobRequest;
class StopIngestionJobRequest;
class TagResourceRequest;
class UntagResourceRequest;
class UpdateAgentRequest;
Expand Down Expand Up @@ -237,6 +239,7 @@ namespace Aws
typedef Aws::Utils::Outcome<PrepareAgentResult, BedrockAgentError> PrepareAgentOutcome;
typedef Aws::Utils::Outcome<PrepareFlowResult, BedrockAgentError> PrepareFlowOutcome;
typedef Aws::Utils::Outcome<StartIngestionJobResult, BedrockAgentError> StartIngestionJobOutcome;
typedef Aws::Utils::Outcome<StopIngestionJobResult, BedrockAgentError> StopIngestionJobOutcome;
typedef Aws::Utils::Outcome<TagResourceResult, BedrockAgentError> TagResourceOutcome;
typedef Aws::Utils::Outcome<UntagResourceResult, BedrockAgentError> UntagResourceOutcome;
typedef Aws::Utils::Outcome<UpdateAgentResult, BedrockAgentError> UpdateAgentOutcome;
Expand Down Expand Up @@ -301,6 +304,7 @@ namespace Aws
typedef std::future<PrepareAgentOutcome> PrepareAgentOutcomeCallable;
typedef std::future<PrepareFlowOutcome> PrepareFlowOutcomeCallable;
typedef std::future<StartIngestionJobOutcome> StartIngestionJobOutcomeCallable;
typedef std::future<StopIngestionJobOutcome> StopIngestionJobOutcomeCallable;
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
typedef std::future<UpdateAgentOutcome> UpdateAgentOutcomeCallable;
Expand Down Expand Up @@ -368,6 +372,7 @@ namespace Aws
typedef std::function<void(const BedrockAgentClient*, const Model::PrepareAgentRequest&, const Model::PrepareAgentOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PrepareAgentResponseReceivedHandler;
typedef std::function<void(const BedrockAgentClient*, const Model::PrepareFlowRequest&, const Model::PrepareFlowOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PrepareFlowResponseReceivedHandler;
typedef std::function<void(const BedrockAgentClient*, const Model::StartIngestionJobRequest&, const Model::StartIngestionJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartIngestionJobResponseReceivedHandler;
typedef std::function<void(const BedrockAgentClient*, const Model::StopIngestionJobRequest&, const Model::StopIngestionJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StopIngestionJobResponseReceivedHandler;
typedef std::function<void(const BedrockAgentClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
typedef std::function<void(const BedrockAgentClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
typedef std::function<void(const BedrockAgentClient*, const Model::UpdateAgentRequest&, const Model::UpdateAgentOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateAgentResponseReceivedHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ namespace Model

///@{
/**
* <p>The unique identifier of the knowledge base that the data source was added
* to.</p>
* <p>The unique identifier of the knowledge base for the data source.</p>
*/
inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ namespace Model

///@{
/**
* <p>The unique identifier of the data source in the ingestion job.</p>
* <p>The unique identifier of the data source for the data ingestion job you want
* to get information on.</p>
*/
inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
Expand All @@ -48,7 +49,8 @@ namespace Model

///@{
/**
* <p>The unique identifier of the ingestion job.</p>
* <p>The unique identifier of the data ingestion job you want to get information
* on.</p>
*/
inline const Aws::String& GetIngestionJobId() const{ return m_ingestionJobId; }
inline bool IngestionJobIdHasBeenSet() const { return m_ingestionJobIdHasBeenSet; }
Expand All @@ -62,8 +64,8 @@ namespace Model

///@{
/**
* <p>The unique identifier of the knowledge base for which the ingestion job
* applies.</p>
* <p>The unique identifier of the knowledge base for the data ingestion job you
* want to get information on.</p>
*/
inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Model

///@{
/**
* <p>Contains details about the ingestion job.</p>
* <p>Contains details about the data ingestion job.</p>
*/
inline const IngestionJob& GetIngestionJob() const{ return m_ingestionJob; }
inline void SetIngestionJob(const IngestionJob& value) { m_ingestionJob = value; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ namespace Model

///@{
/**
* <p>The unique identifier of the knowledge base for which to get information.</p>
* <p>The unique identifier of the knowledge base you want to get information
* on.</p>
*/
inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ namespace Model
{

/**
* <p>Contains details about an ingestion job, which converts a data source to
* embeddings for a vector store in knowledge base.</p> <p>This data type is used
* in the following API operations:</p> <ul> <li> <p> <a
* <p>Contains details about a data ingestion job. Data sources are ingested into a
* knowledge base so that Large Language Models (LLMs) can use your data.</p>
* <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_StartIngestionJob.html#API_agent_StartIngestionJob_ResponseSyntax">StartIngestionJob
* response</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetIngestionJob.html#API_agent_GetIngestionJob_ResponseSyntax">GetIngestionJob
Expand All @@ -51,7 +51,7 @@ namespace Model

///@{
/**
* <p>The unique identifier of the ingested data source.</p>
* <p>The unique identifier of the data source for the data ingestion job.</p>
*/
inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
Expand All @@ -65,7 +65,7 @@ namespace Model

///@{
/**
* <p>The description of the ingestion job.</p>
* <p>The description of the data ingestion job.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
Expand All @@ -79,7 +79,7 @@ namespace Model

///@{
/**
* <p>A list of reasons that the ingestion job failed.</p>
* <p>A list of reasons that the data ingestion job failed.</p>
*/
inline const Aws::Vector<Aws::String>& GetFailureReasons() const{ return m_failureReasons; }
inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
Expand All @@ -94,7 +94,7 @@ namespace Model

///@{
/**
* <p>The unique identifier of the ingestion job.</p>
* <p>The unique identifier of the data ingestion job.</p>
*/
inline const Aws::String& GetIngestionJobId() const{ return m_ingestionJobId; }
inline bool IngestionJobIdHasBeenSet() const { return m_ingestionJobIdHasBeenSet; }
Expand All @@ -108,8 +108,7 @@ namespace Model

///@{
/**
* <p>The unique identifier of the knowledge base to which the data source is being
* added.</p>
* <p>The unique identifier of the knowledge for the data ingestion job.</p>
*/
inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
Expand All @@ -123,7 +122,9 @@ namespace Model

///@{
/**
* <p>The time at which the ingestion job started.</p>
* <p>The time the data ingestion job started.</p> <p>If you stop a data ingestion
* job, the <code>startedAt</code> time is the time the job was started before the
* job was stopped.</p>
*/
inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
Expand All @@ -135,7 +136,7 @@ namespace Model

///@{
/**
* <p>Contains statistics about the ingestion job.</p>
* <p>Contains statistics about the data ingestion job.</p>
*/
inline const IngestionJobStatistics& GetStatistics() const{ return m_statistics; }
inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
Expand All @@ -147,7 +148,7 @@ namespace Model

///@{
/**
* <p>The status of the ingestion job.</p>
* <p>The status of the data ingestion job.</p>
*/
inline const IngestionJobStatus& GetStatus() const{ return m_status; }
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
Expand All @@ -159,7 +160,9 @@ namespace Model

///@{
/**
* <p>The time at which the ingestion job was last updated.</p>
* <p>The time the data ingestion job was last updated.</p> <p>If you stop a data
* ingestion job, the <code>updatedAt</code> time is the time the job was
* stopped.</p>
*/
inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ namespace Model
{

/**
* <p>Defines a filter by which to filter the results.</p><p><h3>See Also:</h3>
* <a
* <p>The definition of a filter to filter the data.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/IngestionJobFilter">AWS
* API Reference</a></p>
*/
Expand All @@ -43,7 +42,7 @@ namespace Model

///@{
/**
* <p>The attribute by which to filter the results.</p>
* <p>The name of field or attribute to apply the filter.</p>
*/
inline const IngestionJobFilterAttribute& GetAttribute() const{ return m_attribute; }
inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
Expand All @@ -55,7 +54,7 @@ namespace Model

///@{
/**
* <p>The operation to carry out between the attribute and the values.</p>
* <p>The operation to apply to the field or attribute.</p>
*/
inline const IngestionJobFilterOperator& GetOperator() const{ return m_operator; }
inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
Expand All @@ -67,7 +66,7 @@ namespace Model

///@{
/**
* <p>A list of values for the attribute.</p>
* <p>A list of values that belong to the field or attribute.</p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Model
{

/**
* <p>Parameters by which to sort the results.</p><p><h3>See Also:</h3> <a
* <p>The parameters of sorting the data.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/IngestionJobSortBy">AWS
* API Reference</a></p>
*/
Expand All @@ -40,7 +40,7 @@ namespace Model

///@{
/**
* <p>The attribute by which to sort the results.</p>
* <p>The name of field or attribute to apply sorting of data.</p>
*/
inline const IngestionJobSortByAttribute& GetAttribute() const{ return m_attribute; }
inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
Expand All @@ -52,7 +52,7 @@ namespace Model

///@{
/**
* <p>The order by which to sort the results.</p>
* <p>The order for sorting the data.</p>
*/
inline const SortOrder& GetOrder() const{ return m_order; }
inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ namespace Model
{

/**
* <p>Contains the statistics for the ingestion job.</p><p><h3>See Also:</h3> <a
* <p>Contains the statistics for the data ingestion job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/IngestionJobStatistics">AWS
* API Reference</a></p>
*/
Expand All @@ -37,7 +38,7 @@ namespace Model

///@{
/**
* <p>The number of source documents that was deleted.</p>
* <p>The number of source documents that were deleted.</p>
*/
inline long long GetNumberOfDocumentsDeleted() const{ return m_numberOfDocumentsDeleted; }
inline bool NumberOfDocumentsDeletedHasBeenSet() const { return m_numberOfDocumentsDeletedHasBeenSet; }
Expand Down
Loading

0 comments on commit bc5593b

Please sign in to comment.