Skip to content

Commit

Permalink
Add an optional configuration to the ScheduleRun and CreateRemoteAcce…
Browse files Browse the repository at this point in the history
…ssSession API to set a device level http/s proxy.

Adds support for time-based EBS-backed AMI copy operations. Time-based copy ensures that EBS-backed AMIs are copied within and across Regions in a specified timeframe.
PutTaxRegistration API changes for Egypt, Greece, Vietnam countries
Adding "reportArns" field in output of BatchGetBuildBatches API. "reportArns" is an array that contains the ARNs of reports created by merging reports from builds associated with the batch build.
AWS IoT - AWS IoT Device Defender adds support for a new Device Defender Audit Check that monitors device certificate age and custom threshold configurations for both the new device certificate age check and existing device certificate expiry check.
  • Loading branch information
aws-sdk-cpp-automation committed Feb 25, 2025
1 parent 076b60d commit 84a77bc
Show file tree
Hide file tree
Showing 74 changed files with 2,283 additions and 889 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.513
1.11.514
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace Model
public:
AWS_BEDROCKAGENTRUNTIME_API InvokeAgentHandler();
AWS_BEDROCKAGENTRUNTIME_API InvokeAgentHandler& operator=(const InvokeAgentHandler&) = default;
AWS_BEDROCKAGENTRUNTIME_API InvokeAgentHandler(const InvokeAgentHandler&) = default;

AWS_BEDROCKAGENTRUNTIME_API virtual void OnEvent() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace Model
/**
* Underlying Event Stream Handler which is used to define callback functions.
*/
inline const InvokeAgentHandler& GetEventStreamHandler() const { return m_handler; }
inline InvokeAgentHandler& GetEventStreamHandler() { return m_handler; }

/**
* Underlying Event Stream Handler which is used to define callback functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace Model
public:
AWS_BEDROCKAGENTRUNTIME_API InvokeFlowHandler();
AWS_BEDROCKAGENTRUNTIME_API InvokeFlowHandler& operator=(const InvokeFlowHandler&) = default;
AWS_BEDROCKAGENTRUNTIME_API InvokeFlowHandler(const InvokeFlowHandler&) = default;

AWS_BEDROCKAGENTRUNTIME_API virtual void OnEvent() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace Model
/**
* Underlying Event Stream Handler which is used to define callback functions.
*/
inline const InvokeFlowHandler& GetEventStreamHandler() const { return m_handler; }
inline InvokeFlowHandler& GetEventStreamHandler() { return m_handler; }

/**
* Underlying Event Stream Handler which is used to define callback functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace Model
public:
AWS_BEDROCKAGENTRUNTIME_API InvokeInlineAgentHandler();
AWS_BEDROCKAGENTRUNTIME_API InvokeInlineAgentHandler& operator=(const InvokeInlineAgentHandler&) = default;
AWS_BEDROCKAGENTRUNTIME_API InvokeInlineAgentHandler(const InvokeInlineAgentHandler&) = default;

AWS_BEDROCKAGENTRUNTIME_API virtual void OnEvent() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace Model
/**
* Underlying Event Stream Handler which is used to define callback functions.
*/
inline const InvokeInlineAgentHandler& GetEventStreamHandler() const { return m_handler; }
inline InvokeInlineAgentHandler& GetEventStreamHandler() { return m_handler; }

/**
* Underlying Event Stream Handler which is used to define callback functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace Model
public:
AWS_BEDROCKAGENTRUNTIME_API OptimizePromptHandler();
AWS_BEDROCKAGENTRUNTIME_API OptimizePromptHandler& operator=(const OptimizePromptHandler&) = default;
AWS_BEDROCKAGENTRUNTIME_API OptimizePromptHandler(const OptimizePromptHandler&) = default;

AWS_BEDROCKAGENTRUNTIME_API virtual void OnEvent() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace Model
/**
* Underlying Event Stream Handler which is used to define callback functions.
*/
inline const OptimizePromptHandler& GetEventStreamHandler() const { return m_handler; }
inline OptimizePromptHandler& GetEventStreamHandler() { return m_handler; }

/**
* Underlying Event Stream Handler which is used to define callback functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace Model
public:
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamHandler();
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamHandler& operator=(const RetrieveAndGenerateStreamHandler&) = default;
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamHandler(const RetrieveAndGenerateStreamHandler&) = default;

AWS_BEDROCKAGENTRUNTIME_API virtual void OnEvent() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace Model
/**
* Underlying Event Stream Handler which is used to define callback functions.
*/
inline const RetrieveAndGenerateStreamHandler& GetEventStreamHandler() const { return m_handler; }
inline RetrieveAndGenerateStreamHandler& GetEventStreamHandler() { return m_handler; }

/**
* Underlying Event Stream Handler which is used to define callback functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,14 @@ InvokeAgentOutcome BedrockAgentRuntimeClient::InvokeAgent(InvokeAgentRequest& re
request.SetResponseStreamFactory(
[&] { request.GetEventStreamDecoder().Reset(); return Aws::New<Aws::Utils::Event::EventDecoderStream>(ALLOCATION_TAG, request.GetEventStreamDecoder()); }
);
if (!request.GetHeadersReceivedEventHandler()) {
request.SetHeadersReceivedEventHandler([&request](const Http::HttpRequest*, Http::HttpResponse* response) {
AWS_CHECK_PTR("InvokeAgent", response);
if (const auto initialResponseHandler = request.GetEventStreamHandler().GetInitialResponseCallbackEx()) {
initialResponseHandler({response->GetHeaders()}, Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}
return InvokeAgentOutcome(MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
resolvedEndpoint.AddPathSegments("/agents/");
resolvedEndpoint.AddPathSegment(request.GetAgentId());
Expand Down Expand Up @@ -337,6 +345,14 @@ InvokeFlowOutcome BedrockAgentRuntimeClient::InvokeFlow(InvokeFlowRequest& reque
request.SetResponseStreamFactory(
[&] { request.GetEventStreamDecoder().Reset(); return Aws::New<Aws::Utils::Event::EventDecoderStream>(ALLOCATION_TAG, request.GetEventStreamDecoder()); }
);
if (!request.GetHeadersReceivedEventHandler()) {
request.SetHeadersReceivedEventHandler([&request](const Http::HttpRequest*, Http::HttpResponse* response) {
AWS_CHECK_PTR("InvokeFlow", response);
if (const auto initialResponseHandler = request.GetEventStreamHandler().GetInitialResponseCallbackEx()) {
initialResponseHandler({response->GetHeaders()}, Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}
return InvokeFlowOutcome(MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
resolvedEndpoint.AddPathSegments("/flows/");
resolvedEndpoint.AddPathSegment(request.GetFlowIdentifier());
Expand Down Expand Up @@ -370,6 +386,14 @@ InvokeInlineAgentOutcome BedrockAgentRuntimeClient::InvokeInlineAgent(InvokeInli
request.SetResponseStreamFactory(
[&] { request.GetEventStreamDecoder().Reset(); return Aws::New<Aws::Utils::Event::EventDecoderStream>(ALLOCATION_TAG, request.GetEventStreamDecoder()); }
);
if (!request.GetHeadersReceivedEventHandler()) {
request.SetHeadersReceivedEventHandler([&request](const Http::HttpRequest*, Http::HttpResponse* response) {
AWS_CHECK_PTR("InvokeInlineAgent", response);
if (const auto initialResponseHandler = request.GetEventStreamHandler().GetInitialResponseCallbackEx()) {
initialResponseHandler({response->GetHeaders()}, Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}
return InvokeInlineAgentOutcome(MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
resolvedEndpoint.AddPathSegments("/agents/");
resolvedEndpoint.AddPathSegment(request.GetSessionId());
Expand All @@ -396,6 +420,14 @@ OptimizePromptOutcome BedrockAgentRuntimeClient::OptimizePrompt(OptimizePromptRe
request.SetResponseStreamFactory(
[&] { request.GetEventStreamDecoder().Reset(); return Aws::New<Aws::Utils::Event::EventDecoderStream>(ALLOCATION_TAG, request.GetEventStreamDecoder()); }
);
if (!request.GetHeadersReceivedEventHandler()) {
request.SetHeadersReceivedEventHandler([&request](const Http::HttpRequest*, Http::HttpResponse* response) {
AWS_CHECK_PTR("OptimizePrompt", response);
if (const auto initialResponseHandler = request.GetEventStreamHandler().GetInitialResponseCallbackEx()) {
initialResponseHandler({response->GetHeaders()}, Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}
return OptimizePromptOutcome(MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
resolvedEndpoint.AddPathSegments("/optimize-prompt");
}));
Expand Down Expand Up @@ -494,6 +526,14 @@ RetrieveAndGenerateStreamOutcome BedrockAgentRuntimeClient::RetrieveAndGenerateS
request.SetResponseStreamFactory(
[&] { request.GetEventStreamDecoder().Reset(); return Aws::New<Aws::Utils::Event::EventDecoderStream>(ALLOCATION_TAG, request.GetEventStreamDecoder()); }
);
if (!request.GetHeadersReceivedEventHandler()) {
request.SetHeadersReceivedEventHandler([&request](const Http::HttpRequest*, Http::HttpResponse* response) {
AWS_CHECK_PTR("RetrieveAndGenerateStream", response);
if (const auto initialResponseHandler = request.GetEventStreamHandler().GetInitialResponseCallbackEx()) {
initialResponseHandler({response->GetHeaders()}, Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}
return RetrieveAndGenerateStreamOutcome(MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
resolvedEndpoint.AddPathSegments("/retrieveAndGenerateStream");
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace Model
public:
AWS_BEDROCKRUNTIME_API ConverseStreamHandler();
AWS_BEDROCKRUNTIME_API ConverseStreamHandler& operator=(const ConverseStreamHandler&) = default;
AWS_BEDROCKRUNTIME_API ConverseStreamHandler(const ConverseStreamHandler&) = default;

AWS_BEDROCKRUNTIME_API virtual void OnEvent() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace Model
/**
* Underlying Event Stream Handler which is used to define callback functions.
*/
inline const ConverseStreamHandler& GetEventStreamHandler() const { return m_handler; }
inline ConverseStreamHandler& GetEventStreamHandler() { return m_handler; }

/**
* Underlying Event Stream Handler which is used to define callback functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ namespace Model
public:
AWS_BEDROCKRUNTIME_API InvokeModelWithResponseStreamHandler();
AWS_BEDROCKRUNTIME_API InvokeModelWithResponseStreamHandler& operator=(const InvokeModelWithResponseStreamHandler&) = default;
AWS_BEDROCKRUNTIME_API InvokeModelWithResponseStreamHandler(const InvokeModelWithResponseStreamHandler&) = default;

AWS_BEDROCKRUNTIME_API virtual void OnEvent() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace Model
/**
* Underlying Event Stream Handler which is used to define callback functions.
*/
inline const InvokeModelWithResponseStreamHandler& GetEventStreamHandler() const { return m_handler; }
inline InvokeModelWithResponseStreamHandler& GetEventStreamHandler() { return m_handler; }

/**
* Underlying Event Stream Handler which is used to define callback functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ ConverseStreamOutcome BedrockRuntimeClient::ConverseStream(ConverseStreamRequest
request.SetResponseStreamFactory(
[&] { request.GetEventStreamDecoder().Reset(); return Aws::New<Aws::Utils::Event::EventDecoderStream>(ALLOCATION_TAG, request.GetEventStreamDecoder()); }
);
if (!request.GetHeadersReceivedEventHandler()) {
request.SetHeadersReceivedEventHandler([&request](const Http::HttpRequest*, Http::HttpResponse* response) {
AWS_CHECK_PTR("ConverseStream", response);
if (const auto initialResponseHandler = request.GetEventStreamHandler().GetInitialResponseCallbackEx()) {
initialResponseHandler({response->GetHeaders()}, Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}
return ConverseStreamOutcome(MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
resolvedEndpoint.AddPathSegments("/model/");
resolvedEndpoint.AddPathSegment(request.GetModelId());
Expand Down Expand Up @@ -333,6 +341,14 @@ InvokeModelWithResponseStreamOutcome BedrockRuntimeClient::InvokeModelWithRespon
request.SetResponseStreamFactory(
[&] { request.GetEventStreamDecoder().Reset(); return Aws::New<Aws::Utils::Event::EventDecoderStream>(ALLOCATION_TAG, request.GetEventStreamDecoder()); }
);
if (!request.GetHeadersReceivedEventHandler()) {
request.SetHeadersReceivedEventHandler([&request](const Http::HttpRequest*, Http::HttpResponse* response) {
AWS_CHECK_PTR("InvokeModelWithResponseStream", response);
if (const auto initialResponseHandler = request.GetEventStreamHandler().GetInitialResponseCallbackEx()) {
initialResponseHandler({response->GetHeaders()}, Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}
return InvokeModelWithResponseStreamOutcome(MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
resolvedEndpoint.AddPathSegments("/model/");
resolvedEndpoint.AddPathSegment(request.GetModelId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ InvokeModelWithResponseStreamRequest::InvokeModelWithResponseStreamRequest() :
m_performanceConfigLatencyHasBeenSet(false),
m_handler(), m_decoder(Aws::Utils::Event::EventStreamDecoder(&m_handler))
{
AmazonWebServiceRequest::SetHeadersReceivedEventHandler([this](const Http::HttpRequest*, Http::HttpResponse* response)
{
auto& initialResponseHandler = m_handler.GetInitialResponseCallbackEx();
if (initialResponseHandler) {
initialResponseHandler(InvokeModelWithResponseStreamInitialResponse(response->GetHeaders()), Utils::Event::InitialResponseType::ON_RESPONSE);
}
});
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,22 @@ namespace Model
inline void SetDebugSessionEnabled(bool value) { m_debugSessionEnabledHasBeenSet = true; m_debugSessionEnabled = value; }
inline BuildBatch& WithDebugSessionEnabled(bool value) { SetDebugSessionEnabled(value); return *this;}
///@}

///@{
/**
* <p>An array that contains the ARNs of reports created by merging reports from
* builds associated with this batch build.</p>
*/
inline const Aws::Vector<Aws::String>& GetReportArns() const{ return m_reportArns; }
inline bool ReportArnsHasBeenSet() const { return m_reportArnsHasBeenSet; }
inline void SetReportArns(const Aws::Vector<Aws::String>& value) { m_reportArnsHasBeenSet = true; m_reportArns = value; }
inline void SetReportArns(Aws::Vector<Aws::String>&& value) { m_reportArnsHasBeenSet = true; m_reportArns = std::move(value); }
inline BuildBatch& WithReportArns(const Aws::Vector<Aws::String>& value) { SetReportArns(value); return *this;}
inline BuildBatch& WithReportArns(Aws::Vector<Aws::String>&& value) { SetReportArns(std::move(value)); return *this;}
inline BuildBatch& AddReportArns(const Aws::String& value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(value); return *this; }
inline BuildBatch& AddReportArns(Aws::String&& value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(std::move(value)); return *this; }
inline BuildBatch& AddReportArns(const char* value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(value); return *this; }
///@}
private:

Aws::String m_id;
Expand Down Expand Up @@ -555,6 +571,9 @@ namespace Model

bool m_debugSessionEnabled;
bool m_debugSessionEnabledHasBeenSet = false;

Aws::Vector<Aws::String> m_reportArns;
bool m_reportArnsHasBeenSet = false;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace Model

///@{
/**
* <p>The initial number of machines allocated to the compute ���eet, which defines
* <p>The initial number of machines allocated to the compute fleet, which defines
* the number of builds that can run in parallel.</p>
*/
inline int GetBaseCapacity() const{ return m_baseCapacity; }
Expand Down
24 changes: 23 additions & 1 deletion generated/src/aws-cpp-sdk-codebuild/source/model/BuildBatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ BuildBatch::BuildBatch() :
m_buildBatchConfigHasBeenSet(false),
m_buildGroupsHasBeenSet(false),
m_debugSessionEnabled(false),
m_debugSessionEnabledHasBeenSet(false)
m_debugSessionEnabledHasBeenSet(false),
m_reportArnsHasBeenSet(false)
{
}

Expand Down Expand Up @@ -294,6 +295,16 @@ BuildBatch& BuildBatch::operator =(JsonView jsonValue)
m_debugSessionEnabledHasBeenSet = true;
}

if(jsonValue.ValueExists("reportArns"))
{
Aws::Utils::Array<JsonView> reportArnsJsonList = jsonValue.GetArray("reportArns");
for(unsigned reportArnsIndex = 0; reportArnsIndex < reportArnsJsonList.GetLength(); ++reportArnsIndex)
{
m_reportArns.push_back(reportArnsJsonList[reportArnsIndex].AsString());
}
m_reportArnsHasBeenSet = true;
}

return *this;
}

Expand Down Expand Up @@ -508,6 +519,17 @@ JsonValue BuildBatch::Jsonize() const

}

if(m_reportArnsHasBeenSet)
{
Aws::Utils::Array<JsonValue> reportArnsJsonList(m_reportArns.size());
for(unsigned reportArnsIndex = 0; reportArnsIndex < reportArnsJsonList.GetLength(); ++reportArnsIndex)
{
reportArnsJsonList[reportArnsIndex].AsString(m_reportArns[reportArnsIndex]);
}
payload.WithArray("reportArns", std::move(reportArnsJsonList));

}

return payload;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
#include <aws/devicefarm/model/BillingMethod.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/devicefarm/model/DeviceProxy.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

Expand Down Expand Up @@ -66,13 +67,29 @@ namespace Model
inline CreateRemoteAccessSessionConfiguration& AddVpceConfigurationArns(Aws::String&& value) { m_vpceConfigurationArnsHasBeenSet = true; m_vpceConfigurationArns.push_back(std::move(value)); return *this; }
inline CreateRemoteAccessSessionConfiguration& AddVpceConfigurationArns(const char* value) { m_vpceConfigurationArnsHasBeenSet = true; m_vpceConfigurationArns.push_back(value); return *this; }
///@}

///@{
/**
* <p>The device proxy to be configured on the device for the remote access
* session.</p>
*/
inline const DeviceProxy& GetDeviceProxy() const{ return m_deviceProxy; }
inline bool DeviceProxyHasBeenSet() const { return m_deviceProxyHasBeenSet; }
inline void SetDeviceProxy(const DeviceProxy& value) { m_deviceProxyHasBeenSet = true; m_deviceProxy = value; }
inline void SetDeviceProxy(DeviceProxy&& value) { m_deviceProxyHasBeenSet = true; m_deviceProxy = std::move(value); }
inline CreateRemoteAccessSessionConfiguration& WithDeviceProxy(const DeviceProxy& value) { SetDeviceProxy(value); return *this;}
inline CreateRemoteAccessSessionConfiguration& WithDeviceProxy(DeviceProxy&& value) { SetDeviceProxy(std::move(value)); return *this;}
///@}
private:

BillingMethod m_billingMethod;
bool m_billingMethodHasBeenSet = false;

Aws::Vector<Aws::String> m_vpceConfigurationArns;
bool m_vpceConfigurationArnsHasBeenSet = false;

DeviceProxy m_deviceProxy;
bool m_deviceProxyHasBeenSet = false;
};

} // namespace Model
Expand Down
Loading

0 comments on commit 84a77bc

Please sign in to comment.