Skip to content

Commit 4383e8e

Browse files
committed
Migrate bedrock clients to smithy
1 parent d0af716 commit 4383e8e

File tree

10 files changed

+2320
-3395
lines changed

10 files changed

+2320
-3395
lines changed

generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,33 @@
44
*/
55

66
#pragma once
7+
#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeErrorMarshaller.h>
78
#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeServiceClientModel.h>
89
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9-
#include <aws/core/client/AWSClient.h>
1010
#include <aws/core/client/AWSClientAsyncCRTP.h>
1111
#include <aws/core/client/ClientConfiguration.h>
12-
#include <aws/core/utils/json/JsonSerializer.h>
12+
#include <smithy/client/AwsSmithyClient.h>
13+
#include <smithy/client/serializer/JsonOutcomeSerializer.h>
14+
#include <smithy/identity/auth/built-in/GenericAuthSchemeResolver.h>
15+
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
1316

1417
namespace Aws {
1518
namespace BedrockAgentRuntime {
19+
AWS_BEDROCKAGENTRUNTIME_API extern const char SERVICE_NAME[];
1620
/**
1721
* <p>Contains APIs related to model invocation and querying of knowledge
1822
* bases.</p>
1923
*/
2024
class AWS_BEDROCKAGENTRUNTIME_API BedrockAgentRuntimeClient
21-
: public Aws::Client::AWSJsonClient,
22-
public Aws::Client::ClientWithAsyncTemplateMethods<BedrockAgentRuntimeClient> {
25+
: Aws::Client::ClientWithAsyncTemplateMethods<BedrockAgentRuntimeClient>,
26+
public smithy::client::AwsSmithyClientT<
27+
Aws::BedrockAgentRuntime::SERVICE_NAME, Aws::BedrockAgentRuntime::BedrockAgentRuntimeClientConfiguration,
28+
smithy::AuthSchemeResolverBase<>, Aws::Crt::Variant<smithy::SigV4AuthScheme>, BedrockAgentRuntimeEndpointProviderBase,
29+
smithy::client::JsonOutcomeSerializer, smithy::client::JsonOutcome, Aws::Client::BedrockAgentRuntimeErrorMarshaller> {
2330
public:
24-
typedef Aws::Client::AWSJsonClient BASECLASS;
2531
static const char* GetServiceName();
2632
static const char* GetAllocationTag();
33+
inline const char* GetServiceClientName() const override { return "Bedrock Agent Runtime"; }
2734

2835
typedef BedrockAgentRuntimeClientConfiguration ClientConfigurationType;
2936
typedef BedrockAgentRuntimeEndpointProvider EndpointProviderType;
@@ -1058,10 +1065,6 @@ class AWS_BEDROCKAGENTRUNTIME_API BedrockAgentRuntimeClient
10581065

10591066
private:
10601067
friend class Aws::Client::ClientWithAsyncTemplateMethods<BedrockAgentRuntimeClient>;
1061-
void init(const BedrockAgentRuntimeClientConfiguration& clientConfiguration);
1062-
1063-
BedrockAgentRuntimeClientConfiguration m_clientConfiguration;
1064-
std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> m_endpointProvider;
10651068
};
10661069

10671070
} // namespace BedrockAgentRuntime

generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp

Lines changed: 351 additions & 541 deletions
Large diffs are not rendered by default.

generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,33 @@
44
*/
55

66
#pragma once
7+
#include <aws/bedrock-agent/BedrockAgentErrorMarshaller.h>
78
#include <aws/bedrock-agent/BedrockAgentServiceClientModel.h>
89
#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9-
#include <aws/core/client/AWSClient.h>
1010
#include <aws/core/client/AWSClientAsyncCRTP.h>
1111
#include <aws/core/client/ClientConfiguration.h>
12-
#include <aws/core/utils/json/JsonSerializer.h>
12+
#include <smithy/client/AwsSmithyClient.h>
13+
#include <smithy/client/serializer/JsonOutcomeSerializer.h>
14+
#include <smithy/identity/auth/built-in/GenericAuthSchemeResolver.h>
15+
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
1316

1417
namespace Aws {
1518
namespace BedrockAgent {
19+
AWS_BEDROCKAGENT_API extern const char SERVICE_NAME[];
1620
/**
1721
* <p>Describes the API operations for creating and managing Amazon Bedrock
1822
* agents.</p>
1923
*/
20-
class AWS_BEDROCKAGENT_API BedrockAgentClient : public Aws::Client::AWSJsonClient,
21-
public Aws::Client::ClientWithAsyncTemplateMethods<BedrockAgentClient> {
24+
class AWS_BEDROCKAGENT_API BedrockAgentClient
25+
: Aws::Client::ClientWithAsyncTemplateMethods<BedrockAgentClient>,
26+
public smithy::client::AwsSmithyClientT<Aws::BedrockAgent::SERVICE_NAME, Aws::BedrockAgent::BedrockAgentClientConfiguration,
27+
smithy::AuthSchemeResolverBase<>, Aws::Crt::Variant<smithy::SigV4AuthScheme>,
28+
BedrockAgentEndpointProviderBase, smithy::client::JsonOutcomeSerializer,
29+
smithy::client::JsonOutcome, Aws::Client::BedrockAgentErrorMarshaller> {
2230
public:
23-
typedef Aws::Client::AWSJsonClient BASECLASS;
2431
static const char* GetServiceName();
2532
static const char* GetAllocationTag();
33+
inline const char* GetServiceClientName() const override { return "Bedrock Agent"; }
2634

2735
typedef BedrockAgentClientConfiguration ClientConfigurationType;
2836
typedef BedrockAgentEndpointProvider EndpointProviderType;
@@ -2175,10 +2183,6 @@ class AWS_BEDROCKAGENT_API BedrockAgentClient : public Aws::Client::AWSJsonClien
21752183

21762184
private:
21772185
friend class Aws::Client::ClientWithAsyncTemplateMethods<BedrockAgentClient>;
2178-
void init(const BedrockAgentClientConfiguration& clientConfiguration);
2179-
2180-
BedrockAgentClientConfiguration m_clientConfiguration;
2181-
std::shared_ptr<BedrockAgentEndpointProviderBase> m_endpointProvider;
21822186
};
21832187

21842188
} // namespace BedrockAgent

0 commit comments

Comments
 (0)