7#include <aws/agent-registry-control/AgentRegistryControlClient.h>
8#include <aws/agent-registry-control/model/GetRegistryRecordRequest.h>
9#include <aws/agent-registry-control/model/GetRegistryRecordResult.h>
10#include <aws/agent-registry-control/model/GetRegistryRequest.h>
11#include <aws/agent-registry-control/model/GetRegistryResult.h>
12#include <aws/agent-registry-control/model/RegistryRecordStatus.h>
13#include <aws/agent-registry-control/model/RegistryStatus.h>
14#include <aws/core/utils/Waiter.h>
15#include <aws/core/utils/memory/AWSMemory.h>
20namespace AgentRegistryControl {
22template <
typename DerivedClient = AgentRegistryControlClient>
30 "RegistryReadyWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"READY"),
37 "RegistryReadyWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"CREATE_FAILED"),
44 "RegistryReadyWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"UPDATE_FAILED"),
51 "RegistryReadyWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"DELETE_FAILED"),
58 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetRegistry(req); };
60 return waiter.
Wait(request);
69 "RegistryRecordApprovedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"APPROVED"),
76 "RegistryRecordApprovedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"REJECTED"),
83 "RegistryRecordApprovedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"CREATE_FAILED"),
90 "RegistryRecordApprovedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"UPDATE_FAILED"),
97 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetRegistryRecord(req); };
99 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetRegistryOutcome > WaitUntilRegistryReady(const Model::GetRegistryRequest &request)
Aws::Utils::WaiterOutcome< Model::GetRegistryRecordOutcome > WaitUntilRegistryRecordApproved(const Model::GetRegistryRecordRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_AGENTREGISTRYCONTROL_API Aws::String GetNameForRegistryRecordStatus(RegistryRecordStatus value)
AWS_AGENTREGISTRYCONTROL_API Aws::String GetNameForRegistryStatus(RegistryStatus value)
Aws::Utils::Outcome< GetRegistryResult, AgentRegistryControlError > GetRegistryOutcome
Aws::Utils::Outcome< GetRegistryRecordResult, AgentRegistryControlError > GetRegistryRecordOutcome
Crt::Variant< int, bool, Aws::String > ExpectedValue
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
UniquePtr< T > MakeUnique(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector