105 lines
5.1 KiB
C
105 lines
5.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ssm/SSM_EXPORTS.h>
|
|||
|
|
#include <aws/ssm/SSMRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace SSM
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class GetCommandInvocationRequest : public SSMRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
AWS_SSM_API GetCommandInvocationRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "GetCommandInvocation"; }
|
|||
|
|
|
|||
|
|
AWS_SSM_API Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>(Required) The parent command ID of the invocation plugin.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCommandId() const{ return m_commandId; }
|
|||
|
|
inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
|
|||
|
|
inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
|
|||
|
|
inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
|
|||
|
|
inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
|
|||
|
|
inline GetCommandInvocationRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
|
|||
|
|
inline GetCommandInvocationRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
|
|||
|
|
inline GetCommandInvocationRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>(Required) The ID of the managed node targeted by the command. A <i>managed
|
|||
|
|
* node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge
|
|||
|
|
* device, and on-premises server or VM in your hybrid environment that is
|
|||
|
|
* configured for Amazon Web Services Systems Manager.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
|
|||
|
|
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
|
|||
|
|
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
|
|||
|
|
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
|
|||
|
|
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
|
|||
|
|
inline GetCommandInvocationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
|
|||
|
|
inline GetCommandInvocationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
|
|||
|
|
inline GetCommandInvocationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the step for which you want detailed results. If the document
|
|||
|
|
* contains only one step, you can omit the name and details for that step. If the
|
|||
|
|
* document contains more than one step, you must specify the name of the step for
|
|||
|
|
* which you want to view details. Be sure to specify the name of the step, not the
|
|||
|
|
* name of a plugin like <code>aws:RunShellScript</code>.</p> <p>To find the
|
|||
|
|
* <code>PluginName</code>, check the document content and find the name of the
|
|||
|
|
* step you want details for. Alternatively, use <a>ListCommandInvocations</a> with
|
|||
|
|
* the <code>CommandId</code> and <code>Details</code> parameters. The
|
|||
|
|
* <code>PluginName</code> is the <code>Name</code> attribute of the
|
|||
|
|
* <code>CommandPlugin</code> object in the <code>CommandPlugins</code> list.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPluginName() const{ return m_pluginName; }
|
|||
|
|
inline bool PluginNameHasBeenSet() const { return m_pluginNameHasBeenSet; }
|
|||
|
|
inline void SetPluginName(const Aws::String& value) { m_pluginNameHasBeenSet = true; m_pluginName = value; }
|
|||
|
|
inline void SetPluginName(Aws::String&& value) { m_pluginNameHasBeenSet = true; m_pluginName = std::move(value); }
|
|||
|
|
inline void SetPluginName(const char* value) { m_pluginNameHasBeenSet = true; m_pluginName.assign(value); }
|
|||
|
|
inline GetCommandInvocationRequest& WithPluginName(const Aws::String& value) { SetPluginName(value); return *this;}
|
|||
|
|
inline GetCommandInvocationRequest& WithPluginName(Aws::String&& value) { SetPluginName(std::move(value)); return *this;}
|
|||
|
|
inline GetCommandInvocationRequest& WithPluginName(const char* value) { SetPluginName(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_commandId;
|
|||
|
|
bool m_commandIdHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_instanceId;
|
|||
|
|
bool m_instanceIdHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_pluginName;
|
|||
|
|
bool m_pluginNameHasBeenSet = false;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SSM
|
|||
|
|
} // namespace Aws
|