feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,21 @@
/**
* 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/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace SSMEndpoint
{
AWS_SSM_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace SSMEndpoint
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* 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/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_SSM_API SSMErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
namespace SSM
{
enum class SSMErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
ALREADY_EXISTS= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
ASSOCIATED_INSTANCES,
ASSOCIATION_ALREADY_EXISTS,
ASSOCIATION_DOES_NOT_EXIST,
ASSOCIATION_EXECUTION_DOES_NOT_EXIST,
ASSOCIATION_LIMIT_EXCEEDED,
ASSOCIATION_VERSION_LIMIT_EXCEEDED,
AUTOMATION_DEFINITION_NOT_FOUND,
AUTOMATION_DEFINITION_VERSION_NOT_FOUND,
AUTOMATION_EXECUTION_LIMIT_EXCEEDED,
AUTOMATION_EXECUTION_NOT_FOUND,
AUTOMATION_STEP_NOT_FOUND,
COMPLIANCE_TYPE_COUNT_LIMIT_EXCEEDED,
CUSTOM_SCHEMA_COUNT_LIMIT_EXCEEDED,
DOCUMENT_ALREADY_EXISTS,
DOCUMENT_LIMIT_EXCEEDED,
DOCUMENT_PERMISSION_LIMIT,
DOCUMENT_VERSION_LIMIT_EXCEEDED,
DOES_NOT_EXIST,
DUPLICATE_DOCUMENT_CONTENT,
DUPLICATE_DOCUMENT_VERSION_NAME,
DUPLICATE_INSTANCE_ID,
FEATURE_NOT_AVAILABLE,
HIERARCHY_LEVEL_LIMIT_EXCEEDED,
HIERARCHY_TYPE_MISMATCH,
IDEMPOTENT_PARAMETER_MISMATCH,
INCOMPATIBLE_POLICY,
INVALID_ACTIVATION,
INVALID_ACTIVATION_ID,
INVALID_AGGREGATOR,
INVALID_ALLOWED_PATTERN,
INVALID_ASSOCIATION,
INVALID_ASSOCIATION_VERSION,
INVALID_AUTOMATION_EXECUTION_PARAMETERS,
INVALID_AUTOMATION_SIGNAL,
INVALID_AUTOMATION_STATUS_UPDATE,
INVALID_COMMAND_ID,
INVALID_DELETE_INVENTORY_PARAMETERS,
INVALID_DELETION_ID,
INVALID_DOCUMENT,
INVALID_DOCUMENT_CONTENT,
INVALID_DOCUMENT_OPERATION,
INVALID_DOCUMENT_SCHEMA_VERSION,
INVALID_DOCUMENT_TYPE,
INVALID_DOCUMENT_VERSION,
INVALID_FILTER,
INVALID_FILTER_KEY,
INVALID_FILTER_OPTION,
INVALID_FILTER_VALUE,
INVALID_INSTANCE_ID,
INVALID_INSTANCE_INFORMATION_FILTER_VALUE,
INVALID_INVENTORY_GROUP,
INVALID_INVENTORY_ITEM_CONTEXT,
INVALID_INVENTORY_REQUEST,
INVALID_ITEM_CONTENT,
INVALID_KEY_ID,
INVALID_NEXT_TOKEN,
INVALID_NOTIFICATION_CONFIG,
INVALID_OPTION,
INVALID_OUTPUT_FOLDER,
INVALID_OUTPUT_LOCATION,
INVALID_PARAMETERS,
INVALID_PERMISSION_TYPE,
INVALID_PLUGIN_NAME,
INVALID_POLICY_ATTRIBUTE,
INVALID_POLICY_TYPE,
INVALID_RESOURCE_ID,
INVALID_RESOURCE_TYPE,
INVALID_RESULT_ATTRIBUTE,
INVALID_ROLE,
INVALID_SCHEDULE,
INVALID_TARGET,
INVALID_TYPE_NAME,
INVALID_UPDATE,
INVOCATION_DOES_NOT_EXIST,
ITEM_CONTENT_MISMATCH,
ITEM_SIZE_LIMIT_EXCEEDED,
MAX_DOCUMENT_SIZE_EXCEEDED,
OPS_ITEM_ALREADY_EXISTS,
OPS_ITEM_INVALID_PARAMETER,
OPS_ITEM_LIMIT_EXCEEDED,
OPS_ITEM_NOT_FOUND,
PARAMETER_ALREADY_EXISTS,
PARAMETER_LIMIT_EXCEEDED,
PARAMETER_MAX_VERSION_LIMIT_EXCEEDED,
PARAMETER_NOT_FOUND,
PARAMETER_PATTERN_MISMATCH,
PARAMETER_VERSION_LABEL_LIMIT_EXCEEDED,
PARAMETER_VERSION_NOT_FOUND,
POLICIES_LIMIT_EXCEEDED,
RESOURCE_DATA_SYNC_ALREADY_EXISTS,
RESOURCE_DATA_SYNC_CONFLICT,
RESOURCE_DATA_SYNC_COUNT_EXCEEDED,
RESOURCE_DATA_SYNC_INVALID_CONFIGURATION,
RESOURCE_DATA_SYNC_NOT_FOUND,
RESOURCE_IN_USE,
RESOURCE_LIMIT_EXCEEDED,
SERVICE_SETTING_NOT_FOUND,
STATUS_UNCHANGED,
SUB_TYPE_COUNT_LIMIT_EXCEEDED,
TARGET_IN_USE,
TARGET_NOT_CONNECTED,
TOO_MANY_TAGS,
TOO_MANY_UPDATES,
TOTAL_SIZE_LIMIT_EXCEEDED,
UNSUPPORTED_CALENDAR,
UNSUPPORTED_FEATURE_REQUIRED,
UNSUPPORTED_INVENTORY_ITEM_CONTEXT,
UNSUPPORTED_INVENTORY_SCHEMA_VERSION,
UNSUPPORTED_OPERATING_SYSTEM,
UNSUPPORTED_PARAMETER_TYPE,
UNSUPPORTED_PLATFORM_TYPE
};
class AWS_SSM_API SSMError : public Aws::Client::AWSError<SSMErrors>
{
public:
SSMError() {}
SSMError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<SSMErrors>(rhs) {}
SSMError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<SSMErrors>(rhs) {}
SSMError(const Aws::Client::AWSError<SSMErrors>& rhs) : Aws::Client::AWSError<SSMErrors>(rhs) {}
SSMError(Aws::Client::AWSError<SSMErrors>&& rhs) : Aws::Client::AWSError<SSMErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace SSMErrorMapper
{
AWS_SSM_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* 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/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace SSM
{
class AWS_SSM_API SSMRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~SSMRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2014-11-06"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_SSM_EXPORTS
#define AWS_SSM_API __declspec(dllexport)
#else
#define AWS_SSM_API __declspec(dllimport)
#endif /* AWS_SSM_EXPORTS */
#else
#define AWS_SSM_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_SSM_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,133 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Information includes the AWS account ID where the current document is shared
* and the version shared with that account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AccountSharingInfo">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AccountSharingInfo
{
public:
AccountSharingInfo();
AccountSharingInfo(Aws::Utils::Json::JsonView jsonValue);
AccountSharingInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline AccountSharingInfo& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline AccountSharingInfo& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The AWS account ID where the current document is shared.</p>
*/
inline AccountSharingInfo& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The version of the current document shared with the account.</p>
*/
inline const Aws::String& GetSharedDocumentVersion() const{ return m_sharedDocumentVersion; }
/**
* <p>The version of the current document shared with the account.</p>
*/
inline bool SharedDocumentVersionHasBeenSet() const { return m_sharedDocumentVersionHasBeenSet; }
/**
* <p>The version of the current document shared with the account.</p>
*/
inline void SetSharedDocumentVersion(const Aws::String& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = value; }
/**
* <p>The version of the current document shared with the account.</p>
*/
inline void SetSharedDocumentVersion(Aws::String&& value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion = std::move(value); }
/**
* <p>The version of the current document shared with the account.</p>
*/
inline void SetSharedDocumentVersion(const char* value) { m_sharedDocumentVersionHasBeenSet = true; m_sharedDocumentVersion.assign(value); }
/**
* <p>The version of the current document shared with the account.</p>
*/
inline AccountSharingInfo& WithSharedDocumentVersion(const Aws::String& value) { SetSharedDocumentVersion(value); return *this;}
/**
* <p>The version of the current document shared with the account.</p>
*/
inline AccountSharingInfo& WithSharedDocumentVersion(Aws::String&& value) { SetSharedDocumentVersion(std::move(value)); return *this;}
/**
* <p>The version of the current document shared with the account.</p>
*/
inline AccountSharingInfo& WithSharedDocumentVersion(const char* value) { SetSharedDocumentVersion(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_sharedDocumentVersion;
bool m_sharedDocumentVersionHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,428 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/Tag.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>An activation registers one or more on-premises servers or virtual machines
* (VMs) with AWS so that you can configure those servers or VMs using Run Command.
* A server or VM that has been registered with AWS is called a managed
* instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Activation">AWS API
* Reference</a></p>
*/
class AWS_SSM_API Activation
{
public:
Activation();
Activation(Aws::Utils::Json::JsonView jsonValue);
Activation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline const Aws::String& GetActivationId() const{ return m_activationId; }
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; }
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline void SetActivationId(const Aws::String& value) { m_activationIdHasBeenSet = true; m_activationId = value; }
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline void SetActivationId(Aws::String&& value) { m_activationIdHasBeenSet = true; m_activationId = std::move(value); }
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline void SetActivationId(const char* value) { m_activationIdHasBeenSet = true; m_activationId.assign(value); }
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline Activation& WithActivationId(const Aws::String& value) { SetActivationId(value); return *this;}
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline Activation& WithActivationId(Aws::String&& value) { SetActivationId(std::move(value)); return *this;}
/**
* <p>The ID created by Systems Manager when you submitted the activation.</p>
*/
inline Activation& WithActivationId(const char* value) { SetActivationId(value); return *this;}
/**
* <p>A user defined description of the activation.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A user defined description of the activation.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A user defined description of the activation.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A user defined description of the activation.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A user defined description of the activation.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A user defined description of the activation.</p>
*/
inline Activation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A user defined description of the activation.</p>
*/
inline Activation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A user defined description of the activation.</p>
*/
inline Activation& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline const Aws::String& GetDefaultInstanceName() const{ return m_defaultInstanceName; }
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline bool DefaultInstanceNameHasBeenSet() const { return m_defaultInstanceNameHasBeenSet; }
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline void SetDefaultInstanceName(const Aws::String& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = value; }
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline void SetDefaultInstanceName(Aws::String&& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = std::move(value); }
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline void SetDefaultInstanceName(const char* value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName.assign(value); }
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline Activation& WithDefaultInstanceName(const Aws::String& value) { SetDefaultInstanceName(value); return *this;}
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline Activation& WithDefaultInstanceName(Aws::String&& value) { SetDefaultInstanceName(std::move(value)); return *this;}
/**
* <p>A name for the managed instance when it is created.</p>
*/
inline Activation& WithDefaultInstanceName(const char* value) { SetDefaultInstanceName(value); return *this;}
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline const Aws::String& GetIamRole() const{ return m_iamRole; }
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline Activation& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline Activation& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
/**
* <p>The Amazon Identity and Access Management (IAM) role to assign to the managed
* instance.</p>
*/
inline Activation& WithIamRole(const char* value) { SetIamRole(value); return *this;}
/**
* <p>The maximum number of managed instances that can be registered using this
* activation.</p>
*/
inline int GetRegistrationLimit() const{ return m_registrationLimit; }
/**
* <p>The maximum number of managed instances that can be registered using this
* activation.</p>
*/
inline bool RegistrationLimitHasBeenSet() const { return m_registrationLimitHasBeenSet; }
/**
* <p>The maximum number of managed instances that can be registered using this
* activation.</p>
*/
inline void SetRegistrationLimit(int value) { m_registrationLimitHasBeenSet = true; m_registrationLimit = value; }
/**
* <p>The maximum number of managed instances that can be registered using this
* activation.</p>
*/
inline Activation& WithRegistrationLimit(int value) { SetRegistrationLimit(value); return *this;}
/**
* <p>The number of managed instances already registered with this activation.</p>
*/
inline int GetRegistrationsCount() const{ return m_registrationsCount; }
/**
* <p>The number of managed instances already registered with this activation.</p>
*/
inline bool RegistrationsCountHasBeenSet() const { return m_registrationsCountHasBeenSet; }
/**
* <p>The number of managed instances already registered with this activation.</p>
*/
inline void SetRegistrationsCount(int value) { m_registrationsCountHasBeenSet = true; m_registrationsCount = value; }
/**
* <p>The number of managed instances already registered with this activation.</p>
*/
inline Activation& WithRegistrationsCount(int value) { SetRegistrationsCount(value); return *this;}
/**
* <p>The date when this activation can no longer be used to register managed
* instances.</p>
*/
inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
/**
* <p>The date when this activation can no longer be used to register managed
* instances.</p>
*/
inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
/**
* <p>The date when this activation can no longer be used to register managed
* instances.</p>
*/
inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
/**
* <p>The date when this activation can no longer be used to register managed
* instances.</p>
*/
inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
/**
* <p>The date when this activation can no longer be used to register managed
* instances.</p>
*/
inline Activation& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
/**
* <p>The date when this activation can no longer be used to register managed
* instances.</p>
*/
inline Activation& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
/**
* <p>Whether or not the activation is expired.</p>
*/
inline bool GetExpired() const{ return m_expired; }
/**
* <p>Whether or not the activation is expired.</p>
*/
inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
/**
* <p>Whether or not the activation is expired.</p>
*/
inline void SetExpired(bool value) { m_expiredHasBeenSet = true; m_expired = value; }
/**
* <p>Whether or not the activation is expired.</p>
*/
inline Activation& WithExpired(bool value) { SetExpired(value); return *this;}
/**
* <p>The date the activation was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
/**
* <p>The date the activation was created.</p>
*/
inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
/**
* <p>The date the activation was created.</p>
*/
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
/**
* <p>The date the activation was created.</p>
*/
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
/**
* <p>The date the activation was created.</p>
*/
inline Activation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
/**
* <p>The date the activation was created.</p>
*/
inline Activation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
/**
* <p>Tags assigned to the activation.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Tags assigned to the activation.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Tags assigned to the activation.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Tags assigned to the activation.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Tags assigned to the activation.</p>
*/
inline Activation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Tags assigned to the activation.</p>
*/
inline Activation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Tags assigned to the activation.</p>
*/
inline Activation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Tags assigned to the activation.</p>
*/
inline Activation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_activationId;
bool m_activationIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_defaultInstanceName;
bool m_defaultInstanceNameHasBeenSet;
Aws::String m_iamRole;
bool m_iamRoleHasBeenSet;
int m_registrationLimit;
bool m_registrationLimitHasBeenSet;
int m_registrationsCount;
bool m_registrationsCountHasBeenSet;
Aws::Utils::DateTime m_expirationDate;
bool m_expirationDateHasBeenSet;
bool m_expired;
bool m_expiredHasBeenSet;
Aws::Utils::DateTime m_createdDate;
bool m_createdDateHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,256 @@
/**
* 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/ssm/model/ResourceTypeForTagging.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/Tag.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API AddTagsToResourceRequest : public SSMRequest
{
public:
AddTagsToResourceRequest();
// 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 "AddTagsToResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the type of resource you are tagging.</p> <p>The
* ManagedInstance type for this API action is for on-premises managed instances.
* You must specify the name of the managed instance in the following format:
* mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline const ResourceTypeForTagging& GetResourceType() const{ return m_resourceType; }
/**
* <p>Specifies the type of resource you are tagging.</p> <p>The
* ManagedInstance type for this API action is for on-premises managed instances.
* You must specify the name of the managed instance in the following format:
* mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>Specifies the type of resource you are tagging.</p> <p>The
* ManagedInstance type for this API action is for on-premises managed instances.
* You must specify the name of the managed instance in the following format:
* mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline void SetResourceType(const ResourceTypeForTagging& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>Specifies the type of resource you are tagging.</p> <p>The
* ManagedInstance type for this API action is for on-premises managed instances.
* You must specify the name of the managed instance in the following format:
* mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline void SetResourceType(ResourceTypeForTagging&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>Specifies the type of resource you are tagging.</p> <p>The
* ManagedInstance type for this API action is for on-premises managed instances.
* You must specify the name of the managed instance in the following format:
* mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline AddTagsToResourceRequest& WithResourceType(const ResourceTypeForTagging& value) { SetResourceType(value); return *this;}
/**
* <p>Specifies the type of resource you are tagging.</p> <p>The
* ManagedInstance type for this API action is for on-premises managed instances.
* You must specify the name of the managed instance in the following format:
* mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline AddTagsToResourceRequest& WithResourceType(ResourceTypeForTagging&& value) { SetResourceType(std::move(value)); return *this;}
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline AddTagsToResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline AddTagsToResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The resource ID you want to tag.</p> <p>Use the ID of the resource. Here are
* some examples:</p> <p>ManagedInstance: mi-012345abcde</p> <p>MaintenanceWindow:
* mw-012345abcde</p> <p>PatchBaseline: pb-012345abcde</p> <p>For the Document and
* Parameter values, use the name of the resource.</p> <p>The
* ManagedInstance type for this API action is only for on-premises managed
* instances. You must specify the name of the managed instance in the following
* format: mi-ID_number. For example, mi-1a2b3c4d5e6f.</p>
*/
inline AddTagsToResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline AddTagsToResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline AddTagsToResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline AddTagsToResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p> One or more tags. The value parameter is required, but if you don't want the
* tag to have a value, specify the parameter with no value, and we set the value
* to an empty string. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline AddTagsToResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
ResourceTypeForTagging m_resourceType;
bool m_resourceTypeHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API AddTagsToResourceResult
{
public:
AddTagsToResourceResult();
AddTagsToResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AddTagsToResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,477 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/ssm/model/AssociationOverview.h>
#include <aws/ssm/model/Target.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Describes an association of a Systems Manager document and an
* instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Association">AWS API
* Reference</a></p>
*/
class AWS_SSM_API Association
{
public:
Association();
Association(Aws::Utils::Json::JsonView jsonValue);
Association& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the Systems Manager document.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline Association& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the Systems Manager document.</p>
*/
inline Association& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the Systems Manager document.</p>
*/
inline Association& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The ID of the instance.</p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The ID of the instance.</p>
*/
inline Association& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline Association& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline Association& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline Association& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline Association& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p>The ID created by the system when you create an association. An association
* is a binding between a document and a set of targets with a schedule.</p>
*/
inline Association& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
/**
* <p>The association version.</p>
*/
inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
/**
* <p>The association version.</p>
*/
inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
/**
* <p>The association version.</p>
*/
inline Association& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
/**
* <p>The association version.</p>
*/
inline Association& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
/**
* <p>The association version.</p>
*/
inline Association& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
/**
* <p>The version of the document used in the association.</p>
*/
inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
/**
* <p>The version of the document used in the association.</p>
*/
inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
/**
* <p>The version of the document used in the association.</p>
*/
inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
/**
* <p>The version of the document used in the association.</p>
*/
inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
/**
* <p>The version of the document used in the association.</p>
*/
inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
/**
* <p>The version of the document used in the association.</p>
*/
inline Association& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
/**
* <p>The version of the document used in the association.</p>
*/
inline Association& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
/**
* <p>The version of the document used in the association.</p>
*/
inline Association& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline Association& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline Association& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline Association& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
/**
* <p>The instances targeted by the request to create an association. </p>
*/
inline Association& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
/**
* <p>The date on which the association was last run.</p>
*/
inline const Aws::Utils::DateTime& GetLastExecutionDate() const{ return m_lastExecutionDate; }
/**
* <p>The date on which the association was last run.</p>
*/
inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
/**
* <p>The date on which the association was last run.</p>
*/
inline void SetLastExecutionDate(const Aws::Utils::DateTime& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = value; }
/**
* <p>The date on which the association was last run.</p>
*/
inline void SetLastExecutionDate(Aws::Utils::DateTime&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::move(value); }
/**
* <p>The date on which the association was last run.</p>
*/
inline Association& WithLastExecutionDate(const Aws::Utils::DateTime& value) { SetLastExecutionDate(value); return *this;}
/**
* <p>The date on which the association was last run.</p>
*/
inline Association& WithLastExecutionDate(Aws::Utils::DateTime&& value) { SetLastExecutionDate(std::move(value)); return *this;}
/**
* <p>Information about the association.</p>
*/
inline const AssociationOverview& GetOverview() const{ return m_overview; }
/**
* <p>Information about the association.</p>
*/
inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
/**
* <p>Information about the association.</p>
*/
inline void SetOverview(const AssociationOverview& value) { m_overviewHasBeenSet = true; m_overview = value; }
/**
* <p>Information about the association.</p>
*/
inline void SetOverview(AssociationOverview&& value) { m_overviewHasBeenSet = true; m_overview = std::move(value); }
/**
* <p>Information about the association.</p>
*/
inline Association& WithOverview(const AssociationOverview& value) { SetOverview(value); return *this;}
/**
* <p>Information about the association.</p>
*/
inline Association& WithOverview(AssociationOverview&& value) { SetOverview(std::move(value)); return *this;}
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline Association& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline Association& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline Association& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
/**
* <p>The association name.</p>
*/
inline const Aws::String& GetAssociationName() const{ return m_associationName; }
/**
* <p>The association name.</p>
*/
inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
/**
* <p>The association name.</p>
*/
inline void SetAssociationName(const Aws::String& value) { m_associationNameHasBeenSet = true; m_associationName = value; }
/**
* <p>The association name.</p>
*/
inline void SetAssociationName(Aws::String&& value) { m_associationNameHasBeenSet = true; m_associationName = std::move(value); }
/**
* <p>The association name.</p>
*/
inline void SetAssociationName(const char* value) { m_associationNameHasBeenSet = true; m_associationName.assign(value); }
/**
* <p>The association name.</p>
*/
inline Association& WithAssociationName(const Aws::String& value) { SetAssociationName(value); return *this;}
/**
* <p>The association name.</p>
*/
inline Association& WithAssociationName(Aws::String&& value) { SetAssociationName(std::move(value)); return *this;}
/**
* <p>The association name.</p>
*/
inline Association& WithAssociationName(const char* value) { SetAssociationName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
Aws::String m_associationVersion;
bool m_associationVersionHasBeenSet;
Aws::String m_documentVersion;
bool m_documentVersionHasBeenSet;
Aws::Vector<Target> m_targets;
bool m_targetsHasBeenSet;
Aws::Utils::DateTime m_lastExecutionDate;
bool m_lastExecutionDateHasBeenSet;
AssociationOverview m_overview;
bool m_overviewHasBeenSet;
Aws::String m_scheduleExpression;
bool m_scheduleExpressionHasBeenSet;
Aws::String m_associationName;
bool m_associationNameHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AssociationComplianceSeverity
{
NOT_SET,
CRITICAL,
HIGH,
MEDIUM,
LOW,
UNSPECIFIED
};
namespace AssociationComplianceSeverityMapper
{
AWS_SSM_API AssociationComplianceSeverity GetAssociationComplianceSeverityForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAssociationComplianceSeverity(AssociationComplianceSeverity value);
} // namespace AssociationComplianceSeverityMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,386 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Includes information about the specified association.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationExecution">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationExecution
{
public:
AssociationExecution();
AssociationExecution(Aws::Utils::Json::JsonView jsonValue);
AssociationExecution& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The association ID.</p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p>The association ID.</p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p>The association ID.</p>
*/
inline AssociationExecution& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p>The association ID.</p>
*/
inline AssociationExecution& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p>The association ID.</p>
*/
inline AssociationExecution& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
/**
* <p>The association version.</p>
*/
inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
/**
* <p>The association version.</p>
*/
inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
/**
* <p>The association version.</p>
*/
inline AssociationExecution& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
/**
* <p>The association version.</p>
*/
inline AssociationExecution& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
/**
* <p>The association version.</p>
*/
inline AssociationExecution& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
/**
* <p>The execution ID for the association.</p>
*/
inline const Aws::String& GetExecutionId() const{ return m_executionId; }
/**
* <p>The execution ID for the association.</p>
*/
inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
/**
* <p>The execution ID for the association.</p>
*/
inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; }
/**
* <p>The execution ID for the association.</p>
*/
inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); }
/**
* <p>The execution ID for the association.</p>
*/
inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); }
/**
* <p>The execution ID for the association.</p>
*/
inline AssociationExecution& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;}
/**
* <p>The execution ID for the association.</p>
*/
inline AssociationExecution& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;}
/**
* <p>The execution ID for the association.</p>
*/
inline AssociationExecution& WithExecutionId(const char* value) { SetExecutionId(value); return *this;}
/**
* <p>The status of the association execution.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the association execution.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the association execution.</p>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the association execution.</p>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the association execution.</p>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the association execution.</p>
*/
inline AssociationExecution& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the association execution.</p>
*/
inline AssociationExecution& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the association execution.</p>
*/
inline AssociationExecution& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>Detailed status information about the execution.</p>
*/
inline const Aws::String& GetDetailedStatus() const{ return m_detailedStatus; }
/**
* <p>Detailed status information about the execution.</p>
*/
inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
/**
* <p>Detailed status information about the execution.</p>
*/
inline void SetDetailedStatus(const Aws::String& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = value; }
/**
* <p>Detailed status information about the execution.</p>
*/
inline void SetDetailedStatus(Aws::String&& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = std::move(value); }
/**
* <p>Detailed status information about the execution.</p>
*/
inline void SetDetailedStatus(const char* value) { m_detailedStatusHasBeenSet = true; m_detailedStatus.assign(value); }
/**
* <p>Detailed status information about the execution.</p>
*/
inline AssociationExecution& WithDetailedStatus(const Aws::String& value) { SetDetailedStatus(value); return *this;}
/**
* <p>Detailed status information about the execution.</p>
*/
inline AssociationExecution& WithDetailedStatus(Aws::String&& value) { SetDetailedStatus(std::move(value)); return *this;}
/**
* <p>Detailed status information about the execution.</p>
*/
inline AssociationExecution& WithDetailedStatus(const char* value) { SetDetailedStatus(value); return *this;}
/**
* <p>The time the execution started.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
/**
* <p>The time the execution started.</p>
*/
inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
/**
* <p>The time the execution started.</p>
*/
inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
/**
* <p>The time the execution started.</p>
*/
inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
/**
* <p>The time the execution started.</p>
*/
inline AssociationExecution& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
/**
* <p>The time the execution started.</p>
*/
inline AssociationExecution& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
/**
* <p>The date of the last execution.</p>
*/
inline const Aws::Utils::DateTime& GetLastExecutionDate() const{ return m_lastExecutionDate; }
/**
* <p>The date of the last execution.</p>
*/
inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
/**
* <p>The date of the last execution.</p>
*/
inline void SetLastExecutionDate(const Aws::Utils::DateTime& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = value; }
/**
* <p>The date of the last execution.</p>
*/
inline void SetLastExecutionDate(Aws::Utils::DateTime&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::move(value); }
/**
* <p>The date of the last execution.</p>
*/
inline AssociationExecution& WithLastExecutionDate(const Aws::Utils::DateTime& value) { SetLastExecutionDate(value); return *this;}
/**
* <p>The date of the last execution.</p>
*/
inline AssociationExecution& WithLastExecutionDate(Aws::Utils::DateTime&& value) { SetLastExecutionDate(std::move(value)); return *this;}
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline const Aws::String& GetResourceCountByStatus() const{ return m_resourceCountByStatus; }
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline bool ResourceCountByStatusHasBeenSet() const { return m_resourceCountByStatusHasBeenSet; }
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline void SetResourceCountByStatus(const Aws::String& value) { m_resourceCountByStatusHasBeenSet = true; m_resourceCountByStatus = value; }
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline void SetResourceCountByStatus(Aws::String&& value) { m_resourceCountByStatusHasBeenSet = true; m_resourceCountByStatus = std::move(value); }
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline void SetResourceCountByStatus(const char* value) { m_resourceCountByStatusHasBeenSet = true; m_resourceCountByStatus.assign(value); }
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline AssociationExecution& WithResourceCountByStatus(const Aws::String& value) { SetResourceCountByStatus(value); return *this;}
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline AssociationExecution& WithResourceCountByStatus(Aws::String&& value) { SetResourceCountByStatus(std::move(value)); return *this;}
/**
* <p>An aggregate status of the resources in the execution based on the status
* type.</p>
*/
inline AssociationExecution& WithResourceCountByStatus(const char* value) { SetResourceCountByStatus(value); return *this;}
private:
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
Aws::String m_associationVersion;
bool m_associationVersionHasBeenSet;
Aws::String m_executionId;
bool m_executionIdHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_detailedStatus;
bool m_detailedStatusHasBeenSet;
Aws::Utils::DateTime m_createdTime;
bool m_createdTimeHasBeenSet;
Aws::Utils::DateTime m_lastExecutionDate;
bool m_lastExecutionDateHasBeenSet;
Aws::String m_resourceCountByStatus;
bool m_resourceCountByStatusHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,158 @@
/**
* 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/model/AssociationExecutionFilterKey.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/AssociationFilterOperatorType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Filters used in the request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationExecutionFilter">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationExecutionFilter
{
public:
AssociationExecutionFilter();
AssociationExecutionFilter(Aws::Utils::Json::JsonView jsonValue);
AssociationExecutionFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The key value used in the request.</p>
*/
inline const AssociationExecutionFilterKey& GetKey() const{ return m_key; }
/**
* <p>The key value used in the request.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The key value used in the request.</p>
*/
inline void SetKey(const AssociationExecutionFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The key value used in the request.</p>
*/
inline void SetKey(AssociationExecutionFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The key value used in the request.</p>
*/
inline AssociationExecutionFilter& WithKey(const AssociationExecutionFilterKey& value) { SetKey(value); return *this;}
/**
* <p>The key value used in the request.</p>
*/
inline AssociationExecutionFilter& WithKey(AssociationExecutionFilterKey&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The value specified for the key.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value specified for the key.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value specified for the key.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value specified for the key.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value specified for the key.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value specified for the key.</p>
*/
inline AssociationExecutionFilter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value specified for the key.</p>
*/
inline AssociationExecutionFilter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value specified for the key.</p>
*/
inline AssociationExecutionFilter& WithValue(const char* value) { SetValue(value); return *this;}
/**
* <p>The filter type specified in the request.</p>
*/
inline const AssociationFilterOperatorType& GetType() const{ return m_type; }
/**
* <p>The filter type specified in the request.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The filter type specified in the request.</p>
*/
inline void SetType(const AssociationFilterOperatorType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The filter type specified in the request.</p>
*/
inline void SetType(AssociationFilterOperatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The filter type specified in the request.</p>
*/
inline AssociationExecutionFilter& WithType(const AssociationFilterOperatorType& value) { SetType(value); return *this;}
/**
* <p>The filter type specified in the request.</p>
*/
inline AssociationExecutionFilter& WithType(AssociationFilterOperatorType&& value) { SetType(std::move(value)); return *this;}
private:
AssociationExecutionFilterKey m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
AssociationFilterOperatorType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AssociationExecutionFilterKey
{
NOT_SET,
ExecutionId,
Status,
CreatedTime
};
namespace AssociationExecutionFilterKeyMapper
{
AWS_SSM_API AssociationExecutionFilterKey GetAssociationExecutionFilterKeyForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAssociationExecutionFilterKey(AssociationExecutionFilterKey value);
} // namespace AssociationExecutionFilterKeyMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,423 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/ssm/model/OutputSource.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Includes information about the specified association execution.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationExecutionTarget">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationExecutionTarget
{
public:
AssociationExecutionTarget();
AssociationExecutionTarget(Aws::Utils::Json::JsonView jsonValue);
AssociationExecutionTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The association ID.</p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p>The association ID.</p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p>The association ID.</p>
*/
inline AssociationExecutionTarget& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p>The association ID.</p>
*/
inline AssociationExecutionTarget& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p>The association ID.</p>
*/
inline AssociationExecutionTarget& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
/**
* <p>The association version.</p>
*/
inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
/**
* <p>The association version.</p>
*/
inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
/**
* <p>The association version.</p>
*/
inline AssociationExecutionTarget& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
/**
* <p>The association version.</p>
*/
inline AssociationExecutionTarget& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
/**
* <p>The association version.</p>
*/
inline AssociationExecutionTarget& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
/**
* <p>The execution ID.</p>
*/
inline const Aws::String& GetExecutionId() const{ return m_executionId; }
/**
* <p>The execution ID.</p>
*/
inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
/**
* <p>The execution ID.</p>
*/
inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; }
/**
* <p>The execution ID.</p>
*/
inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); }
/**
* <p>The execution ID.</p>
*/
inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); }
/**
* <p>The execution ID.</p>
*/
inline AssociationExecutionTarget& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;}
/**
* <p>The execution ID.</p>
*/
inline AssociationExecutionTarget& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;}
/**
* <p>The execution ID.</p>
*/
inline AssociationExecutionTarget& WithExecutionId(const char* value) { SetExecutionId(value); return *this;}
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline AssociationExecutionTarget& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline AssociationExecutionTarget& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The resource ID, for example, the instance ID where the association ran.</p>
*/
inline AssociationExecutionTarget& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The resource type, for example, instance.</p>
*/
inline const Aws::String& GetResourceType() const{ return m_resourceType; }
/**
* <p>The resource type, for example, instance.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>The resource type, for example, instance.</p>
*/
inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>The resource type, for example, instance.</p>
*/
inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>The resource type, for example, instance.</p>
*/
inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
/**
* <p>The resource type, for example, instance.</p>
*/
inline AssociationExecutionTarget& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
/**
* <p>The resource type, for example, instance.</p>
*/
inline AssociationExecutionTarget& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
/**
* <p>The resource type, for example, instance.</p>
*/
inline AssociationExecutionTarget& WithResourceType(const char* value) { SetResourceType(value); return *this;}
/**
* <p>The association execution status.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The association execution status.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The association execution status.</p>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The association execution status.</p>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The association execution status.</p>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The association execution status.</p>
*/
inline AssociationExecutionTarget& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The association execution status.</p>
*/
inline AssociationExecutionTarget& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The association execution status.</p>
*/
inline AssociationExecutionTarget& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>Detailed information about the execution status.</p>
*/
inline const Aws::String& GetDetailedStatus() const{ return m_detailedStatus; }
/**
* <p>Detailed information about the execution status.</p>
*/
inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
/**
* <p>Detailed information about the execution status.</p>
*/
inline void SetDetailedStatus(const Aws::String& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = value; }
/**
* <p>Detailed information about the execution status.</p>
*/
inline void SetDetailedStatus(Aws::String&& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = std::move(value); }
/**
* <p>Detailed information about the execution status.</p>
*/
inline void SetDetailedStatus(const char* value) { m_detailedStatusHasBeenSet = true; m_detailedStatus.assign(value); }
/**
* <p>Detailed information about the execution status.</p>
*/
inline AssociationExecutionTarget& WithDetailedStatus(const Aws::String& value) { SetDetailedStatus(value); return *this;}
/**
* <p>Detailed information about the execution status.</p>
*/
inline AssociationExecutionTarget& WithDetailedStatus(Aws::String&& value) { SetDetailedStatus(std::move(value)); return *this;}
/**
* <p>Detailed information about the execution status.</p>
*/
inline AssociationExecutionTarget& WithDetailedStatus(const char* value) { SetDetailedStatus(value); return *this;}
/**
* <p>The date of the last execution.</p>
*/
inline const Aws::Utils::DateTime& GetLastExecutionDate() const{ return m_lastExecutionDate; }
/**
* <p>The date of the last execution.</p>
*/
inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
/**
* <p>The date of the last execution.</p>
*/
inline void SetLastExecutionDate(const Aws::Utils::DateTime& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = value; }
/**
* <p>The date of the last execution.</p>
*/
inline void SetLastExecutionDate(Aws::Utils::DateTime&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::move(value); }
/**
* <p>The date of the last execution.</p>
*/
inline AssociationExecutionTarget& WithLastExecutionDate(const Aws::Utils::DateTime& value) { SetLastExecutionDate(value); return *this;}
/**
* <p>The date of the last execution.</p>
*/
inline AssociationExecutionTarget& WithLastExecutionDate(Aws::Utils::DateTime&& value) { SetLastExecutionDate(std::move(value)); return *this;}
/**
* <p>The location where the association details are saved.</p>
*/
inline const OutputSource& GetOutputSource() const{ return m_outputSource; }
/**
* <p>The location where the association details are saved.</p>
*/
inline bool OutputSourceHasBeenSet() const { return m_outputSourceHasBeenSet; }
/**
* <p>The location where the association details are saved.</p>
*/
inline void SetOutputSource(const OutputSource& value) { m_outputSourceHasBeenSet = true; m_outputSource = value; }
/**
* <p>The location where the association details are saved.</p>
*/
inline void SetOutputSource(OutputSource&& value) { m_outputSourceHasBeenSet = true; m_outputSource = std::move(value); }
/**
* <p>The location where the association details are saved.</p>
*/
inline AssociationExecutionTarget& WithOutputSource(const OutputSource& value) { SetOutputSource(value); return *this;}
/**
* <p>The location where the association details are saved.</p>
*/
inline AssociationExecutionTarget& WithOutputSource(OutputSource&& value) { SetOutputSource(std::move(value)); return *this;}
private:
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
Aws::String m_associationVersion;
bool m_associationVersionHasBeenSet;
Aws::String m_executionId;
bool m_executionIdHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_resourceType;
bool m_resourceTypeHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_detailedStatus;
bool m_detailedStatusHasBeenSet;
Aws::Utils::DateTime m_lastExecutionDate;
bool m_lastExecutionDateHasBeenSet;
OutputSource m_outputSource;
bool m_outputSourceHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* 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/model/AssociationExecutionTargetsFilterKey.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Filters for the association execution.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationExecutionTargetsFilter">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationExecutionTargetsFilter
{
public:
AssociationExecutionTargetsFilter();
AssociationExecutionTargetsFilter(Aws::Utils::Json::JsonView jsonValue);
AssociationExecutionTargetsFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The key value used in the request.</p>
*/
inline const AssociationExecutionTargetsFilterKey& GetKey() const{ return m_key; }
/**
* <p>The key value used in the request.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The key value used in the request.</p>
*/
inline void SetKey(const AssociationExecutionTargetsFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The key value used in the request.</p>
*/
inline void SetKey(AssociationExecutionTargetsFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The key value used in the request.</p>
*/
inline AssociationExecutionTargetsFilter& WithKey(const AssociationExecutionTargetsFilterKey& value) { SetKey(value); return *this;}
/**
* <p>The key value used in the request.</p>
*/
inline AssociationExecutionTargetsFilter& WithKey(AssociationExecutionTargetsFilterKey&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The value specified for the key.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value specified for the key.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value specified for the key.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value specified for the key.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value specified for the key.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value specified for the key.</p>
*/
inline AssociationExecutionTargetsFilter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value specified for the key.</p>
*/
inline AssociationExecutionTargetsFilter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value specified for the key.</p>
*/
inline AssociationExecutionTargetsFilter& WithValue(const char* value) { SetValue(value); return *this;}
private:
AssociationExecutionTargetsFilterKey m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AssociationExecutionTargetsFilterKey
{
NOT_SET,
Status,
ResourceId,
ResourceType
};
namespace AssociationExecutionTargetsFilterKeyMapper
{
AWS_SSM_API AssociationExecutionTargetsFilterKey GetAssociationExecutionTargetsFilterKeyForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAssociationExecutionTargetsFilterKey(AssociationExecutionTargetsFilterKey value);
} // namespace AssociationExecutionTargetsFilterKeyMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* 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/model/AssociationFilterKey.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Describes a filter.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationFilter">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationFilter
{
public:
AssociationFilter();
AssociationFilter(Aws::Utils::Json::JsonView jsonValue);
AssociationFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the filter.</p>
*/
inline const AssociationFilterKey& GetKey() const{ return m_key; }
/**
* <p>The name of the filter.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The name of the filter.</p>
*/
inline void SetKey(const AssociationFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The name of the filter.</p>
*/
inline void SetKey(AssociationFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The name of the filter.</p>
*/
inline AssociationFilter& WithKey(const AssociationFilterKey& value) { SetKey(value); return *this;}
/**
* <p>The name of the filter.</p>
*/
inline AssociationFilter& WithKey(AssociationFilterKey&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The filter value.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The filter value.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The filter value.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The filter value.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The filter value.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The filter value.</p>
*/
inline AssociationFilter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The filter value.</p>
*/
inline AssociationFilter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The filter value.</p>
*/
inline AssociationFilter& WithValue(const char* value) { SetValue(value); return *this;}
private:
AssociationFilterKey m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,37 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AssociationFilterKey
{
NOT_SET,
InstanceId,
Name,
AssociationId,
AssociationStatusName,
LastExecutedBefore,
LastExecutedAfter,
AssociationName,
ResourceGroupName
};
namespace AssociationFilterKeyMapper
{
AWS_SSM_API AssociationFilterKey GetAssociationFilterKeyForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAssociationFilterKey(AssociationFilterKey value);
} // namespace AssociationFilterKeyMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AssociationFilterOperatorType
{
NOT_SET,
EQUAL,
LESS_THAN,
GREATER_THAN
};
namespace AssociationFilterOperatorTypeMapper
{
AWS_SSM_API AssociationFilterOperatorType GetAssociationFilterOperatorTypeForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAssociationFilterOperatorType(AssociationFilterOperatorType value);
} // namespace AssociationFilterOperatorTypeMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,208 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Information about the association.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationOverview">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationOverview
{
public:
AssociationOverview();
AssociationOverview(Aws::Utils::Json::JsonView jsonValue);
AssociationOverview& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline AssociationOverview& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline AssociationOverview& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the association. Status can be: Pending, Success, or
* Failed.</p>
*/
inline AssociationOverview& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>A detailed status of the association.</p>
*/
inline const Aws::String& GetDetailedStatus() const{ return m_detailedStatus; }
/**
* <p>A detailed status of the association.</p>
*/
inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
/**
* <p>A detailed status of the association.</p>
*/
inline void SetDetailedStatus(const Aws::String& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = value; }
/**
* <p>A detailed status of the association.</p>
*/
inline void SetDetailedStatus(Aws::String&& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = std::move(value); }
/**
* <p>A detailed status of the association.</p>
*/
inline void SetDetailedStatus(const char* value) { m_detailedStatusHasBeenSet = true; m_detailedStatus.assign(value); }
/**
* <p>A detailed status of the association.</p>
*/
inline AssociationOverview& WithDetailedStatus(const Aws::String& value) { SetDetailedStatus(value); return *this;}
/**
* <p>A detailed status of the association.</p>
*/
inline AssociationOverview& WithDetailedStatus(Aws::String&& value) { SetDetailedStatus(std::move(value)); return *this;}
/**
* <p>A detailed status of the association.</p>
*/
inline AssociationOverview& WithDetailedStatus(const char* value) { SetDetailedStatus(value); return *this;}
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline const Aws::Map<Aws::String, int>& GetAssociationStatusAggregatedCount() const{ return m_associationStatusAggregatedCount; }
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline bool AssociationStatusAggregatedCountHasBeenSet() const { return m_associationStatusAggregatedCountHasBeenSet; }
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline void SetAssociationStatusAggregatedCount(const Aws::Map<Aws::String, int>& value) { m_associationStatusAggregatedCountHasBeenSet = true; m_associationStatusAggregatedCount = value; }
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline void SetAssociationStatusAggregatedCount(Aws::Map<Aws::String, int>&& value) { m_associationStatusAggregatedCountHasBeenSet = true; m_associationStatusAggregatedCount = std::move(value); }
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline AssociationOverview& WithAssociationStatusAggregatedCount(const Aws::Map<Aws::String, int>& value) { SetAssociationStatusAggregatedCount(value); return *this;}
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline AssociationOverview& WithAssociationStatusAggregatedCount(Aws::Map<Aws::String, int>&& value) { SetAssociationStatusAggregatedCount(std::move(value)); return *this;}
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline AssociationOverview& AddAssociationStatusAggregatedCount(const Aws::String& key, int value) { m_associationStatusAggregatedCountHasBeenSet = true; m_associationStatusAggregatedCount.emplace(key, value); return *this; }
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline AssociationOverview& AddAssociationStatusAggregatedCount(Aws::String&& key, int value) { m_associationStatusAggregatedCountHasBeenSet = true; m_associationStatusAggregatedCount.emplace(std::move(key), value); return *this; }
/**
* <p>Returns the number of targets for the association status. For example, if you
* created an association with two instances, and one of them was successful, this
* would return the count of instances by status.</p>
*/
inline AssociationOverview& AddAssociationStatusAggregatedCount(const char* key, int value) { m_associationStatusAggregatedCountHasBeenSet = true; m_associationStatusAggregatedCount.emplace(key, value); return *this; }
private:
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_detailedStatus;
bool m_detailedStatusHasBeenSet;
Aws::Map<Aws::String, int> m_associationStatusAggregatedCount;
bool m_associationStatusAggregatedCountHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,202 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/ssm/model/AssociationStatusName.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Describes an association status.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationStatus">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationStatus
{
public:
AssociationStatus();
AssociationStatus(Aws::Utils::Json::JsonView jsonValue);
AssociationStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The date when the status changed.</p>
*/
inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
/**
* <p>The date when the status changed.</p>
*/
inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
/**
* <p>The date when the status changed.</p>
*/
inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
/**
* <p>The date when the status changed.</p>
*/
inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
/**
* <p>The date when the status changed.</p>
*/
inline AssociationStatus& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
/**
* <p>The date when the status changed.</p>
*/
inline AssociationStatus& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
/**
* <p>The status.</p>
*/
inline const AssociationStatusName& GetName() const{ return m_name; }
/**
* <p>The status.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The status.</p>
*/
inline void SetName(const AssociationStatusName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The status.</p>
*/
inline void SetName(AssociationStatusName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The status.</p>
*/
inline AssociationStatus& WithName(const AssociationStatusName& value) { SetName(value); return *this;}
/**
* <p>The status.</p>
*/
inline AssociationStatus& WithName(AssociationStatusName&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The reason for the status.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The reason for the status.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The reason for the status.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The reason for the status.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The reason for the status.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The reason for the status.</p>
*/
inline AssociationStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The reason for the status.</p>
*/
inline AssociationStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The reason for the status.</p>
*/
inline AssociationStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>A user-defined string.</p>
*/
inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
/**
* <p>A user-defined string.</p>
*/
inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
/**
* <p>A user-defined string.</p>
*/
inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
/**
* <p>A user-defined string.</p>
*/
inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
/**
* <p>A user-defined string.</p>
*/
inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
/**
* <p>A user-defined string.</p>
*/
inline AssociationStatus& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;}
/**
* <p>A user-defined string.</p>
*/
inline AssociationStatus& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;}
/**
* <p>A user-defined string.</p>
*/
inline AssociationStatus& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
private:
Aws::Utils::DateTime m_date;
bool m_dateHasBeenSet;
AssociationStatusName m_name;
bool m_nameHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_additionalInfo;
bool m_additionalInfoHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AssociationStatusName
{
NOT_SET,
Pending,
Success,
Failed
};
namespace AssociationStatusNameMapper
{
AWS_SSM_API AssociationStatusName GetAssociationStatusNameForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAssociationStatusName(AssociationStatusName value);
} // namespace AssociationStatusNameMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AssociationSyncCompliance
{
NOT_SET,
AUTO,
MANUAL
};
namespace AssociationSyncComplianceMapper
{
AWS_SSM_API AssociationSyncCompliance GetAssociationSyncComplianceForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAssociationSyncCompliance(AssociationSyncCompliance value);
} // namespace AssociationSyncComplianceMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,925 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
#include <aws/ssm/model/AssociationComplianceSeverity.h>
#include <aws/ssm/model/AssociationSyncCompliance.h>
#include <aws/ssm/model/Target.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Information about the association version.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationVersionInfo">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AssociationVersionInfo
{
public:
AssociationVersionInfo();
AssociationVersionInfo(Aws::Utils::Json::JsonView jsonValue);
AssociationVersionInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline AssociationVersionInfo& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline AssociationVersionInfo& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p>The ID created by the system when the association was created.</p>
*/
inline AssociationVersionInfo& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
/**
* <p>The association version.</p>
*/
inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
/**
* <p>The association version.</p>
*/
inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
/**
* <p>The association version.</p>
*/
inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
/**
* <p>The association version.</p>
*/
inline AssociationVersionInfo& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
/**
* <p>The association version.</p>
*/
inline AssociationVersionInfo& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
/**
* <p>The association version.</p>
*/
inline AssociationVersionInfo& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
/**
* <p>The date the association version was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
/**
* <p>The date the association version was created.</p>
*/
inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
/**
* <p>The date the association version was created.</p>
*/
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
/**
* <p>The date the association version was created.</p>
*/
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
/**
* <p>The date the association version was created.</p>
*/
inline AssociationVersionInfo& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
/**
* <p>The date the association version was created.</p>
*/
inline AssociationVersionInfo& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
/**
* <p>The name specified when the association was created.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name specified when the association was created.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name specified when the association was created.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name specified when the association was created.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name specified when the association was created.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name specified when the association was created.</p>
*/
inline AssociationVersionInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name specified when the association was created.</p>
*/
inline AssociationVersionInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name specified when the association was created.</p>
*/
inline AssociationVersionInfo& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline AssociationVersionInfo& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline AssociationVersionInfo& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
/**
* <p>The version of a Systems Manager document used when the association version
* was created.</p>
*/
inline AssociationVersionInfo& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>Parameters specified when the association version was created.</p>
*/
inline AssociationVersionInfo& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline AssociationVersionInfo& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline AssociationVersionInfo& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline AssociationVersionInfo& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
/**
* <p>The targets specified for the association when the association version was
* created. </p>
*/
inline AssociationVersionInfo& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline AssociationVersionInfo& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline AssociationVersionInfo& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
/**
* <p>The cron or rate schedule specified for the association when the association
* version was created.</p>
*/
inline AssociationVersionInfo& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
/**
* <p>The location in Amazon S3 specified for the association when the association
* version was created.</p>
*/
inline const InstanceAssociationOutputLocation& GetOutputLocation() const{ return m_outputLocation; }
/**
* <p>The location in Amazon S3 specified for the association when the association
* version was created.</p>
*/
inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
/**
* <p>The location in Amazon S3 specified for the association when the association
* version was created.</p>
*/
inline void SetOutputLocation(const InstanceAssociationOutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; }
/**
* <p>The location in Amazon S3 specified for the association when the association
* version was created.</p>
*/
inline void SetOutputLocation(InstanceAssociationOutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); }
/**
* <p>The location in Amazon S3 specified for the association when the association
* version was created.</p>
*/
inline AssociationVersionInfo& WithOutputLocation(const InstanceAssociationOutputLocation& value) { SetOutputLocation(value); return *this;}
/**
* <p>The location in Amazon S3 specified for the association when the association
* version was created.</p>
*/
inline AssociationVersionInfo& WithOutputLocation(InstanceAssociationOutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline const Aws::String& GetAssociationName() const{ return m_associationName; }
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline void SetAssociationName(const Aws::String& value) { m_associationNameHasBeenSet = true; m_associationName = value; }
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline void SetAssociationName(Aws::String&& value) { m_associationNameHasBeenSet = true; m_associationName = std::move(value); }
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline void SetAssociationName(const char* value) { m_associationNameHasBeenSet = true; m_associationName.assign(value); }
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline AssociationVersionInfo& WithAssociationName(const Aws::String& value) { SetAssociationName(value); return *this;}
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline AssociationVersionInfo& WithAssociationName(Aws::String&& value) { SetAssociationName(std::move(value)); return *this;}
/**
* <p>The name specified for the association version when the association version
* was created.</p>
*/
inline AssociationVersionInfo& WithAssociationName(const char* value) { SetAssociationName(value); return *this;}
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline AssociationVersionInfo& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline AssociationVersionInfo& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline AssociationVersionInfo& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline AssociationVersionInfo& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;}
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline AssociationVersionInfo& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline AssociationVersionInfo& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
/**
* <p>The severity level that is assigned to the association.</p>
*/
inline const AssociationComplianceSeverity& GetComplianceSeverity() const{ return m_complianceSeverity; }
/**
* <p>The severity level that is assigned to the association.</p>
*/
inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
/**
* <p>The severity level that is assigned to the association.</p>
*/
inline void SetComplianceSeverity(const AssociationComplianceSeverity& value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = value; }
/**
* <p>The severity level that is assigned to the association.</p>
*/
inline void SetComplianceSeverity(AssociationComplianceSeverity&& value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = std::move(value); }
/**
* <p>The severity level that is assigned to the association.</p>
*/
inline AssociationVersionInfo& WithComplianceSeverity(const AssociationComplianceSeverity& value) { SetComplianceSeverity(value); return *this;}
/**
* <p>The severity level that is assigned to the association.</p>
*/
inline AssociationVersionInfo& WithComplianceSeverity(AssociationComplianceSeverity&& value) { SetComplianceSeverity(std::move(value)); return *this;}
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>.</p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline const AssociationSyncCompliance& GetSyncCompliance() const{ return m_syncCompliance; }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>.</p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>.</p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline void SetSyncCompliance(const AssociationSyncCompliance& value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = value; }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>.</p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline void SetSyncCompliance(AssociationSyncCompliance&& value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = std::move(value); }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>.</p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline AssociationVersionInfo& WithSyncCompliance(const AssociationSyncCompliance& value) { SetSyncCompliance(value); return *this;}
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>.</p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline AssociationVersionInfo& WithSyncCompliance(AssociationSyncCompliance&& value) { SetSyncCompliance(std::move(value)); return *this;}
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline bool GetApplyOnlyAtCronInterval() const{ return m_applyOnlyAtCronInterval; }
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline void SetApplyOnlyAtCronInterval(bool value) { m_applyOnlyAtCronIntervalHasBeenSet = true; m_applyOnlyAtCronInterval = value; }
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline AssociationVersionInfo& WithApplyOnlyAtCronInterval(bool value) { SetApplyOnlyAtCronInterval(value); return *this;}
private:
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
Aws::String m_associationVersion;
bool m_associationVersionHasBeenSet;
Aws::Utils::DateTime m_createdDate;
bool m_createdDateHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_documentVersion;
bool m_documentVersionHasBeenSet;
Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_parameters;
bool m_parametersHasBeenSet;
Aws::Vector<Target> m_targets;
bool m_targetsHasBeenSet;
Aws::String m_scheduleExpression;
bool m_scheduleExpressionHasBeenSet;
InstanceAssociationOutputLocation m_outputLocation;
bool m_outputLocationHasBeenSet;
Aws::String m_associationName;
bool m_associationNameHasBeenSet;
Aws::String m_maxErrors;
bool m_maxErrorsHasBeenSet;
Aws::String m_maxConcurrency;
bool m_maxConcurrencyHasBeenSet;
AssociationComplianceSeverity m_complianceSeverity;
bool m_complianceSeverityHasBeenSet;
AssociationSyncCompliance m_syncCompliance;
bool m_syncComplianceHasBeenSet;
bool m_applyOnlyAtCronInterval;
bool m_applyOnlyAtCronIntervalHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,236 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/AttachmentHashType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>A structure that includes attributes that describe a document
* attachment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AttachmentContent">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AttachmentContent
{
public:
AttachmentContent();
AttachmentContent(Aws::Utils::Json::JsonView jsonValue);
AttachmentContent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of an attachment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of an attachment.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of an attachment.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of an attachment.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of an attachment.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of an attachment.</p>
*/
inline AttachmentContent& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of an attachment.</p>
*/
inline AttachmentContent& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of an attachment.</p>
*/
inline AttachmentContent& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The size of an attachment in bytes.</p>
*/
inline long long GetSize() const{ return m_size; }
/**
* <p>The size of an attachment in bytes.</p>
*/
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
/**
* <p>The size of an attachment in bytes.</p>
*/
inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
/**
* <p>The size of an attachment in bytes.</p>
*/
inline AttachmentContent& WithSize(long long value) { SetSize(value); return *this;}
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline const Aws::String& GetHash() const{ return m_hash; }
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline void SetHash(const Aws::String& value) { m_hashHasBeenSet = true; m_hash = value; }
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline void SetHash(Aws::String&& value) { m_hashHasBeenSet = true; m_hash = std::move(value); }
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline void SetHash(const char* value) { m_hashHasBeenSet = true; m_hash.assign(value); }
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline AttachmentContent& WithHash(const Aws::String& value) { SetHash(value); return *this;}
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline AttachmentContent& WithHash(Aws::String&& value) { SetHash(std::move(value)); return *this;}
/**
* <p>The cryptographic hash value of the document content.</p>
*/
inline AttachmentContent& WithHash(const char* value) { SetHash(value); return *this;}
/**
* <p>The hash algorithm used to calculate the hash value.</p>
*/
inline const AttachmentHashType& GetHashType() const{ return m_hashType; }
/**
* <p>The hash algorithm used to calculate the hash value.</p>
*/
inline bool HashTypeHasBeenSet() const { return m_hashTypeHasBeenSet; }
/**
* <p>The hash algorithm used to calculate the hash value.</p>
*/
inline void SetHashType(const AttachmentHashType& value) { m_hashTypeHasBeenSet = true; m_hashType = value; }
/**
* <p>The hash algorithm used to calculate the hash value.</p>
*/
inline void SetHashType(AttachmentHashType&& value) { m_hashTypeHasBeenSet = true; m_hashType = std::move(value); }
/**
* <p>The hash algorithm used to calculate the hash value.</p>
*/
inline AttachmentContent& WithHashType(const AttachmentHashType& value) { SetHashType(value); return *this;}
/**
* <p>The hash algorithm used to calculate the hash value.</p>
*/
inline AttachmentContent& WithHashType(AttachmentHashType&& value) { SetHashType(std::move(value)); return *this;}
/**
* <p>The URL location of the attachment content.</p>
*/
inline const Aws::String& GetUrl() const{ return m_url; }
/**
* <p>The URL location of the attachment content.</p>
*/
inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
/**
* <p>The URL location of the attachment content.</p>
*/
inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
/**
* <p>The URL location of the attachment content.</p>
*/
inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
/**
* <p>The URL location of the attachment content.</p>
*/
inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
/**
* <p>The URL location of the attachment content.</p>
*/
inline AttachmentContent& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
/**
* <p>The URL location of the attachment content.</p>
*/
inline AttachmentContent& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
/**
* <p>The URL location of the attachment content.</p>
*/
inline AttachmentContent& WithUrl(const char* value) { SetUrl(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
long long m_size;
bool m_sizeHasBeenSet;
Aws::String m_hash;
bool m_hashHasBeenSet;
AttachmentHashType m_hashType;
bool m_hashTypeHasBeenSet;
Aws::String m_url;
bool m_urlHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AttachmentHashType
{
NOT_SET,
Sha256
};
namespace AttachmentHashTypeMapper
{
AWS_SSM_API AttachmentHashType GetAttachmentHashTypeForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAttachmentHashType(AttachmentHashType value);
} // namespace AttachmentHashTypeMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>An attribute of an attachment, such as the attachment name.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AttachmentInformation">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AttachmentInformation
{
public:
AttachmentInformation();
AttachmentInformation(Aws::Utils::Json::JsonView jsonValue);
AttachmentInformation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the attachment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the attachment.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the attachment.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the attachment.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the attachment.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the attachment.</p>
*/
inline AttachmentInformation& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the attachment.</p>
*/
inline AttachmentInformation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the attachment.</p>
*/
inline AttachmentInformation& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,316 @@
/**
* 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/model/AttachmentsSourceKey.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Identifying information about a document attachment, including the file name
* and a key-value pair that identifies the location of an attachment to a
* document.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AttachmentsSource">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AttachmentsSource
{
public:
AttachmentsSource();
AttachmentsSource(Aws::Utils::Json::JsonView jsonValue);
AttachmentsSource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The key of a key-value pair that identifies the location of an attachment to
* a document.</p>
*/
inline const AttachmentsSourceKey& GetKey() const{ return m_key; }
/**
* <p>The key of a key-value pair that identifies the location of an attachment to
* a document.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The key of a key-value pair that identifies the location of an attachment to
* a document.</p>
*/
inline void SetKey(const AttachmentsSourceKey& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The key of a key-value pair that identifies the location of an attachment to
* a document.</p>
*/
inline void SetKey(AttachmentsSourceKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The key of a key-value pair that identifies the location of an attachment to
* a document.</p>
*/
inline AttachmentsSource& WithKey(const AttachmentsSourceKey& value) { SetKey(value); return *this;}
/**
* <p>The key of a key-value pair that identifies the location of an attachment to
* a document.</p>
*/
inline AttachmentsSource& WithKey(AttachmentsSourceKey&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline AttachmentsSource& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline AttachmentsSource& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline AttachmentsSource& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline AttachmentsSource& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
/**
* <p>The value of a key-value pair that identifies the location of an attachment
* to a document. The format for <b>Value</b> depends on the type of key you
* specify.</p> <ul> <li> <p>For the key <i>SourceUrl</i>, the value is an S3
* bucket location. For example:</p> <p> <code>"Values": [
* "s3://my-bucket/my-folder" ]</code> </p> </li> <li> <p>For the key
* <i>S3FileUrl</i>, the value is a file in an S3 bucket. For example:</p> <p>
* <code>"Values": [ "s3://my-bucket/my-folder/my-file.py" ]</code> </p> </li> <li>
* <p>For the key <i>AttachmentReference</i>, the value is constructed from the
* name of another SSM document in your account, a version number of that document,
* and a file attached to that document version that you want to reuse. For
* example:</p> <p> <code>"Values": [ "MyOtherDocument/3/my-other-file.py" ]</code>
* </p> <p>However, if the SSM document is shared with you from another account,
* the full SSM document ARN must be specified instead of the document name only.
* For example:</p> <p> <code>"Values": [
* "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py"
* ]</code> </p> </li> </ul>
*/
inline AttachmentsSource& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>The name of the document attachment file.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the document attachment file.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the document attachment file.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the document attachment file.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the document attachment file.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the document attachment file.</p>
*/
inline AttachmentsSource& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the document attachment file.</p>
*/
inline AttachmentsSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the document attachment file.</p>
*/
inline AttachmentsSource& WithName(const char* value) { SetName(value); return *this;}
private:
AttachmentsSourceKey m_key;
bool m_keyHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AttachmentsSourceKey
{
NOT_SET,
SourceUrl,
S3FileUrl,
AttachmentReference
};
namespace AttachmentsSourceKeyMapper
{
AWS_SSM_API AttachmentsSourceKey GetAttachmentsSourceKeyForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAttachmentsSourceKey(AttachmentsSourceKey value);
} // namespace AttachmentsSourceKeyMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,152 @@
/**
* 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/model/AutomationExecutionFilterKey.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>A filter used to match specific automation executions. This is used to limit
* the scope of Automation execution information returned.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AutomationExecutionFilter">AWS
* API Reference</a></p>
*/
class AWS_SSM_API AutomationExecutionFilter
{
public:
AutomationExecutionFilter();
AutomationExecutionFilter(Aws::Utils::Json::JsonView jsonValue);
AutomationExecutionFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>One or more keys to limit the results. Valid filter keys include the
* following: DocumentNamePrefix, ExecutionStatus, ExecutionId, ParentExecutionId,
* CurrentAction, StartTimeBefore, StartTimeAfter.</p>
*/
inline const AutomationExecutionFilterKey& GetKey() const{ return m_key; }
/**
* <p>One or more keys to limit the results. Valid filter keys include the
* following: DocumentNamePrefix, ExecutionStatus, ExecutionId, ParentExecutionId,
* CurrentAction, StartTimeBefore, StartTimeAfter.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>One or more keys to limit the results. Valid filter keys include the
* following: DocumentNamePrefix, ExecutionStatus, ExecutionId, ParentExecutionId,
* CurrentAction, StartTimeBefore, StartTimeAfter.</p>
*/
inline void SetKey(const AutomationExecutionFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>One or more keys to limit the results. Valid filter keys include the
* following: DocumentNamePrefix, ExecutionStatus, ExecutionId, ParentExecutionId,
* CurrentAction, StartTimeBefore, StartTimeAfter.</p>
*/
inline void SetKey(AutomationExecutionFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>One or more keys to limit the results. Valid filter keys include the
* following: DocumentNamePrefix, ExecutionStatus, ExecutionId, ParentExecutionId,
* CurrentAction, StartTimeBefore, StartTimeAfter.</p>
*/
inline AutomationExecutionFilter& WithKey(const AutomationExecutionFilterKey& value) { SetKey(value); return *this;}
/**
* <p>One or more keys to limit the results. Valid filter keys include the
* following: DocumentNamePrefix, ExecutionStatus, ExecutionId, ParentExecutionId,
* CurrentAction, StartTimeBefore, StartTimeAfter.</p>
*/
inline AutomationExecutionFilter& WithKey(AutomationExecutionFilterKey&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline AutomationExecutionFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline AutomationExecutionFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline AutomationExecutionFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline AutomationExecutionFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
/**
* <p>The values used to limit the execution information associated with the
* filter's key.</p>
*/
inline AutomationExecutionFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
private:
AutomationExecutionFilterKey m_key;
bool m_keyHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AutomationExecutionFilterKey
{
NOT_SET,
DocumentNamePrefix,
ExecutionStatus,
ExecutionId,
ParentExecutionId,
CurrentAction,
StartTimeBefore,
StartTimeAfter,
AutomationType,
TagKey
};
namespace AutomationExecutionFilterKeyMapper
{
AWS_SSM_API AutomationExecutionFilterKey GetAutomationExecutionFilterKeyForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAutomationExecutionFilterKey(AutomationExecutionFilterKey value);
} // namespace AutomationExecutionFilterKeyMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,37 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AutomationExecutionStatus
{
NOT_SET,
Pending,
InProgress,
Waiting,
Success,
TimedOut,
Cancelling,
Cancelled,
Failed
};
namespace AutomationExecutionStatusMapper
{
AWS_SSM_API AutomationExecutionStatus GetAutomationExecutionStatusForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAutomationExecutionStatus(AutomationExecutionStatus value);
} // namespace AutomationExecutionStatusMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class AutomationType
{
NOT_SET,
CrossAccount,
Local
};
namespace AutomationTypeMapper
{
AWS_SSM_API AutomationType GetAutomationTypeForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForAutomationType(AutomationType value);
} // namespace AutomationTypeMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class CalendarState
{
NOT_SET,
OPEN,
CLOSED
};
namespace CalendarStateMapper
{
AWS_SSM_API CalendarState GetCalendarStateForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForCalendarState(CalendarState value);
} // namespace CalendarStateMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelCommandRequest">AWS
* API Reference</a></p>
*/
class AWS_SSM_API CancelCommandRequest : public SSMRequest
{
public:
CancelCommandRequest();
// 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 "CancelCommand"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline const Aws::String& GetCommandId() const{ return m_commandId; }
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline CancelCommandRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline CancelCommandRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
/**
* <p>The ID of the command you want to cancel.</p>
*/
inline CancelCommandRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline CancelCommandRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline CancelCommandRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline CancelCommandRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline CancelCommandRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
/**
* <p>(Optional) A list of instance IDs on which you want to cancel the command. If
* not provided, the command is canceled on every instance on which it was
* requested.</p>
*/
inline CancelCommandRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
private:
Aws::String m_commandId;
bool m_commandIdHasBeenSet;
Aws::Vector<Aws::String> m_instanceIds;
bool m_instanceIdsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Whether or not the command was successfully canceled. There is no guarantee
* that a request can be canceled.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelCommandResult">AWS
* API Reference</a></p>
*/
class AWS_SSM_API CancelCommandResult
{
public:
CancelCommandResult();
CancelCommandResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CancelCommandResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 AWS_SSM_API CancelMaintenanceWindowExecutionRequest : public SSMRequest
{
public:
CancelMaintenanceWindowExecutionRequest();
// 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 "CancelMaintenanceWindowExecution"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline const Aws::String& GetWindowExecutionId() const{ return m_windowExecutionId; }
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline bool WindowExecutionIdHasBeenSet() const { return m_windowExecutionIdHasBeenSet; }
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline void SetWindowExecutionId(const Aws::String& value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId = value; }
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline void SetWindowExecutionId(Aws::String&& value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId = std::move(value); }
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline void SetWindowExecutionId(const char* value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId.assign(value); }
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline CancelMaintenanceWindowExecutionRequest& WithWindowExecutionId(const Aws::String& value) { SetWindowExecutionId(value); return *this;}
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline CancelMaintenanceWindowExecutionRequest& WithWindowExecutionId(Aws::String&& value) { SetWindowExecutionId(std::move(value)); return *this;}
/**
* <p>The ID of the maintenance window execution to stop.</p>
*/
inline CancelMaintenanceWindowExecutionRequest& WithWindowExecutionId(const char* value) { SetWindowExecutionId(value); return *this;}
private:
Aws::String m_windowExecutionId;
bool m_windowExecutionIdHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CancelMaintenanceWindowExecutionResult
{
public:
CancelMaintenanceWindowExecutionResult();
CancelMaintenanceWindowExecutionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CancelMaintenanceWindowExecutionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the maintenance window execution that has been stopped.</p>
*/
inline const Aws::String& GetWindowExecutionId() const{ return m_windowExecutionId; }
/**
* <p>The ID of the maintenance window execution that has been stopped.</p>
*/
inline void SetWindowExecutionId(const Aws::String& value) { m_windowExecutionId = value; }
/**
* <p>The ID of the maintenance window execution that has been stopped.</p>
*/
inline void SetWindowExecutionId(Aws::String&& value) { m_windowExecutionId = std::move(value); }
/**
* <p>The ID of the maintenance window execution that has been stopped.</p>
*/
inline void SetWindowExecutionId(const char* value) { m_windowExecutionId.assign(value); }
/**
* <p>The ID of the maintenance window execution that has been stopped.</p>
*/
inline CancelMaintenanceWindowExecutionResult& WithWindowExecutionId(const Aws::String& value) { SetWindowExecutionId(value); return *this;}
/**
* <p>The ID of the maintenance window execution that has been stopped.</p>
*/
inline CancelMaintenanceWindowExecutionResult& WithWindowExecutionId(Aws::String&& value) { SetWindowExecutionId(std::move(value)); return *this;}
/**
* <p>The ID of the maintenance window execution that has been stopped.</p>
*/
inline CancelMaintenanceWindowExecutionResult& WithWindowExecutionId(const char* value) { SetWindowExecutionId(value); return *this;}
private:
Aws::String m_windowExecutionId;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Configuration options for sending command output to CloudWatch
* Logs.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CloudWatchOutputConfig">AWS
* API Reference</a></p>
*/
class AWS_SSM_API CloudWatchOutputConfig
{
public:
CloudWatchOutputConfig();
CloudWatchOutputConfig(Aws::Utils::Json::JsonView jsonValue);
CloudWatchOutputConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline const Aws::String& GetCloudWatchLogGroupName() const{ return m_cloudWatchLogGroupName; }
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline bool CloudWatchLogGroupNameHasBeenSet() const { return m_cloudWatchLogGroupNameHasBeenSet; }
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline void SetCloudWatchLogGroupName(const Aws::String& value) { m_cloudWatchLogGroupNameHasBeenSet = true; m_cloudWatchLogGroupName = value; }
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline void SetCloudWatchLogGroupName(Aws::String&& value) { m_cloudWatchLogGroupNameHasBeenSet = true; m_cloudWatchLogGroupName = std::move(value); }
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline void SetCloudWatchLogGroupName(const char* value) { m_cloudWatchLogGroupNameHasBeenSet = true; m_cloudWatchLogGroupName.assign(value); }
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline CloudWatchOutputConfig& WithCloudWatchLogGroupName(const Aws::String& value) { SetCloudWatchLogGroupName(value); return *this;}
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline CloudWatchOutputConfig& WithCloudWatchLogGroupName(Aws::String&& value) { SetCloudWatchLogGroupName(std::move(value)); return *this;}
/**
* <p>The name of the CloudWatch log group where you want to send command output.
* If you don't specify a group name, Systems Manager automatically creates a log
* group for you. The log group uses the following naming format:
* aws/ssm/<i>SystemsManagerDocumentName</i>.</p>
*/
inline CloudWatchOutputConfig& WithCloudWatchLogGroupName(const char* value) { SetCloudWatchLogGroupName(value); return *this;}
/**
* <p>Enables Systems Manager to send command output to CloudWatch Logs.</p>
*/
inline bool GetCloudWatchOutputEnabled() const{ return m_cloudWatchOutputEnabled; }
/**
* <p>Enables Systems Manager to send command output to CloudWatch Logs.</p>
*/
inline bool CloudWatchOutputEnabledHasBeenSet() const { return m_cloudWatchOutputEnabledHasBeenSet; }
/**
* <p>Enables Systems Manager to send command output to CloudWatch Logs.</p>
*/
inline void SetCloudWatchOutputEnabled(bool value) { m_cloudWatchOutputEnabledHasBeenSet = true; m_cloudWatchOutputEnabled = value; }
/**
* <p>Enables Systems Manager to send command output to CloudWatch Logs.</p>
*/
inline CloudWatchOutputConfig& WithCloudWatchOutputEnabled(bool value) { SetCloudWatchOutputEnabled(value); return *this;}
private:
Aws::String m_cloudWatchLogGroupName;
bool m_cloudWatchLogGroupNameHasBeenSet;
bool m_cloudWatchOutputEnabled;
bool m_cloudWatchOutputEnabledHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,285 @@
/**
* 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/model/CommandFilterKey.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Describes a command filter.</p> <p>An instance ID can't be specified
* when a command status is <code>Pending</code> because the command hasn't run on
* the instance yet.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CommandFilter">AWS
* API Reference</a></p>
*/
class AWS_SSM_API CommandFilter
{
public:
CommandFilter();
CommandFilter(Aws::Utils::Json::JsonView jsonValue);
CommandFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the filter.</p>
*/
inline const CommandFilterKey& GetKey() const{ return m_key; }
/**
* <p>The name of the filter.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The name of the filter.</p>
*/
inline void SetKey(const CommandFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The name of the filter.</p>
*/
inline void SetKey(CommandFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The name of the filter.</p>
*/
inline CommandFilter& WithKey(const CommandFilterKey& value) { SetKey(value); return *this;}
/**
* <p>The name of the filter.</p>
*/
inline CommandFilter& WithKey(CommandFilterKey&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline CommandFilter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline CommandFilter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The filter value. Valid values for each filter key are as follows:</p> <ul>
* <li> <p> <b>InvokedAfter</b>: Specify a timestamp to limit your results. For
* example, specify <code>2018-07-07T00:00:00Z</code> to see a list of command
* executions occurring July 7, 2018, and later.</p> </li> <li> <p>
* <b>InvokedBefore</b>: Specify a timestamp to limit your results. For example,
* specify <code>2018-07-07T00:00:00Z</code> to see a list of command executions
* from before July 7, 2018.</p> </li> <li> <p> <b>Status</b>: Specify a valid
* command status to see a list of all command executions with that status. Status
* values you can specify include:</p> <ul> <li> <p> <code>Pending</code> </p>
* </li> <li> <p> <code>InProgress</code> </p> </li> <li> <p> <code>Success</code>
* </p> </li> <li> <p> <code>Cancelled</code> </p> </li> <li> <p>
* <code>Failed</code> </p> </li> <li> <p> <code>TimedOut</code> </p> </li> <li>
* <p> <code>Cancelling</code> </p> </li> </ul> </li> <li> <p> <b>DocumentName</b>:
* Specify name of the SSM document for which you want to see command execution
* results. For example, specify <code>AWS-RunPatchBaseline</code> to see command
* executions that used this SSM document to perform security patching operations
* on instances. </p> </li> <li> <p> <b>ExecutionStage</b>: Specify one of the
* following values:</p> <ul> <li> <p> <code>Executing</code>: Returns a list of
* command executions that are currently still running.</p> </li> <li> <p>
* <code>Complete</code>: Returns a list of command executions that have already
* completed. </p> </li> </ul> </li> </ul>
*/
inline CommandFilter& WithValue(const char* value) { SetValue(value); return *this;}
private:
CommandFilterKey m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class CommandFilterKey
{
NOT_SET,
InvokedAfter,
InvokedBefore,
Status,
ExecutionStage,
DocumentName
};
namespace CommandFilterKeyMapper
{
AWS_SSM_API CommandFilterKey GetCommandFilterKeyForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForCommandFilterKey(CommandFilterKey value);
} // namespace CommandFilterKeyMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,37 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class CommandInvocationStatus
{
NOT_SET,
Pending,
InProgress,
Delayed,
Success,
Cancelled,
TimedOut,
Failed,
Cancelling
};
namespace CommandInvocationStatusMapper
{
AWS_SSM_API CommandInvocationStatus GetCommandInvocationStatusForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForCommandInvocationStatus(CommandInvocationStatus value);
} // namespace CommandInvocationStatusMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,922 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/CommandPluginStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Describes plugin details.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CommandPlugin">AWS
* API Reference</a></p>
*/
class AWS_SSM_API CommandPlugin
{
public:
CommandPlugin();
CommandPlugin(Aws::Utils::Json::JsonView jsonValue);
CommandPlugin& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline CommandPlugin& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline CommandPlugin& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the plugin. Must be one of the following: aws:updateAgent,
* aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule,
* aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent. </p>
*/
inline CommandPlugin& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The status of this plugin. You can run a document with multiple plugins.</p>
*/
inline const CommandPluginStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of this plugin. You can run a document with multiple plugins.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of this plugin. You can run a document with multiple plugins.</p>
*/
inline void SetStatus(const CommandPluginStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of this plugin. You can run a document with multiple plugins.</p>
*/
inline void SetStatus(CommandPluginStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of this plugin. You can run a document with multiple plugins.</p>
*/
inline CommandPlugin& WithStatus(const CommandPluginStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of this plugin. You can run a document with multiple plugins.</p>
*/
inline CommandPlugin& WithStatus(CommandPluginStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline const Aws::String& GetStatusDetails() const{ return m_statusDetails; }
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline void SetStatusDetails(const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; }
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline void SetStatusDetails(Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); }
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline void SetStatusDetails(const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.assign(value); }
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline CommandPlugin& WithStatusDetails(const Aws::String& value) { SetStatusDetails(value); return *this;}
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline CommandPlugin& WithStatusDetails(Aws::String&& value) { SetStatusDetails(std::move(value)); return *this;}
/**
* <p>A detailed status of the plugin execution. StatusDetails includes more
* information than Status because it includes states resulting from error and
* concurrency control parameters. StatusDetails can show different results than
* Status. For more information about these statuses, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding
* command statuses</a> in the <i>AWS Systems Manager User Guide</i>. StatusDetails
* can be one of the following values:</p> <ul> <li> <p>Pending: The command has
* not been sent to the instance.</p> </li> <li> <p>In Progress: The command has
* been sent to the instance but has not reached a terminal state.</p> </li> <li>
* <p>Success: The execution of the command or plugin was successfully completed.
* This is a terminal state.</p> </li> <li> <p>Delivery Timed Out: The command was
* not delivered to the instance before the delivery timeout expired. Delivery
* timeouts do not count against the parent command's MaxErrors limit, but they do
* contribute to whether the parent command status is Success or Incomplete. This
* is a terminal state.</p> </li> <li> <p>Execution Timed Out: Command execution
* started on the instance, but the execution was not complete before the execution
* timeout expired. Execution timeouts count against the MaxErrors limit of the
* parent command. This is a terminal state.</p> </li> <li> <p>Failed: The command
* was not successful on the instance. For a plugin, this indicates that the result
* code was not zero. For a command invocation, this indicates that the result code
* for one or more plugins was not zero. Invocation failures count against the
* MaxErrors limit of the parent command. This is a terminal state.</p> </li> <li>
* <p>Canceled: The command was terminated before it was completed. This is a
* terminal state.</p> </li> <li> <p>Undeliverable: The command can't be delivered
* to the instance. The instance might not exist, or it might not be responding.
* Undeliverable invocations don't count against the parent command's MaxErrors
* limit, and they don't contribute to whether the parent command status is Success
* or Incomplete. This is a terminal state.</p> </li> <li> <p>Terminated: The
* parent command exceeded its MaxErrors limit and subsequent command invocations
* were canceled by the system. This is a terminal state.</p> </li> </ul>
*/
inline CommandPlugin& WithStatusDetails(const char* value) { SetStatusDetails(value); return *this;}
/**
* <p>A numeric response code generated after running the plugin. </p>
*/
inline int GetResponseCode() const{ return m_responseCode; }
/**
* <p>A numeric response code generated after running the plugin. </p>
*/
inline bool ResponseCodeHasBeenSet() const { return m_responseCodeHasBeenSet; }
/**
* <p>A numeric response code generated after running the plugin. </p>
*/
inline void SetResponseCode(int value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
/**
* <p>A numeric response code generated after running the plugin. </p>
*/
inline CommandPlugin& WithResponseCode(int value) { SetResponseCode(value); return *this;}
/**
* <p>The time the plugin started running. </p>
*/
inline const Aws::Utils::DateTime& GetResponseStartDateTime() const{ return m_responseStartDateTime; }
/**
* <p>The time the plugin started running. </p>
*/
inline bool ResponseStartDateTimeHasBeenSet() const { return m_responseStartDateTimeHasBeenSet; }
/**
* <p>The time the plugin started running. </p>
*/
inline void SetResponseStartDateTime(const Aws::Utils::DateTime& value) { m_responseStartDateTimeHasBeenSet = true; m_responseStartDateTime = value; }
/**
* <p>The time the plugin started running. </p>
*/
inline void SetResponseStartDateTime(Aws::Utils::DateTime&& value) { m_responseStartDateTimeHasBeenSet = true; m_responseStartDateTime = std::move(value); }
/**
* <p>The time the plugin started running. </p>
*/
inline CommandPlugin& WithResponseStartDateTime(const Aws::Utils::DateTime& value) { SetResponseStartDateTime(value); return *this;}
/**
* <p>The time the plugin started running. </p>
*/
inline CommandPlugin& WithResponseStartDateTime(Aws::Utils::DateTime&& value) { SetResponseStartDateTime(std::move(value)); return *this;}
/**
* <p>The time the plugin stopped running. Could stop prematurely if, for example,
* a cancel command was sent. </p>
*/
inline const Aws::Utils::DateTime& GetResponseFinishDateTime() const{ return m_responseFinishDateTime; }
/**
* <p>The time the plugin stopped running. Could stop prematurely if, for example,
* a cancel command was sent. </p>
*/
inline bool ResponseFinishDateTimeHasBeenSet() const { return m_responseFinishDateTimeHasBeenSet; }
/**
* <p>The time the plugin stopped running. Could stop prematurely if, for example,
* a cancel command was sent. </p>
*/
inline void SetResponseFinishDateTime(const Aws::Utils::DateTime& value) { m_responseFinishDateTimeHasBeenSet = true; m_responseFinishDateTime = value; }
/**
* <p>The time the plugin stopped running. Could stop prematurely if, for example,
* a cancel command was sent. </p>
*/
inline void SetResponseFinishDateTime(Aws::Utils::DateTime&& value) { m_responseFinishDateTimeHasBeenSet = true; m_responseFinishDateTime = std::move(value); }
/**
* <p>The time the plugin stopped running. Could stop prematurely if, for example,
* a cancel command was sent. </p>
*/
inline CommandPlugin& WithResponseFinishDateTime(const Aws::Utils::DateTime& value) { SetResponseFinishDateTime(value); return *this;}
/**
* <p>The time the plugin stopped running. Could stop prematurely if, for example,
* a cancel command was sent. </p>
*/
inline CommandPlugin& WithResponseFinishDateTime(Aws::Utils::DateTime&& value) { SetResponseFinishDateTime(std::move(value)); return *this;}
/**
* <p>Output of the plugin execution.</p>
*/
inline const Aws::String& GetOutput() const{ return m_output; }
/**
* <p>Output of the plugin execution.</p>
*/
inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
/**
* <p>Output of the plugin execution.</p>
*/
inline void SetOutput(const Aws::String& value) { m_outputHasBeenSet = true; m_output = value; }
/**
* <p>Output of the plugin execution.</p>
*/
inline void SetOutput(Aws::String&& value) { m_outputHasBeenSet = true; m_output = std::move(value); }
/**
* <p>Output of the plugin execution.</p>
*/
inline void SetOutput(const char* value) { m_outputHasBeenSet = true; m_output.assign(value); }
/**
* <p>Output of the plugin execution.</p>
*/
inline CommandPlugin& WithOutput(const Aws::String& value) { SetOutput(value); return *this;}
/**
* <p>Output of the plugin execution.</p>
*/
inline CommandPlugin& WithOutput(Aws::String&& value) { SetOutput(std::move(value)); return *this;}
/**
* <p>Output of the plugin execution.</p>
*/
inline CommandPlugin& WithOutput(const char* value) { SetOutput(value); return *this;}
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline const Aws::String& GetStandardOutputUrl() const{ return m_standardOutputUrl; }
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline bool StandardOutputUrlHasBeenSet() const { return m_standardOutputUrlHasBeenSet; }
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline void SetStandardOutputUrl(const Aws::String& value) { m_standardOutputUrlHasBeenSet = true; m_standardOutputUrl = value; }
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline void SetStandardOutputUrl(Aws::String&& value) { m_standardOutputUrlHasBeenSet = true; m_standardOutputUrl = std::move(value); }
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline void SetStandardOutputUrl(const char* value) { m_standardOutputUrlHasBeenSet = true; m_standardOutputUrl.assign(value); }
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline CommandPlugin& WithStandardOutputUrl(const Aws::String& value) { SetStandardOutputUrl(value); return *this;}
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline CommandPlugin& WithStandardOutputUrl(Aws::String&& value) { SetStandardOutputUrl(std::move(value)); return *this;}
/**
* <p>The URL for the complete text written by the plugin to stdout in Amazon S3.
* If the S3 bucket for the command was not specified, then this string is
* empty.</p>
*/
inline CommandPlugin& WithStandardOutputUrl(const char* value) { SetStandardOutputUrl(value); return *this;}
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline const Aws::String& GetStandardErrorUrl() const{ return m_standardErrorUrl; }
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline bool StandardErrorUrlHasBeenSet() const { return m_standardErrorUrlHasBeenSet; }
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline void SetStandardErrorUrl(const Aws::String& value) { m_standardErrorUrlHasBeenSet = true; m_standardErrorUrl = value; }
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline void SetStandardErrorUrl(Aws::String&& value) { m_standardErrorUrlHasBeenSet = true; m_standardErrorUrl = std::move(value); }
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline void SetStandardErrorUrl(const char* value) { m_standardErrorUrlHasBeenSet = true; m_standardErrorUrl.assign(value); }
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline CommandPlugin& WithStandardErrorUrl(const Aws::String& value) { SetStandardErrorUrl(value); return *this;}
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline CommandPlugin& WithStandardErrorUrl(Aws::String&& value) { SetStandardErrorUrl(std::move(value)); return *this;}
/**
* <p>The URL for the complete text written by the plugin to stderr. If execution
* is not yet complete, then this string is empty.</p>
*/
inline CommandPlugin& WithStandardErrorUrl(const char* value) { SetStandardErrorUrl(value); return *this;}
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline const Aws::String& GetOutputS3Region() const{ return m_outputS3Region; }
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline bool OutputS3RegionHasBeenSet() const { return m_outputS3RegionHasBeenSet; }
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline void SetOutputS3Region(const Aws::String& value) { m_outputS3RegionHasBeenSet = true; m_outputS3Region = value; }
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline void SetOutputS3Region(Aws::String&& value) { m_outputS3RegionHasBeenSet = true; m_outputS3Region = std::move(value); }
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline void SetOutputS3Region(const char* value) { m_outputS3RegionHasBeenSet = true; m_outputS3Region.assign(value); }
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline CommandPlugin& WithOutputS3Region(const Aws::String& value) { SetOutputS3Region(value); return *this;}
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline CommandPlugin& WithOutputS3Region(Aws::String&& value) { SetOutputS3Region(std::move(value)); return *this;}
/**
* <p>(Deprecated) You can no longer specify this parameter. The system ignores it.
* Instead, Systems Manager automatically determines the S3 bucket region.</p>
*/
inline CommandPlugin& WithOutputS3Region(const char* value) { SetOutputS3Region(value); return *this;}
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = std::move(value); }
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline CommandPlugin& WithOutputS3BucketName(const Aws::String& value) { SetOutputS3BucketName(value); return *this;}
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline CommandPlugin& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(std::move(value)); return *this;}
/**
* <p>The S3 bucket where the responses to the command executions should be stored.
* This was requested when issuing the command. For example, in the following
* response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline CommandPlugin& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::move(value); }
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline CommandPlugin& WithOutputS3KeyPrefix(const Aws::String& value) { SetOutputS3KeyPrefix(value); return *this;}
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline CommandPlugin& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(std::move(value)); return *this;}
/**
* <p>The S3 directory path inside the bucket where the responses to the command
* executions should be stored. This was requested when issuing the command. For
* example, in the following response:</p> <p>
* test_folder/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-1234567876543/awsrunShellScript
* </p> <p>test_folder is the name of the S3 bucket;</p>
* <p>ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;</p>
* <p>i-1234567876543 is the instance ID;</p> <p>awsrunShellScript is the name of
* the plugin.</p>
*/
inline CommandPlugin& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
CommandPluginStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_statusDetails;
bool m_statusDetailsHasBeenSet;
int m_responseCode;
bool m_responseCodeHasBeenSet;
Aws::Utils::DateTime m_responseStartDateTime;
bool m_responseStartDateTimeHasBeenSet;
Aws::Utils::DateTime m_responseFinishDateTime;
bool m_responseFinishDateTimeHasBeenSet;
Aws::String m_output;
bool m_outputHasBeenSet;
Aws::String m_standardOutputUrl;
bool m_standardOutputUrlHasBeenSet;
Aws::String m_standardErrorUrl;
bool m_standardErrorUrlHasBeenSet;
Aws::String m_outputS3Region;
bool m_outputS3RegionHasBeenSet;
Aws::String m_outputS3BucketName;
bool m_outputS3BucketNameHasBeenSet;
Aws::String m_outputS3KeyPrefix;
bool m_outputS3KeyPrefixHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class CommandPluginStatus
{
NOT_SET,
Pending,
InProgress,
Success,
TimedOut,
Cancelled,
Failed
};
namespace CommandPluginStatusMapper
{
AWS_SSM_API CommandPluginStatus GetCommandPluginStatusForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForCommandPluginStatus(CommandPluginStatus value);
} // namespace CommandPluginStatusMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class CommandStatus
{
NOT_SET,
Pending,
InProgress,
Success,
Cancelled,
Failed,
TimedOut,
Cancelling
};
namespace CommandStatusMapper
{
AWS_SSM_API CommandStatus GetCommandStatusForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForCommandStatus(CommandStatus value);
} // namespace CommandStatusMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,200 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>A summary of the call execution that includes an execution ID, the type of
* execution (for example, <code>Command</code>), and the date/time of the
* execution using a datetime object that is saved in the following format:
* yyyy-MM-dd'T'HH:mm:ss'Z'.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ComplianceExecutionSummary">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ComplianceExecutionSummary
{
public:
ComplianceExecutionSummary();
ComplianceExecutionSummary(Aws::Utils::Json::JsonView jsonValue);
ComplianceExecutionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The time the execution ran as a datetime object that is saved in the
* following format: yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
*/
inline const Aws::Utils::DateTime& GetExecutionTime() const{ return m_executionTime; }
/**
* <p>The time the execution ran as a datetime object that is saved in the
* following format: yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
*/
inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
/**
* <p>The time the execution ran as a datetime object that is saved in the
* following format: yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
*/
inline void SetExecutionTime(const Aws::Utils::DateTime& value) { m_executionTimeHasBeenSet = true; m_executionTime = value; }
/**
* <p>The time the execution ran as a datetime object that is saved in the
* following format: yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
*/
inline void SetExecutionTime(Aws::Utils::DateTime&& value) { m_executionTimeHasBeenSet = true; m_executionTime = std::move(value); }
/**
* <p>The time the execution ran as a datetime object that is saved in the
* following format: yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
*/
inline ComplianceExecutionSummary& WithExecutionTime(const Aws::Utils::DateTime& value) { SetExecutionTime(value); return *this;}
/**
* <p>The time the execution ran as a datetime object that is saved in the
* following format: yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
*/
inline ComplianceExecutionSummary& WithExecutionTime(Aws::Utils::DateTime&& value) { SetExecutionTime(std::move(value)); return *this;}
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline const Aws::String& GetExecutionId() const{ return m_executionId; }
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; }
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); }
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); }
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline ComplianceExecutionSummary& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;}
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline ComplianceExecutionSummary& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;}
/**
* <p>An ID created by the system when <code>PutComplianceItems</code> was called.
* For example, <code>CommandID</code> is a valid execution ID. You can use this ID
* in subsequent calls.</p>
*/
inline ComplianceExecutionSummary& WithExecutionId(const char* value) { SetExecutionId(value); return *this;}
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline const Aws::String& GetExecutionType() const{ return m_executionType; }
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline bool ExecutionTypeHasBeenSet() const { return m_executionTypeHasBeenSet; }
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline void SetExecutionType(const Aws::String& value) { m_executionTypeHasBeenSet = true; m_executionType = value; }
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline void SetExecutionType(Aws::String&& value) { m_executionTypeHasBeenSet = true; m_executionType = std::move(value); }
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline void SetExecutionType(const char* value) { m_executionTypeHasBeenSet = true; m_executionType.assign(value); }
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline ComplianceExecutionSummary& WithExecutionType(const Aws::String& value) { SetExecutionType(value); return *this;}
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline ComplianceExecutionSummary& WithExecutionType(Aws::String&& value) { SetExecutionType(std::move(value)); return *this;}
/**
* <p>The type of execution. For example, <code>Command</code> is a valid execution
* type.</p>
*/
inline ComplianceExecutionSummary& WithExecutionType(const char* value) { SetExecutionType(value); return *this;}
private:
Aws::Utils::DateTime m_executionTime;
bool m_executionTimeHasBeenSet;
Aws::String m_executionId;
bool m_executionIdHasBeenSet;
Aws::String m_executionType;
bool m_executionTypeHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,516 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/ComplianceStatus.h>
#include <aws/ssm/model/ComplianceSeverity.h>
#include <aws/ssm/model/ComplianceExecutionSummary.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Information about the compliance as defined by the resource type. For
* example, for a patch resource type, <code>Items</code> includes information
* about the PatchSeverity, Classification, and so on.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ComplianceItem">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ComplianceItem
{
public:
ComplianceItem();
ComplianceItem(Aws::Utils::Json::JsonView jsonValue);
ComplianceItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline ComplianceItem& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;}
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline ComplianceItem& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
/**
* <p>The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:<code>string</code> are all valid compliance
* types.</p>
*/
inline ComplianceItem& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline const Aws::String& GetResourceType() const{ return m_resourceType; }
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline ComplianceItem& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline ComplianceItem& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
/**
* <p>The type of resource. <code>ManagedInstance</code> is currently the only
* supported resource type.</p>
*/
inline ComplianceItem& WithResourceType(const char* value) { SetResourceType(value); return *this;}
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline ComplianceItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline ComplianceItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>An ID for the resource. For a managed instance, this is the instance ID.</p>
*/
inline ComplianceItem& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline ComplianceItem& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline ComplianceItem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>An ID for the compliance item. For example, if the compliance item is a
* Windows patch, the ID could be the number of the KB article; for example:
* KB4010320.</p>
*/
inline ComplianceItem& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline const Aws::String& GetTitle() const{ return m_title; }
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline ComplianceItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline ComplianceItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p>A title for the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services.</p>
*/
inline ComplianceItem& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline const ComplianceStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline ComplianceItem& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline ComplianceItem& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline const ComplianceSeverity& GetSeverity() const{ return m_severity; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline void SetSeverity(const ComplianceSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline void SetSeverity(ComplianceSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline ComplianceItem& WithSeverity(const ComplianceSeverity& value) { SetSeverity(value); return *this;}
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline ComplianceItem& WithSeverity(ComplianceSeverity&& value) { SetSeverity(std::move(value)); return *this;}
/**
* <p>A summary for the compliance item. The summary includes an execution ID, the
* execution type (for example, command), and the execution time.</p>
*/
inline const ComplianceExecutionSummary& GetExecutionSummary() const{ return m_executionSummary; }
/**
* <p>A summary for the compliance item. The summary includes an execution ID, the
* execution type (for example, command), and the execution time.</p>
*/
inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; }
/**
* <p>A summary for the compliance item. The summary includes an execution ID, the
* execution type (for example, command), and the execution time.</p>
*/
inline void SetExecutionSummary(const ComplianceExecutionSummary& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = value; }
/**
* <p>A summary for the compliance item. The summary includes an execution ID, the
* execution type (for example, command), and the execution time.</p>
*/
inline void SetExecutionSummary(ComplianceExecutionSummary&& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = std::move(value); }
/**
* <p>A summary for the compliance item. The summary includes an execution ID, the
* execution type (for example, command), and the execution time.</p>
*/
inline ComplianceItem& WithExecutionSummary(const ComplianceExecutionSummary& value) { SetExecutionSummary(value); return *this;}
/**
* <p>A summary for the compliance item. The summary includes an execution ID, the
* execution type (for example, command), and the execution time.</p>
*/
inline ComplianceItem& WithExecutionSummary(ComplianceExecutionSummary&& value) { SetExecutionSummary(std::move(value)); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetDetails() const{ return m_details; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline void SetDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline void SetDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& WithDetails(const Aws::Map<Aws::String, Aws::String>& value) { SetDetails(value); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& WithDetails(Aws::Map<Aws::String, Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& AddDetails(const Aws::String& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& AddDetails(Aws::String&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& AddDetails(const Aws::String& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& AddDetails(Aws::String&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& AddDetails(const char* key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& AddDetails(Aws::String&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItem& AddDetails(const char* key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
private:
Aws::String m_complianceType;
bool m_complianceTypeHasBeenSet;
Aws::String m_resourceType;
bool m_resourceTypeHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
ComplianceStatus m_status;
bool m_statusHasBeenSet;
ComplianceSeverity m_severity;
bool m_severityHasBeenSet;
ComplianceExecutionSummary m_executionSummary;
bool m_executionSummaryHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_details;
bool m_detailsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,308 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/ComplianceSeverity.h>
#include <aws/ssm/model/ComplianceStatus.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Information about a compliance item.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ComplianceItemEntry">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ComplianceItemEntry
{
public:
ComplianceItemEntry();
ComplianceItemEntry(Aws::Utils::Json::JsonView jsonValue);
ComplianceItemEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline ComplianceItemEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline ComplianceItemEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline ComplianceItemEntry& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline const Aws::String& GetTitle() const{ return m_title; }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline ComplianceItemEntry& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline ComplianceItemEntry& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline ComplianceItemEntry& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline const ComplianceSeverity& GetSeverity() const{ return m_severity; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline void SetSeverity(const ComplianceSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline void SetSeverity(ComplianceSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline ComplianceItemEntry& WithSeverity(const ComplianceSeverity& value) { SetSeverity(value); return *this;}
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline ComplianceItemEntry& WithSeverity(ComplianceSeverity&& value) { SetSeverity(std::move(value)); return *this;}
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline const ComplianceStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline ComplianceItemEntry& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline ComplianceItemEntry& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetDetails() const{ return m_details; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline void SetDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline void SetDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& WithDetails(const Aws::Map<Aws::String, Aws::String>& value) { SetDetails(value); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& WithDetails(Aws::Map<Aws::String, Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const Aws::String& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(Aws::String&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const Aws::String& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(Aws::String&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const char* key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(Aws::String&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const char* key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
ComplianceSeverity m_severity;
bool m_severityHasBeenSet;
ComplianceStatus m_status;
bool m_statusHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_details;
bool m_detailsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class ComplianceQueryOperatorType
{
NOT_SET,
EQUAL,
NOT_EQUAL,
BEGIN_WITH,
LESS_THAN,
GREATER_THAN
};
namespace ComplianceQueryOperatorTypeMapper
{
AWS_SSM_API ComplianceQueryOperatorType GetComplianceQueryOperatorTypeForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForComplianceQueryOperatorType(ComplianceQueryOperatorType value);
} // namespace ComplianceQueryOperatorTypeMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class ComplianceSeverity
{
NOT_SET,
CRITICAL,
HIGH,
MEDIUM,
LOW,
INFORMATIONAL,
UNSPECIFIED
};
namespace ComplianceSeverityMapper
{
AWS_SSM_API ComplianceSeverity GetComplianceSeverityForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForComplianceSeverity(ComplianceSeverity value);
} // namespace ComplianceSeverityMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class ComplianceStatus
{
NOT_SET,
COMPLIANT,
NON_COMPLIANT
};
namespace ComplianceStatusMapper
{
AWS_SSM_API ComplianceStatus GetComplianceStatusForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForComplianceStatus(ComplianceStatus value);
} // namespace ComplianceStatusMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,180 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/ComplianceQueryOperatorType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>One or more filters. Use a filter to return a more specific list of
* results.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ComplianceStringFilter">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ComplianceStringFilter
{
public:
ComplianceStringFilter();
ComplianceStringFilter(Aws::Utils::Json::JsonView jsonValue);
ComplianceStringFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the filter.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The name of the filter.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The name of the filter.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The name of the filter.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The name of the filter.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The name of the filter.</p>
*/
inline ComplianceStringFilter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The name of the filter.</p>
*/
inline ComplianceStringFilter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The name of the filter.</p>
*/
inline ComplianceStringFilter& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The value for which to search.</p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
/**
* <p>The value for which to search.</p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p>The value for which to search.</p>
*/
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p>The value for which to search.</p>
*/
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p>The value for which to search.</p>
*/
inline ComplianceStringFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
/**
* <p>The value for which to search.</p>
*/
inline ComplianceStringFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p>The value for which to search.</p>
*/
inline ComplianceStringFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>The value for which to search.</p>
*/
inline ComplianceStringFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
/**
* <p>The value for which to search.</p>
*/
inline ComplianceStringFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>The type of comparison that should be performed for the value: Equal,
* NotEqual, BeginWith, LessThan, or GreaterThan.</p>
*/
inline const ComplianceQueryOperatorType& GetType() const{ return m_type; }
/**
* <p>The type of comparison that should be performed for the value: Equal,
* NotEqual, BeginWith, LessThan, or GreaterThan.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of comparison that should be performed for the value: Equal,
* NotEqual, BeginWith, LessThan, or GreaterThan.</p>
*/
inline void SetType(const ComplianceQueryOperatorType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of comparison that should be performed for the value: Equal,
* NotEqual, BeginWith, LessThan, or GreaterThan.</p>
*/
inline void SetType(ComplianceQueryOperatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of comparison that should be performed for the value: Equal,
* NotEqual, BeginWith, LessThan, or GreaterThan.</p>
*/
inline ComplianceStringFilter& WithType(const ComplianceQueryOperatorType& value) { SetType(value); return *this;}
/**
* <p>The type of comparison that should be performed for the value: Equal,
* NotEqual, BeginWith, LessThan, or GreaterThan.</p>
*/
inline ComplianceStringFilter& WithType(ComplianceQueryOperatorType&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
ComplianceQueryOperatorType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,167 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/CompliantSummary.h>
#include <aws/ssm/model/NonCompliantSummary.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>A summary of compliance information by compliance type.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ComplianceSummaryItem">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ComplianceSummaryItem
{
public:
ComplianceSummaryItem();
ComplianceSummaryItem(Aws::Utils::Json::JsonView jsonValue);
ComplianceSummaryItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline ComplianceSummaryItem& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;}
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline ComplianceSummaryItem& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
/**
* <p>The type of compliance item. For example, the compliance type can be
* Association, Patch, or Custom:string.</p>
*/
inline ComplianceSummaryItem& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
/**
* <p>A list of COMPLIANT items for the specified compliance type.</p>
*/
inline const CompliantSummary& GetCompliantSummary() const{ return m_compliantSummary; }
/**
* <p>A list of COMPLIANT items for the specified compliance type.</p>
*/
inline bool CompliantSummaryHasBeenSet() const { return m_compliantSummaryHasBeenSet; }
/**
* <p>A list of COMPLIANT items for the specified compliance type.</p>
*/
inline void SetCompliantSummary(const CompliantSummary& value) { m_compliantSummaryHasBeenSet = true; m_compliantSummary = value; }
/**
* <p>A list of COMPLIANT items for the specified compliance type.</p>
*/
inline void SetCompliantSummary(CompliantSummary&& value) { m_compliantSummaryHasBeenSet = true; m_compliantSummary = std::move(value); }
/**
* <p>A list of COMPLIANT items for the specified compliance type.</p>
*/
inline ComplianceSummaryItem& WithCompliantSummary(const CompliantSummary& value) { SetCompliantSummary(value); return *this;}
/**
* <p>A list of COMPLIANT items for the specified compliance type.</p>
*/
inline ComplianceSummaryItem& WithCompliantSummary(CompliantSummary&& value) { SetCompliantSummary(std::move(value)); return *this;}
/**
* <p>A list of NON_COMPLIANT items for the specified compliance type.</p>
*/
inline const NonCompliantSummary& GetNonCompliantSummary() const{ return m_nonCompliantSummary; }
/**
* <p>A list of NON_COMPLIANT items for the specified compliance type.</p>
*/
inline bool NonCompliantSummaryHasBeenSet() const { return m_nonCompliantSummaryHasBeenSet; }
/**
* <p>A list of NON_COMPLIANT items for the specified compliance type.</p>
*/
inline void SetNonCompliantSummary(const NonCompliantSummary& value) { m_nonCompliantSummaryHasBeenSet = true; m_nonCompliantSummary = value; }
/**
* <p>A list of NON_COMPLIANT items for the specified compliance type.</p>
*/
inline void SetNonCompliantSummary(NonCompliantSummary&& value) { m_nonCompliantSummaryHasBeenSet = true; m_nonCompliantSummary = std::move(value); }
/**
* <p>A list of NON_COMPLIANT items for the specified compliance type.</p>
*/
inline ComplianceSummaryItem& WithNonCompliantSummary(const NonCompliantSummary& value) { SetNonCompliantSummary(value); return *this;}
/**
* <p>A list of NON_COMPLIANT items for the specified compliance type.</p>
*/
inline ComplianceSummaryItem& WithNonCompliantSummary(NonCompliantSummary&& value) { SetNonCompliantSummary(std::move(value)); return *this;}
private:
Aws::String m_complianceType;
bool m_complianceTypeHasBeenSet;
CompliantSummary m_compliantSummary;
bool m_compliantSummaryHasBeenSet;
NonCompliantSummary m_nonCompliantSummary;
bool m_nonCompliantSummaryHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class ComplianceUploadType
{
NOT_SET,
COMPLETE,
PARTIAL
};
namespace ComplianceUploadTypeMapper
{
AWS_SSM_API ComplianceUploadType GetComplianceUploadTypeForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForComplianceUploadType(ComplianceUploadType value);
} // namespace ComplianceUploadTypeMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* 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/model/SeveritySummary.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>A summary of resources that are compliant. The summary is organized according
* to the resource count for each compliance type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CompliantSummary">AWS
* API Reference</a></p>
*/
class AWS_SSM_API CompliantSummary
{
public:
CompliantSummary();
CompliantSummary(Aws::Utils::Json::JsonView jsonValue);
CompliantSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The total number of resources that are compliant.</p>
*/
inline int GetCompliantCount() const{ return m_compliantCount; }
/**
* <p>The total number of resources that are compliant.</p>
*/
inline bool CompliantCountHasBeenSet() const { return m_compliantCountHasBeenSet; }
/**
* <p>The total number of resources that are compliant.</p>
*/
inline void SetCompliantCount(int value) { m_compliantCountHasBeenSet = true; m_compliantCount = value; }
/**
* <p>The total number of resources that are compliant.</p>
*/
inline CompliantSummary& WithCompliantCount(int value) { SetCompliantCount(value); return *this;}
/**
* <p>A summary of the compliance severity by compliance type.</p>
*/
inline const SeveritySummary& GetSeveritySummary() const{ return m_severitySummary; }
/**
* <p>A summary of the compliance severity by compliance type.</p>
*/
inline bool SeveritySummaryHasBeenSet() const { return m_severitySummaryHasBeenSet; }
/**
* <p>A summary of the compliance severity by compliance type.</p>
*/
inline void SetSeveritySummary(const SeveritySummary& value) { m_severitySummaryHasBeenSet = true; m_severitySummary = value; }
/**
* <p>A summary of the compliance severity by compliance type.</p>
*/
inline void SetSeveritySummary(SeveritySummary&& value) { m_severitySummaryHasBeenSet = true; m_severitySummary = std::move(value); }
/**
* <p>A summary of the compliance severity by compliance type.</p>
*/
inline CompliantSummary& WithSeveritySummary(const SeveritySummary& value) { SetSeveritySummary(value); return *this;}
/**
* <p>A summary of the compliance severity by compliance type.</p>
*/
inline CompliantSummary& WithSeveritySummary(SeveritySummary&& value) { SetSeveritySummary(std::move(value)); return *this;}
private:
int m_compliantCount;
bool m_compliantCountHasBeenSet;
SeveritySummary m_severitySummary;
bool m_severitySummaryHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
enum class ConnectionStatus
{
NOT_SET,
Connected,
NotConnected
};
namespace ConnectionStatusMapper
{
AWS_SSM_API ConnectionStatus GetConnectionStatusForName(const Aws::String& name);
AWS_SSM_API Aws::String GetNameForConnectionStatus(ConnectionStatus value);
} // namespace ConnectionStatusMapper
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,504 @@
/**
* 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 <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/Tag.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API CreateActivationRequest : public SSMRequest
{
public:
CreateActivationRequest();
// 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 "CreateActivation"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline CreateActivationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline CreateActivationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A user-defined description of the resource that you want to register with
* Systems Manager. </p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline CreateActivationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline const Aws::String& GetDefaultInstanceName() const{ return m_defaultInstanceName; }
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline bool DefaultInstanceNameHasBeenSet() const { return m_defaultInstanceNameHasBeenSet; }
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetDefaultInstanceName(const Aws::String& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = value; }
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetDefaultInstanceName(Aws::String&& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = std::move(value); }
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline void SetDefaultInstanceName(const char* value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName.assign(value); }
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline CreateActivationRequest& WithDefaultInstanceName(const Aws::String& value) { SetDefaultInstanceName(value); return *this;}
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline CreateActivationRequest& WithDefaultInstanceName(Aws::String&& value) { SetDefaultInstanceName(std::move(value)); return *this;}
/**
* <p>The name of the registered, managed instance as it will appear in the Systems
* Manager console or when you use the AWS command line tools to list Systems
* Manager resources.</p> <p>Do not enter personally identifiable
* information in this field.</p>
*/
inline CreateActivationRequest& WithDefaultInstanceName(const char* value) { SetDefaultInstanceName(value); return *this;}
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline const Aws::String& GetIamRole() const{ return m_iamRole; }
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline CreateActivationRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline CreateActivationRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
/**
* <p>The Amazon Identity and Access Management (IAM) role that you want to assign
* to the managed instance. This IAM role must provide AssumeRole permissions for
* the Systems Manager service principal <code>ssm.amazonaws.com</code>. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create
* an IAM service role for a hybrid environment</a> in the <i>AWS Systems Manager
* User Guide</i>.</p>
*/
inline CreateActivationRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
/**
* <p>Specify the maximum number of managed instances you want to register. The
* default value is 1 instance.</p>
*/
inline int GetRegistrationLimit() const{ return m_registrationLimit; }
/**
* <p>Specify the maximum number of managed instances you want to register. The
* default value is 1 instance.</p>
*/
inline bool RegistrationLimitHasBeenSet() const { return m_registrationLimitHasBeenSet; }
/**
* <p>Specify the maximum number of managed instances you want to register. The
* default value is 1 instance.</p>
*/
inline void SetRegistrationLimit(int value) { m_registrationLimitHasBeenSet = true; m_registrationLimit = value; }
/**
* <p>Specify the maximum number of managed instances you want to register. The
* default value is 1 instance.</p>
*/
inline CreateActivationRequest& WithRegistrationLimit(int value) { SetRegistrationLimit(value); return *this;}
/**
* <p>The date by which this activation request should expire. The default value is
* 24 hours.</p>
*/
inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
/**
* <p>The date by which this activation request should expire. The default value is
* 24 hours.</p>
*/
inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
/**
* <p>The date by which this activation request should expire. The default value is
* 24 hours.</p>
*/
inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
/**
* <p>The date by which this activation request should expire. The default value is
* 24 hours.</p>
*/
inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
/**
* <p>The date by which this activation request should expire. The default value is
* 24 hours.</p>
*/
inline CreateActivationRequest& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
/**
* <p>The date by which this activation request should expire. The default value is
* 24 hours.</p>
*/
inline CreateActivationRequest& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline CreateActivationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline CreateActivationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline CreateActivationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an activation to identify which
* servers or virtual machines (VMs) in your on-premises environment you intend to
* activate. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul>
* <p>When you install SSM Agent on your on-premises servers and VMs, you specify
* an activation ID and code. When you specify the activation ID and code, tags
* assigned to the activation are automatically applied to the on-premises servers
* or VMs.</p> <p>You can't add tags to or delete tags from an
* existing activation. You can tag your on-premises servers and VMs after they
* connect to Systems Manager for the first time and are assigned a managed
* instance ID. This means they are listed in the AWS Systems Manager console with
* an ID that is prefixed with "mi-". For information about how to add tags to your
* managed instances, see <a>AddTagsToResource</a>. For information about how to
* remove tags from your managed instances, see <a>RemoveTagsFromResource</a>.</p>
*/
inline CreateActivationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_defaultInstanceName;
bool m_defaultInstanceNameHasBeenSet;
Aws::String m_iamRole;
bool m_iamRoleHasBeenSet;
int m_registrationLimit;
bool m_registrationLimitHasBeenSet;
Aws::Utils::DateTime m_expirationDate;
bool m_expirationDateHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreateActivationResult
{
public:
CreateActivationResult();
CreateActivationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateActivationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID number generated by the system when it processed the activation. The
* activation ID functions like a user name.</p>
*/
inline const Aws::String& GetActivationId() const{ return m_activationId; }
/**
* <p>The ID number generated by the system when it processed the activation. The
* activation ID functions like a user name.</p>
*/
inline void SetActivationId(const Aws::String& value) { m_activationId = value; }
/**
* <p>The ID number generated by the system when it processed the activation. The
* activation ID functions like a user name.</p>
*/
inline void SetActivationId(Aws::String&& value) { m_activationId = std::move(value); }
/**
* <p>The ID number generated by the system when it processed the activation. The
* activation ID functions like a user name.</p>
*/
inline void SetActivationId(const char* value) { m_activationId.assign(value); }
/**
* <p>The ID number generated by the system when it processed the activation. The
* activation ID functions like a user name.</p>
*/
inline CreateActivationResult& WithActivationId(const Aws::String& value) { SetActivationId(value); return *this;}
/**
* <p>The ID number generated by the system when it processed the activation. The
* activation ID functions like a user name.</p>
*/
inline CreateActivationResult& WithActivationId(Aws::String&& value) { SetActivationId(std::move(value)); return *this;}
/**
* <p>The ID number generated by the system when it processed the activation. The
* activation ID functions like a user name.</p>
*/
inline CreateActivationResult& WithActivationId(const char* value) { SetActivationId(value); return *this;}
/**
* <p>The code the system generates when it processes the activation. The
* activation code functions like a password to validate the activation ID. </p>
*/
inline const Aws::String& GetActivationCode() const{ return m_activationCode; }
/**
* <p>The code the system generates when it processes the activation. The
* activation code functions like a password to validate the activation ID. </p>
*/
inline void SetActivationCode(const Aws::String& value) { m_activationCode = value; }
/**
* <p>The code the system generates when it processes the activation. The
* activation code functions like a password to validate the activation ID. </p>
*/
inline void SetActivationCode(Aws::String&& value) { m_activationCode = std::move(value); }
/**
* <p>The code the system generates when it processes the activation. The
* activation code functions like a password to validate the activation ID. </p>
*/
inline void SetActivationCode(const char* value) { m_activationCode.assign(value); }
/**
* <p>The code the system generates when it processes the activation. The
* activation code functions like a password to validate the activation ID. </p>
*/
inline CreateActivationResult& WithActivationCode(const Aws::String& value) { SetActivationCode(value); return *this;}
/**
* <p>The code the system generates when it processes the activation. The
* activation code functions like a password to validate the activation ID. </p>
*/
inline CreateActivationResult& WithActivationCode(Aws::String&& value) { SetActivationCode(std::move(value)); return *this;}
/**
* <p>The code the system generates when it processes the activation. The
* activation code functions like a password to validate the activation ID. </p>
*/
inline CreateActivationResult& WithActivationCode(const char* value) { SetActivationCode(value); return *this;}
private:
Aws::String m_activationId;
Aws::String m_activationCode;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* 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/AWSVector.h>
#include <aws/ssm/model/CreateAssociationBatchRequestEntry.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API CreateAssociationBatchRequest : public SSMRequest
{
public:
CreateAssociationBatchRequest();
// 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 "CreateAssociationBatch"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>One or more associations.</p>
*/
inline const Aws::Vector<CreateAssociationBatchRequestEntry>& GetEntries() const{ return m_entries; }
/**
* <p>One or more associations.</p>
*/
inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
/**
* <p>One or more associations.</p>
*/
inline void SetEntries(const Aws::Vector<CreateAssociationBatchRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
/**
* <p>One or more associations.</p>
*/
inline void SetEntries(Aws::Vector<CreateAssociationBatchRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
/**
* <p>One or more associations.</p>
*/
inline CreateAssociationBatchRequest& WithEntries(const Aws::Vector<CreateAssociationBatchRequestEntry>& value) { SetEntries(value); return *this;}
/**
* <p>One or more associations.</p>
*/
inline CreateAssociationBatchRequest& WithEntries(Aws::Vector<CreateAssociationBatchRequestEntry>&& value) { SetEntries(std::move(value)); return *this;}
/**
* <p>One or more associations.</p>
*/
inline CreateAssociationBatchRequest& AddEntries(const CreateAssociationBatchRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
/**
* <p>One or more associations.</p>
*/
inline CreateAssociationBatchRequest& AddEntries(CreateAssociationBatchRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
private:
Aws::Vector<CreateAssociationBatchRequestEntry> m_entries;
bool m_entriesHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,957 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
#include <aws/ssm/model/AssociationComplianceSeverity.h>
#include <aws/ssm/model/AssociationSyncCompliance.h>
#include <aws/ssm/model/Target.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Describes the association of a Systems Manager SSM document and an
* instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatchRequestEntry">AWS
* API Reference</a></p>
*/
class AWS_SSM_API CreateAssociationBatchRequestEntry
{
public:
CreateAssociationBatchRequestEntry();
CreateAssociationBatchRequestEntry(Aws::Utils::Json::JsonView jsonValue);
CreateAssociationBatchRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline CreateAssociationBatchRequestEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline CreateAssociationBatchRequestEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the SSM document that contains the configuration information for
* the instance. You can specify Command or Automation documents.</p> <p>You can
* specify AWS-predefined documents, documents you created, or a document that is
* shared with you from another account.</p> <p>For SSM documents that are shared
* with you from other AWS accounts, you must specify the complete SSM document
* ARN, in the following format:</p> <p>
* <code>arn:aws:ssm:<i>region</i>:<i>account-id</i>:document/<i>document-name</i>
* </code> </p> <p>For example:</p> <p>
* <code>arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document</code> </p>
* <p>For AWS-predefined documents and SSM documents you created in your account,
* you only need to specify the document name. For example,
* <code>AWS-ApplyPatchBaseline</code> or <code>My-Document</code>.</p>
*/
inline CreateAssociationBatchRequestEntry& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the instance. </p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The ID of the instance. </p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The ID of the instance. </p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The ID of the instance. </p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The ID of the instance. </p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The ID of the instance. </p>
*/
inline CreateAssociationBatchRequestEntry& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The ID of the instance. </p>
*/
inline CreateAssociationBatchRequestEntry& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The ID of the instance. </p>
*/
inline CreateAssociationBatchRequestEntry& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>A description of the parameters for a document. </p>
*/
inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>A description of the parameters for a document. </p>
*/
inline CreateAssociationBatchRequestEntry& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline const Aws::String& GetAutomationTargetParameterName() const{ return m_automationTargetParameterName; }
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline bool AutomationTargetParameterNameHasBeenSet() const { return m_automationTargetParameterNameHasBeenSet; }
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline void SetAutomationTargetParameterName(const Aws::String& value) { m_automationTargetParameterNameHasBeenSet = true; m_automationTargetParameterName = value; }
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline void SetAutomationTargetParameterName(Aws::String&& value) { m_automationTargetParameterNameHasBeenSet = true; m_automationTargetParameterName = std::move(value); }
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline void SetAutomationTargetParameterName(const char* value) { m_automationTargetParameterNameHasBeenSet = true; m_automationTargetParameterName.assign(value); }
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline CreateAssociationBatchRequestEntry& WithAutomationTargetParameterName(const Aws::String& value) { SetAutomationTargetParameterName(value); return *this;}
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline CreateAssociationBatchRequestEntry& WithAutomationTargetParameterName(Aws::String&& value) { SetAutomationTargetParameterName(std::move(value)); return *this;}
/**
* <p>Specify the target for the association. This target is required for
* associations that use an Automation document and target resources by using rate
* controls.</p>
*/
inline CreateAssociationBatchRequestEntry& WithAutomationTargetParameterName(const char* value) { SetAutomationTargetParameterName(value); return *this;}
/**
* <p>The document version.</p>
*/
inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
/**
* <p>The document version.</p>
*/
inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
/**
* <p>The document version.</p>
*/
inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
/**
* <p>The document version.</p>
*/
inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
/**
* <p>The document version.</p>
*/
inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
/**
* <p>The document version.</p>
*/
inline CreateAssociationBatchRequestEntry& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
/**
* <p>The document version.</p>
*/
inline CreateAssociationBatchRequestEntry& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
/**
* <p>The document version.</p>
*/
inline CreateAssociationBatchRequestEntry& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
/**
* <p>The instances targeted by the request.</p>
*/
inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
/**
* <p>The instances targeted by the request.</p>
*/
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
/**
* <p>The instances targeted by the request.</p>
*/
inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
/**
* <p>The instances targeted by the request.</p>
*/
inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
/**
* <p>The instances targeted by the request.</p>
*/
inline CreateAssociationBatchRequestEntry& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
/**
* <p>The instances targeted by the request.</p>
*/
inline CreateAssociationBatchRequestEntry& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
/**
* <p>The instances targeted by the request.</p>
*/
inline CreateAssociationBatchRequestEntry& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
/**
* <p>The instances targeted by the request.</p>
*/
inline CreateAssociationBatchRequestEntry& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline CreateAssociationBatchRequestEntry& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline CreateAssociationBatchRequestEntry& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
/**
* <p>A cron expression that specifies a schedule when the association runs.</p>
*/
inline CreateAssociationBatchRequestEntry& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
/**
* <p>An S3 bucket where you want to store the results of this request.</p>
*/
inline const InstanceAssociationOutputLocation& GetOutputLocation() const{ return m_outputLocation; }
/**
* <p>An S3 bucket where you want to store the results of this request.</p>
*/
inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
/**
* <p>An S3 bucket where you want to store the results of this request.</p>
*/
inline void SetOutputLocation(const InstanceAssociationOutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; }
/**
* <p>An S3 bucket where you want to store the results of this request.</p>
*/
inline void SetOutputLocation(InstanceAssociationOutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); }
/**
* <p>An S3 bucket where you want to store the results of this request.</p>
*/
inline CreateAssociationBatchRequestEntry& WithOutputLocation(const InstanceAssociationOutputLocation& value) { SetOutputLocation(value); return *this;}
/**
* <p>An S3 bucket where you want to store the results of this request.</p>
*/
inline CreateAssociationBatchRequestEntry& WithOutputLocation(InstanceAssociationOutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline const Aws::String& GetAssociationName() const{ return m_associationName; }
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline void SetAssociationName(const Aws::String& value) { m_associationNameHasBeenSet = true; m_associationName = value; }
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline void SetAssociationName(Aws::String&& value) { m_associationNameHasBeenSet = true; m_associationName = std::move(value); }
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline void SetAssociationName(const char* value) { m_associationNameHasBeenSet = true; m_associationName.assign(value); }
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline CreateAssociationBatchRequestEntry& WithAssociationName(const Aws::String& value) { SetAssociationName(value); return *this;}
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline CreateAssociationBatchRequestEntry& WithAssociationName(Aws::String&& value) { SetAssociationName(std::move(value)); return *this;}
/**
* <p>Specify a descriptive name for the association.</p>
*/
inline CreateAssociationBatchRequestEntry& WithAssociationName(const char* value) { SetAssociationName(value); return *this;}
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline CreateAssociationBatchRequestEntry& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline CreateAssociationBatchRequestEntry& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
/**
* <p>The number of errors that are allowed before the system stops sending
* requests to run the association on additional targets. You can specify either an
* absolute number of errors, for example 10, or a percentage of the target set,
* for example 10%. If you specify 3, for example, the system stops sending
* requests when the fourth error is received. If you specify 0, then the system
* stops sending requests after the first error is returned. If you run an
* association on 50 instances and set MaxError to 10%, then the system stops
* sending the request when the sixth error is received.</p> <p>Executions that are
* already running an association when MaxErrors is reached are allowed to
* complete, but some of these executions may fail as well. If you need to ensure
* that there won't be more than max-errors failed executions, set MaxConcurrency
* to 1 so that executions proceed one at a time.</p>
*/
inline CreateAssociationBatchRequestEntry& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline CreateAssociationBatchRequestEntry& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;}
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline CreateAssociationBatchRequestEntry& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
/**
* <p>The maximum number of targets allowed to run the association at the same
* time. You can specify a number, for example 10, or a percentage of the target
* set, for example 10%. The default value is 100%, which means all targets run the
* association at the same time.</p> <p>If a new instance starts and attempts to
* run an association while Systems Manager is running MaxConcurrency associations,
* the association is allowed to run. During the next association interval, the new
* instance will process its association within the limit specified for
* MaxConcurrency.</p>
*/
inline CreateAssociationBatchRequestEntry& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
/**
* <p>The severity level to assign to the association.</p>
*/
inline const AssociationComplianceSeverity& GetComplianceSeverity() const{ return m_complianceSeverity; }
/**
* <p>The severity level to assign to the association.</p>
*/
inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
/**
* <p>The severity level to assign to the association.</p>
*/
inline void SetComplianceSeverity(const AssociationComplianceSeverity& value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = value; }
/**
* <p>The severity level to assign to the association.</p>
*/
inline void SetComplianceSeverity(AssociationComplianceSeverity&& value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = std::move(value); }
/**
* <p>The severity level to assign to the association.</p>
*/
inline CreateAssociationBatchRequestEntry& WithComplianceSeverity(const AssociationComplianceSeverity& value) { SetComplianceSeverity(value); return *this;}
/**
* <p>The severity level to assign to the association.</p>
*/
inline CreateAssociationBatchRequestEntry& WithComplianceSeverity(AssociationComplianceSeverity&& value) { SetComplianceSeverity(std::move(value)); return *this;}
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>. </p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline const AssociationSyncCompliance& GetSyncCompliance() const{ return m_syncCompliance; }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>. </p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>. </p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline void SetSyncCompliance(const AssociationSyncCompliance& value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = value; }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>. </p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline void SetSyncCompliance(AssociationSyncCompliance&& value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = std::move(value); }
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>. </p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline CreateAssociationBatchRequestEntry& WithSyncCompliance(const AssociationSyncCompliance& value) { SetSyncCompliance(value); return *this;}
/**
* <p>The mode for generating association compliance. You can specify
* <code>AUTO</code> or <code>MANUAL</code>. In <code>AUTO</code> mode, the system
* uses the status of the association execution to determine the compliance status.
* If the association execution runs successfully, then the association is
* <code>COMPLIANT</code>. If the association execution doesn't run successfully,
* the association is <code>NON-COMPLIANT</code>. </p> <p>In <code>MANUAL</code>
* mode, you must specify the <code>AssociationId</code> as a parameter for the
* <a>PutComplianceItems</a> API action. In this case, compliance data is not
* managed by State Manager. It is managed by your direct call to the
* <a>PutComplianceItems</a> API action.</p> <p>By default, all associations use
* <code>AUTO</code> mode.</p>
*/
inline CreateAssociationBatchRequestEntry& WithSyncCompliance(AssociationSyncCompliance&& value) { SetSyncCompliance(std::move(value)); return *this;}
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline bool GetApplyOnlyAtCronInterval() const{ return m_applyOnlyAtCronInterval; }
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline void SetApplyOnlyAtCronInterval(bool value) { m_applyOnlyAtCronIntervalHasBeenSet = true; m_applyOnlyAtCronInterval = value; }
/**
* <p>By default, when you create a new associations, the system runs it
* immediately after it is created and then according to the schedule you
* specified. Specify this option if you don't want an association to run
* immediately after you create it.</p>
*/
inline CreateAssociationBatchRequestEntry& WithApplyOnlyAtCronInterval(bool value) { SetApplyOnlyAtCronInterval(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_parameters;
bool m_parametersHasBeenSet;
Aws::String m_automationTargetParameterName;
bool m_automationTargetParameterNameHasBeenSet;
Aws::String m_documentVersion;
bool m_documentVersionHasBeenSet;
Aws::Vector<Target> m_targets;
bool m_targetsHasBeenSet;
Aws::String m_scheduleExpression;
bool m_scheduleExpressionHasBeenSet;
InstanceAssociationOutputLocation m_outputLocation;
bool m_outputLocationHasBeenSet;
Aws::String m_associationName;
bool m_associationNameHasBeenSet;
Aws::String m_maxErrors;
bool m_maxErrorsHasBeenSet;
Aws::String m_maxConcurrency;
bool m_maxConcurrencyHasBeenSet;
AssociationComplianceSeverity m_complianceSeverity;
bool m_complianceSeverityHasBeenSet;
AssociationSyncCompliance m_syncCompliance;
bool m_syncComplianceHasBeenSet;
bool m_applyOnlyAtCronInterval;
bool m_applyOnlyAtCronIntervalHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/AssociationDescription.h>
#include <aws/ssm/model/FailedCreateAssociation.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreateAssociationBatchResult
{
public:
CreateAssociationBatchResult();
CreateAssociationBatchResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateAssociationBatchResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the associations that succeeded.</p>
*/
inline const Aws::Vector<AssociationDescription>& GetSuccessful() const{ return m_successful; }
/**
* <p>Information about the associations that succeeded.</p>
*/
inline void SetSuccessful(const Aws::Vector<AssociationDescription>& value) { m_successful = value; }
/**
* <p>Information about the associations that succeeded.</p>
*/
inline void SetSuccessful(Aws::Vector<AssociationDescription>&& value) { m_successful = std::move(value); }
/**
* <p>Information about the associations that succeeded.</p>
*/
inline CreateAssociationBatchResult& WithSuccessful(const Aws::Vector<AssociationDescription>& value) { SetSuccessful(value); return *this;}
/**
* <p>Information about the associations that succeeded.</p>
*/
inline CreateAssociationBatchResult& WithSuccessful(Aws::Vector<AssociationDescription>&& value) { SetSuccessful(std::move(value)); return *this;}
/**
* <p>Information about the associations that succeeded.</p>
*/
inline CreateAssociationBatchResult& AddSuccessful(const AssociationDescription& value) { m_successful.push_back(value); return *this; }
/**
* <p>Information about the associations that succeeded.</p>
*/
inline CreateAssociationBatchResult& AddSuccessful(AssociationDescription&& value) { m_successful.push_back(std::move(value)); return *this; }
/**
* <p>Information about the associations that failed.</p>
*/
inline const Aws::Vector<FailedCreateAssociation>& GetFailed() const{ return m_failed; }
/**
* <p>Information about the associations that failed.</p>
*/
inline void SetFailed(const Aws::Vector<FailedCreateAssociation>& value) { m_failed = value; }
/**
* <p>Information about the associations that failed.</p>
*/
inline void SetFailed(Aws::Vector<FailedCreateAssociation>&& value) { m_failed = std::move(value); }
/**
* <p>Information about the associations that failed.</p>
*/
inline CreateAssociationBatchResult& WithFailed(const Aws::Vector<FailedCreateAssociation>& value) { SetFailed(value); return *this;}
/**
* <p>Information about the associations that failed.</p>
*/
inline CreateAssociationBatchResult& WithFailed(Aws::Vector<FailedCreateAssociation>&& value) { SetFailed(std::move(value)); return *this;}
/**
* <p>Information about the associations that failed.</p>
*/
inline CreateAssociationBatchResult& AddFailed(const FailedCreateAssociation& value) { m_failed.push_back(value); return *this; }
/**
* <p>Information about the associations that failed.</p>
*/
inline CreateAssociationBatchResult& AddFailed(FailedCreateAssociation&& value) { m_failed.push_back(std::move(value)); return *this; }
private:
Aws::Vector<AssociationDescription> m_successful;
Aws::Vector<FailedCreateAssociation> m_failed;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/model/AssociationDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreateAssociationResult
{
public:
CreateAssociationResult();
CreateAssociationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateAssociationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the association.</p>
*/
inline const AssociationDescription& GetAssociationDescription() const{ return m_associationDescription; }
/**
* <p>Information about the association.</p>
*/
inline void SetAssociationDescription(const AssociationDescription& value) { m_associationDescription = value; }
/**
* <p>Information about the association.</p>
*/
inline void SetAssociationDescription(AssociationDescription&& value) { m_associationDescription = std::move(value); }
/**
* <p>Information about the association.</p>
*/
inline CreateAssociationResult& WithAssociationDescription(const AssociationDescription& value) { SetAssociationDescription(value); return *this;}
/**
* <p>Information about the association.</p>
*/
inline CreateAssociationResult& WithAssociationDescription(AssociationDescription&& value) { SetAssociationDescription(std::move(value)); return *this;}
private:
AssociationDescription m_associationDescription;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,733 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/DocumentType.h>
#include <aws/ssm/model/DocumentFormat.h>
#include <aws/ssm/model/DocumentRequires.h>
#include <aws/ssm/model/AttachmentsSource.h>
#include <aws/ssm/model/Tag.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API CreateDocumentRequest : public SSMRequest
{
public:
CreateDocumentRequest();
// 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 "CreateDocument"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline const Aws::String& GetContent() const{ return m_content; }
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline CreateDocumentRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline CreateDocumentRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
/**
* <p>The content for the new SSM document in JSON or YAML format. We recommend
* storing the contents for your new document in an external JSON or YAML file and
* referencing the file in a command.</p> <p>For examples, see the following topics
* in the <i>AWS Systems Manager User Guide</i>.</p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (AWS API)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-cli.html">Create
* an SSM document (AWS CLI)</a> </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-document-api.html">Create
* an SSM document (API)</a> </p> </li> </ul>
*/
inline CreateDocumentRequest& WithContent(const char* value) { SetContent(value); return *this;}
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline const Aws::Vector<DocumentRequires>& GetRequires() const{ return m_requires; }
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline bool RequiresHasBeenSet() const { return m_requiresHasBeenSet; }
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetRequires(const Aws::Vector<DocumentRequires>& value) { m_requiresHasBeenSet = true; m_requires = value; }
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetRequires(Aws::Vector<DocumentRequires>&& value) { m_requiresHasBeenSet = true; m_requires = std::move(value); }
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateDocumentRequest& WithRequires(const Aws::Vector<DocumentRequires>& value) { SetRequires(value); return *this;}
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateDocumentRequest& WithRequires(Aws::Vector<DocumentRequires>&& value) { SetRequires(std::move(value)); return *this;}
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateDocumentRequest& AddRequires(const DocumentRequires& value) { m_requiresHasBeenSet = true; m_requires.push_back(value); return *this; }
/**
* <p>A list of SSM documents required by a document. This parameter is used
* exclusively by AWS AppConfig. When a user creates an AppConfig configuration in
* an SSM document, the user must also specify a required document for validation
* purposes. In this case, an <code>ApplicationConfiguration</code> document
* requires an <code>ApplicationConfigurationSchema</code> document for validation
* purposes. For more information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS
* AppConfig</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateDocumentRequest& AddRequires(DocumentRequires&& value) { m_requiresHasBeenSet = true; m_requires.push_back(std::move(value)); return *this; }
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline const Aws::Vector<AttachmentsSource>& GetAttachments() const{ return m_attachments; }
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline void SetAttachments(const Aws::Vector<AttachmentsSource>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline void SetAttachments(Aws::Vector<AttachmentsSource>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline CreateDocumentRequest& WithAttachments(const Aws::Vector<AttachmentsSource>& value) { SetAttachments(value); return *this;}
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline CreateDocumentRequest& WithAttachments(Aws::Vector<AttachmentsSource>&& value) { SetAttachments(std::move(value)); return *this;}
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline CreateDocumentRequest& AddAttachments(const AttachmentsSource& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
/**
* <p>A list of key and value pairs that describe attachments to a version of a
* document.</p>
*/
inline CreateDocumentRequest& AddAttachments(AttachmentsSource&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline CreateDocumentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline CreateDocumentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A name for the Systems Manager document.</p> <p>You can't use the
* following strings as document name prefixes. These are reserved by AWS for use
* as document name prefixes:</p> <ul> <li> <p> <code>aws-</code> </p> </li> <li>
* <p> <code>amazon</code> </p> </li> <li> <p> <code>amzn</code> </p> </li> </ul>
*
*/
inline CreateDocumentRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline const Aws::String& GetVersionName() const{ return m_versionName; }
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline CreateDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline CreateDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
/**
* <p>An optional field specifying the version of the artifact you are creating
* with the document. For example, "Release 12, Update 6". This value is unique
* across all versions of a document, and cannot be changed.</p>
*/
inline CreateDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
/**
* <p>The type of document to create.</p>
*/
inline const DocumentType& GetDocumentType() const{ return m_documentType; }
/**
* <p>The type of document to create.</p>
*/
inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; }
/**
* <p>The type of document to create.</p>
*/
inline void SetDocumentType(const DocumentType& value) { m_documentTypeHasBeenSet = true; m_documentType = value; }
/**
* <p>The type of document to create.</p>
*/
inline void SetDocumentType(DocumentType&& value) { m_documentTypeHasBeenSet = true; m_documentType = std::move(value); }
/**
* <p>The type of document to create.</p>
*/
inline CreateDocumentRequest& WithDocumentType(const DocumentType& value) { SetDocumentType(value); return *this;}
/**
* <p>The type of document to create.</p>
*/
inline CreateDocumentRequest& WithDocumentType(DocumentType&& value) { SetDocumentType(std::move(value)); return *this;}
/**
* <p>Specify the document format for the request. The document format can be JSON,
* YAML, or TEXT. JSON is the default format.</p>
*/
inline const DocumentFormat& GetDocumentFormat() const{ return m_documentFormat; }
/**
* <p>Specify the document format for the request. The document format can be JSON,
* YAML, or TEXT. JSON is the default format.</p>
*/
inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
/**
* <p>Specify the document format for the request. The document format can be JSON,
* YAML, or TEXT. JSON is the default format.</p>
*/
inline void SetDocumentFormat(const DocumentFormat& value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
/**
* <p>Specify the document format for the request. The document format can be JSON,
* YAML, or TEXT. JSON is the default format.</p>
*/
inline void SetDocumentFormat(DocumentFormat&& value) { m_documentFormatHasBeenSet = true; m_documentFormat = std::move(value); }
/**
* <p>Specify the document format for the request. The document format can be JSON,
* YAML, or TEXT. JSON is the default format.</p>
*/
inline CreateDocumentRequest& WithDocumentFormat(const DocumentFormat& value) { SetDocumentFormat(value); return *this;}
/**
* <p>Specify the document format for the request. The document format can be JSON,
* YAML, or TEXT. JSON is the default format.</p>
*/
inline CreateDocumentRequest& WithDocumentFormat(DocumentFormat&& value) { SetDocumentFormat(std::move(value)); return *this;}
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline const Aws::String& GetTargetType() const{ return m_targetType; }
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline CreateDocumentRequest& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline CreateDocumentRequest& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
/**
* <p>Specify a target type to define the kinds of resources the document can run
* on. For example, to run a document on EC2 instances, specify the following
* value: /AWS::EC2::Instance. If you specify a value of '/' the document can run
* on all types of resources. If you don't specify a value, the document can't run
* on any resources. For a list of valid resource types, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">AWS
* resource and property types reference</a> in the <i>AWS CloudFormation User
* Guide</i>. </p>
*/
inline CreateDocumentRequest& WithTargetType(const char* value) { SetTargetType(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline CreateDocumentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline CreateDocumentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline CreateDocumentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag an SSM document to identify the
* types of targets or the environment where it will run. In this case, you could
* specify the following key name/value pairs:</p> <ul> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing SSM document, use the <a>AddTagsToResource</a> action.</p>
*
*/
inline CreateDocumentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_content;
bool m_contentHasBeenSet;
Aws::Vector<DocumentRequires> m_requires;
bool m_requiresHasBeenSet;
Aws::Vector<AttachmentsSource> m_attachments;
bool m_attachmentsHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_versionName;
bool m_versionNameHasBeenSet;
DocumentType m_documentType;
bool m_documentTypeHasBeenSet;
DocumentFormat m_documentFormat;
bool m_documentFormatHasBeenSet;
Aws::String m_targetType;
bool m_targetTypeHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/model/DocumentDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreateDocumentResult
{
public:
CreateDocumentResult();
CreateDocumentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDocumentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the Systems Manager document.</p>
*/
inline const DocumentDescription& GetDocumentDescription() const{ return m_documentDescription; }
/**
* <p>Information about the Systems Manager document.</p>
*/
inline void SetDocumentDescription(const DocumentDescription& value) { m_documentDescription = value; }
/**
* <p>Information about the Systems Manager document.</p>
*/
inline void SetDocumentDescription(DocumentDescription&& value) { m_documentDescription = std::move(value); }
/**
* <p>Information about the Systems Manager document.</p>
*/
inline CreateDocumentResult& WithDocumentDescription(const DocumentDescription& value) { SetDocumentDescription(value); return *this;}
/**
* <p>Information about the Systems Manager document.</p>
*/
inline CreateDocumentResult& WithDocumentDescription(DocumentDescription&& value) { SetDocumentDescription(std::move(value)); return *this;}
private:
DocumentDescription m_documentDescription;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,688 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/Tag.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API CreateMaintenanceWindowRequest : public SSMRequest
{
public:
CreateMaintenanceWindowRequest();
// 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 "CreateMaintenanceWindow"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the maintenance window.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the maintenance window.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the maintenance window.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the maintenance window.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the maintenance window.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the maintenance window.</p>
*/
inline CreateMaintenanceWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the maintenance window.</p>
*/
inline CreateMaintenanceWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the maintenance window.</p>
*/
inline CreateMaintenanceWindowRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline CreateMaintenanceWindowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline CreateMaintenanceWindowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>An optional description for the maintenance window. We recommend specifying a
* description to help you organize your maintenance windows. </p>
*/
inline CreateMaintenanceWindowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline const Aws::String& GetStartDate() const{ return m_startDate; }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline CreateMaintenanceWindowRequest& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline CreateMaintenanceWindowRequest& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become active. StartDate allows you to delay activation of
* the maintenance window until the specified future date.</p>
*/
inline CreateMaintenanceWindowRequest& WithStartDate(const char* value) { SetStartDate(value); return *this;}
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline const Aws::String& GetEndDate() const{ return m_endDate; }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); }
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline CreateMaintenanceWindowRequest& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline CreateMaintenanceWindowRequest& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
/**
* <p>The date and time, in ISO-8601 Extended format, for when you want the
* maintenance window to become inactive. EndDate allows you to set a date and time
* in the future when the maintenance window will no longer run.</p>
*/
inline CreateMaintenanceWindowRequest& WithEndDate(const char* value) { SetEndDate(value); return *this;}
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline const Aws::String& GetSchedule() const{ return m_schedule; }
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline CreateMaintenanceWindowRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline CreateMaintenanceWindowRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>The schedule of the maintenance window in the form of a cron or rate
* expression.</p>
*/
inline CreateMaintenanceWindowRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline const Aws::String& GetScheduleTimezone() const{ return m_scheduleTimezone; }
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline void SetScheduleTimezone(const Aws::String& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = value; }
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline void SetScheduleTimezone(Aws::String&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::move(value); }
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline void SetScheduleTimezone(const char* value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone.assign(value); }
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline CreateMaintenanceWindowRequest& WithScheduleTimezone(const Aws::String& value) { SetScheduleTimezone(value); return *this;}
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline CreateMaintenanceWindowRequest& WithScheduleTimezone(Aws::String&& value) { SetScheduleTimezone(std::move(value)); return *this;}
/**
* <p>The time zone that the scheduled maintenance window executions are based on,
* in Internet Assigned Numbers Authority (IANA) format. For example:
* "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the
* <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA
* website.</p>
*/
inline CreateMaintenanceWindowRequest& WithScheduleTimezone(const char* value) { SetScheduleTimezone(value); return *this;}
/**
* <p>The number of days to wait after the date and time specified by a CRON
* expression before running the maintenance window.</p> <p>For example, the
* following cron expression schedules a maintenance window to run on the third
* Tuesday of every month at 11:30 PM.</p> <p> <code>cron(0 30 23 ? * TUE#3
* *)</code> </p> <p>If the schedule offset is <code>2</code>, the maintenance
* window won't run until two days later.</p>
*/
inline int GetScheduleOffset() const{ return m_scheduleOffset; }
/**
* <p>The number of days to wait after the date and time specified by a CRON
* expression before running the maintenance window.</p> <p>For example, the
* following cron expression schedules a maintenance window to run on the third
* Tuesday of every month at 11:30 PM.</p> <p> <code>cron(0 30 23 ? * TUE#3
* *)</code> </p> <p>If the schedule offset is <code>2</code>, the maintenance
* window won't run until two days later.</p>
*/
inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
/**
* <p>The number of days to wait after the date and time specified by a CRON
* expression before running the maintenance window.</p> <p>For example, the
* following cron expression schedules a maintenance window to run on the third
* Tuesday of every month at 11:30 PM.</p> <p> <code>cron(0 30 23 ? * TUE#3
* *)</code> </p> <p>If the schedule offset is <code>2</code>, the maintenance
* window won't run until two days later.</p>
*/
inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
/**
* <p>The number of days to wait after the date and time specified by a CRON
* expression before running the maintenance window.</p> <p>For example, the
* following cron expression schedules a maintenance window to run on the third
* Tuesday of every month at 11:30 PM.</p> <p> <code>cron(0 30 23 ? * TUE#3
* *)</code> </p> <p>If the schedule offset is <code>2</code>, the maintenance
* window won't run until two days later.</p>
*/
inline CreateMaintenanceWindowRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
/**
* <p>The duration of the maintenance window in hours.</p>
*/
inline int GetDuration() const{ return m_duration; }
/**
* <p>The duration of the maintenance window in hours.</p>
*/
inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
/**
* <p>The duration of the maintenance window in hours.</p>
*/
inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
/**
* <p>The duration of the maintenance window in hours.</p>
*/
inline CreateMaintenanceWindowRequest& WithDuration(int value) { SetDuration(value); return *this;}
/**
* <p>The number of hours before the end of the maintenance window that Systems
* Manager stops scheduling new tasks for execution.</p>
*/
inline int GetCutoff() const{ return m_cutoff; }
/**
* <p>The number of hours before the end of the maintenance window that Systems
* Manager stops scheduling new tasks for execution.</p>
*/
inline bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
/**
* <p>The number of hours before the end of the maintenance window that Systems
* Manager stops scheduling new tasks for execution.</p>
*/
inline void SetCutoff(int value) { m_cutoffHasBeenSet = true; m_cutoff = value; }
/**
* <p>The number of hours before the end of the maintenance window that Systems
* Manager stops scheduling new tasks for execution.</p>
*/
inline CreateMaintenanceWindowRequest& WithCutoff(int value) { SetCutoff(value); return *this;}
/**
* <p>Enables a maintenance window task to run on managed instances, even if you
* have not registered those instances as targets. If enabled, then you must
* specify the unregistered instances (by instance ID) when you register a task
* with the maintenance window.</p> <p>If you don't enable this option, then you
* must specify previously-registered targets when you register a task with the
* maintenance window.</p>
*/
inline bool GetAllowUnassociatedTargets() const{ return m_allowUnassociatedTargets; }
/**
* <p>Enables a maintenance window task to run on managed instances, even if you
* have not registered those instances as targets. If enabled, then you must
* specify the unregistered instances (by instance ID) when you register a task
* with the maintenance window.</p> <p>If you don't enable this option, then you
* must specify previously-registered targets when you register a task with the
* maintenance window.</p>
*/
inline bool AllowUnassociatedTargetsHasBeenSet() const { return m_allowUnassociatedTargetsHasBeenSet; }
/**
* <p>Enables a maintenance window task to run on managed instances, even if you
* have not registered those instances as targets. If enabled, then you must
* specify the unregistered instances (by instance ID) when you register a task
* with the maintenance window.</p> <p>If you don't enable this option, then you
* must specify previously-registered targets when you register a task with the
* maintenance window.</p>
*/
inline void SetAllowUnassociatedTargets(bool value) { m_allowUnassociatedTargetsHasBeenSet = true; m_allowUnassociatedTargets = value; }
/**
* <p>Enables a maintenance window task to run on managed instances, even if you
* have not registered those instances as targets. If enabled, then you must
* specify the unregistered instances (by instance ID) when you register a task
* with the maintenance window.</p> <p>If you don't enable this option, then you
* must specify previously-registered targets when you register a task with the
* maintenance window.</p>
*/
inline CreateMaintenanceWindowRequest& WithAllowUnassociatedTargets(bool value) { SetAllowUnassociatedTargets(value); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
/**
* <p>User-provided idempotency token.</p>
*/
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
/**
* <p>User-provided idempotency token.</p>
*/
inline CreateMaintenanceWindowRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline CreateMaintenanceWindowRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline CreateMaintenanceWindowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreateMaintenanceWindowRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreateMaintenanceWindowRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreateMaintenanceWindowRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a maintenance window to identify
* the type of tasks it will run, the types of targets, and the environment it will
* run in. In this case, you could specify the following key name/value pairs:</p>
* <ul> <li> <p> <code>Key=TaskType,Value=AgentUpdate</code> </p> </li> <li> <p>
* <code>Key=OS,Value=Windows</code> </p> </li> <li> <p>
* <code>Key=Environment,Value=Production</code> </p> </li> </ul> <p>To add
* tags to an existing maintenance window, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreateMaintenanceWindowRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_startDate;
bool m_startDateHasBeenSet;
Aws::String m_endDate;
bool m_endDateHasBeenSet;
Aws::String m_schedule;
bool m_scheduleHasBeenSet;
Aws::String m_scheduleTimezone;
bool m_scheduleTimezoneHasBeenSet;
int m_scheduleOffset;
bool m_scheduleOffsetHasBeenSet;
int m_duration;
bool m_durationHasBeenSet;
int m_cutoff;
bool m_cutoffHasBeenSet;
bool m_allowUnassociatedTargets;
bool m_allowUnassociatedTargetsHasBeenSet;
Aws::String m_clientToken;
bool m_clientTokenHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreateMaintenanceWindowResult
{
public:
CreateMaintenanceWindowResult();
CreateMaintenanceWindowResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateMaintenanceWindowResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the created maintenance window.</p>
*/
inline const Aws::String& GetWindowId() const{ return m_windowId; }
/**
* <p>The ID of the created maintenance window.</p>
*/
inline void SetWindowId(const Aws::String& value) { m_windowId = value; }
/**
* <p>The ID of the created maintenance window.</p>
*/
inline void SetWindowId(Aws::String&& value) { m_windowId = std::move(value); }
/**
* <p>The ID of the created maintenance window.</p>
*/
inline void SetWindowId(const char* value) { m_windowId.assign(value); }
/**
* <p>The ID of the created maintenance window.</p>
*/
inline CreateMaintenanceWindowResult& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
/**
* <p>The ID of the created maintenance window.</p>
*/
inline CreateMaintenanceWindowResult& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
/**
* <p>The ID of the created maintenance window.</p>
*/
inline CreateMaintenanceWindowResult& WithWindowId(const char* value) { SetWindowId(value); return *this;}
private:
Aws::String m_windowId;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,799 @@
/**
* 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 <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/OpsItemDataValue.h>
#include <aws/ssm/model/OpsItemNotification.h>
#include <aws/ssm/model/RelatedOpsItem.h>
#include <aws/ssm/model/Tag.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API CreateOpsItemRequest : public SSMRequest
{
public:
CreateOpsItemRequest();
// 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 "CreateOpsItem"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Information about the OpsItem. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>Information about the OpsItem. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>Information about the OpsItem. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>Information about the OpsItem. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>Information about the OpsItem. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>Information about the OpsItem. </p>
*/
inline CreateOpsItemRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>Information about the OpsItem. </p>
*/
inline CreateOpsItemRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>Information about the OpsItem. </p>
*/
inline CreateOpsItemRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const{ return m_operationalData; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { m_operationalDataHasBeenSet = true; m_operationalData = value; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::move(value); }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& WithOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { SetOperationalData(value); return *this;}
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& WithOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { SetOperationalData(std::move(value)); return *this;}
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), value); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(const char* key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. For example, you can specify log files, error strings, license
* keys, troubleshooting tips, or other relevant data. You enter operational data
* as key-value pairs. The key has a maximum length of 128 characters. The value
* has a maximum size of 20 KB.</p> <p>Operational data keys
* <i>can't</i> begin with the following: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</p> <p>You can choose to make the data searchable by
* other users in the account or you can restrict search access. Searchable data
* means that all users with access to the OpsItem Overview page (as provided by
* the <a>DescribeOpsItems</a> API action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</p>
* <p>Use the <code>/aws/resources</code> key in OperationalData to specify a
* related resource in the request. Use the <code>/aws/automations</code> key in
* OperationalData to associate an Automation runbook with the OpsItem. To view AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(const char* key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline const Aws::Vector<OpsItemNotification>& GetNotifications() const{ return m_notifications; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline void SetNotifications(const Aws::Vector<OpsItemNotification>& value) { m_notificationsHasBeenSet = true; m_notifications = value; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline void SetNotifications(Aws::Vector<OpsItemNotification>&& value) { m_notificationsHasBeenSet = true; m_notifications = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline CreateOpsItemRequest& WithNotifications(const Aws::Vector<OpsItemNotification>& value) { SetNotifications(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline CreateOpsItemRequest& WithNotifications(Aws::Vector<OpsItemNotification>&& value) { SetNotifications(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline CreateOpsItemRequest& AddNotifications(const OpsItemNotification& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline CreateOpsItemRequest& AddNotifications(OpsItemNotification&& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(std::move(value)); return *this; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline int GetPriority() const{ return m_priority; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline CreateOpsItemRequest& WithPriority(int value) { SetPriority(value); return *this;}
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const{ return m_relatedOpsItems; }
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline void SetRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = value; }
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline void SetRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::move(value); }
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline CreateOpsItemRequest& WithRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { SetRelatedOpsItems(value); return *this;}
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline CreateOpsItemRequest& WithRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { SetRelatedOpsItems(std::move(value)); return *this;}
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline CreateOpsItemRequest& AddRelatedOpsItems(const RelatedOpsItem& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(value); return *this; }
/**
* <p>One or more OpsItems that share something in common with the current
* OpsItems. For example, related OpsItems can include OpsItems with similar error
* messages, impacted resources, or statuses for the impacted resource.</p>
*/
inline CreateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItem&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(std::move(value)); return *this; }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline const Aws::String& GetSource() const{ return m_source; }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline CreateOpsItemRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline CreateOpsItemRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline CreateOpsItemRequest& WithSource(const char* value) { SetSource(value); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline const Aws::String& GetTitle() const{ return m_title; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline CreateOpsItemRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline CreateOpsItemRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline CreateOpsItemRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline CreateOpsItemRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline CreateOpsItemRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline CreateOpsItemRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline CreateOpsItemRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline const Aws::String& GetCategory() const{ return m_category; }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline CreateOpsItemRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline CreateOpsItemRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline CreateOpsItemRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline const Aws::String& GetSeverity() const{ return m_severity; }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline CreateOpsItemRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline CreateOpsItemRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline CreateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
private:
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Map<Aws::String, OpsItemDataValue> m_operationalData;
bool m_operationalDataHasBeenSet;
Aws::Vector<OpsItemNotification> m_notifications;
bool m_notificationsHasBeenSet;
int m_priority;
bool m_priorityHasBeenSet;
Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
bool m_relatedOpsItemsHasBeenSet;
Aws::String m_source;
bool m_sourceHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
Aws::String m_category;
bool m_categoryHasBeenSet;
Aws::String m_severity;
bool m_severityHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreateOpsItemResult
{
public:
CreateOpsItemResult();
CreateOpsItemResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateOpsItemResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the OpsItem.</p>
*/
inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; }
/**
* <p>The ID of the OpsItem.</p>
*/
inline void SetOpsItemId(const Aws::String& value) { m_opsItemId = value; }
/**
* <p>The ID of the OpsItem.</p>
*/
inline void SetOpsItemId(Aws::String&& value) { m_opsItemId = std::move(value); }
/**
* <p>The ID of the OpsItem.</p>
*/
inline void SetOpsItemId(const char* value) { m_opsItemId.assign(value); }
/**
* <p>The ID of the OpsItem.</p>
*/
inline CreateOpsItemResult& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;}
/**
* <p>The ID of the OpsItem.</p>
*/
inline CreateOpsItemResult& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;}
/**
* <p>The ID of the OpsItem.</p>
*/
inline CreateOpsItemResult& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;}
private:
Aws::String m_opsItemId;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,812 @@
/**
* 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/ssm/model/OperatingSystem.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/PatchFilterGroup.h>
#include <aws/ssm/model/PatchRuleGroup.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/PatchComplianceLevel.h>
#include <aws/ssm/model/PatchAction.h>
#include <aws/ssm/model/PatchSource.h>
#include <aws/ssm/model/Tag.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API CreatePatchBaselineRequest : public SSMRequest
{
public:
CreatePatchBaselineRequest();
// 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 "CreatePatchBaseline"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Defines the operating system the patch baseline applies to. The Default value
* is WINDOWS.</p>
*/
inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
/**
* <p>Defines the operating system the patch baseline applies to. The Default value
* is WINDOWS.</p>
*/
inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
/**
* <p>Defines the operating system the patch baseline applies to. The Default value
* is WINDOWS.</p>
*/
inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
/**
* <p>Defines the operating system the patch baseline applies to. The Default value
* is WINDOWS.</p>
*/
inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
/**
* <p>Defines the operating system the patch baseline applies to. The Default value
* is WINDOWS.</p>
*/
inline CreatePatchBaselineRequest& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
/**
* <p>Defines the operating system the patch baseline applies to. The Default value
* is WINDOWS.</p>
*/
inline CreatePatchBaselineRequest& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
/**
* <p>The name of the patch baseline.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the patch baseline.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the patch baseline.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the patch baseline.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the patch baseline.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the patch baseline.</p>
*/
inline CreatePatchBaselineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the patch baseline.</p>
*/
inline CreatePatchBaselineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the patch baseline.</p>
*/
inline CreatePatchBaselineRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline bool GlobalFiltersHasBeenSet() const { return m_globalFiltersHasBeenSet; }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = value; }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFiltersHasBeenSet = true; m_globalFilters = std::move(value); }
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline CreatePatchBaselineRequest& WithGlobalFilters(const PatchFilterGroup& value) { SetGlobalFilters(value); return *this;}
/**
* <p>A set of global filters used to include patches in the baseline.</p>
*/
inline CreatePatchBaselineRequest& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;}
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline bool ApprovalRulesHasBeenSet() const { return m_approvalRulesHasBeenSet; }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = value; }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRulesHasBeenSet = true; m_approvalRules = std::move(value); }
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline CreatePatchBaselineRequest& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
/**
* <p>A set of rules used to include patches in the baseline.</p>
*/
inline CreatePatchBaselineRequest& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;}
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline const Aws::Vector<Aws::String>& GetApprovedPatches() const{ return m_approvedPatches; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline bool ApprovedPatchesHasBeenSet() const { return m_approvedPatchesHasBeenSet; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetApprovedPatches(const Aws::Vector<Aws::String>& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = value; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetApprovedPatches(Aws::Vector<Aws::String>&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches = std::move(value); }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& WithApprovedPatches(const Aws::Vector<Aws::String>& value) { SetApprovedPatches(value); return *this;}
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& WithApprovedPatches(Aws::Vector<Aws::String>&& value) { SetApprovedPatches(std::move(value)); return *this;}
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& AddApprovedPatches(const Aws::String& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& AddApprovedPatches(Aws::String&& value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(std::move(value)); return *this; }
/**
* <p>A list of explicitly approved patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& AddApprovedPatches(const char* value) { m_approvedPatchesHasBeenSet = true; m_approvedPatches.push_back(value); return *this; }
/**
* <p>Defines the compliance level for approved patches. This means that if an
* approved patch is reported as missing, this is the severity of the compliance
* violation. The default value is UNSPECIFIED.</p>
*/
inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; }
/**
* <p>Defines the compliance level for approved patches. This means that if an
* approved patch is reported as missing, this is the severity of the compliance
* violation. The default value is UNSPECIFIED.</p>
*/
inline bool ApprovedPatchesComplianceLevelHasBeenSet() const { return m_approvedPatchesComplianceLevelHasBeenSet; }
/**
* <p>Defines the compliance level for approved patches. This means that if an
* approved patch is reported as missing, this is the severity of the compliance
* violation. The default value is UNSPECIFIED.</p>
*/
inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = value; }
/**
* <p>Defines the compliance level for approved patches. This means that if an
* approved patch is reported as missing, this is the severity of the compliance
* violation. The default value is UNSPECIFIED.</p>
*/
inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevelHasBeenSet = true; m_approvedPatchesComplianceLevel = std::move(value); }
/**
* <p>Defines the compliance level for approved patches. This means that if an
* approved patch is reported as missing, this is the severity of the compliance
* violation. The default value is UNSPECIFIED.</p>
*/
inline CreatePatchBaselineRequest& WithApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { SetApprovedPatchesComplianceLevel(value); return *this;}
/**
* <p>Defines the compliance level for approved patches. This means that if an
* approved patch is reported as missing, this is the severity of the compliance
* violation. The default value is UNSPECIFIED.</p>
*/
inline CreatePatchBaselineRequest& WithApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { SetApprovedPatchesComplianceLevel(std::move(value)); return *this;}
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; }
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline bool ApprovedPatchesEnableNonSecurityHasBeenSet() const { return m_approvedPatchesEnableNonSecurityHasBeenSet; }
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurityHasBeenSet = true; m_approvedPatchesEnableNonSecurity = value; }
/**
* <p>Indicates whether the list of approved patches includes non-security updates
* that should be applied to the instances. The default value is 'false'. Applies
* to Linux instances only.</p>
*/
inline CreatePatchBaselineRequest& WithApprovedPatchesEnableNonSecurity(bool value) { SetApprovedPatchesEnableNonSecurity(value); return *this;}
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline const Aws::Vector<Aws::String>& GetRejectedPatches() const{ return m_rejectedPatches; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline bool RejectedPatchesHasBeenSet() const { return m_rejectedPatchesHasBeenSet; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetRejectedPatches(const Aws::Vector<Aws::String>& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = value; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetRejectedPatches(Aws::Vector<Aws::String>&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches = std::move(value); }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& WithRejectedPatches(const Aws::Vector<Aws::String>& value) { SetRejectedPatches(value); return *this;}
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& WithRejectedPatches(Aws::Vector<Aws::String>&& value) { SetRejectedPatches(std::move(value)); return *this;}
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& AddRejectedPatches(const Aws::String& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& AddRejectedPatches(Aws::String&& value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(std::move(value)); return *this; }
/**
* <p>A list of explicitly rejected patches for the baseline.</p> <p>For
* information about accepted formats for lists of approved patches and rejected
* patches, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">About
* package name formats for approved and rejected patch lists</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline CreatePatchBaselineRequest& AddRejectedPatches(const char* value) { m_rejectedPatchesHasBeenSet = true; m_rejectedPatches.push_back(value); return *this; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline bool RejectedPatchesActionHasBeenSet() const { return m_rejectedPatchesActionHasBeenSet; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = value; }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesActionHasBeenSet = true; m_rejectedPatchesAction = std::move(value); }
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline CreatePatchBaselineRequest& WithRejectedPatchesAction(const PatchAction& value) { SetRejectedPatchesAction(value); return *this;}
/**
* <p>The action for Patch Manager to take on patches included in the
* RejectedPackages list.</p> <ul> <li> <p> <b>ALLOW_AS_DEPENDENCY</b>: A package
* in the Rejected patches list is installed only if it is a dependency of another
* package. It is considered compliant with the patch baseline, and its status is
* reported as <i>InstalledOther</i>. This is the default action if no option is
* specified.</p> </li> <li> <p> <b>BLOCK</b>: Packages in the RejectedPatches
* list, and packages that include them as dependencies, are not installed under
* any circumstances. If a package was installed before it was added to the
* Rejected patches list, it is considered non-compliant with the patch baseline,
* and its status is reported as <i>InstalledRejected</i>.</p> </li> </ul>
*/
inline CreatePatchBaselineRequest& WithRejectedPatchesAction(PatchAction&& value) { SetRejectedPatchesAction(std::move(value)); return *this;}
/**
* <p>A description of the patch baseline.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the patch baseline.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the patch baseline.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the patch baseline.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the patch baseline.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the patch baseline.</p>
*/
inline CreatePatchBaselineRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the patch baseline.</p>
*/
inline CreatePatchBaselineRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the patch baseline.</p>
*/
inline CreatePatchBaselineRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline CreatePatchBaselineRequest& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline CreatePatchBaselineRequest& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline CreatePatchBaselineRequest& AddSources(const PatchSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
/**
* <p>Information about the patches to use to update the instances, including
* target operating systems and source repositories. Applies to Linux instances
* only.</p>
*/
inline CreatePatchBaselineRequest& AddSources(PatchSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
/**
* <p>User-provided idempotency token.</p>
*/
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
/**
* <p>User-provided idempotency token.</p>
*/
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
/**
* <p>User-provided idempotency token.</p>
*/
inline CreatePatchBaselineRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline CreatePatchBaselineRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline CreatePatchBaselineRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreatePatchBaselineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreatePatchBaselineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreatePatchBaselineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Optional metadata that you assign to a resource. Tags enable you to
* categorize a resource in different ways, such as by purpose, owner, or
* environment. For example, you might want to tag a patch baseline to identify the
* severity level of patches it specifies and the operating system family it
* applies to. In this case, you could specify the following key name/value
* pairs:</p> <ul> <li> <p> <code>Key=PatchSeverity,Value=Critical</code> </p>
* </li> <li> <p> <code>Key=OS,Value=Windows</code> </p> </li> </ul> <p>To
* add tags to an existing patch baseline, use the <a>AddTagsToResource</a>
* action.</p>
*/
inline CreatePatchBaselineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
OperatingSystem m_operatingSystem;
bool m_operatingSystemHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
PatchFilterGroup m_globalFilters;
bool m_globalFiltersHasBeenSet;
PatchRuleGroup m_approvalRules;
bool m_approvalRulesHasBeenSet;
Aws::Vector<Aws::String> m_approvedPatches;
bool m_approvedPatchesHasBeenSet;
PatchComplianceLevel m_approvedPatchesComplianceLevel;
bool m_approvedPatchesComplianceLevelHasBeenSet;
bool m_approvedPatchesEnableNonSecurity;
bool m_approvedPatchesEnableNonSecurityHasBeenSet;
Aws::Vector<Aws::String> m_rejectedPatches;
bool m_rejectedPatchesHasBeenSet;
PatchAction m_rejectedPatchesAction;
bool m_rejectedPatchesActionHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<PatchSource> m_sources;
bool m_sourcesHasBeenSet;
Aws::String m_clientToken;
bool m_clientTokenHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreatePatchBaselineResult
{
public:
CreatePatchBaselineResult();
CreatePatchBaselineResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreatePatchBaselineResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the created patch baseline.</p>
*/
inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
/**
* <p>The ID of the created patch baseline.</p>
*/
inline void SetBaselineId(const Aws::String& value) { m_baselineId = value; }
/**
* <p>The ID of the created patch baseline.</p>
*/
inline void SetBaselineId(Aws::String&& value) { m_baselineId = std::move(value); }
/**
* <p>The ID of the created patch baseline.</p>
*/
inline void SetBaselineId(const char* value) { m_baselineId.assign(value); }
/**
* <p>The ID of the created patch baseline.</p>
*/
inline CreatePatchBaselineResult& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
/**
* <p>The ID of the created patch baseline.</p>
*/
inline CreatePatchBaselineResult& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
/**
* <p>The ID of the created patch baseline.</p>
*/
inline CreatePatchBaselineResult& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
private:
Aws::String m_baselineId;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,275 @@
/**
* 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 <aws/ssm/model/ResourceDataSyncS3Destination.h>
#include <aws/ssm/model/ResourceDataSyncSource.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API CreateResourceDataSyncRequest : public SSMRequest
{
public:
CreateResourceDataSyncRequest();
// 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 "CreateResourceDataSync"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A name for the configuration.</p>
*/
inline const Aws::String& GetSyncName() const{ return m_syncName; }
/**
* <p>A name for the configuration.</p>
*/
inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
/**
* <p>A name for the configuration.</p>
*/
inline void SetSyncName(const Aws::String& value) { m_syncNameHasBeenSet = true; m_syncName = value; }
/**
* <p>A name for the configuration.</p>
*/
inline void SetSyncName(Aws::String&& value) { m_syncNameHasBeenSet = true; m_syncName = std::move(value); }
/**
* <p>A name for the configuration.</p>
*/
inline void SetSyncName(const char* value) { m_syncNameHasBeenSet = true; m_syncName.assign(value); }
/**
* <p>A name for the configuration.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncName(const Aws::String& value) { SetSyncName(value); return *this;}
/**
* <p>A name for the configuration.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncName(Aws::String&& value) { SetSyncName(std::move(value)); return *this;}
/**
* <p>A name for the configuration.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncName(const char* value) { SetSyncName(value); return *this;}
/**
* <p>Amazon S3 configuration details for the sync. This parameter is required if
* the <code>SyncType</code> value is SyncToDestination.</p>
*/
inline const ResourceDataSyncS3Destination& GetS3Destination() const{ return m_s3Destination; }
/**
* <p>Amazon S3 configuration details for the sync. This parameter is required if
* the <code>SyncType</code> value is SyncToDestination.</p>
*/
inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; }
/**
* <p>Amazon S3 configuration details for the sync. This parameter is required if
* the <code>SyncType</code> value is SyncToDestination.</p>
*/
inline void SetS3Destination(const ResourceDataSyncS3Destination& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = value; }
/**
* <p>Amazon S3 configuration details for the sync. This parameter is required if
* the <code>SyncType</code> value is SyncToDestination.</p>
*/
inline void SetS3Destination(ResourceDataSyncS3Destination&& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = std::move(value); }
/**
* <p>Amazon S3 configuration details for the sync. This parameter is required if
* the <code>SyncType</code> value is SyncToDestination.</p>
*/
inline CreateResourceDataSyncRequest& WithS3Destination(const ResourceDataSyncS3Destination& value) { SetS3Destination(value); return *this;}
/**
* <p>Amazon S3 configuration details for the sync. This parameter is required if
* the <code>SyncType</code> value is SyncToDestination.</p>
*/
inline CreateResourceDataSyncRequest& WithS3Destination(ResourceDataSyncS3Destination&& value) { SetS3Destination(std::move(value)); return *this;}
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline const Aws::String& GetSyncType() const{ return m_syncType; }
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline void SetSyncType(const Aws::String& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline void SetSyncType(Aws::String&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline void SetSyncType(const char* value) { m_syncTypeHasBeenSet = true; m_syncType.assign(value); }
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncType(const Aws::String& value) { SetSyncType(value); return *this;}
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncType(Aws::String&& value) { SetSyncType(std::move(value)); return *this;}
/**
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
* synchronizes data to an S3 bucket for Inventory. If you specify
* <code>SyncToDestination</code>, you must provide a value for
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
* data from a single account and multiple Regions, or multiple AWS accounts and
* Regions, as listed in AWS Organizations for Explorer. If you specify
* <code>SyncFromSource</code>, you must provide a value for
* <code>SyncSource</code>. The default value is
* <code>SyncToDestination</code>.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncType(const char* value) { SetSyncType(value); return *this;}
/**
* <p>Specify information about the data sources to synchronize. This parameter is
* required if the <code>SyncType</code> value is SyncFromSource.</p>
*/
inline const ResourceDataSyncSource& GetSyncSource() const{ return m_syncSource; }
/**
* <p>Specify information about the data sources to synchronize. This parameter is
* required if the <code>SyncType</code> value is SyncFromSource.</p>
*/
inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
/**
* <p>Specify information about the data sources to synchronize. This parameter is
* required if the <code>SyncType</code> value is SyncFromSource.</p>
*/
inline void SetSyncSource(const ResourceDataSyncSource& value) { m_syncSourceHasBeenSet = true; m_syncSource = value; }
/**
* <p>Specify information about the data sources to synchronize. This parameter is
* required if the <code>SyncType</code> value is SyncFromSource.</p>
*/
inline void SetSyncSource(ResourceDataSyncSource&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::move(value); }
/**
* <p>Specify information about the data sources to synchronize. This parameter is
* required if the <code>SyncType</code> value is SyncFromSource.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncSource(const ResourceDataSyncSource& value) { SetSyncSource(value); return *this;}
/**
* <p>Specify information about the data sources to synchronize. This parameter is
* required if the <code>SyncType</code> value is SyncFromSource.</p>
*/
inline CreateResourceDataSyncRequest& WithSyncSource(ResourceDataSyncSource&& value) { SetSyncSource(std::move(value)); return *this;}
private:
Aws::String m_syncName;
bool m_syncNameHasBeenSet;
ResourceDataSyncS3Destination m_s3Destination;
bool m_s3DestinationHasBeenSet;
Aws::String m_syncType;
bool m_syncTypeHasBeenSet;
ResourceDataSyncSource m_syncSource;
bool m_syncSourceHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API CreateResourceDataSyncResult
{
public:
CreateResourceDataSyncResult();
CreateResourceDataSyncResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateResourceDataSyncResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 AWS_SSM_API DeleteActivationRequest : public SSMRequest
{
public:
DeleteActivationRequest();
// 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 "DeleteActivation"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline const Aws::String& GetActivationId() const{ return m_activationId; }
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; }
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline void SetActivationId(const Aws::String& value) { m_activationIdHasBeenSet = true; m_activationId = value; }
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline void SetActivationId(Aws::String&& value) { m_activationIdHasBeenSet = true; m_activationId = std::move(value); }
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline void SetActivationId(const char* value) { m_activationIdHasBeenSet = true; m_activationId.assign(value); }
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline DeleteActivationRequest& WithActivationId(const Aws::String& value) { SetActivationId(value); return *this;}
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline DeleteActivationRequest& WithActivationId(Aws::String&& value) { SetActivationId(std::move(value)); return *this;}
/**
* <p>The ID of the activation that you want to delete.</p>
*/
inline DeleteActivationRequest& WithActivationId(const char* value) { SetActivationId(value); return *this;}
private:
Aws::String m_activationId;
bool m_activationIdHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteActivationResult
{
public:
DeleteActivationResult();
DeleteActivationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteActivationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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 AWS_SSM_API DeleteAssociationRequest : public SSMRequest
{
public:
DeleteAssociationRequest();
// 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 "DeleteAssociation"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the Systems Manager document.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the Systems Manager document.</p>
*/
inline DeleteAssociationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the Systems Manager document.</p>
*/
inline DeleteAssociationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the Systems Manager document.</p>
*/
inline DeleteAssociationRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The ID of the instance.</p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The ID of the instance.</p>
*/
inline DeleteAssociationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline DeleteAssociationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline DeleteAssociationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The association ID that you want to delete.</p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p>The association ID that you want to delete.</p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p>The association ID that you want to delete.</p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p>The association ID that you want to delete.</p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p>The association ID that you want to delete.</p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p>The association ID that you want to delete.</p>
*/
inline DeleteAssociationRequest& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p>The association ID that you want to delete.</p>
*/
inline DeleteAssociationRequest& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p>The association ID that you want to delete.</p>
*/
inline DeleteAssociationRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteAssociationResult
{
public:
DeleteAssociationResult();
DeleteAssociationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteAssociationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,233 @@
/**
* 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 AWS_SSM_API DeleteDocumentRequest : public SSMRequest
{
public:
DeleteDocumentRequest();
// 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 "DeleteDocument"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the document.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the document.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the document.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the document.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the document.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the document.</p>
*/
inline DeleteDocumentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the document.</p>
*/
inline DeleteDocumentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the document.</p>
*/
inline DeleteDocumentRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline DeleteDocumentRequest& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline DeleteDocumentRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
/**
* <p>The version of the document that you want to delete. If not provided, all
* versions of the document are deleted.</p>
*/
inline DeleteDocumentRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline const Aws::String& GetVersionName() const{ return m_versionName; }
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline DeleteDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline DeleteDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
/**
* <p>The version name of the document that you want to delete. If not provided,
* all versions of the document are deleted.</p>
*/
inline DeleteDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
/**
* <p>Some SSM document types require that you specify a <code>Force</code> flag
* before you can delete the document. For example, you must specify a
* <code>Force</code> flag to delete a document of type
* <code>ApplicationConfigurationSchema</code>. You can restrict access to the
* <code>Force</code> flag in an AWS Identity and Access Management (IAM)
* policy.</p>
*/
inline bool GetForce() const{ return m_force; }
/**
* <p>Some SSM document types require that you specify a <code>Force</code> flag
* before you can delete the document. For example, you must specify a
* <code>Force</code> flag to delete a document of type
* <code>ApplicationConfigurationSchema</code>. You can restrict access to the
* <code>Force</code> flag in an AWS Identity and Access Management (IAM)
* policy.</p>
*/
inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
/**
* <p>Some SSM document types require that you specify a <code>Force</code> flag
* before you can delete the document. For example, you must specify a
* <code>Force</code> flag to delete a document of type
* <code>ApplicationConfigurationSchema</code>. You can restrict access to the
* <code>Force</code> flag in an AWS Identity and Access Management (IAM)
* policy.</p>
*/
inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
/**
* <p>Some SSM document types require that you specify a <code>Force</code> flag
* before you can delete the document. For example, you must specify a
* <code>Force</code> flag to delete a document of type
* <code>ApplicationConfigurationSchema</code>. You can restrict access to the
* <code>Force</code> flag in an AWS Identity and Access Management (IAM)
* policy.</p>
*/
inline DeleteDocumentRequest& WithForce(bool value) { SetForce(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_documentVersion;
bool m_documentVersionHasBeenSet;
Aws::String m_versionName;
bool m_versionNameHasBeenSet;
bool m_force;
bool m_forceHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteDocumentResult
{
public:
DeleteDocumentResult();
DeleteDocumentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteDocumentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,261 @@
/**
* 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 <aws/ssm/model/InventorySchemaDeleteOption.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API DeleteInventoryRequest : public SSMRequest
{
public:
DeleteInventoryRequest();
// 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 "DeleteInventory"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline const Aws::String& GetTypeName() const{ return m_typeName; }
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline DeleteInventoryRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline DeleteInventoryRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
/**
* <p>The name of the custom inventory type for which you want to delete either all
* previously collected data or the inventory type itself. </p>
*/
inline DeleteInventoryRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;}
/**
* <p>Use the <code>SchemaDeleteOption</code> to delete a custom inventory type
* (schema). If you don't choose this option, the system only deletes existing
* inventory data associated with the custom inventory type. Choose one of the
* following options:</p> <p>DisableSchema: If you choose this option, the system
* ignores all inventory data for the specified version, and any earlier versions.
* To enable this schema again, you must call the <code>PutInventory</code> action
* for a version greater than the disabled version.</p> <p>DeleteSchema: This
* option deletes the specified custom type from the Inventory service. You can
* recreate the schema later, if you want.</p>
*/
inline const InventorySchemaDeleteOption& GetSchemaDeleteOption() const{ return m_schemaDeleteOption; }
/**
* <p>Use the <code>SchemaDeleteOption</code> to delete a custom inventory type
* (schema). If you don't choose this option, the system only deletes existing
* inventory data associated with the custom inventory type. Choose one of the
* following options:</p> <p>DisableSchema: If you choose this option, the system
* ignores all inventory data for the specified version, and any earlier versions.
* To enable this schema again, you must call the <code>PutInventory</code> action
* for a version greater than the disabled version.</p> <p>DeleteSchema: This
* option deletes the specified custom type from the Inventory service. You can
* recreate the schema later, if you want.</p>
*/
inline bool SchemaDeleteOptionHasBeenSet() const { return m_schemaDeleteOptionHasBeenSet; }
/**
* <p>Use the <code>SchemaDeleteOption</code> to delete a custom inventory type
* (schema). If you don't choose this option, the system only deletes existing
* inventory data associated with the custom inventory type. Choose one of the
* following options:</p> <p>DisableSchema: If you choose this option, the system
* ignores all inventory data for the specified version, and any earlier versions.
* To enable this schema again, you must call the <code>PutInventory</code> action
* for a version greater than the disabled version.</p> <p>DeleteSchema: This
* option deletes the specified custom type from the Inventory service. You can
* recreate the schema later, if you want.</p>
*/
inline void SetSchemaDeleteOption(const InventorySchemaDeleteOption& value) { m_schemaDeleteOptionHasBeenSet = true; m_schemaDeleteOption = value; }
/**
* <p>Use the <code>SchemaDeleteOption</code> to delete a custom inventory type
* (schema). If you don't choose this option, the system only deletes existing
* inventory data associated with the custom inventory type. Choose one of the
* following options:</p> <p>DisableSchema: If you choose this option, the system
* ignores all inventory data for the specified version, and any earlier versions.
* To enable this schema again, you must call the <code>PutInventory</code> action
* for a version greater than the disabled version.</p> <p>DeleteSchema: This
* option deletes the specified custom type from the Inventory service. You can
* recreate the schema later, if you want.</p>
*/
inline void SetSchemaDeleteOption(InventorySchemaDeleteOption&& value) { m_schemaDeleteOptionHasBeenSet = true; m_schemaDeleteOption = std::move(value); }
/**
* <p>Use the <code>SchemaDeleteOption</code> to delete a custom inventory type
* (schema). If you don't choose this option, the system only deletes existing
* inventory data associated with the custom inventory type. Choose one of the
* following options:</p> <p>DisableSchema: If you choose this option, the system
* ignores all inventory data for the specified version, and any earlier versions.
* To enable this schema again, you must call the <code>PutInventory</code> action
* for a version greater than the disabled version.</p> <p>DeleteSchema: This
* option deletes the specified custom type from the Inventory service. You can
* recreate the schema later, if you want.</p>
*/
inline DeleteInventoryRequest& WithSchemaDeleteOption(const InventorySchemaDeleteOption& value) { SetSchemaDeleteOption(value); return *this;}
/**
* <p>Use the <code>SchemaDeleteOption</code> to delete a custom inventory type
* (schema). If you don't choose this option, the system only deletes existing
* inventory data associated with the custom inventory type. Choose one of the
* following options:</p> <p>DisableSchema: If you choose this option, the system
* ignores all inventory data for the specified version, and any earlier versions.
* To enable this schema again, you must call the <code>PutInventory</code> action
* for a version greater than the disabled version.</p> <p>DeleteSchema: This
* option deletes the specified custom type from the Inventory service. You can
* recreate the schema later, if you want.</p>
*/
inline DeleteInventoryRequest& WithSchemaDeleteOption(InventorySchemaDeleteOption&& value) { SetSchemaDeleteOption(std::move(value)); return *this;}
/**
* <p>Use this option to view a summary of the deletion request without deleting
* any data or the data type. This option is useful when you only want to
* understand what will be deleted. Once you validate that the data to be deleted
* is what you intend to delete, you can run the same command without specifying
* the <code>DryRun</code> option.</p>
*/
inline bool GetDryRun() const{ return m_dryRun; }
/**
* <p>Use this option to view a summary of the deletion request without deleting
* any data or the data type. This option is useful when you only want to
* understand what will be deleted. Once you validate that the data to be deleted
* is what you intend to delete, you can run the same command without specifying
* the <code>DryRun</code> option.</p>
*/
inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
/**
* <p>Use this option to view a summary of the deletion request without deleting
* any data or the data type. This option is useful when you only want to
* understand what will be deleted. Once you validate that the data to be deleted
* is what you intend to delete, you can run the same command without specifying
* the <code>DryRun</code> option.</p>
*/
inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
/**
* <p>Use this option to view a summary of the deletion request without deleting
* any data or the data type. This option is useful when you only want to
* understand what will be deleted. Once you validate that the data to be deleted
* is what you intend to delete, you can run the same command without specifying
* the <code>DryRun</code> option.</p>
*/
inline DeleteInventoryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
/**
* <p>User-provided idempotency token.</p>
*/
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
/**
* <p>User-provided idempotency token.</p>
*/
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
/**
* <p>User-provided idempotency token.</p>
*/
inline DeleteInventoryRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline DeleteInventoryRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>User-provided idempotency token.</p>
*/
inline DeleteInventoryRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
private:
Aws::String m_typeName;
bool m_typeNameHasBeenSet;
InventorySchemaDeleteOption m_schemaDeleteOption;
bool m_schemaDeleteOptionHasBeenSet;
bool m_dryRun;
bool m_dryRunHasBeenSet;
Aws::String m_clientToken;
bool m_clientTokenHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,180 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/InventoryDeletionSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteInventoryResult
{
public:
DeleteInventoryResult();
DeleteInventoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteInventoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Every <code>DeleteInventory</code> action is assigned a unique ID. This
* option returns a unique ID. You can use this ID to query the status of a delete
* operation. This option is useful for ensuring that a delete operation has
* completed before you begin other actions. </p>
*/
inline const Aws::String& GetDeletionId() const{ return m_deletionId; }
/**
* <p>Every <code>DeleteInventory</code> action is assigned a unique ID. This
* option returns a unique ID. You can use this ID to query the status of a delete
* operation. This option is useful for ensuring that a delete operation has
* completed before you begin other actions. </p>
*/
inline void SetDeletionId(const Aws::String& value) { m_deletionId = value; }
/**
* <p>Every <code>DeleteInventory</code> action is assigned a unique ID. This
* option returns a unique ID. You can use this ID to query the status of a delete
* operation. This option is useful for ensuring that a delete operation has
* completed before you begin other actions. </p>
*/
inline void SetDeletionId(Aws::String&& value) { m_deletionId = std::move(value); }
/**
* <p>Every <code>DeleteInventory</code> action is assigned a unique ID. This
* option returns a unique ID. You can use this ID to query the status of a delete
* operation. This option is useful for ensuring that a delete operation has
* completed before you begin other actions. </p>
*/
inline void SetDeletionId(const char* value) { m_deletionId.assign(value); }
/**
* <p>Every <code>DeleteInventory</code> action is assigned a unique ID. This
* option returns a unique ID. You can use this ID to query the status of a delete
* operation. This option is useful for ensuring that a delete operation has
* completed before you begin other actions. </p>
*/
inline DeleteInventoryResult& WithDeletionId(const Aws::String& value) { SetDeletionId(value); return *this;}
/**
* <p>Every <code>DeleteInventory</code> action is assigned a unique ID. This
* option returns a unique ID. You can use this ID to query the status of a delete
* operation. This option is useful for ensuring that a delete operation has
* completed before you begin other actions. </p>
*/
inline DeleteInventoryResult& WithDeletionId(Aws::String&& value) { SetDeletionId(std::move(value)); return *this;}
/**
* <p>Every <code>DeleteInventory</code> action is assigned a unique ID. This
* option returns a unique ID. You can use this ID to query the status of a delete
* operation. This option is useful for ensuring that a delete operation has
* completed before you begin other actions. </p>
*/
inline DeleteInventoryResult& WithDeletionId(const char* value) { SetDeletionId(value); return *this;}
/**
* <p>The name of the inventory data type specified in the request.</p>
*/
inline const Aws::String& GetTypeName() const{ return m_typeName; }
/**
* <p>The name of the inventory data type specified in the request.</p>
*/
inline void SetTypeName(const Aws::String& value) { m_typeName = value; }
/**
* <p>The name of the inventory data type specified in the request.</p>
*/
inline void SetTypeName(Aws::String&& value) { m_typeName = std::move(value); }
/**
* <p>The name of the inventory data type specified in the request.</p>
*/
inline void SetTypeName(const char* value) { m_typeName.assign(value); }
/**
* <p>The name of the inventory data type specified in the request.</p>
*/
inline DeleteInventoryResult& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
/**
* <p>The name of the inventory data type specified in the request.</p>
*/
inline DeleteInventoryResult& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
/**
* <p>The name of the inventory data type specified in the request.</p>
*/
inline DeleteInventoryResult& WithTypeName(const char* value) { SetTypeName(value); return *this;}
/**
* <p>A summary of the delete operation. For more information about this summary,
* see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary">Deleting
* custom inventory</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline const InventoryDeletionSummary& GetDeletionSummary() const{ return m_deletionSummary; }
/**
* <p>A summary of the delete operation. For more information about this summary,
* see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary">Deleting
* custom inventory</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetDeletionSummary(const InventoryDeletionSummary& value) { m_deletionSummary = value; }
/**
* <p>A summary of the delete operation. For more information about this summary,
* see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary">Deleting
* custom inventory</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetDeletionSummary(InventoryDeletionSummary&& value) { m_deletionSummary = std::move(value); }
/**
* <p>A summary of the delete operation. For more information about this summary,
* see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary">Deleting
* custom inventory</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline DeleteInventoryResult& WithDeletionSummary(const InventoryDeletionSummary& value) { SetDeletionSummary(value); return *this;}
/**
* <p>A summary of the delete operation. For more information about this summary,
* see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary">Deleting
* custom inventory</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline DeleteInventoryResult& WithDeletionSummary(InventoryDeletionSummary&& value) { SetDeletionSummary(std::move(value)); return *this;}
private:
Aws::String m_deletionId;
Aws::String m_typeName;
InventoryDeletionSummary m_deletionSummary;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 AWS_SSM_API DeleteMaintenanceWindowRequest : public SSMRequest
{
public:
DeleteMaintenanceWindowRequest();
// 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 "DeleteMaintenanceWindow"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline const Aws::String& GetWindowId() const{ return m_windowId; }
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline DeleteMaintenanceWindowRequest& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline DeleteMaintenanceWindowRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
/**
* <p>The ID of the maintenance window to delete.</p>
*/
inline DeleteMaintenanceWindowRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
private:
Aws::String m_windowId;
bool m_windowIdHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteMaintenanceWindowResult
{
public:
DeleteMaintenanceWindowResult();
DeleteMaintenanceWindowResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteMaintenanceWindowResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the deleted maintenance window.</p>
*/
inline const Aws::String& GetWindowId() const{ return m_windowId; }
/**
* <p>The ID of the deleted maintenance window.</p>
*/
inline void SetWindowId(const Aws::String& value) { m_windowId = value; }
/**
* <p>The ID of the deleted maintenance window.</p>
*/
inline void SetWindowId(Aws::String&& value) { m_windowId = std::move(value); }
/**
* <p>The ID of the deleted maintenance window.</p>
*/
inline void SetWindowId(const char* value) { m_windowId.assign(value); }
/**
* <p>The ID of the deleted maintenance window.</p>
*/
inline DeleteMaintenanceWindowResult& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
/**
* <p>The ID of the deleted maintenance window.</p>
*/
inline DeleteMaintenanceWindowResult& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
/**
* <p>The ID of the deleted maintenance window.</p>
*/
inline DeleteMaintenanceWindowResult& WithWindowId(const char* value) { SetWindowId(value); return *this;}
private:
Aws::String m_windowId;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 AWS_SSM_API DeleteParameterRequest : public SSMRequest
{
public:
DeleteParameterRequest();
// 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 "DeleteParameter"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the parameter to delete.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the parameter to delete.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the parameter to delete.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the parameter to delete.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the parameter to delete.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the parameter to delete.</p>
*/
inline DeleteParameterRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the parameter to delete.</p>
*/
inline DeleteParameterRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the parameter to delete.</p>
*/
inline DeleteParameterRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteParameterResult
{
public:
DeleteParameterResult();
DeleteParameterResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteParameterResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class AWS_SSM_API DeleteParametersRequest : public SSMRequest
{
public:
DeleteParametersRequest();
// 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 "DeleteParameters"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The names of the parameters to delete.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>The names of the parameters to delete.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>The names of the parameters to delete.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>The names of the parameters to delete.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>The names of the parameters to delete.</p>
*/
inline DeleteParametersRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>The names of the parameters to delete.</p>
*/
inline DeleteParametersRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>The names of the parameters to delete.</p>
*/
inline DeleteParametersRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The names of the parameters to delete.</p>
*/
inline DeleteParametersRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>The names of the parameters to delete.</p>
*/
inline DeleteParametersRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteParametersResult
{
public:
DeleteParametersResult();
DeleteParametersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteParametersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The names of the deleted parameters.</p>
*/
inline const Aws::Vector<Aws::String>& GetDeletedParameters() const{ return m_deletedParameters; }
/**
* <p>The names of the deleted parameters.</p>
*/
inline void SetDeletedParameters(const Aws::Vector<Aws::String>& value) { m_deletedParameters = value; }
/**
* <p>The names of the deleted parameters.</p>
*/
inline void SetDeletedParameters(Aws::Vector<Aws::String>&& value) { m_deletedParameters = std::move(value); }
/**
* <p>The names of the deleted parameters.</p>
*/
inline DeleteParametersResult& WithDeletedParameters(const Aws::Vector<Aws::String>& value) { SetDeletedParameters(value); return *this;}
/**
* <p>The names of the deleted parameters.</p>
*/
inline DeleteParametersResult& WithDeletedParameters(Aws::Vector<Aws::String>&& value) { SetDeletedParameters(std::move(value)); return *this;}
/**
* <p>The names of the deleted parameters.</p>
*/
inline DeleteParametersResult& AddDeletedParameters(const Aws::String& value) { m_deletedParameters.push_back(value); return *this; }
/**
* <p>The names of the deleted parameters.</p>
*/
inline DeleteParametersResult& AddDeletedParameters(Aws::String&& value) { m_deletedParameters.push_back(std::move(value)); return *this; }
/**
* <p>The names of the deleted parameters.</p>
*/
inline DeleteParametersResult& AddDeletedParameters(const char* value) { m_deletedParameters.push_back(value); return *this; }
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline const Aws::Vector<Aws::String>& GetInvalidParameters() const{ return m_invalidParameters; }
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline void SetInvalidParameters(const Aws::Vector<Aws::String>& value) { m_invalidParameters = value; }
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline void SetInvalidParameters(Aws::Vector<Aws::String>&& value) { m_invalidParameters = std::move(value); }
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline DeleteParametersResult& WithInvalidParameters(const Aws::Vector<Aws::String>& value) { SetInvalidParameters(value); return *this;}
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline DeleteParametersResult& WithInvalidParameters(Aws::Vector<Aws::String>&& value) { SetInvalidParameters(std::move(value)); return *this;}
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline DeleteParametersResult& AddInvalidParameters(const Aws::String& value) { m_invalidParameters.push_back(value); return *this; }
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline DeleteParametersResult& AddInvalidParameters(Aws::String&& value) { m_invalidParameters.push_back(std::move(value)); return *this; }
/**
* <p>The names of parameters that weren't deleted because the parameters are not
* valid.</p>
*/
inline DeleteParametersResult& AddInvalidParameters(const char* value) { m_invalidParameters.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_deletedParameters;
Aws::Vector<Aws::String> m_invalidParameters;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 AWS_SSM_API DeletePatchBaselineRequest : public SSMRequest
{
public:
DeletePatchBaselineRequest();
// 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 "DeletePatchBaseline"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline bool BaselineIdHasBeenSet() const { return m_baselineIdHasBeenSet; }
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline void SetBaselineId(const Aws::String& value) { m_baselineIdHasBeenSet = true; m_baselineId = value; }
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline void SetBaselineId(Aws::String&& value) { m_baselineIdHasBeenSet = true; m_baselineId = std::move(value); }
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline void SetBaselineId(const char* value) { m_baselineIdHasBeenSet = true; m_baselineId.assign(value); }
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline DeletePatchBaselineRequest& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline DeletePatchBaselineRequest& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
/**
* <p>The ID of the patch baseline to delete.</p>
*/
inline DeletePatchBaselineRequest& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
private:
Aws::String m_baselineId;
bool m_baselineIdHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeletePatchBaselineResult
{
public:
DeletePatchBaselineResult();
DeletePatchBaselineResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeletePatchBaselineResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the deleted patch baseline.</p>
*/
inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
/**
* <p>The ID of the deleted patch baseline.</p>
*/
inline void SetBaselineId(const Aws::String& value) { m_baselineId = value; }
/**
* <p>The ID of the deleted patch baseline.</p>
*/
inline void SetBaselineId(Aws::String&& value) { m_baselineId = std::move(value); }
/**
* <p>The ID of the deleted patch baseline.</p>
*/
inline void SetBaselineId(const char* value) { m_baselineId.assign(value); }
/**
* <p>The ID of the deleted patch baseline.</p>
*/
inline DeletePatchBaselineResult& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
/**
* <p>The ID of the deleted patch baseline.</p>
*/
inline DeletePatchBaselineResult& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
/**
* <p>The ID of the deleted patch baseline.</p>
*/
inline DeletePatchBaselineResult& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
private:
Aws::String m_baselineId;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* 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 AWS_SSM_API DeleteResourceDataSyncRequest : public SSMRequest
{
public:
DeleteResourceDataSyncRequest();
// 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 "DeleteResourceDataSync"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the configuration to delete.</p>
*/
inline const Aws::String& GetSyncName() const{ return m_syncName; }
/**
* <p>The name of the configuration to delete.</p>
*/
inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
/**
* <p>The name of the configuration to delete.</p>
*/
inline void SetSyncName(const Aws::String& value) { m_syncNameHasBeenSet = true; m_syncName = value; }
/**
* <p>The name of the configuration to delete.</p>
*/
inline void SetSyncName(Aws::String&& value) { m_syncNameHasBeenSet = true; m_syncName = std::move(value); }
/**
* <p>The name of the configuration to delete.</p>
*/
inline void SetSyncName(const char* value) { m_syncNameHasBeenSet = true; m_syncName.assign(value); }
/**
* <p>The name of the configuration to delete.</p>
*/
inline DeleteResourceDataSyncRequest& WithSyncName(const Aws::String& value) { SetSyncName(value); return *this;}
/**
* <p>The name of the configuration to delete.</p>
*/
inline DeleteResourceDataSyncRequest& WithSyncName(Aws::String&& value) { SetSyncName(std::move(value)); return *this;}
/**
* <p>The name of the configuration to delete.</p>
*/
inline DeleteResourceDataSyncRequest& WithSyncName(const char* value) { SetSyncName(value); return *this;}
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline const Aws::String& GetSyncType() const{ return m_syncType; }
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline void SetSyncType(const Aws::String& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline void SetSyncType(Aws::String&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline void SetSyncType(const char* value) { m_syncTypeHasBeenSet = true; m_syncType.assign(value); }
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline DeleteResourceDataSyncRequest& WithSyncType(const Aws::String& value) { SetSyncType(value); return *this;}
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline DeleteResourceDataSyncRequest& WithSyncType(Aws::String&& value) { SetSyncType(std::move(value)); return *this;}
/**
* <p>Specify the type of resource data sync to delete.</p>
*/
inline DeleteResourceDataSyncRequest& WithSyncType(const char* value) { SetSyncType(value); return *this;}
private:
Aws::String m_syncName;
bool m_syncNameHasBeenSet;
Aws::String m_syncType;
bool m_syncTypeHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeleteResourceDataSyncResult
{
public:
DeleteResourceDataSyncResult();
DeleteResourceDataSyncResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteResourceDataSyncResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 AWS_SSM_API DeregisterManagedInstanceRequest : public SSMRequest
{
public:
DeregisterManagedInstanceRequest();
// 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 "DeregisterManagedInstance"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline DeregisterManagedInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline DeregisterManagedInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The ID assigned to the managed instance when you registered it using the
* activation process. </p>
*/
inline DeregisterManagedInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
private:
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API DeregisterManagedInstanceResult
{
public:
DeregisterManagedInstanceResult();
DeregisterManagedInstanceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeregisterManagedInstanceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SSM
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More