Skip to content

Commit

Permalink
Advanced security feature updates to include password history and log…
Browse files Browse the repository at this point in the history
… export for Cognito user pools.

This release adds savings percentage support to the ListRecommendationSummaries API.
Introduce model invocation output traces for orchestration traces, which contain the model's raw response and usage.
Added support for BYOL_GRAPHICS_G4DN_WSP IngestionProcess
  • Loading branch information
aws-sdk-cpp-automation committed Aug 6, 2024
1 parent 9ba2f4c commit 9d209cd
Show file tree
Hide file tree
Showing 61 changed files with 1,530 additions and 114 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.377
1.11.378
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ namespace BedrockAgentRuntime
* output of each node as a stream. If there's an error, the error is returned. For
* more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html">Test
* a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p><p><h3>See
* Also:</h3> <a
* a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p> <p>The
* CLI doesn't support streaming operations in Amazon Bedrock, including
* <code>InvokeFlow</code>.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeFlow">AWS
* API Reference</a></p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ namespace Model
{

/**
* <p>Contains information about an input into the flow and what to do with it.</p>
* <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a
* <p>Contains information about an input into the prompt flow and where to send
* it.</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-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax">InvokeFlow
* request</a> </p> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowInput">AWS
Expand All @@ -43,7 +44,7 @@ namespace Model

///@{
/**
* <p>Contains information about an input into the flow.</p>
* <p>Contains information about an input into the prompt flow.</p>
*/
inline const FlowInputContent& GetContent() const{ return m_content; }
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
Expand All @@ -55,7 +56,7 @@ namespace Model

///@{
/**
* <p>A name for the input of the flow input node.</p>
* <p>The name of the flow input node that begins the prompt flow.</p>
*/
inline const Aws::String& GetNodeName() const{ return m_nodeName; }
inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
Expand All @@ -69,7 +70,8 @@ namespace Model

///@{
/**
* <p>A name for the output of the flow input node.</p>
* <p>The name of the output from the flow input node that begins the prompt
* flow.</p>
*/
inline const Aws::String& GetNodeOutputName() const{ return m_nodeOutputName; }
inline bool NodeOutputNameHasBeenSet() const { return m_nodeOutputNameHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Model

///@{
/**
* <p>The input for the flow input node.</p>
* <p>The input to send to the prompt flow input node.</p>
*/
inline Aws::Utils::DocumentView GetDocument() const{ return m_document; }
inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ namespace Model
{

/**
* <p>Contains information about the output node.</p> <p>This data type is used in
* the following API operations:</p> <ul> <li> <p> <a
* <p>Contains information about the content in an output from prompt flow
* invocation.</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-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax">InvokeFlow
* request</a> </p> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowOutputContent">AWS
Expand All @@ -42,7 +43,7 @@ namespace Model

///@{
/**
* <p>A name for the output of the flow.</p>
* <p>The content in the output.</p>
*/
inline Aws::Utils::DocumentView GetDocument() const{ return m_document; }
inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ namespace Model
{

/**
* <p>Contains information about an output from flow invoction.</p> <p>This data
* type is used in the following API operations:</p> <ul> <li> <p> <a
* <p>Contains information about an output from prompt flow invoction.</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-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax">InvokeFlow
* response</a> </p> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/FlowOutputEvent">AWS
Expand All @@ -44,7 +44,7 @@ namespace Model

///@{
/**
* <p>The output of the node.</p>
* <p>The content in the output.</p>
*/
inline const FlowOutputContent& GetContent() const{ return m_content; }
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
Expand All @@ -56,7 +56,7 @@ namespace Model

///@{
/**
* <p>The name of the node to which input was provided.</p>
* <p>The name of the flow output node that the output is from.</p>
*/
inline const Aws::String& GetNodeName() const{ return m_nodeName; }
inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
Expand All @@ -70,7 +70,7 @@ namespace Model

///@{
/**
* <p>The type of node to which input was provided.</p>
* <p>The type of the node that the output is from.</p>
*/
inline const NodeType& GetNodeType() const{ return m_nodeType; }
inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ namespace Model
* following token at each point of generation. The value that you set for
* <code>Top P</code> determines the number of most-likely candidates from which
* the model chooses the next token in the sequence. For example, if you set
* <code>topP</code> to 80, the model only selects the next token from the top 80%
* <code>topP</code> to 0.8, the model only selects the next token from the top 80%
* of the probability distribution of next tokens.</p>
*/
inline double GetTopP() const{ return m_topP; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Model
* configurations</a>.</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-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax">Retrieve
* request</a> �� in the <code>retrievalConfiguration</code> field</p> </li> <li>
* request</a> in the <code>retrievalConfiguration</code> field</p> </li> <li>
* <p> <a
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax">RetrieveAndGenerate
* request</a> – in the <code>retrievalConfiguration</code> field</p> </li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/bedrock-agent-runtime/model/Usage.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace BedrockAgentRuntime
{
namespace Model
{

/**
* <p>Provides details of the foundation model.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Metadata">AWS
* API Reference</a></p>
*/
class Metadata
{
public:
AWS_BEDROCKAGENTRUNTIME_API Metadata();
AWS_BEDROCKAGENTRUNTIME_API Metadata(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API Metadata& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;


///@{
/**
* <p>Contains details of the foundation model usage.</p>
*/
inline const Usage& GetUsage() const{ return m_usage; }
inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
inline void SetUsage(const Usage& value) { m_usageHasBeenSet = true; m_usage = value; }
inline void SetUsage(Usage&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
inline Metadata& WithUsage(const Usage& value) { SetUsage(value); return *this;}
inline Metadata& WithUsage(Usage&& value) { SetUsage(std::move(value)); return *this;}
///@}
private:

Usage m_usage;
bool m_usageHasBeenSet = false;
};

} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/bedrock-agent-runtime/model/Metadata.h>
#include <aws/bedrock-agent-runtime/model/RawResponse.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace BedrockAgentRuntime
{
namespace Model
{

/**
* <p>The foundation model output from the orchestration step.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/OrchestrationModelInvocationOutput">AWS
* API Reference</a></p>
*/
class OrchestrationModelInvocationOutput
{
public:
AWS_BEDROCKAGENTRUNTIME_API OrchestrationModelInvocationOutput();
AWS_BEDROCKAGENTRUNTIME_API OrchestrationModelInvocationOutput(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API OrchestrationModelInvocationOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;


///@{
/**
* <p>Contains information about the foundation model output.</p>
*/
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 OrchestrationModelInvocationOutput& WithMetadata(const Metadata& value) { SetMetadata(value); return *this;}
inline OrchestrationModelInvocationOutput& WithMetadata(Metadata&& value) { SetMetadata(std::move(value)); return *this;}
///@}

///@{
/**
* <p>Contains details of the raw response from the foundation model output.</p>
*/
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 OrchestrationModelInvocationOutput& WithRawResponse(const RawResponse& value) { SetRawResponse(value); return *this;}
inline OrchestrationModelInvocationOutput& WithRawResponse(RawResponse&& value) { SetRawResponse(std::move(value)); return *this;}
///@}

///@{
/**
* <p>The unique identifier of the trace.</p>
*/
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 OrchestrationModelInvocationOutput& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
inline OrchestrationModelInvocationOutput& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
inline OrchestrationModelInvocationOutput& 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
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/bedrock-agent-runtime/model/InvocationInput.h>
#include <aws/bedrock-agent-runtime/model/ModelInvocationInput.h>
#include <aws/bedrock-agent-runtime/model/OrchestrationModelInvocationOutput.h>
#include <aws/bedrock-agent-runtime/model/Observation.h>
#include <aws/bedrock-agent-runtime/model/Rationale.h>
#include <utility>
Expand Down Expand Up @@ -73,6 +74,19 @@ namespace Model
inline OrchestrationTrace& WithModelInvocationInput(ModelInvocationInput&& value) { SetModelInvocationInput(std::move(value)); return *this;}
///@}

///@{
/**
* <p>Contains information pertaining to the output from the foundation model that
* is being invoked.</p>
*/
inline const OrchestrationModelInvocationOutput& GetModelInvocationOutput() const{ return m_modelInvocationOutput; }
inline bool ModelInvocationOutputHasBeenSet() const { return m_modelInvocationOutputHasBeenSet; }
inline void SetModelInvocationOutput(const OrchestrationModelInvocationOutput& value) { m_modelInvocationOutputHasBeenSet = true; m_modelInvocationOutput = value; }
inline void SetModelInvocationOutput(OrchestrationModelInvocationOutput&& value) { m_modelInvocationOutputHasBeenSet = true; m_modelInvocationOutput = std::move(value); }
inline OrchestrationTrace& WithModelInvocationOutput(const OrchestrationModelInvocationOutput& value) { SetModelInvocationOutput(value); return *this;}
inline OrchestrationTrace& WithModelInvocationOutput(OrchestrationModelInvocationOutput&& value) { SetModelInvocationOutput(std::move(value)); return *this;}
///@}

///@{
/**
* <p>Details about the observation (the output of the action group Lambda or
Expand Down Expand Up @@ -107,6 +121,9 @@ namespace Model
ModelInvocationInput m_modelInvocationInput;
bool m_modelInvocationInputHasBeenSet = false;

OrchestrationModelInvocationOutput m_modelInvocationOutput;
bool m_modelInvocationOutputHasBeenSet = false;

Observation m_observation;
bool m_observationHasBeenSet = false;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace BedrockAgentRuntime
{
namespace Model
{

/**
* <p>Contains the raw output from the foundation model.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RawResponse">AWS
* API Reference</a></p>
*/
class RawResponse
{
public:
AWS_BEDROCKAGENTRUNTIME_API RawResponse();
AWS_BEDROCKAGENTRUNTIME_API RawResponse(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API RawResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;


///@{
/**
* <p>The foundation model's raw output content.</p>
*/
inline const Aws::String& GetContent() const{ return m_content; }
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
inline RawResponse& WithContent(const Aws::String& value) { SetContent(value); return *this;}
inline RawResponse& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
inline RawResponse& WithContent(const char* value) { SetContent(value); return *this;}
///@}
private:

Aws::String m_content;
bool m_contentHasBeenSet = false;
};

} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
Loading

0 comments on commit 9d209cd

Please sign in to comment.