Skip to content

Commit 8fac9c6

Browse files
Fix error header for bidirectional streaming models (#3393)
* Fix error header for bidirectional streaming models * Codegen for #3393
1 parent 4a69d39 commit 8fac9c6

File tree

19 files changed

+358
-352
lines changed

19 files changed

+358
-352
lines changed

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

+24-24
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ namespace Model
4848
* <p>The request is denied because of missing access permissions. Check your
4949
* permissions and retry your request.</p>
5050
*/
51-
inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; }
51+
inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
5252
inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
53-
template<typename AccessDeniedExceptionT = AccessDeniedException>
53+
template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
5454
void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
55-
template<typename AccessDeniedExceptionT = AccessDeniedException>
55+
template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
5656
FlowResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
5757
///@}
5858

@@ -74,11 +74,11 @@ namespace Model
7474
* <p>There was a conflict performing an operation. Resolve the conflict and retry
7575
* your request.</p>
7676
*/
77-
inline const ConflictException& GetConflictException() const { return m_conflictException; }
77+
inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
7878
inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
79-
template<typename ConflictExceptionT = ConflictException>
79+
template<typename ConflictExceptionT = BedrockAgentRuntimeError>
8080
void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward<ConflictExceptionT>(value); }
81-
template<typename ConflictExceptionT = ConflictException>
81+
template<typename ConflictExceptionT = BedrockAgentRuntimeError>
8282
FlowResponseStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward<ConflictExceptionT>(value)); return *this;}
8383
///@}
8484

@@ -162,11 +162,11 @@ namespace Model
162162
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the
163163
* Amazon Resource Name (ARN) and try your request again.</p>
164164
*/
165-
inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
165+
inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
166166
inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
167-
template<typename ResourceNotFoundExceptionT = ResourceNotFoundException>
167+
template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
168168
void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
169-
template<typename ResourceNotFoundExceptionT = ResourceNotFoundException>
169+
template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
170170
FlowResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
171171
///@}
172172

@@ -175,23 +175,23 @@ namespace Model
175175
* <p>The number of requests exceeds the service quota. Resubmit your request
176176
* later.</p>
177177
*/
178-
inline const ServiceQuotaExceededException& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
178+
inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
179179
inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
180-
template<typename ServiceQuotaExceededExceptionT = ServiceQuotaExceededException>
180+
template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
181181
void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
182-
template<typename ServiceQuotaExceededExceptionT = ServiceQuotaExceededException>
182+
template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
183183
FlowResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value)); return *this;}
184184
///@}
185185

186186
///@{
187187
/**
188188
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
189189
*/
190-
inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; }
190+
inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
191191
inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
192-
template<typename ThrottlingExceptionT = ThrottlingException>
192+
template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
193193
void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
194-
template<typename ThrottlingExceptionT = ThrottlingException>
194+
template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
195195
FlowResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
196196
///@}
197197

@@ -200,22 +200,22 @@ namespace Model
200200
* <p>Input validation failed. Check your request parameters and retry the
201201
* request.</p>
202202
*/
203-
inline const ValidationException& GetValidationException() const { return m_validationException; }
203+
inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
204204
inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
205-
template<typename ValidationExceptionT = ValidationException>
205+
template<typename ValidationExceptionT = BedrockAgentRuntimeError>
206206
void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
207-
template<typename ValidationExceptionT = ValidationException>
207+
template<typename ValidationExceptionT = BedrockAgentRuntimeError>
208208
FlowResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
209209
///@}
210210
private:
211211

212-
AccessDeniedException m_accessDeniedException;
212+
BedrockAgentRuntimeError m_accessDeniedException;
213213
bool m_accessDeniedExceptionHasBeenSet = false;
214214

215215
BadGatewayException m_badGatewayException;
216216
bool m_badGatewayExceptionHasBeenSet = false;
217217

218-
ConflictException m_conflictException;
218+
BedrockAgentRuntimeError m_conflictException;
219219
bool m_conflictExceptionHasBeenSet = false;
220220

221221
DependencyFailedException m_dependencyFailedException;
@@ -236,16 +236,16 @@ namespace Model
236236
InternalServerException m_internalServerException;
237237
bool m_internalServerExceptionHasBeenSet = false;
238238

239-
ResourceNotFoundException m_resourceNotFoundException;
239+
BedrockAgentRuntimeError m_resourceNotFoundException;
240240
bool m_resourceNotFoundExceptionHasBeenSet = false;
241241

242-
ServiceQuotaExceededException m_serviceQuotaExceededException;
242+
BedrockAgentRuntimeError m_serviceQuotaExceededException;
243243
bool m_serviceQuotaExceededExceptionHasBeenSet = false;
244244

245-
ThrottlingException m_throttlingException;
245+
BedrockAgentRuntimeError m_throttlingException;
246246
bool m_throttlingExceptionHasBeenSet = false;
247247

248-
ValidationException m_validationException;
248+
BedrockAgentRuntimeError m_validationException;
249249
bool m_validationExceptionHasBeenSet = false;
250250
};
251251

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

+24-24
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ namespace Model
4949
* <p>The request is denied because of missing access permissions. Check your
5050
* permissions and retry your request.</p>
5151
*/
52-
inline const AccessDeniedException& GetAccessDeniedException() const { return m_accessDeniedException; }
52+
inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
5353
inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
54-
template<typename AccessDeniedExceptionT = AccessDeniedException>
54+
template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
5555
void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
56-
template<typename AccessDeniedExceptionT = AccessDeniedException>
56+
template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
5757
InlineAgentResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
5858
///@}
5959

@@ -87,11 +87,11 @@ namespace Model
8787
* <p>There was a conflict performing an operation. Resolve the conflict and retry
8888
* your request. </p>
8989
*/
90-
inline const ConflictException& GetConflictException() const { return m_conflictException; }
90+
inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
9191
inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
92-
template<typename ConflictExceptionT = ConflictException>
92+
template<typename ConflictExceptionT = BedrockAgentRuntimeError>
9393
void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward<ConflictExceptionT>(value); }
94-
template<typename ConflictExceptionT = ConflictException>
94+
template<typename ConflictExceptionT = BedrockAgentRuntimeError>
9595
InlineAgentResponseStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward<ConflictExceptionT>(value)); return *this;}
9696
///@}
9797

@@ -138,11 +138,11 @@ namespace Model
138138
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the
139139
* Amazon Resource Name (ARN) and try your request again. </p>
140140
*/
141-
inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
141+
inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
142142
inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
143-
template<typename ResourceNotFoundExceptionT = ResourceNotFoundException>
143+
template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
144144
void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
145-
template<typename ResourceNotFoundExceptionT = ResourceNotFoundException>
145+
template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
146146
InlineAgentResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
147147
///@}
148148

@@ -165,23 +165,23 @@ namespace Model
165165
* <p>The number of requests exceeds the service quota. Resubmit your request
166166
* later.</p>
167167
*/
168-
inline const ServiceQuotaExceededException& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
168+
inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
169169
inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
170-
template<typename ServiceQuotaExceededExceptionT = ServiceQuotaExceededException>
170+
template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
171171
void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
172-
template<typename ServiceQuotaExceededExceptionT = ServiceQuotaExceededException>
172+
template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
173173
InlineAgentResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value)); return *this;}
174174
///@}
175175

176176
///@{
177177
/**
178178
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
179179
*/
180-
inline const ThrottlingException& GetThrottlingException() const { return m_throttlingException; }
180+
inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
181181
inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
182-
template<typename ThrottlingExceptionT = ThrottlingException>
182+
template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
183183
void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
184-
template<typename ThrottlingExceptionT = ThrottlingException>
184+
template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
185185
InlineAgentResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
186186
///@}
187187

@@ -207,16 +207,16 @@ namespace Model
207207
* <p>Input validation failed. Check your request parameters and retry the
208208
* request.</p>
209209
*/
210-
inline const ValidationException& GetValidationException() const { return m_validationException; }
210+
inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
211211
inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
212-
template<typename ValidationExceptionT = ValidationException>
212+
template<typename ValidationExceptionT = BedrockAgentRuntimeError>
213213
void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
214-
template<typename ValidationExceptionT = ValidationException>
214+
template<typename ValidationExceptionT = BedrockAgentRuntimeError>
215215
InlineAgentResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
216216
///@}
217217
private:
218218

219-
AccessDeniedException m_accessDeniedException;
219+
BedrockAgentRuntimeError m_accessDeniedException;
220220
bool m_accessDeniedExceptionHasBeenSet = false;
221221

222222
BadGatewayException m_badGatewayException;
@@ -225,7 +225,7 @@ namespace Model
225225
InlineAgentPayloadPart m_chunk;
226226
bool m_chunkHasBeenSet = false;
227227

228-
ConflictException m_conflictException;
228+
BedrockAgentRuntimeError m_conflictException;
229229
bool m_conflictExceptionHasBeenSet = false;
230230

231231
DependencyFailedException m_dependencyFailedException;
@@ -237,22 +237,22 @@ namespace Model
237237
InternalServerException m_internalServerException;
238238
bool m_internalServerExceptionHasBeenSet = false;
239239

240-
ResourceNotFoundException m_resourceNotFoundException;
240+
BedrockAgentRuntimeError m_resourceNotFoundException;
241241
bool m_resourceNotFoundExceptionHasBeenSet = false;
242242

243243
InlineAgentReturnControlPayload m_returnControl;
244244
bool m_returnControlHasBeenSet = false;
245245

246-
ServiceQuotaExceededException m_serviceQuotaExceededException;
246+
BedrockAgentRuntimeError m_serviceQuotaExceededException;
247247
bool m_serviceQuotaExceededExceptionHasBeenSet = false;
248248

249-
ThrottlingException m_throttlingException;
249+
BedrockAgentRuntimeError m_throttlingException;
250250
bool m_throttlingExceptionHasBeenSet = false;
251251

252252
InlineAgentTracePart m_trace;
253253
bool m_traceHasBeenSet = false;
254254

255-
ValidationException m_validationException;
255+
BedrockAgentRuntimeError m_validationException;
256256
bool m_validationExceptionHasBeenSet = false;
257257
};
258258

0 commit comments

Comments
 (0)