|
25 | 25 | #include <aws/acm/model/DeleteCertificateRequest.h>
|
26 | 26 | #include <aws/acm/model/DescribeCertificateRequest.h>
|
27 | 27 | #include <aws/acm/model/ExportCertificateRequest.h>
|
| 28 | +#include <aws/acm/model/GetAccountConfigurationRequest.h> |
28 | 29 | #include <aws/acm/model/GetCertificateRequest.h>
|
29 | 30 | #include <aws/acm/model/ImportCertificateRequest.h>
|
30 | 31 | #include <aws/acm/model/ListCertificatesRequest.h>
|
@@ -272,32 +273,30 @@ ExportCertificateOutcome ACMClient::ExportCertificate(const ExportCertificateReq
|
272 | 273 | {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
|
273 | 274 | }
|
274 | 275 |
|
275 |
| -GetAccountConfigurationOutcome ACMClient::GetAccountConfiguration() const |
| 276 | +GetAccountConfigurationOutcome ACMClient::GetAccountConfiguration(const GetAccountConfigurationRequest& request) const |
276 | 277 | {
|
277 |
| -AWS_OPERATION_GUARD(GetAccountConfiguration); |
| 278 | + AWS_OPERATION_GUARD(GetAccountConfiguration); |
| 279 | + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); |
278 | 280 | AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAccountConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED);
|
279 | 281 | auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {});
|
280 | 282 | auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {});
|
281 | 283 | AWS_OPERATION_CHECK_PTR(meter, GetAccountConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED);
|
282 | 284 | auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetAccountConfiguration",
|
283 |
| - {{ TracingUtils::SMITHY_METHOD_DIMENSION, "GetAccountConfiguration" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, |
| 285 | + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, |
284 | 286 | smithy::components::tracing::SpanKind::CLIENT);
|
285 | 287 | return TracingUtils::MakeCallWithTiming<GetAccountConfigurationOutcome>(
|
286 | 288 | [&]()-> GetAccountConfigurationOutcome {
|
287 |
| - |
288 |
| - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); |
289 |
| - const Aws::Vector<Aws::Endpoint::EndpointParameter> staticEndpointParameters; |
290 |
| - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>( |
291 |
| - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); }, |
292 |
| - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, |
293 |
| - *meter, |
294 |
| - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetAccountConfiguration"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); |
295 |
| - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); |
296 |
| - return GetAccountConfigurationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "GetAccountConfiguration")); |
| 289 | + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>( |
| 290 | + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, |
| 291 | + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, |
| 292 | + *meter, |
| 293 | + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); |
| 294 | + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAccountConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); |
| 295 | + return GetAccountConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); |
297 | 296 | },
|
298 | 297 | TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
|
299 | 298 | *meter,
|
300 |
| - {{TracingUtils::SMITHY_METHOD_DIMENSION, "GetAccountConfiguration"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); |
| 299 | + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); |
301 | 300 | }
|
302 | 301 |
|
303 | 302 | GetCertificateOutcome ACMClient::GetCertificate(const GetCertificateRequest& request) const
|
|
0 commit comments