Skip to content

Commit

Permalink
Custom Orchestration API release for AWSBedrockAgents.
Browse files Browse the repository at this point in the history
Adds support for Time-based Copy for EBS Snapshots and Cross Region PrivateLink. Time-based Copy ensures that EBS Snapshots are copied within and across AWS Regions in a specified timeframe. Cross Region PrivateLink enables customers to connect to VPC endpoint services hosted in other AWS Regions.
Enables access to ValueMap and ValueInteger types for SegmentAttributes and fixes deserialization bug for DescribeContactFlow in AmazonConnect Public API
Private sharing, file upload and data collection feature support for Q Apps
Custom Orchestration and Streaming configurations API release for AWSBedrockAgents.
  • Loading branch information
aws-sdk-cpp-automation committed Nov 26, 2024
1 parent f999c6d commit a662534
Show file tree
Hide file tree
Showing 227 changed files with 9,533 additions and 680 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.455
1.11.456
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/**
* 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/CustomOrchestrationTraceEvent.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 trace behavior for the custom orchestration. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/CustomOrchestrationTrace">AWS
* API Reference</a></p>
*/
class CustomOrchestrationTrace
{
public:
AWS_BEDROCKAGENTRUNTIME_API CustomOrchestrationTrace();
AWS_BEDROCKAGENTRUNTIME_API CustomOrchestrationTrace(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API CustomOrchestrationTrace& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;


///@{
/**
* <p> The trace event details used with the custom orchestration. </p>
*/
inline const CustomOrchestrationTraceEvent& GetEvent() const{ return m_event; }
inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
inline void SetEvent(const CustomOrchestrationTraceEvent& value) { m_eventHasBeenSet = true; m_event = value; }
inline void SetEvent(CustomOrchestrationTraceEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
inline CustomOrchestrationTrace& WithEvent(const CustomOrchestrationTraceEvent& value) { SetEvent(value); return *this;}
inline CustomOrchestrationTrace& WithEvent(CustomOrchestrationTraceEvent&& value) { SetEvent(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 CustomOrchestrationTrace& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
inline CustomOrchestrationTrace& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
inline CustomOrchestrationTrace& WithTraceId(const char* value) { SetTraceId(value); return *this;}
///@}
private:

CustomOrchestrationTraceEvent m_event;
bool m_eventHasBeenSet = 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
@@ -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> The event in the custom orchestration sequence. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/CustomOrchestrationTraceEvent">AWS
* API Reference</a></p>
*/
class CustomOrchestrationTraceEvent
{
public:
AWS_BEDROCKAGENTRUNTIME_API CustomOrchestrationTraceEvent();
AWS_BEDROCKAGENTRUNTIME_API CustomOrchestrationTraceEvent(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API CustomOrchestrationTraceEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;


///@{
/**
* <p> The text that prompted the event at this step. </p>
*/
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 CustomOrchestrationTraceEvent& WithText(const Aws::String& value) { SetText(value); return *this;}
inline CustomOrchestrationTraceEvent& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
inline CustomOrchestrationTraceEvent& WithText(const char* value) { SetText(value); return *this;}
///@}
private:

Aws::String m_text;
bool m_textHasBeenSet = false;
};

} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <aws/core/utils/event/EventStreamDecoder.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/bedrock-agent-runtime/model/SessionState.h>
#include <aws/bedrock-agent-runtime/model/StreamingConfigurations.h>
#include <utility>

namespace Aws
Expand Down Expand Up @@ -167,6 +168,18 @@ namespace Model
inline InvokeAgentRequest& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
inline InvokeAgentRequest& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
///@}

///@{
/**
* <p> Specifies the configurations for streaming. </p>
*/
inline const StreamingConfigurations& GetStreamingConfigurations() const{ return m_streamingConfigurations; }
inline bool StreamingConfigurationsHasBeenSet() const { return m_streamingConfigurationsHasBeenSet; }
inline void SetStreamingConfigurations(const StreamingConfigurations& value) { m_streamingConfigurationsHasBeenSet = true; m_streamingConfigurations = value; }
inline void SetStreamingConfigurations(StreamingConfigurations&& value) { m_streamingConfigurationsHasBeenSet = true; m_streamingConfigurations = std::move(value); }
inline InvokeAgentRequest& WithStreamingConfigurations(const StreamingConfigurations& value) { SetStreamingConfigurations(value); return *this;}
inline InvokeAgentRequest& WithStreamingConfigurations(StreamingConfigurations&& value) { SetStreamingConfigurations(std::move(value)); return *this;}
///@}
private:

Aws::String m_agentAliasId;
Expand All @@ -192,6 +205,9 @@ namespace Model

SessionState m_sessionState;
bool m_sessionStateHasBeenSet = false;

StreamingConfigurations m_streamingConfigurations;
bool m_streamingConfigurationsHasBeenSet = false;
InvokeAgentHandler m_handler;
Aws::Utils::Event::EventStreamDecoder m_decoder;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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>

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

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


///@{
/**
* <p> The guardrail interval to apply as response is generated. </p>
*/
inline int GetApplyGuardrailInterval() const{ return m_applyGuardrailInterval; }
inline bool ApplyGuardrailIntervalHasBeenSet() const { return m_applyGuardrailIntervalHasBeenSet; }
inline void SetApplyGuardrailInterval(int value) { m_applyGuardrailIntervalHasBeenSet = true; m_applyGuardrailInterval = value; }
inline StreamingConfigurations& WithApplyGuardrailInterval(int value) { SetApplyGuardrailInterval(value); return *this;}
///@}

///@{
/**
* <p> Specifies whether to enable streaming for the final response. This is set to
* <code>false</code> by default. </p>
*/
inline bool GetStreamFinalResponse() const{ return m_streamFinalResponse; }
inline bool StreamFinalResponseHasBeenSet() const { return m_streamFinalResponseHasBeenSet; }
inline void SetStreamFinalResponse(bool value) { m_streamFinalResponseHasBeenSet = true; m_streamFinalResponse = value; }
inline StreamingConfigurations& WithStreamFinalResponse(bool value) { SetStreamFinalResponse(value); return *this;}
///@}
private:

int m_applyGuardrailInterval;
bool m_applyGuardrailIntervalHasBeenSet = false;

bool m_streamFinalResponse;
bool m_streamFinalResponseHasBeenSet = false;
};

} // namespace Model
} // namespace BedrockAgentRuntime
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/bedrock-agent-runtime/model/CustomOrchestrationTrace.h>
#include <aws/bedrock-agent-runtime/model/FailureTrace.h>
#include <aws/bedrock-agent-runtime/model/GuardrailTrace.h>
#include <aws/bedrock-agent-runtime/model/OrchestrationTrace.h>
Expand Down Expand Up @@ -46,6 +47,19 @@ namespace Model
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;


///@{
/**
* <p> Details about the custom orchestration step in which the agent determines
* the order in which actions are executed. </p>
*/
inline const CustomOrchestrationTrace& GetCustomOrchestrationTrace() const{ return m_customOrchestrationTrace; }
inline bool CustomOrchestrationTraceHasBeenSet() const { return m_customOrchestrationTraceHasBeenSet; }
inline void SetCustomOrchestrationTrace(const CustomOrchestrationTrace& value) { m_customOrchestrationTraceHasBeenSet = true; m_customOrchestrationTrace = value; }
inline void SetCustomOrchestrationTrace(CustomOrchestrationTrace&& value) { m_customOrchestrationTraceHasBeenSet = true; m_customOrchestrationTrace = std::move(value); }
inline Trace& WithCustomOrchestrationTrace(const CustomOrchestrationTrace& value) { SetCustomOrchestrationTrace(value); return *this;}
inline Trace& WithCustomOrchestrationTrace(CustomOrchestrationTrace&& value) { SetCustomOrchestrationTrace(std::move(value)); return *this;}
///@}

///@{
/**
* <p>Contains information about the failure of the interaction.</p>
Expand Down Expand Up @@ -110,6 +124,9 @@ namespace Model
///@}
private:

CustomOrchestrationTrace m_customOrchestrationTrace;
bool m_customOrchestrationTraceHasBeenSet = false;

FailureTrace m_failureTrace;
bool m_failureTraceHasBeenSet = false;

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

#include <aws/bedrock-agent-runtime/model/CustomOrchestrationTrace.h>
#include <aws/core/utils/json/JsonSerializer.h>

#include <utility>

using namespace Aws::Utils::Json;
using namespace Aws::Utils;

namespace Aws
{
namespace BedrockAgentRuntime
{
namespace Model
{

CustomOrchestrationTrace::CustomOrchestrationTrace() :
m_eventHasBeenSet(false),
m_traceIdHasBeenSet(false)
{
}

CustomOrchestrationTrace::CustomOrchestrationTrace(JsonView jsonValue)
: CustomOrchestrationTrace()
{
*this = jsonValue;
}

CustomOrchestrationTrace& CustomOrchestrationTrace::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("event"))
{
m_event = jsonValue.GetObject("event");

m_eventHasBeenSet = true;
}

if(jsonValue.ValueExists("traceId"))
{
m_traceId = jsonValue.GetString("traceId");

m_traceIdHasBeenSet = true;
}

return *this;
}

JsonValue CustomOrchestrationTrace::Jsonize() const
{
JsonValue payload;

if(m_eventHasBeenSet)
{
payload.WithObject("event", m_event.Jsonize());

}

if(m_traceIdHasBeenSet)
{
payload.WithString("traceId", m_traceId);

}

return payload;
}

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

0 comments on commit a662534

Please sign in to comment.