7#include <aws/core/utils/Waiter.h>
8#include <aws/core/utils/memory/AWSMemory.h>
9#include <aws/ssm/SSMClient.h>
10#include <aws/ssm/model/CommandInvocationStatus.h>
11#include <aws/ssm/model/GetCommandInvocationRequest.h>
12#include <aws/ssm/model/GetCommandInvocationResult.h>
19template <
typename DerivedClient = SSMClient>
28 "CommandExecutedWaiter", Aws::Utils::WaiterState::RETRY,
Aws::String(
"Pending"),
35 "CommandExecutedWaiter", Aws::Utils::WaiterState::RETRY,
Aws::String(
"InProgress"),
42 "CommandExecutedWaiter", Aws::Utils::WaiterState::RETRY,
Aws::String(
"Delayed"),
49 "CommandExecutedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"Success"),
56 "CommandExecutedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"Cancelled"),
63 "CommandExecutedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"TimedOut"),
70 "CommandExecutedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"Failed"),
77 "CommandExecutedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"Cancelling"),
86 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetCommandInvocation(req); };
88 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetCommandInvocationOutcome > WaitUntilCommandExecuted(const Model::GetCommandInvocationRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_SSM_API Aws::String GetNameForCommandInvocationStatus(CommandInvocationStatus value)
Aws::Utils::Outcome< GetCommandInvocationResult, SSMError > GetCommandInvocationOutcome
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