7#include <aws/codedeploy/CodeDeployClient.h>
8#include <aws/codedeploy/model/DeploymentStatus.h>
9#include <aws/codedeploy/model/GetDeploymentRequest.h>
10#include <aws/codedeploy/model/GetDeploymentResult.h>
11#include <aws/core/utils/Waiter.h>
12#include <aws/core/utils/memory/AWSMemory.h>
19template <
typename DerivedClient = CodeDeployClient>
27 "DeploymentSuccessfulWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"Succeeded"),
35 "DeploymentSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"Failed"),
43 "DeploymentSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"Stopped"),
51 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetDeployment(req); };
53 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetDeploymentOutcome > WaitUntilDeploymentSuccessful(const Model::GetDeploymentRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentStatus(DeploymentStatus value)
Aws::Utils::Outcome< GetDeploymentResult, CodeDeployError > GetDeploymentOutcome
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