Skip to content

Commit 810b1c9

Browse files
authored
Merge branch 'main' into Headobject
2 parents c3cdb2c + 74360ab commit 810b1c9

146 files changed

Lines changed: 15814 additions & 2571 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.847
1+
1.11.848

generated/src/aws-cpp-sdk-bedrock-agentcore-control/include/aws/bedrock-agentcore-control/model/HarnessGeminiModelConfig.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#pragma once
77
#include <aws/bedrock-agentcore-control/BedrockAgentCoreControl_EXPORTS.h>
8+
#include <aws/core/utils/Document.h>
89
#include <aws/core/utils/memory/stl/AWSString.h>
910

1011
#include <utility>
@@ -132,6 +133,25 @@ class HarnessGeminiModelConfig {
132133
return *this;
133134
}
134135
///@}
136+
137+
///@{
138+
/**
139+
* <p>Provider-specific parameters passed through to the Gemini model provider
140+
* unchanged.</p>
141+
*/
142+
inline Aws::Utils::DocumentView GetAdditionalParams() const { return m_additionalParams; }
143+
inline bool AdditionalParamsHasBeenSet() const { return m_additionalParamsHasBeenSet; }
144+
template <typename AdditionalParamsT = Aws::Utils::Document>
145+
void SetAdditionalParams(AdditionalParamsT&& value) {
146+
m_additionalParamsHasBeenSet = true;
147+
m_additionalParams = std::forward<AdditionalParamsT>(value);
148+
}
149+
template <typename AdditionalParamsT = Aws::Utils::Document>
150+
HarnessGeminiModelConfig& WithAdditionalParams(AdditionalParamsT&& value) {
151+
SetAdditionalParams(std::forward<AdditionalParamsT>(value));
152+
return *this;
153+
}
154+
///@}
135155
private:
136156
Aws::String m_modelId;
137157

@@ -144,12 +164,15 @@ class HarnessGeminiModelConfig {
144164
double m_topP{0.0};
145165

146166
int m_topK{0};
167+
168+
Aws::Utils::Document m_additionalParams;
147169
bool m_modelIdHasBeenSet = false;
148170
bool m_apiKeyArnHasBeenSet = false;
149171
bool m_maxTokensHasBeenSet = false;
150172
bool m_temperatureHasBeenSet = false;
151173
bool m_topPHasBeenSet = false;
152174
bool m_topKHasBeenSet = false;
175+
bool m_additionalParamsHasBeenSet = false;
153176
};
154177

155178
} // namespace Model

generated/src/aws-cpp-sdk-bedrock-agentcore-control/source/model/HarnessGeminiModelConfig.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ HarnessGeminiModelConfig& HarnessGeminiModelConfig::operator=(JsonView jsonValue
4242
m_topK = jsonValue.GetInteger("topK");
4343
m_topKHasBeenSet = true;
4444
}
45+
if (jsonValue.ValueExists("additionalParams")) {
46+
m_additionalParams = jsonValue.GetObject("additionalParams");
47+
m_additionalParamsHasBeenSet = true;
48+
}
4549
return *this;
4650
}
4751

@@ -72,6 +76,12 @@ JsonValue HarnessGeminiModelConfig::Jsonize() const {
7276
payload.WithInteger("topK", m_topK);
7377
}
7478

79+
if (m_additionalParamsHasBeenSet) {
80+
if (!m_additionalParams.View().IsNull()) {
81+
payload.WithObject("additionalParams", JsonValue(m_additionalParams.View()));
82+
}
83+
}
84+
7585
return payload;
7686
}
7787

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/core/utils/memory/stl/AWSString.h>
8+
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
9+
10+
namespace Aws {
11+
namespace ElasticLoadBalancingv2 {
12+
namespace Model {
13+
enum class SourceIpAddressTypeEnum { NOT_SET, ipv4, ipv6 };
14+
15+
namespace SourceIpAddressTypeEnumMapper {
16+
AWS_ELASTICLOADBALANCINGV2_API SourceIpAddressTypeEnum GetSourceIpAddressTypeEnumForName(const Aws::String& name);
17+
18+
AWS_ELASTICLOADBALANCINGV2_API Aws::String GetNameForSourceIpAddressTypeEnum(SourceIpAddressTypeEnum value);
19+
} // namespace SourceIpAddressTypeEnumMapper
20+
} // namespace Model
21+
} // namespace ElasticLoadBalancingv2
22+
} // namespace Aws

generated/src/aws-cpp-sdk-elasticloadbalancingv2/include/aws/elasticloadbalancingv2/model/SourceIpConditionConfig.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <aws/core/utils/memory/stl/AWSString.h>
99
#include <aws/core/utils/memory/stl/AWSVector.h>
1010
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11+
#include <aws/elasticloadbalancingv2/model/SourceIpAddressTypeEnum.h>
1112

1213
#include <utility>
1314

@@ -69,9 +70,30 @@ class SourceIpConditionConfig {
6970
return *this;
7071
}
7172
///@}
73+
74+
///@{
75+
/**
76+
* <p>The IP address type for Network Load Balancers.</p> <p>The valid values
77+
* are:</p> <ul> <li> <p> <code>ipv4</code> – IPv4 addresses only.</p> </li> <li>
78+
* <p> <code>ipv6</code> – IPv6 addresses only.</p> </li> </ul>
79+
*/
80+
inline SourceIpAddressTypeEnum GetIpAddressType() const { return m_ipAddressType; }
81+
inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
82+
inline void SetIpAddressType(SourceIpAddressTypeEnum value) {
83+
m_ipAddressTypeHasBeenSet = true;
84+
m_ipAddressType = value;
85+
}
86+
inline SourceIpConditionConfig& WithIpAddressType(SourceIpAddressTypeEnum value) {
87+
SetIpAddressType(value);
88+
return *this;
89+
}
90+
///@}
7291
private:
7392
Aws::Vector<Aws::String> m_values;
93+
94+
SourceIpAddressTypeEnum m_ipAddressType{SourceIpAddressTypeEnum::NOT_SET};
7495
bool m_valuesHasBeenSet = false;
96+
bool m_ipAddressTypeHasBeenSet = false;
7597
};
7698

7799
} // namespace Model
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#include <aws/core/Globals.h>
7+
#include <aws/core/utils/EnumParseOverflowContainer.h>
8+
#include <aws/core/utils/HashingUtils.h>
9+
#include <aws/elasticloadbalancingv2/model/SourceIpAddressTypeEnum.h>
10+
11+
using namespace Aws::Utils;
12+
13+
namespace Aws {
14+
namespace ElasticLoadBalancingv2 {
15+
namespace Model {
16+
namespace SourceIpAddressTypeEnumMapper {
17+
18+
static const int ipv4_HASH = HashingUtils::HashString("ipv4");
19+
static const int ipv6_HASH = HashingUtils::HashString("ipv6");
20+
21+
SourceIpAddressTypeEnum GetSourceIpAddressTypeEnumForName(const Aws::String& name) {
22+
int hashCode = HashingUtils::HashString(name.c_str());
23+
if (hashCode == ipv4_HASH) {
24+
return SourceIpAddressTypeEnum::ipv4;
25+
} else if (hashCode == ipv6_HASH) {
26+
return SourceIpAddressTypeEnum::ipv6;
27+
}
28+
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
29+
if (overflowContainer) {
30+
overflowContainer->StoreOverflow(hashCode, name);
31+
return static_cast<SourceIpAddressTypeEnum>(hashCode);
32+
}
33+
34+
return SourceIpAddressTypeEnum::NOT_SET;
35+
}
36+
37+
Aws::String GetNameForSourceIpAddressTypeEnum(SourceIpAddressTypeEnum enumValue) {
38+
switch (enumValue) {
39+
case SourceIpAddressTypeEnum::NOT_SET:
40+
return {};
41+
case SourceIpAddressTypeEnum::ipv4:
42+
return "ipv4";
43+
case SourceIpAddressTypeEnum::ipv6:
44+
return "ipv6";
45+
default:
46+
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
47+
if (overflowContainer) {
48+
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
49+
}
50+
51+
return {};
52+
}
53+
}
54+
55+
} // namespace SourceIpAddressTypeEnumMapper
56+
} // namespace Model
57+
} // namespace ElasticLoadBalancingv2
58+
} // namespace Aws

generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/SourceIpConditionConfig.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ SourceIpConditionConfig& SourceIpConditionConfig::operator=(const XmlNode& xmlNo
3434

3535
m_valuesHasBeenSet = true;
3636
}
37+
XmlNode ipAddressTypeNode = resultNode.FirstChild("IpAddressType");
38+
if (!ipAddressTypeNode.IsNull()) {
39+
m_ipAddressType = SourceIpAddressTypeEnumMapper::GetSourceIpAddressTypeEnumForName(
40+
StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(ipAddressTypeNode.GetText()).c_str()));
41+
m_ipAddressTypeHasBeenSet = true;
42+
}
3743
}
3844

3945
return *this;
@@ -47,6 +53,11 @@ void SourceIpConditionConfig::OutputToStream(Aws::OStream& oStream, const char*
4753
<< "&";
4854
}
4955
}
56+
57+
if (m_ipAddressTypeHasBeenSet) {
58+
oStream << location << index << locationValue << ".IpAddressType="
59+
<< StringUtils::URLEncode(SourceIpAddressTypeEnumMapper::GetNameForSourceIpAddressTypeEnum(m_ipAddressType)) << "&";
60+
}
5061
}
5162

5263
void SourceIpConditionConfig::OutputToStream(Aws::OStream& oStream, const char* location) const {
@@ -56,6 +67,10 @@ void SourceIpConditionConfig::OutputToStream(Aws::OStream& oStream, const char*
5667
oStream << location << ".Values.member." << valuesIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&";
5768
}
5869
}
70+
if (m_ipAddressTypeHasBeenSet) {
71+
oStream << location << ".IpAddressType="
72+
<< StringUtils::URLEncode(SourceIpAddressTypeEnumMapper::GetNameForSourceIpAddressTypeEnum(m_ipAddressType)) << "&";
73+
}
5974
}
6075

6176
} // namespace Model

0 commit comments

Comments
 (0)