7#include <aws/core/utils/Waiter.h>
8#include <aws/core/utils/memory/AWSMemory.h>
9#include <aws/elb-proxy/ELBProxyClient.h>
10#include <aws/elb-proxy/model/GetProxyRequest.h>
11#include <aws/elb-proxy/model/GetProxyResult.h>
12#include <aws/elb-proxy/model/GetProxyUpdateRequest.h>
13#include <aws/elb-proxy/model/GetProxyUpdateResult.h>
14#include <aws/elb-proxy/model/ProxyStatusCode.h>
15#include <aws/elb-proxy/model/ProxyUpdatePropagationStatus.h>
16#include <aws/elb-proxy/model/ProxyUpdateValidationStatus.h>
23template <
typename DerivedClient = ELBProxyClient>
31 "ProxyActiveWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"active"),
38 "ProxyActiveWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"create-failed"),
45 "ProxyActiveWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"action-required"),
52 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetProxy(req); };
54 return waiter.
Wait(request);
64 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetProxy(req); };
66 return waiter.
Wait(request);
74 "ProxyUpdateCompleteWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"complete"),
79 result.GetState().GetPropagationStatus()) == expected.get<
Aws::String>();
82 "ProxyUpdateCompleteWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"failed"),
87 result.GetState().GetPropagationStatus()) == expected.get<
Aws::String>();
90 "ProxyUpdateCompleteWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"cancelled"),
95 result.GetState().GetPropagationStatus()) == expected.get<
Aws::String>();
98 "ProxyUpdateCompleteWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"skipped"),
101 const auto& result = outcome.
GetResult();
103 result.GetState().GetPropagationStatus()) == expected.get<
Aws::String>();
106 "ProxyUpdateCompleteWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"invalid"),
109 const auto& result = outcome.
GetResult();
114 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetProxyUpdate(req); };
116 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetProxyOutcome > WaitUntilProxyActive(const Model::GetProxyRequest &request)
Aws::Utils::WaiterOutcome< Model::GetProxyOutcome > WaitUntilProxyDeleted(const Model::GetProxyRequest &request)
Aws::Utils::WaiterOutcome< Model::GetProxyUpdateOutcome > WaitUntilProxyUpdateComplete(const Model::GetProxyUpdateRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_ELBPROXY_API Aws::String GetNameForProxyStatusCode(ProxyStatusCode value)
AWS_ELBPROXY_API Aws::String GetNameForProxyUpdatePropagationStatus(ProxyUpdatePropagationStatus value)
AWS_ELBPROXY_API Aws::String GetNameForProxyUpdateValidationStatus(ProxyUpdateValidationStatus value)
Aws::Utils::Outcome< GetProxyUpdateResult, ELBProxyError > GetProxyUpdateOutcome
Aws::Utils::Outcome< GetProxyResult, ELBProxyError > GetProxyOutcome
Crt::Variant< int, bool, Aws::String > ExpectedValue
UniquePtr< T > MakeUnique(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector