diff --git a/VERSION b/VERSION index 9598ea8ed03..1ef72914468 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.459 \ No newline at end of file +1.11.460 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-athena/include/aws/athena/AthenaClient.h b/generated/src/aws-cpp-sdk-athena/include/aws/athena/AthenaClient.h index eac3eefdfda..59839f72f21 100644 --- a/generated/src/aws-cpp-sdk-athena/include/aws/athena/AthenaClient.h +++ b/generated/src/aws-cpp-sdk-athena/include/aws/athena/AthenaClient.h @@ -242,7 +242,15 @@ namespace Athena /** *
Creates (registers) a data catalog with the specified name and properties. * Catalogs created are visible to all users of the same Amazon Web Services - * account.
This API operation creates the following resources.
CFN Stack Name with a maximum length of 128 characters and prefix
+ * athenafederatedcatalog-CATALOG_NAME_SANITIZED
with length 23
+ * characters.
Lambda Function Name with a maximum length of 64
+ * characters and prefix athenafederatedcatalog_CATALOG_NAME_SANITIZED
+ * with length 23 characters.
Glue Connection Name with a maximum
+ * length of 255 characters and a prefix
+ * athenafederatedcatalog_CATALOG_NAME_SANITIZED
with length 23
+ * characters.
The name of the data catalog to create. The catalog name must be unique for * the Amazon Web Services account and can use a maximum of 127 alphanumeric, * underscore, at sign, or hyphen characters. The remainder of the length - * constraint of 256 is reserved for use by Athena.
+ * constraint of 256 is reserved for use by Athena.For
+ * FEDERATED
type the catalog name has following considerations and
+ * limits:
The catalog name allows special characters such as
+ * _ , @ , \ , -
. These characters are replaced with a hyphen (-)
+ * when creating the CFN Stack Name and with an underscore (_) when creating the
+ * Lambda Function and Glue Connection Name.
The catalog name has
+ * a theoretical limit of 128 characters. However, since we use it to create other
+ * resources that allow less characters and we prepend a prefix to it, the actual
+ * catalog name limit for FEDERATED
catalog is 64 - 23 = 41
+ * characters.
The type of data catalog to create: LAMBDA
for a federated
- * catalog, HIVE
for an external hive metastore, or GLUE
- * for an Glue Data Catalog.
GLUE
for an Glue Data Catalog, and HIVE
for
+ * an external Apache Hive metastore. FEDERATED
is a federated catalog
+ * for which Athena creates the connection and the Lambda function for you based on
+ * the parameters that you pass.
*/
inline const DataCatalogType& GetType() const{ return m_type; }
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
@@ -106,7 +117,20 @@ namespace Model
* catalog-id=catalog_id
The
* GLUE
data catalog type also applies to the default
* AwsDataCatalog
that already exists in your account, of which you
- * can have only one and cannot modify.
The
+ * FEDERATED
data catalog type uses one of the following parameters,
+ * but not both. Use connection-arn
for an existing Glue connection.
+ * Use connection-type
and connection-properties
to
+ * specify the configuration setting for a new connection.
+ * connection-arn:<glue_connection_arn_to_reuse>
lambda-role-arn
(optional): The execution role to
+ * use for the Lambda function. If not provided, one is created.
+ * connection-type:MYSQL|REDSHIFT|....,
+ * connection-properties:"<json_string>"
For
+ * <json_string>
, use escaped JSON text, as in the
+ * following example.
+ * "{\"spill_bucket\":\"my_spill\",\"spill_prefix\":\"athena-spill\",\"host\":\"abc12345.snowflakecomputing.com\",\"port\":\"1234\",\"warehouse\":\"DEV_WH\",\"database\":\"TEST\",\"schema\":\"PUBLIC\",\"SecretArn\":\"arn:aws:secretsmanager:ap-south-1:111122223333:secret:snowflake-XHb67j\"}"
+ *
A list of comma separated tags to add to the data catalog that is - * created.
+ *A list of comma separated tags to add to the data catalog that is created.
+ * All the resources that are created by the CreateDataCatalog
API
+ * operation with FEDERATED
type will have the tag
+ * federated_athena_datacatalog="true"
. This includes the CFN Stack,
+ * Glue Connection, Athena DataCatalog, and all the resources created as part of
+ * the CFN Stack (Lambda Function, IAM policies/roles).
The type of data catalog to create: LAMBDA
for a federated
- * catalog, HIVE
for an external hive metastore, or GLUE
- * for an Glue Data Catalog.
GLUE
for an Glue Data Catalog, and HIVE
for
+ * an external Apache Hive metastore. FEDERATED
is a federated catalog
+ * for which Athena creates the connection and the Lambda function for you based on
+ * the parameters that you pass.
*/
inline const DataCatalogType& GetType() const{ return m_type; }
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
@@ -110,7 +114,18 @@ namespace Model
* catalog-id=catalog_id
The
* GLUE
data catalog type also applies to the default
* AwsDataCatalog
that already exists in your account, of which you
- * can have only one and cannot modify.
The
+ * FEDERATED
data catalog type uses one of the following parameters,
+ * but not both. Use connection-arn
for an existing Glue connection.
+ * Use connection-type
and connection-properties
to
+ * specify the configuration setting for a new connection.
+ * connection-arn:<glue_connection_arn_to_reuse>
connection-type:MYSQL|REDSHIFT|....,
+ * connection-properties:"<json_string>"
For
+ * <json_string>
, use escaped JSON text, as in the
+ * following example.
+ * "{\"spill_bucket\":\"my_spill\",\"spill_prefix\":\"athena-spill\",\"host\":\"abc12345.snowflakecomputing.com\",\"port\":\"1234\",\"warehouse\":\"DEV_WH\",\"database\":\"TEST\",\"schema\":\"PUBLIC\",\"SecretArn\":\"arn:aws:secretsmanager:ap-south-1:111122223333:secret:snowflake-XHb67j\"}"
+ *
The status of the creation or deletion of the data catalog.
The LAMBDA
, GLUE
, and HIVE
data
+ * catalog types are created synchronously. Their status is either
+ * CREATE_COMPLETE
or CREATE_FAILED
.
The FEDERATED
data catalog type is created asynchronously.
Data catalog creation status:
+ * CREATE_IN_PROGRESS
: Federated data catalog creation in
+ * progress.
CREATE_COMPLETE
: Data catalog creation
+ * complete.
CREATE_FAILED
: Data catalog could not
+ * be created.
CREATE_FAILED_CLEANUP_IN_PROGRESS
:
+ * Federated data catalog creation failed and is being removed.
+ * CREATE_FAILED_CLEANUP_COMPLETE
: Federated data catalog creation
+ * failed and was removed.
+ * CREATE_FAILED_CLEANUP_FAILED
: Federated data catalog creation
+ * failed but could not be removed.
Data catalog deletion + * status:
DELETE_IN_PROGRESS
: Federated data
+ * catalog deletion in progress.
DELETE_COMPLETE
:
+ * Federated data catalog deleted.
DELETE_FAILED
:
+ * Federated data catalog could not be deleted.
The type of connection for a FEDERATED
data catalog (for
+ * example, REDSHIFT
, MYSQL
, or SQLSERVER
).
+ * For information about individual connectors, see Available
+ * data source connectors.
Text of the error that occurred during data catalog creation or deletion.
+ */ + inline const Aws::String& GetError() const{ return m_error; } + inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } + inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; } + inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } + inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); } + inline DataCatalog& WithError(const Aws::String& value) { SetError(value); return *this;} + inline DataCatalog& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} + inline DataCatalog& WithError(const char* value) { SetError(value); return *this;} + ///@} private: Aws::String m_name; @@ -139,6 +214,15 @@ namespace Model Aws::MapThe status of the creation or deletion of the data catalog.
The LAMBDA
, GLUE
, and HIVE
data
+ * catalog types are created synchronously. Their status is either
+ * CREATE_COMPLETE
or CREATE_FAILED
.
The FEDERATED
data catalog type is created asynchronously.
Data catalog creation status:
+ * CREATE_IN_PROGRESS
: Federated data catalog creation in
+ * progress.
CREATE_COMPLETE
: Data catalog creation
+ * complete.
CREATE_FAILED
: Data catalog could not
+ * be created.
CREATE_FAILED_CLEANUP_IN_PROGRESS
:
+ * Federated data catalog creation failed and is being removed.
+ * CREATE_FAILED_CLEANUP_COMPLETE
: Federated data catalog creation
+ * failed and was removed.
+ * CREATE_FAILED_CLEANUP_FAILED
: Federated data catalog creation
+ * failed but could not be removed.
Data catalog deletion + * status:
DELETE_IN_PROGRESS
: Federated data
+ * catalog deletion in progress.
DELETE_COMPLETE
:
+ * Federated data catalog deleted.
DELETE_FAILED
:
+ * Federated data catalog could not be deleted.
The type of connection for a FEDERATED
data catalog (for
+ * example, REDSHIFT
, MYSQL
, or SQLSERVER
).
+ * For information about individual connectors, see Available
+ * data source connectors.
Text of the error that occurred during data catalog creation or deletion.
+ */ + inline const Aws::String& GetError() const{ return m_error; } + inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } + inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; } + inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } + inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); } + inline DataCatalogSummary& WithError(const Aws::String& value) { SetError(value); return *this;} + inline DataCatalogSummary& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} + inline DataCatalogSummary& WithError(const char* value) { SetError(value); return *this;} + ///@} private: Aws::String m_catalogName; @@ -74,6 +136,15 @@ namespace Model DataCatalogType m_type; bool m_typeHasBeenSet = false; + + DataCatalogStatus m_status; + bool m_statusHasBeenSet = false; + + ConnectionType m_connectionType; + bool m_connectionTypeHasBeenSet = false; + + Aws::String m_error; + bool m_errorHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DataCatalogType.h b/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DataCatalogType.h index 874a85fcef3..32cc4f80b99 100644 --- a/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DataCatalogType.h +++ b/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DataCatalogType.h @@ -18,7 +18,8 @@ namespace Model NOT_SET, LAMBDA, GLUE, - HIVE + HIVE, + FEDERATED }; namespace DataCatalogTypeMapper diff --git a/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DeleteDataCatalogRequest.h b/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DeleteDataCatalogRequest.h index 6433e11359b..acf834071fd 100644 --- a/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DeleteDataCatalogRequest.h +++ b/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/DeleteDataCatalogRequest.h @@ -47,10 +47,26 @@ namespace Model inline DeleteDataCatalogRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} inline DeleteDataCatalogRequest& WithName(const char* value) { SetName(value); return *this;} ///@} + + ///@{ + /** + *Deletes the Athena Data Catalog. You can only use this with the
+ * FEDERATED
catalogs. You usually perform this before registering the
+ * connector with Glue Data Catalog. After deletion, you will have to manage the
+ * Glue Connection and Lambda function.
Input for an agent collaborator. The input can be text or an action + * invocation result.
An action invocation result.
+ */ + inline const ReturnControlResults& GetReturnControlResults() const{ return m_returnControlResults; } + inline bool ReturnControlResultsHasBeenSet() const { return m_returnControlResultsHasBeenSet; } + inline void SetReturnControlResults(const ReturnControlResults& value) { m_returnControlResultsHasBeenSet = true; m_returnControlResults = value; } + inline void SetReturnControlResults(ReturnControlResults&& value) { m_returnControlResultsHasBeenSet = true; m_returnControlResults = std::move(value); } + inline AgentCollaboratorInputPayload& WithReturnControlResults(const ReturnControlResults& value) { SetReturnControlResults(value); return *this;} + inline AgentCollaboratorInputPayload& WithReturnControlResults(ReturnControlResults&& value) { SetReturnControlResults(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *Input text.
+ */ + inline const Aws::String& GetText() const{ return m_text; } + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + inline AgentCollaboratorInputPayload& WithText(const Aws::String& value) { SetText(value); return *this;} + inline AgentCollaboratorInputPayload& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + inline AgentCollaboratorInputPayload& WithText(const char* value) { SetText(value); return *this;} + ///@} + + ///@{ + /** + *The input type.
+ */ + inline const PayloadType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const PayloadType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(PayloadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline AgentCollaboratorInputPayload& WithType(const PayloadType& value) { SetType(value); return *this;} + inline AgentCollaboratorInputPayload& WithType(PayloadType&& value) { SetType(std::move(value)); return *this;} + ///@} + private: + + ReturnControlResults m_returnControlResults; + bool m_returnControlResultsHasBeenSet = false; + + Aws::String m_text; + bool m_textHasBeenSet = false; + + PayloadType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationInput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationInput.h new file mode 100644 index 00000000000..15c0b3b147b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationInput.h @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeAn agent collaborator invocation input.
The collaborator's alias ARN.
+ */ + inline const Aws::String& GetAgentCollaboratorAliasArn() const{ return m_agentCollaboratorAliasArn; } + inline bool AgentCollaboratorAliasArnHasBeenSet() const { return m_agentCollaboratorAliasArnHasBeenSet; } + inline void SetAgentCollaboratorAliasArn(const Aws::String& value) { m_agentCollaboratorAliasArnHasBeenSet = true; m_agentCollaboratorAliasArn = value; } + inline void SetAgentCollaboratorAliasArn(Aws::String&& value) { m_agentCollaboratorAliasArnHasBeenSet = true; m_agentCollaboratorAliasArn = std::move(value); } + inline void SetAgentCollaboratorAliasArn(const char* value) { m_agentCollaboratorAliasArnHasBeenSet = true; m_agentCollaboratorAliasArn.assign(value); } + inline AgentCollaboratorInvocationInput& WithAgentCollaboratorAliasArn(const Aws::String& value) { SetAgentCollaboratorAliasArn(value); return *this;} + inline AgentCollaboratorInvocationInput& WithAgentCollaboratorAliasArn(Aws::String&& value) { SetAgentCollaboratorAliasArn(std::move(value)); return *this;} + inline AgentCollaboratorInvocationInput& WithAgentCollaboratorAliasArn(const char* value) { SetAgentCollaboratorAliasArn(value); return *this;} + ///@} + + ///@{ + /** + *The collaborator's name.
+ */ + inline const Aws::String& GetAgentCollaboratorName() const{ return m_agentCollaboratorName; } + inline bool AgentCollaboratorNameHasBeenSet() const { return m_agentCollaboratorNameHasBeenSet; } + inline void SetAgentCollaboratorName(const Aws::String& value) { m_agentCollaboratorNameHasBeenSet = true; m_agentCollaboratorName = value; } + inline void SetAgentCollaboratorName(Aws::String&& value) { m_agentCollaboratorNameHasBeenSet = true; m_agentCollaboratorName = std::move(value); } + inline void SetAgentCollaboratorName(const char* value) { m_agentCollaboratorNameHasBeenSet = true; m_agentCollaboratorName.assign(value); } + inline AgentCollaboratorInvocationInput& WithAgentCollaboratorName(const Aws::String& value) { SetAgentCollaboratorName(value); return *this;} + inline AgentCollaboratorInvocationInput& WithAgentCollaboratorName(Aws::String&& value) { SetAgentCollaboratorName(std::move(value)); return *this;} + inline AgentCollaboratorInvocationInput& WithAgentCollaboratorName(const char* value) { SetAgentCollaboratorName(value); return *this;} + ///@} + + ///@{ + /** + *Text or action invocation result input for the collaborator.
+ */ + inline const AgentCollaboratorInputPayload& GetInput() const{ return m_input; } + inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } + inline void SetInput(const AgentCollaboratorInputPayload& value) { m_inputHasBeenSet = true; m_input = value; } + inline void SetInput(AgentCollaboratorInputPayload&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } + inline AgentCollaboratorInvocationInput& WithInput(const AgentCollaboratorInputPayload& value) { SetInput(value); return *this;} + inline AgentCollaboratorInvocationInput& WithInput(AgentCollaboratorInputPayload&& value) { SetInput(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_agentCollaboratorAliasArn; + bool m_agentCollaboratorAliasArnHasBeenSet = false; + + Aws::String m_agentCollaboratorName; + bool m_agentCollaboratorNameHasBeenSet = false; + + AgentCollaboratorInputPayload m_input; + bool m_inputHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationOutput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationOutput.h new file mode 100644 index 00000000000..676b85ba73a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationOutput.h @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeOutput from an agent collaborator.
The output's agent collaborator alias ARN.
+ */ + inline const Aws::String& GetAgentCollaboratorAliasArn() const{ return m_agentCollaboratorAliasArn; } + inline bool AgentCollaboratorAliasArnHasBeenSet() const { return m_agentCollaboratorAliasArnHasBeenSet; } + inline void SetAgentCollaboratorAliasArn(const Aws::String& value) { m_agentCollaboratorAliasArnHasBeenSet = true; m_agentCollaboratorAliasArn = value; } + inline void SetAgentCollaboratorAliasArn(Aws::String&& value) { m_agentCollaboratorAliasArnHasBeenSet = true; m_agentCollaboratorAliasArn = std::move(value); } + inline void SetAgentCollaboratorAliasArn(const char* value) { m_agentCollaboratorAliasArnHasBeenSet = true; m_agentCollaboratorAliasArn.assign(value); } + inline AgentCollaboratorInvocationOutput& WithAgentCollaboratorAliasArn(const Aws::String& value) { SetAgentCollaboratorAliasArn(value); return *this;} + inline AgentCollaboratorInvocationOutput& WithAgentCollaboratorAliasArn(Aws::String&& value) { SetAgentCollaboratorAliasArn(std::move(value)); return *this;} + inline AgentCollaboratorInvocationOutput& WithAgentCollaboratorAliasArn(const char* value) { SetAgentCollaboratorAliasArn(value); return *this;} + ///@} + + ///@{ + /** + *The output's agent collaborator name.
+ */ + inline const Aws::String& GetAgentCollaboratorName() const{ return m_agentCollaboratorName; } + inline bool AgentCollaboratorNameHasBeenSet() const { return m_agentCollaboratorNameHasBeenSet; } + inline void SetAgentCollaboratorName(const Aws::String& value) { m_agentCollaboratorNameHasBeenSet = true; m_agentCollaboratorName = value; } + inline void SetAgentCollaboratorName(Aws::String&& value) { m_agentCollaboratorNameHasBeenSet = true; m_agentCollaboratorName = std::move(value); } + inline void SetAgentCollaboratorName(const char* value) { m_agentCollaboratorNameHasBeenSet = true; m_agentCollaboratorName.assign(value); } + inline AgentCollaboratorInvocationOutput& WithAgentCollaboratorName(const Aws::String& value) { SetAgentCollaboratorName(value); return *this;} + inline AgentCollaboratorInvocationOutput& WithAgentCollaboratorName(Aws::String&& value) { SetAgentCollaboratorName(std::move(value)); return *this;} + inline AgentCollaboratorInvocationOutput& WithAgentCollaboratorName(const char* value) { SetAgentCollaboratorName(value); return *this;} + ///@} + + ///@{ + /** + *The output's output.
+ */ + inline const AgentCollaboratorOutputPayload& GetOutput() const{ return m_output; } + inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; } + inline void SetOutput(const AgentCollaboratorOutputPayload& value) { m_outputHasBeenSet = true; m_output = value; } + inline void SetOutput(AgentCollaboratorOutputPayload&& value) { m_outputHasBeenSet = true; m_output = std::move(value); } + inline AgentCollaboratorInvocationOutput& WithOutput(const AgentCollaboratorOutputPayload& value) { SetOutput(value); return *this;} + inline AgentCollaboratorInvocationOutput& WithOutput(AgentCollaboratorOutputPayload&& value) { SetOutput(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_agentCollaboratorAliasArn; + bool m_agentCollaboratorAliasArnHasBeenSet = false; + + Aws::String m_agentCollaboratorName; + bool m_agentCollaboratorNameHasBeenSet = false; + + AgentCollaboratorOutputPayload m_output; + bool m_outputHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorOutputPayload.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorOutputPayload.h new file mode 100644 index 00000000000..0d3d1ee30c4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/AgentCollaboratorOutputPayload.h @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeOutput from an agent collaborator. The output can be text or an action + * invocation result.
An action invocation result.
+ */ + inline const ReturnControlPayload& GetReturnControlPayload() const{ return m_returnControlPayload; } + inline bool ReturnControlPayloadHasBeenSet() const { return m_returnControlPayloadHasBeenSet; } + inline void SetReturnControlPayload(const ReturnControlPayload& value) { m_returnControlPayloadHasBeenSet = true; m_returnControlPayload = value; } + inline void SetReturnControlPayload(ReturnControlPayload&& value) { m_returnControlPayloadHasBeenSet = true; m_returnControlPayload = std::move(value); } + inline AgentCollaboratorOutputPayload& WithReturnControlPayload(const ReturnControlPayload& value) { SetReturnControlPayload(value); return *this;} + inline AgentCollaboratorOutputPayload& WithReturnControlPayload(ReturnControlPayload&& value) { SetReturnControlPayload(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *Text output.
+ */ + inline const Aws::String& GetText() const{ return m_text; } + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + inline AgentCollaboratorOutputPayload& WithText(const Aws::String& value) { SetText(value); return *this;} + inline AgentCollaboratorOutputPayload& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + inline AgentCollaboratorOutputPayload& WithText(const char* value) { SetText(value); return *this;} + ///@} + + ///@{ + /** + *The type of output.
+ */ + inline const PayloadType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const PayloadType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(PayloadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline AgentCollaboratorOutputPayload& WithType(const PayloadType& value) { SetType(value); return *this;} + inline AgentCollaboratorOutputPayload& WithType(PayloadType&& value) { SetType(std::move(value)); return *this;} + ///@} + private: + + ReturnControlPayload m_returnControlPayload; + bool m_returnControlPayloadHasBeenSet = false; + + Aws::String m_text; + bool m_textHasBeenSet = false; + + PayloadType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h index 1a2abc55262..d05ff8630cb 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h @@ -71,6 +71,20 @@ namespace Model inline ApiInvocationInput& WithActionInvocationType(ActionInvocationType&& value) { SetActionInvocationType(std::move(value)); return *this;} ///@} + ///@{ + /** + *The agent's ID.
+ */ + inline const Aws::String& GetAgentId() const{ return m_agentId; } + inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } + inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } + inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } + inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } + inline ApiInvocationInput& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} + inline ApiInvocationInput& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} + inline ApiInvocationInput& WithAgentId(const char* value) { SetAgentId(value); return *this;} + ///@} + ///@{ /** *The path to the API operation.
@@ -85,6 +99,20 @@ namespace Model inline ApiInvocationInput& WithApiPath(const char* value) { SetApiPath(value); return *this;} ///@} + ///@{ + /** + *The agent collaborator's name.
+ */ + inline const Aws::String& GetCollaboratorName() const{ return m_collaboratorName; } + inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; } + inline void SetCollaboratorName(const Aws::String& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = value; } + inline void SetCollaboratorName(Aws::String&& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = std::move(value); } + inline void SetCollaboratorName(const char* value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName.assign(value); } + inline ApiInvocationInput& WithCollaboratorName(const Aws::String& value) { SetCollaboratorName(value); return *this;} + inline ApiInvocationInput& WithCollaboratorName(Aws::String&& value) { SetCollaboratorName(std::move(value)); return *this;} + inline ApiInvocationInput& WithCollaboratorName(const char* value) { SetCollaboratorName(value); return *this;} + ///@} + ///@{ /** *The HTTP method of the API operation.
@@ -134,9 +162,15 @@ namespace Model ActionInvocationType m_actionInvocationType; bool m_actionInvocationTypeHasBeenSet = false; + Aws::String m_agentId; + bool m_agentIdHasBeenSet = false; + Aws::String m_apiPath; bool m_apiPathHasBeenSet = false; + Aws::String m_collaboratorName; + bool m_collaboratorNameHasBeenSet = false; + Aws::String m_httpMethod; bool m_httpMethodHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h index 64f45d76b75..100de9e2efe 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h @@ -60,6 +60,20 @@ namespace Model inline ApiResult& WithActionGroup(const char* value) { SetActionGroup(value); return *this;} ///@} + ///@{ + /** + *The agent's ID.
+ */ + inline const Aws::String& GetAgentId() const{ return m_agentId; } + inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } + inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } + inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } + inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } + inline ApiResult& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} + inline ApiResult& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} + inline ApiResult& WithAgentId(const char* value) { SetAgentId(value); return *this;} + ///@} + ///@{ /** *The path to the API operation.
@@ -151,6 +165,9 @@ namespace Model Aws::String m_actionGroup; bool m_actionGroupHasBeenSet = false; + Aws::String m_agentId; + bool m_agentIdHasBeenSet = false; + Aws::String m_apiPath; bool m_apiPathHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Caller.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Caller.h new file mode 100644 index 00000000000..e2e920c9c13 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Caller.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeDetails about a caller.
The caller's agent alias ARN.
+ */ + inline const Aws::String& GetAgentAliasArn() const{ return m_agentAliasArn; } + inline bool AgentAliasArnHasBeenSet() const { return m_agentAliasArnHasBeenSet; } + inline void SetAgentAliasArn(const Aws::String& value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn = value; } + inline void SetAgentAliasArn(Aws::String&& value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn = std::move(value); } + inline void SetAgentAliasArn(const char* value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn.assign(value); } + inline Caller& WithAgentAliasArn(const Aws::String& value) { SetAgentAliasArn(value); return *this;} + inline Caller& WithAgentAliasArn(Aws::String&& value) { SetAgentAliasArn(std::move(value)); return *this;} + inline Caller& WithAgentAliasArn(const char* value) { SetAgentAliasArn(value); return *this;} + ///@} + private: + + Aws::String m_agentAliasArn; + bool m_agentAliasArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ContentBlock.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ContentBlock.h new file mode 100644 index 00000000000..7c75dcdf1c8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ContentBlock.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeA content block.
The block's text.
+ */ + inline const Aws::String& GetText() const{ return m_text; } + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + inline ContentBlock& WithText(const Aws::String& value) { SetText(value); return *this;} + inline ContentBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + inline ContentBlock& WithText(const char* value) { SetText(value); return *this;} + ///@} + private: + + Aws::String m_text; + bool m_textHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ConversationHistory.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ConversationHistory.h new file mode 100644 index 00000000000..934de388447 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ConversationHistory.h @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeA conversation history.
The conversation's messages.
+ */ + inline const Aws::VectorThe agent's ID.
+ */ + inline const Aws::String& GetAgentId() const{ return m_agentId; } + inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } + inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } + inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } + inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } + inline FunctionInvocationInput& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} + inline FunctionInvocationInput& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} + inline FunctionInvocationInput& WithAgentId(const char* value) { SetAgentId(value); return *this;} + ///@} + + ///@{ + /** + *The collaborator's name.
+ */ + inline const Aws::String& GetCollaboratorName() const{ return m_collaboratorName; } + inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; } + inline void SetCollaboratorName(const Aws::String& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = value; } + inline void SetCollaboratorName(Aws::String&& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = std::move(value); } + inline void SetCollaboratorName(const char* value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName.assign(value); } + inline FunctionInvocationInput& WithCollaboratorName(const Aws::String& value) { SetCollaboratorName(value); return *this;} + inline FunctionInvocationInput& WithCollaboratorName(Aws::String&& value) { SetCollaboratorName(std::move(value)); return *this;} + inline FunctionInvocationInput& WithCollaboratorName(const char* value) { SetCollaboratorName(value); return *this;} + ///@} + ///@{ /** *The name of the function.
@@ -105,6 +133,12 @@ namespace Model ActionInvocationType m_actionInvocationType; bool m_actionInvocationTypeHasBeenSet = false; + Aws::String m_agentId; + bool m_agentIdHasBeenSet = false; + + Aws::String m_collaboratorName; + bool m_collaboratorNameHasBeenSet = false; + Aws::String m_function; bool m_functionHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h index 7ed3a2a6245..60e41863d01 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h @@ -60,6 +60,20 @@ namespace Model inline FunctionResult& WithActionGroup(const char* value) { SetActionGroup(value); return *this;} ///@} + ///@{ + /** + *The agent's ID.
+ */ + inline const Aws::String& GetAgentId() const{ return m_agentId; } + inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } + inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } + inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } + inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } + inline FunctionResult& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} + inline FunctionResult& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} + inline FunctionResult& WithAgentId(const char* value) { SetAgentId(value); return *this;} + ///@} + ///@{ /** *Contains the user confirmation information about the function that was
@@ -126,6 +140,9 @@ namespace Model
Aws::String m_actionGroup;
bool m_actionGroupHasBeenSet = false;
+ Aws::String m_agentId;
+ bool m_agentIdHasBeenSet = false;
+
ConfirmationState m_confirmationState;
bool m_confirmationStateHasBeenSet = false;
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h
index 8f64c3ec719..2d126eebfc2 100644
--- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h
@@ -31,7 +31,7 @@ namespace Model
* response – in the generatedResponsePart
field
RetrieveAndGenerate
- * response – in the generatedResponsePart
field
generatedResponsePart
field
* The collaborator's invocation input.
+ */ + inline const AgentCollaboratorInvocationInput& GetAgentCollaboratorInvocationInput() const{ return m_agentCollaboratorInvocationInput; } + inline bool AgentCollaboratorInvocationInputHasBeenSet() const { return m_agentCollaboratorInvocationInputHasBeenSet; } + inline void SetAgentCollaboratorInvocationInput(const AgentCollaboratorInvocationInput& value) { m_agentCollaboratorInvocationInputHasBeenSet = true; m_agentCollaboratorInvocationInput = value; } + inline void SetAgentCollaboratorInvocationInput(AgentCollaboratorInvocationInput&& value) { m_agentCollaboratorInvocationInputHasBeenSet = true; m_agentCollaboratorInvocationInput = std::move(value); } + inline InvocationInput& WithAgentCollaboratorInvocationInput(const AgentCollaboratorInvocationInput& value) { SetAgentCollaboratorInvocationInput(value); return *this;} + inline InvocationInput& WithAgentCollaboratorInvocationInput(AgentCollaboratorInvocationInput&& value) { SetAgentCollaboratorInvocationInput(std::move(value)); return *this;} + ///@} + ///@{ /** *Contains information about the code interpreter to be invoked.
@@ -110,6 +123,9 @@ namespace Model ActionGroupInvocationInput m_actionGroupInvocationInput; bool m_actionGroupInvocationInputHasBeenSet = false; + AgentCollaboratorInvocationInput m_agentCollaboratorInvocationInput; + bool m_agentCollaboratorInvocationInputHasBeenSet = false; + CodeInterpreterInvocationInput m_codeInterpreterInvocationInput; bool m_codeInterpreterInvocationInputHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationType.h index 383dcfbeed7..78fccab17f3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationType.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationType.h @@ -19,7 +19,8 @@ namespace Model ACTION_GROUP, KNOWLEDGE_BASE, FINISH, - ACTION_GROUP_CODE_INTERPRETER + ACTION_GROUP_CODE_INTERPRETER, + AGENT_COLLABORATOR }; namespace InvocationTypeMapper diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h index 807b65beb5a..ec9f045c2e3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h @@ -35,6 +35,8 @@ namespace Model AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override; + AWS_BEDROCKAGENTRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + /** * Underlying Event Stream Decoder. */ @@ -169,6 +171,20 @@ namespace Model inline InvokeAgentRequest& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;} ///@} + ///@{ + /** + *The ARN of the resource making the request.
+ */ + inline const Aws::String& GetSourceArn() const{ return m_sourceArn; } + inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; } + inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; } + inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); } + inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); } + inline InvokeAgentRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;} + inline InvokeAgentRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;} + inline InvokeAgentRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;} + ///@} + ///@{ /** *Specifies the configurations for streaming.
@@ -206,6 +222,9 @@ namespace Model SessionState m_sessionState; bool m_sessionStateHasBeenSet = false; + Aws::String m_sourceArn; + bool m_sourceArnHasBeenSet = false; + StreamingConfigurations m_streamingConfigurations; bool m_streamingConfigurationsHasBeenSet = false; InvokeAgentHandler m_handler; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Message.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Message.h new file mode 100644 index 00000000000..8aff49fed83 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Message.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeDetails about a message.
The message's content.
+ */ + inline const Aws::VectorThe message's role.
+ */ + inline const ConversationRole& GetRole() const{ return m_role; } + inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; } + inline void SetRole(const ConversationRole& value) { m_roleHasBeenSet = true; m_role = value; } + inline void SetRole(ConversationRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); } + inline Message& WithRole(const ConversationRole& value) { SetRole(value); return *this;} + inline Message& WithRole(ConversationRole&& value) { SetRole(std::move(value)); return *this;} + ///@} + private: + + Aws::VectorThe identifier of a foundation model.
+ */ + inline const Aws::String& GetFoundationModel() const{ return m_foundationModel; } + inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; } + inline void SetFoundationModel(const Aws::String& value) { m_foundationModelHasBeenSet = true; m_foundationModel = value; } + inline void SetFoundationModel(Aws::String&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::move(value); } + inline void SetFoundationModel(const char* value) { m_foundationModelHasBeenSet = true; m_foundationModel.assign(value); } + inline ModelInvocationInput& WithFoundationModel(const Aws::String& value) { SetFoundationModel(value); return *this;} + inline ModelInvocationInput& WithFoundationModel(Aws::String&& value) { SetFoundationModel(std::move(value)); return *this;} + inline ModelInvocationInput& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;} + ///@} + ///@{ /** *Specifications about the inference parameters that were provided alongside
@@ -150,6 +164,9 @@ namespace Model
///@}
private:
+ Aws::String m_foundationModel;
+ bool m_foundationModelHasBeenSet = false;
+
InferenceConfiguration m_inferenceConfiguration;
bool m_inferenceConfigurationHasBeenSet = false;
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Observation.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Observation.h
index 6cec3764d63..38a30c12c42 100644
--- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Observation.h
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Observation.h
@@ -6,6 +6,7 @@
#pragma once
#include A collaborator's invocation output. Contains the JSON-formatted string returned by the API invoked by the code
@@ -143,6 +156,9 @@ namespace Model
ActionGroupInvocationOutput m_actionGroupInvocationOutput;
bool m_actionGroupInvocationOutputHasBeenSet = false;
+ AgentCollaboratorInvocationOutput m_agentCollaboratorInvocationOutput;
+ bool m_agentCollaboratorInvocationOutputHasBeenSet = false;
+
CodeInterpreterInvocationOutput m_codeInterpreterInvocationOutput;
bool m_codeInterpreterInvocationOutputHasBeenSet = false;
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PayloadType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PayloadType.h
new file mode 100644
index 00000000000..65a8483ac89
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PayloadType.h
@@ -0,0 +1,31 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include An action invocation result. The action's invocation ID. The action invocation result. Invocation output from a routing classifier model.See Also:
AWS
+ * API ReferenceSee Also:
+ * AWS
+ * API Reference
The invocation's metadata.
+ */ + inline const Metadata& GetMetadata() const{ return m_metadata; } + inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } + inline void SetMetadata(const Metadata& value) { m_metadataHasBeenSet = true; m_metadata = value; } + inline void SetMetadata(Metadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } + inline RoutingClassifierModelInvocationOutput& WithMetadata(const Metadata& value) { SetMetadata(value); return *this;} + inline RoutingClassifierModelInvocationOutput& WithMetadata(Metadata&& value) { SetMetadata(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The invocation's raw response.
+ */ + inline const RawResponse& GetRawResponse() const{ return m_rawResponse; } + inline bool RawResponseHasBeenSet() const { return m_rawResponseHasBeenSet; } + inline void SetRawResponse(const RawResponse& value) { m_rawResponseHasBeenSet = true; m_rawResponse = value; } + inline void SetRawResponse(RawResponse&& value) { m_rawResponseHasBeenSet = true; m_rawResponse = std::move(value); } + inline RoutingClassifierModelInvocationOutput& WithRawResponse(const RawResponse& value) { SetRawResponse(value); return *this;} + inline RoutingClassifierModelInvocationOutput& WithRawResponse(RawResponse&& value) { SetRawResponse(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The invocation's trace ID.
+ */ + inline const Aws::String& GetTraceId() const{ return m_traceId; } + inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; } + inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; } + inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); } + inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); } + inline RoutingClassifierModelInvocationOutput& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;} + inline RoutingClassifierModelInvocationOutput& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;} + inline RoutingClassifierModelInvocationOutput& WithTraceId(const char* value) { SetTraceId(value); return *this;} + ///@} + private: + + Metadata m_metadata; + bool m_metadataHasBeenSet = false; + + RawResponse m_rawResponse; + bool m_rawResponseHasBeenSet = false; + + Aws::String m_traceId; + bool m_traceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RoutingClassifierTrace.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RoutingClassifierTrace.h new file mode 100644 index 00000000000..dfec8413e9f --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RoutingClassifierTrace.h @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeA trace for a routing classifier.
The classifier's invocation input.
+ */ + inline const InvocationInput& GetInvocationInput() const{ return m_invocationInput; } + inline bool InvocationInputHasBeenSet() const { return m_invocationInputHasBeenSet; } + inline void SetInvocationInput(const InvocationInput& value) { m_invocationInputHasBeenSet = true; m_invocationInput = value; } + inline void SetInvocationInput(InvocationInput&& value) { m_invocationInputHasBeenSet = true; m_invocationInput = std::move(value); } + inline RoutingClassifierTrace& WithInvocationInput(const InvocationInput& value) { SetInvocationInput(value); return *this;} + inline RoutingClassifierTrace& WithInvocationInput(InvocationInput&& value) { SetInvocationInput(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The classifier's model invocation input.
+ */ + inline const ModelInvocationInput& GetModelInvocationInput() const{ return m_modelInvocationInput; } + inline bool ModelInvocationInputHasBeenSet() const { return m_modelInvocationInputHasBeenSet; } + inline void SetModelInvocationInput(const ModelInvocationInput& value) { m_modelInvocationInputHasBeenSet = true; m_modelInvocationInput = value; } + inline void SetModelInvocationInput(ModelInvocationInput&& value) { m_modelInvocationInputHasBeenSet = true; m_modelInvocationInput = std::move(value); } + inline RoutingClassifierTrace& WithModelInvocationInput(const ModelInvocationInput& value) { SetModelInvocationInput(value); return *this;} + inline RoutingClassifierTrace& WithModelInvocationInput(ModelInvocationInput&& value) { SetModelInvocationInput(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The classifier's model invocation output.
+ */ + inline const RoutingClassifierModelInvocationOutput& GetModelInvocationOutput() const{ return m_modelInvocationOutput; } + inline bool ModelInvocationOutputHasBeenSet() const { return m_modelInvocationOutputHasBeenSet; } + inline void SetModelInvocationOutput(const RoutingClassifierModelInvocationOutput& value) { m_modelInvocationOutputHasBeenSet = true; m_modelInvocationOutput = value; } + inline void SetModelInvocationOutput(RoutingClassifierModelInvocationOutput&& value) { m_modelInvocationOutputHasBeenSet = true; m_modelInvocationOutput = std::move(value); } + inline RoutingClassifierTrace& WithModelInvocationOutput(const RoutingClassifierModelInvocationOutput& value) { SetModelInvocationOutput(value); return *this;} + inline RoutingClassifierTrace& WithModelInvocationOutput(RoutingClassifierModelInvocationOutput&& value) { SetModelInvocationOutput(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *The classifier's observation.
+ */ + inline const Observation& GetObservation() const{ return m_observation; } + inline bool ObservationHasBeenSet() const { return m_observationHasBeenSet; } + inline void SetObservation(const Observation& value) { m_observationHasBeenSet = true; m_observation = value; } + inline void SetObservation(Observation&& value) { m_observationHasBeenSet = true; m_observation = std::move(value); } + inline RoutingClassifierTrace& WithObservation(const Observation& value) { SetObservation(value); return *this;} + inline RoutingClassifierTrace& WithObservation(Observation&& value) { SetObservation(std::move(value)); return *this;} + ///@} + private: + + InvocationInput m_invocationInput; + bool m_invocationInputHasBeenSet = false; + + ModelInvocationInput m_modelInvocationInput; + bool m_modelInvocationInputHasBeenSet = false; + + RoutingClassifierModelInvocationOutput m_modelInvocationOutput; + bool m_modelInvocationOutputHasBeenSet = false; + + Observation m_observation; + bool m_observationHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h index 3ed929b518f..4acd6d061bb 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h @@ -5,6 +5,7 @@ #pragma once #includeThe state's conversation history.
+ */ + inline const ConversationHistory& GetConversationHistory() const{ return m_conversationHistory; } + inline bool ConversationHistoryHasBeenSet() const { return m_conversationHistoryHasBeenSet; } + inline void SetConversationHistory(const ConversationHistory& value) { m_conversationHistoryHasBeenSet = true; m_conversationHistory = value; } + inline void SetConversationHistory(ConversationHistory&& value) { m_conversationHistoryHasBeenSet = true; m_conversationHistory = std::move(value); } + inline SessionState& WithConversationHistory(const ConversationHistory& value) { SetConversationHistory(value); return *this;} + inline SessionState& WithConversationHistory(ConversationHistory&& value) { SetConversationHistory(std::move(value)); return *this;} + ///@} + ///@{ /** *Contains information about the files used by code interpreter.
@@ -166,6 +179,9 @@ namespace Model ///@} private: + ConversationHistory m_conversationHistory; + bool m_conversationHistoryHasBeenSet = false; + Aws::VectorA routing classifier's trace.
+ */ + inline const RoutingClassifierTrace& GetRoutingClassifierTrace() const{ return m_routingClassifierTrace; } + inline bool RoutingClassifierTraceHasBeenSet() const { return m_routingClassifierTraceHasBeenSet; } + inline void SetRoutingClassifierTrace(const RoutingClassifierTrace& value) { m_routingClassifierTraceHasBeenSet = true; m_routingClassifierTrace = value; } + inline void SetRoutingClassifierTrace(RoutingClassifierTrace&& value) { m_routingClassifierTraceHasBeenSet = true; m_routingClassifierTrace = std::move(value); } + inline Trace& WithRoutingClassifierTrace(const RoutingClassifierTrace& value) { SetRoutingClassifierTrace(value); return *this;} + inline Trace& WithRoutingClassifierTrace(RoutingClassifierTrace&& value) { SetRoutingClassifierTrace(std::move(value)); return *this;} + ///@} private: CustomOrchestrationTrace m_customOrchestrationTrace; @@ -141,6 +154,9 @@ namespace Model PreProcessingTrace m_preProcessingTrace; bool m_preProcessingTraceHasBeenSet = false; + + RoutingClassifierTrace m_routingClassifierTrace; + bool m_routingClassifierTraceHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h index 6ab380473b6..32b472d9dd1 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h @@ -6,7 +6,9 @@ #pragma once #includeThe part's caller chain.
+ */ + inline const Aws::VectorThe part's collaborator name.
+ */ + inline const Aws::String& GetCollaboratorName() const{ return m_collaboratorName; } + inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; } + inline void SetCollaboratorName(const Aws::String& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = value; } + inline void SetCollaboratorName(Aws::String&& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = std::move(value); } + inline void SetCollaboratorName(const char* value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName.assign(value); } + inline TracePart& WithCollaboratorName(const Aws::String& value) { SetCollaboratorName(value); return *this;} + inline TracePart& WithCollaboratorName(Aws::String&& value) { SetCollaboratorName(std::move(value)); return *this;} + inline TracePart& WithCollaboratorName(const char* value) { SetCollaboratorName(value); return *this;} + ///@} + ///@{ /** *The unique identifier of the session with the agent.
@@ -127,6 +157,12 @@ namespace Model Aws::String m_agentVersion; bool m_agentVersionHasBeenSet = false; + Aws::VectorMakes an agent a collaborator for another agent.
Associates a knowledge base with an agent. If a knowledge base is associated
* and its indexState
is set to Enabled
, the agent
@@ -746,6 +772,31 @@ namespace BedrockAgent
return SubmitAsync(&BedrockAgentClient::DeletePrompt, request, handler, context);
}
+ /**
+ *
Disassociates an agent collaborator.
Disassociates a knowledge base from an agent.
Retrieves information about an agent's collaborator.
Gets information about a knowledge base associated with an * agent.
Lists knowledge bases associated with an agent and information about each * one.
Updates the configuration for a knowledge base that has been associated with * an agent.