7#include <aws/appconfig/AppConfigClient.h>
8#include <aws/appconfig/model/DeploymentState.h>
9#include <aws/appconfig/model/EnvironmentState.h>
10#include <aws/appconfig/model/GetDeploymentRequest.h>
11#include <aws/appconfig/model/GetDeploymentResult.h>
12#include <aws/appconfig/model/GetEnvironmentRequest.h>
13#include <aws/appconfig/model/GetEnvironmentResult.h>
14#include <aws/core/utils/Waiter.h>
15#include <aws/core/utils/memory/AWSMemory.h>
22template <
typename DerivedClient = AppConfigClient>
30 "DeploymentCompleteWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"COMPLETE"),
37 "DeploymentCompleteWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"ROLLED_BACK"),
44 "DeploymentCompleteWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"REVERTED"),
51 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetDeployment(req); };
53 return waiter.
Wait(request);
62 "EnvironmentReadyForDeploymentWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"ReadyForDeployment"),
69 "EnvironmentReadyForDeploymentWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"RolledBack"),
76 "EnvironmentReadyForDeploymentWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"Reverted"),
83 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetEnvironment(req); };
85 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetEnvironmentOutcome > WaitUntilEnvironmentReadyForDeployment(const Model::GetEnvironmentRequest &request)
Aws::Utils::WaiterOutcome< Model::GetDeploymentOutcome > WaitUntilDeploymentComplete(const Model::GetDeploymentRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_APPCONFIG_API Aws::String GetNameForDeploymentState(DeploymentState value)
AWS_APPCONFIG_API Aws::String GetNameForEnvironmentState(EnvironmentState value)
Aws::Utils::Outcome< GetDeploymentResult, AppConfigError > GetDeploymentOutcome
Aws::Utils::Outcome< GetEnvironmentResult, AppConfigError > GetEnvironmentOutcome
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