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

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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace CodeDeployEndpoint
{
AWS_CODEDEPLOY_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace CodeDeployEndpoint
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_CODEDEPLOY_API CodeDeployErrorMarshaller : 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,177 @@
/**
* 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/codedeploy/CodeDeploy_EXPORTS.h>
namespace Aws
{
namespace CodeDeploy
{
enum class CodeDeployErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
ALARMS_LIMIT_EXCEEDED= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
APPLICATION_ALREADY_EXISTS,
APPLICATION_DOES_NOT_EXIST,
APPLICATION_LIMIT_EXCEEDED,
APPLICATION_NAME_REQUIRED,
ARN_NOT_SUPPORTED,
BATCH_LIMIT_EXCEEDED,
BUCKET_NAME_FILTER_REQUIRED,
DEPLOYMENT_ALREADY_COMPLETED,
DEPLOYMENT_CONFIG_ALREADY_EXISTS,
DEPLOYMENT_CONFIG_DOES_NOT_EXIST,
DEPLOYMENT_CONFIG_IN_USE,
DEPLOYMENT_CONFIG_LIMIT_EXCEEDED,
DEPLOYMENT_CONFIG_NAME_REQUIRED,
DEPLOYMENT_DOES_NOT_EXIST,
DEPLOYMENT_GROUP_ALREADY_EXISTS,
DEPLOYMENT_GROUP_DOES_NOT_EXIST,
DEPLOYMENT_GROUP_LIMIT_EXCEEDED,
DEPLOYMENT_GROUP_NAME_REQUIRED,
DEPLOYMENT_ID_REQUIRED,
DEPLOYMENT_IS_NOT_IN_READY_STATE,
DEPLOYMENT_LIMIT_EXCEEDED,
DEPLOYMENT_NOT_STARTED,
DEPLOYMENT_TARGET_DOES_NOT_EXIST,
DEPLOYMENT_TARGET_ID_REQUIRED,
DEPLOYMENT_TARGET_LIST_SIZE_EXCEEDED,
DESCRIPTION_TOO_LONG,
E_C_S_SERVICE_MAPPING_LIMIT_EXCEEDED,
GIT_HUB_ACCOUNT_TOKEN_DOES_NOT_EXIST,
GIT_HUB_ACCOUNT_TOKEN_NAME_REQUIRED,
IAM_ARN_REQUIRED,
IAM_SESSION_ARN_ALREADY_REGISTERED,
IAM_USER_ARN_ALREADY_REGISTERED,
IAM_USER_ARN_REQUIRED,
INSTANCE_DOES_NOT_EXIST,
INSTANCE_LIMIT_EXCEEDED,
INSTANCE_NAME_ALREADY_REGISTERED,
INSTANCE_NAME_REQUIRED,
INSTANCE_NOT_REGISTERED,
INVALID_ALARM_CONFIG,
INVALID_APPLICATION_NAME,
INVALID_ARN,
INVALID_AUTO_ROLLBACK_CONFIG,
INVALID_AUTO_SCALING_GROUP,
INVALID_BLUE_GREEN_DEPLOYMENT_CONFIGURATION,
INVALID_BUCKET_NAME_FILTER,
INVALID_COMPUTE_PLATFORM,
INVALID_DEPLOYED_STATE_FILTER,
INVALID_DEPLOYMENT_CONFIG_NAME,
INVALID_DEPLOYMENT_GROUP_NAME,
INVALID_DEPLOYMENT_ID,
INVALID_DEPLOYMENT_INSTANCE_TYPE,
INVALID_DEPLOYMENT_STATUS,
INVALID_DEPLOYMENT_STYLE,
INVALID_DEPLOYMENT_TARGET_ID,
INVALID_DEPLOYMENT_WAIT_TYPE,
INVALID_EXTERNAL_ID,
INVALID_E_C2_TAG,
INVALID_E_C2_TAG_COMBINATION,
INVALID_E_C_S_SERVICE,
INVALID_FILE_EXISTS_BEHAVIOR,
INVALID_GIT_HUB_ACCOUNT_TOKEN,
INVALID_GIT_HUB_ACCOUNT_TOKEN_NAME,
INVALID_IAM_SESSION_ARN,
INVALID_IAM_USER_ARN,
INVALID_IGNORE_APPLICATION_STOP_FAILURES_VALUE,
INVALID_INPUT,
INVALID_INSTANCE_NAME,
INVALID_INSTANCE_STATUS,
INVALID_INSTANCE_TYPE,
INVALID_KEY_PREFIX_FILTER,
INVALID_LIFECYCLE_EVENT_HOOK_EXECUTION_ID,
INVALID_LIFECYCLE_EVENT_HOOK_EXECUTION_STATUS,
INVALID_LOAD_BALANCER_INFO,
INVALID_MINIMUM_HEALTHY_HOST_VALUE,
INVALID_NEXT_TOKEN,
INVALID_ON_PREMISES_TAG_COMBINATION,
INVALID_OPERATION,
INVALID_REGISTRATION_STATUS,
INVALID_REVISION,
INVALID_ROLE,
INVALID_SORT_BY,
INVALID_SORT_ORDER,
INVALID_TAG,
INVALID_TAGS_TO_ADD,
INVALID_TAG_FILTER,
INVALID_TARGET_GROUP_PAIR,
INVALID_TARGET_INSTANCES,
INVALID_TIME_RANGE,
INVALID_TRAFFIC_ROUTING_CONFIGURATION,
INVALID_TRIGGER_CONFIG,
INVALID_UPDATE_OUTDATED_INSTANCES_ONLY_VALUE,
LIFECYCLE_EVENT_ALREADY_COMPLETED,
LIFECYCLE_HOOK_LIMIT_EXCEEDED,
MULTIPLE_IAM_ARNS_PROVIDED,
OPERATION_NOT_SUPPORTED,
RESOURCE_ARN_REQUIRED,
RESOURCE_VALIDATION,
REVISION_DOES_NOT_EXIST,
REVISION_REQUIRED,
ROLE_REQUIRED,
TAG_LIMIT_EXCEEDED,
TAG_REQUIRED,
TAG_SET_LIST_LIMIT_EXCEEDED,
TRIGGER_TARGETS_LIMIT_EXCEEDED,
UNSUPPORTED_ACTION_FOR_DEPLOYMENT_TYPE
};
class AWS_CODEDEPLOY_API CodeDeployError : public Aws::Client::AWSError<CodeDeployErrors>
{
public:
CodeDeployError() {}
CodeDeployError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<CodeDeployErrors>(rhs) {}
CodeDeployError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<CodeDeployErrors>(rhs) {}
CodeDeployError(const Aws::Client::AWSError<CodeDeployErrors>& rhs) : Aws::Client::AWSError<CodeDeployErrors>(rhs) {}
CodeDeployError(Aws::Client::AWSError<CodeDeployErrors>&& rhs) : Aws::Client::AWSError<CodeDeployErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace CodeDeployErrorMapper
{
AWS_CODEDEPLOY_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace CodeDeploy
{
class AWS_CODEDEPLOY_API CodeDeployRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~CodeDeployRequest () {}
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-10-06"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace CodeDeploy
} // 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_CODEDEPLOY_EXPORTS
#define AWS_CODEDEPLOY_API __declspec(dllexport)
#else
#define AWS_CODEDEPLOY_API __declspec(dllimport)
#endif /* AWS_CODEDEPLOY_EXPORTS */
#else
#define AWS_CODEDEPLOY_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_CODEDEPLOY_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/Tag.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of, and adds tags to, an on-premises instance
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstancesInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API AddTagsToOnPremisesInstancesRequest : public CodeDeployRequest
{
public:
AddTagsToOnPremisesInstancesRequest();
// 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 "AddTagsToOnPremisesInstances"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tag key-value pairs to add to the on-premises instances.</p> <p>Keys and
* values are both required. Keys cannot be null or empty strings. Value-only tags
* are not allowed.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline const Aws::Vector<Aws::String>& GetInstanceNames() const{ return m_instanceNames; }
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline void SetInstanceNames(const Aws::Vector<Aws::String>& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; }
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline void SetInstanceNames(Aws::Vector<Aws::String>&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); }
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& WithInstanceNames(const Aws::Vector<Aws::String>& value) { SetInstanceNames(value); return *this;}
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& WithInstanceNames(Aws::Vector<Aws::String>&& value) { SetInstanceNames(std::move(value)); return *this;}
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; }
/**
* <p>The names of the on-premises instances to which to add tags.</p>
*/
inline AddTagsToOnPremisesInstancesRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
private:
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
Aws::Vector<Aws::String> m_instanceNames;
bool m_instanceNamesHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,96 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Information about an alarm.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Alarm">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API Alarm
{
public:
Alarm();
Alarm(Aws::Utils::Json::JsonView jsonValue);
Alarm& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline Alarm& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline Alarm& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the alarm. Maximum length is 255 characters. Each alarm name can
* be used only once in a list of alarms.</p>
*/
inline Alarm& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/Alarm.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about alarms associated with the deployment group.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AlarmConfiguration">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API AlarmConfiguration
{
public:
AlarmConfiguration();
AlarmConfiguration(Aws::Utils::Json::JsonView jsonValue);
AlarmConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Indicates whether the alarm configuration is enabled.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>Indicates whether the alarm configuration is enabled.</p>
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* <p>Indicates whether the alarm configuration is enabled.</p>
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* <p>Indicates whether the alarm configuration is enabled.</p>
*/
inline AlarmConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
/**
* <p>Indicates whether a deployment should continue if information about the
* current state of alarms cannot be retrieved from Amazon CloudWatch. The default
* value is false.</p> <ul> <li> <p> <code>true</code>: The deployment proceeds
* even if alarm status information can't be retrieved from Amazon CloudWatch.</p>
* </li> <li> <p> <code>false</code>: The deployment stops if alarm status
* information can't be retrieved from Amazon CloudWatch.</p> </li> </ul>
*/
inline bool GetIgnorePollAlarmFailure() const{ return m_ignorePollAlarmFailure; }
/**
* <p>Indicates whether a deployment should continue if information about the
* current state of alarms cannot be retrieved from Amazon CloudWatch. The default
* value is false.</p> <ul> <li> <p> <code>true</code>: The deployment proceeds
* even if alarm status information can't be retrieved from Amazon CloudWatch.</p>
* </li> <li> <p> <code>false</code>: The deployment stops if alarm status
* information can't be retrieved from Amazon CloudWatch.</p> </li> </ul>
*/
inline bool IgnorePollAlarmFailureHasBeenSet() const { return m_ignorePollAlarmFailureHasBeenSet; }
/**
* <p>Indicates whether a deployment should continue if information about the
* current state of alarms cannot be retrieved from Amazon CloudWatch. The default
* value is false.</p> <ul> <li> <p> <code>true</code>: The deployment proceeds
* even if alarm status information can't be retrieved from Amazon CloudWatch.</p>
* </li> <li> <p> <code>false</code>: The deployment stops if alarm status
* information can't be retrieved from Amazon CloudWatch.</p> </li> </ul>
*/
inline void SetIgnorePollAlarmFailure(bool value) { m_ignorePollAlarmFailureHasBeenSet = true; m_ignorePollAlarmFailure = value; }
/**
* <p>Indicates whether a deployment should continue if information about the
* current state of alarms cannot be retrieved from Amazon CloudWatch. The default
* value is false.</p> <ul> <li> <p> <code>true</code>: The deployment proceeds
* even if alarm status information can't be retrieved from Amazon CloudWatch.</p>
* </li> <li> <p> <code>false</code>: The deployment stops if alarm status
* information can't be retrieved from Amazon CloudWatch.</p> </li> </ul>
*/
inline AlarmConfiguration& WithIgnorePollAlarmFailure(bool value) { SetIgnorePollAlarmFailure(value); return *this;}
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline AlarmConfiguration& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline AlarmConfiguration& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline AlarmConfiguration& AddAlarms(const Alarm& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
/**
* <p>A list of alarms configured for the deployment group. A maximum of 10 alarms
* can be added to a deployment group.</p>
*/
inline AlarmConfiguration& AddAlarms(Alarm&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
private:
bool m_enabled;
bool m_enabledHasBeenSet;
bool m_ignorePollAlarmFailure;
bool m_ignorePollAlarmFailureHasBeenSet;
Aws::Vector<Alarm> m_alarms;
bool m_alarmsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,199 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p> A revision for an AWS Lambda or Amazon ECS deployment that is a
* YAML-formatted or JSON-formatted string. For AWS Lambda and Amazon ECS
* deployments, the revision is the same as the AppSpec file. This method replaces
* the deprecated <code>RawString</code> data type. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AppSpecContent">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API AppSpecContent
{
public:
AppSpecContent();
AppSpecContent(Aws::Utils::Json::JsonView jsonValue);
AppSpecContent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline const Aws::String& GetContent() const{ return m_content; }
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline AppSpecContent& WithContent(const Aws::String& value) { SetContent(value); return *this;}
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline AppSpecContent& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
/**
* <p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an AWS
* Lambda deployment, the content includes a Lambda function name, the alias for
* its original version, and the alias for its replacement version. The deployment
* shifts traffic from the original version of the Lambda function to the
* replacement version. </p> <p> For an Amazon ECS deployment, the content includes
* the task name, information about the load balancer that serves traffic to the
* container, and more. </p> <p> For both types of deployments, the content can
* specify Lambda functions that run at specified hooks, such as
* <code>BeforeInstall</code>, during a deployment. </p>
*/
inline AppSpecContent& WithContent(const char* value) { SetContent(value); return *this;}
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline const Aws::String& GetSha256() const{ return m_sha256; }
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline bool Sha256HasBeenSet() const { return m_sha256HasBeenSet; }
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline void SetSha256(const Aws::String& value) { m_sha256HasBeenSet = true; m_sha256 = value; }
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline void SetSha256(Aws::String&& value) { m_sha256HasBeenSet = true; m_sha256 = std::move(value); }
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline void SetSha256(const char* value) { m_sha256HasBeenSet = true; m_sha256.assign(value); }
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline AppSpecContent& WithSha256(const Aws::String& value) { SetSha256(value); return *this;}
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline AppSpecContent& WithSha256(Aws::String&& value) { SetSha256(std::move(value)); return *this;}
/**
* <p> The SHA256 hash value of the revision content. </p>
*/
inline AppSpecContent& WithSha256(const char* value) { SetSha256(value); return *this;}
private:
Aws::String m_content;
bool m_contentHasBeenSet;
Aws::String m_sha256;
bool m_sha256HasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,280 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/codedeploy/model/ComputePlatform.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about an application.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ApplicationInfo">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API ApplicationInfo
{
public:
ApplicationInfo();
ApplicationInfo(Aws::Utils::Json::JsonView jsonValue);
ApplicationInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline ApplicationInfo& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline ApplicationInfo& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline ApplicationInfo& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The application name.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The application name.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The application name.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The application name.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The application name.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The application name.</p>
*/
inline ApplicationInfo& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The application name.</p>
*/
inline ApplicationInfo& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The application name.</p>
*/
inline ApplicationInfo& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>The time at which the application was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
/**
* <p>The time at which the application was created.</p>
*/
inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
/**
* <p>The time at which the application was created.</p>
*/
inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
/**
* <p>The time at which the application was created.</p>
*/
inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
/**
* <p>The time at which the application was created.</p>
*/
inline ApplicationInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
/**
* <p>The time at which the application was created.</p>
*/
inline ApplicationInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
/**
* <p>True if the user has authenticated with GitHub for the specified application.
* Otherwise, false.</p>
*/
inline bool GetLinkedToGitHub() const{ return m_linkedToGitHub; }
/**
* <p>True if the user has authenticated with GitHub for the specified application.
* Otherwise, false.</p>
*/
inline bool LinkedToGitHubHasBeenSet() const { return m_linkedToGitHubHasBeenSet; }
/**
* <p>True if the user has authenticated with GitHub for the specified application.
* Otherwise, false.</p>
*/
inline void SetLinkedToGitHub(bool value) { m_linkedToGitHubHasBeenSet = true; m_linkedToGitHub = value; }
/**
* <p>True if the user has authenticated with GitHub for the specified application.
* Otherwise, false.</p>
*/
inline ApplicationInfo& WithLinkedToGitHub(bool value) { SetLinkedToGitHub(value); return *this;}
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline const Aws::String& GetGitHubAccountName() const{ return m_gitHubAccountName; }
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline bool GitHubAccountNameHasBeenSet() const { return m_gitHubAccountNameHasBeenSet; }
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline void SetGitHubAccountName(const Aws::String& value) { m_gitHubAccountNameHasBeenSet = true; m_gitHubAccountName = value; }
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline void SetGitHubAccountName(Aws::String&& value) { m_gitHubAccountNameHasBeenSet = true; m_gitHubAccountName = std::move(value); }
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline void SetGitHubAccountName(const char* value) { m_gitHubAccountNameHasBeenSet = true; m_gitHubAccountName.assign(value); }
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline ApplicationInfo& WithGitHubAccountName(const Aws::String& value) { SetGitHubAccountName(value); return *this;}
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline ApplicationInfo& WithGitHubAccountName(Aws::String&& value) { SetGitHubAccountName(std::move(value)); return *this;}
/**
* <p>The name for a connection to a GitHub account.</p>
*/
inline ApplicationInfo& WithGitHubAccountName(const char* value) { SetGitHubAccountName(value); return *this;}
/**
* <p>The destination platform type for deployment of the application
* (<code>Lambda</code> or <code>Server</code>).</p>
*/
inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; }
/**
* <p>The destination platform type for deployment of the application
* (<code>Lambda</code> or <code>Server</code>).</p>
*/
inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
/**
* <p>The destination platform type for deployment of the application
* (<code>Lambda</code> or <code>Server</code>).</p>
*/
inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
/**
* <p>The destination platform type for deployment of the application
* (<code>Lambda</code> or <code>Server</code>).</p>
*/
inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); }
/**
* <p>The destination platform type for deployment of the application
* (<code>Lambda</code> or <code>Server</code>).</p>
*/
inline ApplicationInfo& WithComputePlatform(const ComputePlatform& value) { SetComputePlatform(value); return *this;}
/**
* <p>The destination platform type for deployment of the application
* (<code>Lambda</code> or <code>Server</code>).</p>
*/
inline ApplicationInfo& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
Aws::Utils::DateTime m_createTime;
bool m_createTimeHasBeenSet;
bool m_linkedToGitHub;
bool m_linkedToGitHubHasBeenSet;
Aws::String m_gitHubAccountName;
bool m_gitHubAccountNameHasBeenSet;
ComputePlatform m_computePlatform;
bool m_computePlatformHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class ApplicationRevisionSortBy
{
NOT_SET,
registerTime,
firstUsedTime,
lastUsedTime
};
namespace ApplicationRevisionSortByMapper
{
AWS_CODEDEPLOY_API ApplicationRevisionSortBy GetApplicationRevisionSortByForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForApplicationRevisionSortBy(ApplicationRevisionSortBy value);
} // namespace ApplicationRevisionSortByMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,119 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/AutoRollbackEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about a configuration for automatically rolling back to a
* previous version of an application revision when a deployment is not completed
* successfully.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AutoRollbackConfiguration">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API AutoRollbackConfiguration
{
public:
AutoRollbackConfiguration();
AutoRollbackConfiguration(Aws::Utils::Json::JsonView jsonValue);
AutoRollbackConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Indicates whether a defined automatic rollback configuration is currently
* enabled.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>Indicates whether a defined automatic rollback configuration is currently
* enabled.</p>
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* <p>Indicates whether a defined automatic rollback configuration is currently
* enabled.</p>
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* <p>Indicates whether a defined automatic rollback configuration is currently
* enabled.</p>
*/
inline AutoRollbackConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline const Aws::Vector<AutoRollbackEvent>& GetEvents() const{ return m_events; }
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline void SetEvents(const Aws::Vector<AutoRollbackEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline void SetEvents(Aws::Vector<AutoRollbackEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline AutoRollbackConfiguration& WithEvents(const Aws::Vector<AutoRollbackEvent>& value) { SetEvents(value); return *this;}
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline AutoRollbackConfiguration& WithEvents(Aws::Vector<AutoRollbackEvent>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline AutoRollbackConfiguration& AddEvents(const AutoRollbackEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
/**
* <p>The event type or types that trigger a rollback.</p>
*/
inline AutoRollbackConfiguration& AddEvents(AutoRollbackEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
private:
bool m_enabled;
bool m_enabledHasBeenSet;
Aws::Vector<AutoRollbackEvent> m_events;
bool m_eventsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class AutoRollbackEvent
{
NOT_SET,
DEPLOYMENT_FAILURE,
DEPLOYMENT_STOP_ON_ALARM,
DEPLOYMENT_STOP_ON_REQUEST
};
namespace AutoRollbackEventMapper
{
AWS_CODEDEPLOY_API AutoRollbackEvent GetAutoRollbackEventForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForAutoRollbackEvent(AutoRollbackEvent value);
} // namespace AutoRollbackEventMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Information about an Auto Scaling group.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AutoScalingGroup">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API AutoScalingGroup
{
public:
AutoScalingGroup();
AutoScalingGroup(Aws::Utils::Json::JsonView jsonValue);
AutoScalingGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Auto Scaling group name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The Auto Scaling group name.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The Auto Scaling group name.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The Auto Scaling group name.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The Auto Scaling group name.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The Auto Scaling group name.</p>
*/
inline AutoScalingGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The Auto Scaling group name.</p>
*/
inline AutoScalingGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The Auto Scaling group name.</p>
*/
inline AutoScalingGroup& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline const Aws::String& GetHook() const{ return m_hook; }
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline bool HookHasBeenSet() const { return m_hookHasBeenSet; }
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline void SetHook(const Aws::String& value) { m_hookHasBeenSet = true; m_hook = value; }
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline void SetHook(Aws::String&& value) { m_hookHasBeenSet = true; m_hook = std::move(value); }
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline void SetHook(const char* value) { m_hookHasBeenSet = true; m_hook.assign(value); }
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline AutoScalingGroup& WithHook(const Aws::String& value) { SetHook(value); return *this;}
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline AutoScalingGroup& WithHook(Aws::String&& value) { SetHook(std::move(value)); return *this;}
/**
* <p>An Auto Scaling lifecycle event hook name.</p>
*/
inline AutoScalingGroup& WithHook(const char* value) { SetHook(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_hook;
bool m_hookHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/RevisionLocation.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>BatchGetApplicationRevisions</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisionsInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetApplicationRevisionsRequest : public CodeDeployRequest
{
public:
BatchGetApplicationRevisionsRequest();
// 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 "BatchGetApplicationRevisions"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline BatchGetApplicationRevisionsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline BatchGetApplicationRevisionsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application about which to get revision
* information.</p>
*/
inline BatchGetApplicationRevisionsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline const Aws::Vector<RevisionLocation>& GetRevisions() const{ return m_revisions; }
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline bool RevisionsHasBeenSet() const { return m_revisionsHasBeenSet; }
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline void SetRevisions(const Aws::Vector<RevisionLocation>& value) { m_revisionsHasBeenSet = true; m_revisions = value; }
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline void SetRevisions(Aws::Vector<RevisionLocation>&& value) { m_revisionsHasBeenSet = true; m_revisions = std::move(value); }
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline BatchGetApplicationRevisionsRequest& WithRevisions(const Aws::Vector<RevisionLocation>& value) { SetRevisions(value); return *this;}
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline BatchGetApplicationRevisionsRequest& WithRevisions(Aws::Vector<RevisionLocation>&& value) { SetRevisions(std::move(value)); return *this;}
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline BatchGetApplicationRevisionsRequest& AddRevisions(const RevisionLocation& value) { m_revisionsHasBeenSet = true; m_revisions.push_back(value); return *this; }
/**
* <p>An array of <code>RevisionLocation</code> objects that specify information to
* get about the application revisions, including type and location. The maximum
* number of <code>RevisionLocation</code> objects you can specify is 25.</p>
*/
inline BatchGetApplicationRevisionsRequest& AddRevisions(RevisionLocation&& value) { m_revisionsHasBeenSet = true; m_revisions.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
Aws::Vector<RevisionLocation> m_revisions;
bool m_revisionsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/RevisionInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>BatchGetApplicationRevisions</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisionsOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult
{
public:
BatchGetApplicationRevisionsResult();
BatchGetApplicationRevisionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetApplicationRevisionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the application that corresponds to the revisions.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of the application that corresponds to the revisions.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationName = value; }
/**
* <p>The name of the application that corresponds to the revisions.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationName = std::move(value); }
/**
* <p>The name of the application that corresponds to the revisions.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationName.assign(value); }
/**
* <p>The name of the application that corresponds to the revisions.</p>
*/
inline BatchGetApplicationRevisionsResult& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of the application that corresponds to the revisions.</p>
*/
inline BatchGetApplicationRevisionsResult& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of the application that corresponds to the revisions.</p>
*/
inline BatchGetApplicationRevisionsResult& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline BatchGetApplicationRevisionsResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline BatchGetApplicationRevisionsResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline BatchGetApplicationRevisionsResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
/**
* <p>Additional information about the revisions, including the type and
* location.</p>
*/
inline const Aws::Vector<RevisionInfo>& GetRevisions() const{ return m_revisions; }
/**
* <p>Additional information about the revisions, including the type and
* location.</p>
*/
inline void SetRevisions(const Aws::Vector<RevisionInfo>& value) { m_revisions = value; }
/**
* <p>Additional information about the revisions, including the type and
* location.</p>
*/
inline void SetRevisions(Aws::Vector<RevisionInfo>&& value) { m_revisions = std::move(value); }
/**
* <p>Additional information about the revisions, including the type and
* location.</p>
*/
inline BatchGetApplicationRevisionsResult& WithRevisions(const Aws::Vector<RevisionInfo>& value) { SetRevisions(value); return *this;}
/**
* <p>Additional information about the revisions, including the type and
* location.</p>
*/
inline BatchGetApplicationRevisionsResult& WithRevisions(Aws::Vector<RevisionInfo>&& value) { SetRevisions(std::move(value)); return *this;}
/**
* <p>Additional information about the revisions, including the type and
* location.</p>
*/
inline BatchGetApplicationRevisionsResult& AddRevisions(const RevisionInfo& value) { m_revisions.push_back(value); return *this; }
/**
* <p>Additional information about the revisions, including the type and
* location.</p>
*/
inline BatchGetApplicationRevisionsResult& AddRevisions(RevisionInfo&& value) { m_revisions.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationName;
Aws::String m_errorMessage;
Aws::Vector<RevisionInfo> m_revisions;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>BatchGetApplications</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationsInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetApplicationsRequest : public CodeDeployRequest
{
public:
BatchGetApplicationsRequest();
// 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 "BatchGetApplications"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline const Aws::Vector<Aws::String>& GetApplicationNames() const{ return m_applicationNames; }
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline bool ApplicationNamesHasBeenSet() const { return m_applicationNamesHasBeenSet; }
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline void SetApplicationNames(const Aws::Vector<Aws::String>& value) { m_applicationNamesHasBeenSet = true; m_applicationNames = value; }
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline void SetApplicationNames(Aws::Vector<Aws::String>&& value) { m_applicationNamesHasBeenSet = true; m_applicationNames = std::move(value); }
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline BatchGetApplicationsRequest& WithApplicationNames(const Aws::Vector<Aws::String>& value) { SetApplicationNames(value); return *this;}
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline BatchGetApplicationsRequest& WithApplicationNames(Aws::Vector<Aws::String>&& value) { SetApplicationNames(std::move(value)); return *this;}
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline BatchGetApplicationsRequest& AddApplicationNames(const Aws::String& value) { m_applicationNamesHasBeenSet = true; m_applicationNames.push_back(value); return *this; }
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline BatchGetApplicationsRequest& AddApplicationNames(Aws::String&& value) { m_applicationNamesHasBeenSet = true; m_applicationNames.push_back(std::move(value)); return *this; }
/**
* <p>A list of application names separated by spaces. The maximum number of
* application names you can specify is 100.</p>
*/
inline BatchGetApplicationsRequest& AddApplicationNames(const char* value) { m_applicationNamesHasBeenSet = true; m_applicationNames.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_applicationNames;
bool m_applicationNamesHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/ApplicationInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>BatchGetApplications</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationsOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetApplicationsResult
{
public:
BatchGetApplicationsResult();
BatchGetApplicationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetApplicationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the applications.</p>
*/
inline const Aws::Vector<ApplicationInfo>& GetApplicationsInfo() const{ return m_applicationsInfo; }
/**
* <p>Information about the applications.</p>
*/
inline void SetApplicationsInfo(const Aws::Vector<ApplicationInfo>& value) { m_applicationsInfo = value; }
/**
* <p>Information about the applications.</p>
*/
inline void SetApplicationsInfo(Aws::Vector<ApplicationInfo>&& value) { m_applicationsInfo = std::move(value); }
/**
* <p>Information about the applications.</p>
*/
inline BatchGetApplicationsResult& WithApplicationsInfo(const Aws::Vector<ApplicationInfo>& value) { SetApplicationsInfo(value); return *this;}
/**
* <p>Information about the applications.</p>
*/
inline BatchGetApplicationsResult& WithApplicationsInfo(Aws::Vector<ApplicationInfo>&& value) { SetApplicationsInfo(std::move(value)); return *this;}
/**
* <p>Information about the applications.</p>
*/
inline BatchGetApplicationsResult& AddApplicationsInfo(const ApplicationInfo& value) { m_applicationsInfo.push_back(value); return *this; }
/**
* <p>Information about the applications.</p>
*/
inline BatchGetApplicationsResult& AddApplicationsInfo(ApplicationInfo&& value) { m_applicationsInfo.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ApplicationInfo> m_applicationsInfo;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>BatchGetDeploymentGroups</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroupsInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetDeploymentGroupsRequest : public CodeDeployRequest
{
public:
BatchGetDeploymentGroupsRequest();
// 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 "BatchGetDeploymentGroups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline BatchGetDeploymentGroupsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline BatchGetDeploymentGroupsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the applicable IAM
* user or AWS account.</p>
*/
inline BatchGetDeploymentGroupsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>The names of the deployment groups.</p>
*/
inline const Aws::Vector<Aws::String>& GetDeploymentGroupNames() const{ return m_deploymentGroupNames; }
/**
* <p>The names of the deployment groups.</p>
*/
inline bool DeploymentGroupNamesHasBeenSet() const { return m_deploymentGroupNamesHasBeenSet; }
/**
* <p>The names of the deployment groups.</p>
*/
inline void SetDeploymentGroupNames(const Aws::Vector<Aws::String>& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames = value; }
/**
* <p>The names of the deployment groups.</p>
*/
inline void SetDeploymentGroupNames(Aws::Vector<Aws::String>&& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames = std::move(value); }
/**
* <p>The names of the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsRequest& WithDeploymentGroupNames(const Aws::Vector<Aws::String>& value) { SetDeploymentGroupNames(value); return *this;}
/**
* <p>The names of the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsRequest& WithDeploymentGroupNames(Aws::Vector<Aws::String>&& value) { SetDeploymentGroupNames(std::move(value)); return *this;}
/**
* <p>The names of the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsRequest& AddDeploymentGroupNames(const Aws::String& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames.push_back(value); return *this; }
/**
* <p>The names of the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsRequest& AddDeploymentGroupNames(Aws::String&& value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames.push_back(std::move(value)); return *this; }
/**
* <p>The names of the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsRequest& AddDeploymentGroupNames(const char* value) { m_deploymentGroupNamesHasBeenSet = true; m_deploymentGroupNames.push_back(value); return *this; }
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
Aws::Vector<Aws::String> m_deploymentGroupNames;
bool m_deploymentGroupNamesHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/DeploymentGroupInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>BatchGetDeploymentGroups</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroupsOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult
{
public:
BatchGetDeploymentGroupsResult();
BatchGetDeploymentGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetDeploymentGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the deployment groups.</p>
*/
inline const Aws::Vector<DeploymentGroupInfo>& GetDeploymentGroupsInfo() const{ return m_deploymentGroupsInfo; }
/**
* <p>Information about the deployment groups.</p>
*/
inline void SetDeploymentGroupsInfo(const Aws::Vector<DeploymentGroupInfo>& value) { m_deploymentGroupsInfo = value; }
/**
* <p>Information about the deployment groups.</p>
*/
inline void SetDeploymentGroupsInfo(Aws::Vector<DeploymentGroupInfo>&& value) { m_deploymentGroupsInfo = std::move(value); }
/**
* <p>Information about the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsResult& WithDeploymentGroupsInfo(const Aws::Vector<DeploymentGroupInfo>& value) { SetDeploymentGroupsInfo(value); return *this;}
/**
* <p>Information about the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsResult& WithDeploymentGroupsInfo(Aws::Vector<DeploymentGroupInfo>&& value) { SetDeploymentGroupsInfo(std::move(value)); return *this;}
/**
* <p>Information about the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsResult& AddDeploymentGroupsInfo(const DeploymentGroupInfo& value) { m_deploymentGroupsInfo.push_back(value); return *this; }
/**
* <p>Information about the deployment groups.</p>
*/
inline BatchGetDeploymentGroupsResult& AddDeploymentGroupsInfo(DeploymentGroupInfo&& value) { m_deploymentGroupsInfo.push_back(std::move(value)); return *this; }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); }
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline BatchGetDeploymentGroupsResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline BatchGetDeploymentGroupsResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>Information about errors that might have occurred during the API call.</p>
*/
inline BatchGetDeploymentGroupsResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::Vector<DeploymentGroupInfo> m_deploymentGroupsInfo;
Aws::String m_errorMessage;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,252 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
*/
class AWS_CODEDEPLOY_API BatchGetDeploymentTargetsRequest : public CodeDeployRequest
{
public:
BatchGetDeploymentTargetsRequest();
// 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 "BatchGetDeploymentTargets"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The unique ID of a deployment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline BatchGetDeploymentTargetsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline BatchGetDeploymentTargetsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline BatchGetDeploymentTargetsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline const Aws::Vector<Aws::String>& GetTargetIds() const{ return m_targetIds; }
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline bool TargetIdsHasBeenSet() const { return m_targetIdsHasBeenSet; }
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline void SetTargetIds(const Aws::Vector<Aws::String>& value) { m_targetIdsHasBeenSet = true; m_targetIds = value; }
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline void SetTargetIds(Aws::Vector<Aws::String>&& value) { m_targetIdsHasBeenSet = true; m_targetIds = std::move(value); }
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsRequest& WithTargetIds(const Aws::Vector<Aws::String>& value) { SetTargetIds(value); return *this;}
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsRequest& WithTargetIds(Aws::Vector<Aws::String>&& value) { SetTargetIds(std::move(value)); return *this;}
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsRequest& AddTargetIds(const Aws::String& value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(value); return *this; }
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsRequest& AddTargetIds(Aws::String&& value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(std::move(value)); return *this; }
/**
* <p> The unique IDs of the deployment targets. The compute platform of the
* deployment determines the type of the targets and their formats. The maximum
* number of deployment target IDs you can specify is 25.</p> <ul> <li> <p> For
* deployments that use the EC2/On-premises compute platform, the target IDs are
* EC2 or on-premises instances IDs, and their target type is
* <code>instanceTarget</code>. </p> </li> <li> <p> For deployments that use the
* AWS Lambda compute platform, the target IDs are the names of Lambda functions,
* and their target type is <code>instanceTarget</code>. </p> </li> <li> <p> For
* deployments that use the Amazon ECS compute platform, the target IDs are pairs
* of Amazon ECS clusters and services specified using the format
* <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. Their target type is
* <code>ecsTarget</code>. </p> </li> <li> <p> For deployments that are deployed
* with AWS CloudFormation, the target IDs are CloudFormation stack IDs. Their
* target type is <code>cloudFormationTarget</code>. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsRequest& AddTargetIds(const char* value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(value); return *this; }
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::Vector<Aws::String> m_targetIds;
bool m_targetIdsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/DeploymentTarget.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
class AWS_CODEDEPLOY_API BatchGetDeploymentTargetsResult
{
public:
BatchGetDeploymentTargetsResult();
BatchGetDeploymentTargetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetDeploymentTargetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> A list of target objects for a deployment. Each target object contains
* details about the target, such as its status and lifecycle events. The type of
* the target objects depends on the deployment' compute platform. </p> <ul> <li>
* <p> <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises
* instance. </p> </li> <li> <p> <b>AWS Lambda</b>: The target object is a specific
* version of an AWS Lambda function. </p> </li> <li> <p> <b>Amazon ECS</b>: The
* target object is an Amazon ECS service. </p> </li> <li> <p>
* <b>CloudFormation</b>: The target object is an AWS CloudFormation blue/green
* deployment. </p> </li> </ul>
*/
inline const Aws::Vector<DeploymentTarget>& GetDeploymentTargets() const{ return m_deploymentTargets; }
/**
* <p> A list of target objects for a deployment. Each target object contains
* details about the target, such as its status and lifecycle events. The type of
* the target objects depends on the deployment' compute platform. </p> <ul> <li>
* <p> <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises
* instance. </p> </li> <li> <p> <b>AWS Lambda</b>: The target object is a specific
* version of an AWS Lambda function. </p> </li> <li> <p> <b>Amazon ECS</b>: The
* target object is an Amazon ECS service. </p> </li> <li> <p>
* <b>CloudFormation</b>: The target object is an AWS CloudFormation blue/green
* deployment. </p> </li> </ul>
*/
inline void SetDeploymentTargets(const Aws::Vector<DeploymentTarget>& value) { m_deploymentTargets = value; }
/**
* <p> A list of target objects for a deployment. Each target object contains
* details about the target, such as its status and lifecycle events. The type of
* the target objects depends on the deployment' compute platform. </p> <ul> <li>
* <p> <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises
* instance. </p> </li> <li> <p> <b>AWS Lambda</b>: The target object is a specific
* version of an AWS Lambda function. </p> </li> <li> <p> <b>Amazon ECS</b>: The
* target object is an Amazon ECS service. </p> </li> <li> <p>
* <b>CloudFormation</b>: The target object is an AWS CloudFormation blue/green
* deployment. </p> </li> </ul>
*/
inline void SetDeploymentTargets(Aws::Vector<DeploymentTarget>&& value) { m_deploymentTargets = std::move(value); }
/**
* <p> A list of target objects for a deployment. Each target object contains
* details about the target, such as its status and lifecycle events. The type of
* the target objects depends on the deployment' compute platform. </p> <ul> <li>
* <p> <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises
* instance. </p> </li> <li> <p> <b>AWS Lambda</b>: The target object is a specific
* version of an AWS Lambda function. </p> </li> <li> <p> <b>Amazon ECS</b>: The
* target object is an Amazon ECS service. </p> </li> <li> <p>
* <b>CloudFormation</b>: The target object is an AWS CloudFormation blue/green
* deployment. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsResult& WithDeploymentTargets(const Aws::Vector<DeploymentTarget>& value) { SetDeploymentTargets(value); return *this;}
/**
* <p> A list of target objects for a deployment. Each target object contains
* details about the target, such as its status and lifecycle events. The type of
* the target objects depends on the deployment' compute platform. </p> <ul> <li>
* <p> <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises
* instance. </p> </li> <li> <p> <b>AWS Lambda</b>: The target object is a specific
* version of an AWS Lambda function. </p> </li> <li> <p> <b>Amazon ECS</b>: The
* target object is an Amazon ECS service. </p> </li> <li> <p>
* <b>CloudFormation</b>: The target object is an AWS CloudFormation blue/green
* deployment. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsResult& WithDeploymentTargets(Aws::Vector<DeploymentTarget>&& value) { SetDeploymentTargets(std::move(value)); return *this;}
/**
* <p> A list of target objects for a deployment. Each target object contains
* details about the target, such as its status and lifecycle events. The type of
* the target objects depends on the deployment' compute platform. </p> <ul> <li>
* <p> <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises
* instance. </p> </li> <li> <p> <b>AWS Lambda</b>: The target object is a specific
* version of an AWS Lambda function. </p> </li> <li> <p> <b>Amazon ECS</b>: The
* target object is an Amazon ECS service. </p> </li> <li> <p>
* <b>CloudFormation</b>: The target object is an AWS CloudFormation blue/green
* deployment. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsResult& AddDeploymentTargets(const DeploymentTarget& value) { m_deploymentTargets.push_back(value); return *this; }
/**
* <p> A list of target objects for a deployment. Each target object contains
* details about the target, such as its status and lifecycle events. The type of
* the target objects depends on the deployment' compute platform. </p> <ul> <li>
* <p> <b>EC2/On-premises</b>: Each target object is an EC2 or on-premises
* instance. </p> </li> <li> <p> <b>AWS Lambda</b>: The target object is a specific
* version of an AWS Lambda function. </p> </li> <li> <p> <b>Amazon ECS</b>: The
* target object is an Amazon ECS service. </p> </li> <li> <p>
* <b>CloudFormation</b>: The target object is an AWS CloudFormation blue/green
* deployment. </p> </li> </ul>
*/
inline BatchGetDeploymentTargetsResult& AddDeploymentTargets(DeploymentTarget&& value) { m_deploymentTargets.push_back(std::move(value)); return *this; }
private:
Aws::Vector<DeploymentTarget> m_deploymentTargets;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Represents the input of a <code>BatchGetDeployments</code> operation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentsInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetDeploymentsRequest : public CodeDeployRequest
{
public:
BatchGetDeploymentsRequest();
// 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 "BatchGetDeployments"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline const Aws::Vector<Aws::String>& GetDeploymentIds() const{ return m_deploymentIds; }
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline bool DeploymentIdsHasBeenSet() const { return m_deploymentIdsHasBeenSet; }
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline void SetDeploymentIds(const Aws::Vector<Aws::String>& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = value; }
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline void SetDeploymentIds(Aws::Vector<Aws::String>&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = std::move(value); }
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline BatchGetDeploymentsRequest& WithDeploymentIds(const Aws::Vector<Aws::String>& value) { SetDeploymentIds(value); return *this;}
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline BatchGetDeploymentsRequest& WithDeploymentIds(Aws::Vector<Aws::String>&& value) { SetDeploymentIds(std::move(value)); return *this;}
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline BatchGetDeploymentsRequest& AddDeploymentIds(const Aws::String& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; }
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline BatchGetDeploymentsRequest& AddDeploymentIds(Aws::String&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(std::move(value)); return *this; }
/**
* <p> A list of deployment IDs, separated by spaces. The maximum number of
* deployment IDs you can specify is 25.</p>
*/
inline BatchGetDeploymentsRequest& AddDeploymentIds(const char* value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_deploymentIds;
bool m_deploymentIdsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/DeploymentInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Represents the output of a <code>BatchGetDeployments</code> operation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentsOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetDeploymentsResult
{
public:
BatchGetDeploymentsResult();
BatchGetDeploymentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetDeploymentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Information about the deployments. </p>
*/
inline const Aws::Vector<DeploymentInfo>& GetDeploymentsInfo() const{ return m_deploymentsInfo; }
/**
* <p> Information about the deployments. </p>
*/
inline void SetDeploymentsInfo(const Aws::Vector<DeploymentInfo>& value) { m_deploymentsInfo = value; }
/**
* <p> Information about the deployments. </p>
*/
inline void SetDeploymentsInfo(Aws::Vector<DeploymentInfo>&& value) { m_deploymentsInfo = std::move(value); }
/**
* <p> Information about the deployments. </p>
*/
inline BatchGetDeploymentsResult& WithDeploymentsInfo(const Aws::Vector<DeploymentInfo>& value) { SetDeploymentsInfo(value); return *this;}
/**
* <p> Information about the deployments. </p>
*/
inline BatchGetDeploymentsResult& WithDeploymentsInfo(Aws::Vector<DeploymentInfo>&& value) { SetDeploymentsInfo(std::move(value)); return *this;}
/**
* <p> Information about the deployments. </p>
*/
inline BatchGetDeploymentsResult& AddDeploymentsInfo(const DeploymentInfo& value) { m_deploymentsInfo.push_back(value); return *this; }
/**
* <p> Information about the deployments. </p>
*/
inline BatchGetDeploymentsResult& AddDeploymentsInfo(DeploymentInfo&& value) { m_deploymentsInfo.push_back(std::move(value)); return *this; }
private:
Aws::Vector<DeploymentInfo> m_deploymentsInfo;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>BatchGetOnPremisesInstances</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstancesInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetOnPremisesInstancesRequest : public CodeDeployRequest
{
public:
BatchGetOnPremisesInstancesRequest();
// 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 "BatchGetOnPremisesInstances"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline const Aws::Vector<Aws::String>& GetInstanceNames() const{ return m_instanceNames; }
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline void SetInstanceNames(const Aws::Vector<Aws::String>& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; }
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline void SetInstanceNames(Aws::Vector<Aws::String>&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); }
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline BatchGetOnPremisesInstancesRequest& WithInstanceNames(const Aws::Vector<Aws::String>& value) { SetInstanceNames(value); return *this;}
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline BatchGetOnPremisesInstancesRequest& WithInstanceNames(Aws::Vector<Aws::String>&& value) { SetInstanceNames(std::move(value)); return *this;}
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; }
/**
* <p>The names of the on-premises instances about which to get information. The
* maximum number of instance names you can specify is 25.</p>
*/
inline BatchGetOnPremisesInstancesRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_instanceNames;
bool m_instanceNamesHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/InstanceInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>BatchGetOnPremisesInstances</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstancesOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BatchGetOnPremisesInstancesResult
{
public:
BatchGetOnPremisesInstancesResult();
BatchGetOnPremisesInstancesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetOnPremisesInstancesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the on-premises instances.</p>
*/
inline const Aws::Vector<InstanceInfo>& GetInstanceInfos() const{ return m_instanceInfos; }
/**
* <p>Information about the on-premises instances.</p>
*/
inline void SetInstanceInfos(const Aws::Vector<InstanceInfo>& value) { m_instanceInfos = value; }
/**
* <p>Information about the on-premises instances.</p>
*/
inline void SetInstanceInfos(Aws::Vector<InstanceInfo>&& value) { m_instanceInfos = std::move(value); }
/**
* <p>Information about the on-premises instances.</p>
*/
inline BatchGetOnPremisesInstancesResult& WithInstanceInfos(const Aws::Vector<InstanceInfo>& value) { SetInstanceInfos(value); return *this;}
/**
* <p>Information about the on-premises instances.</p>
*/
inline BatchGetOnPremisesInstancesResult& WithInstanceInfos(Aws::Vector<InstanceInfo>&& value) { SetInstanceInfos(std::move(value)); return *this;}
/**
* <p>Information about the on-premises instances.</p>
*/
inline BatchGetOnPremisesInstancesResult& AddInstanceInfos(const InstanceInfo& value) { m_instanceInfos.push_back(value); return *this; }
/**
* <p>Information about the on-premises instances.</p>
*/
inline BatchGetOnPremisesInstancesResult& AddInstanceInfos(InstanceInfo&& value) { m_instanceInfos.push_back(std::move(value)); return *this; }
private:
Aws::Vector<InstanceInfo> m_instanceInfos;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/BlueInstanceTerminationOption.h>
#include <aws/codedeploy/model/DeploymentReadyOption.h>
#include <aws/codedeploy/model/GreenFleetProvisioningOption.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about blue/green deployment options for a deployment
* group.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BlueGreenDeploymentConfiguration">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BlueGreenDeploymentConfiguration
{
public:
BlueGreenDeploymentConfiguration();
BlueGreenDeploymentConfiguration(Aws::Utils::Json::JsonView jsonValue);
BlueGreenDeploymentConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about whether to terminate instances in the original fleet during
* a blue/green deployment.</p>
*/
inline const BlueInstanceTerminationOption& GetTerminateBlueInstancesOnDeploymentSuccess() const{ return m_terminateBlueInstancesOnDeploymentSuccess; }
/**
* <p>Information about whether to terminate instances in the original fleet during
* a blue/green deployment.</p>
*/
inline bool TerminateBlueInstancesOnDeploymentSuccessHasBeenSet() const { return m_terminateBlueInstancesOnDeploymentSuccessHasBeenSet; }
/**
* <p>Information about whether to terminate instances in the original fleet during
* a blue/green deployment.</p>
*/
inline void SetTerminateBlueInstancesOnDeploymentSuccess(const BlueInstanceTerminationOption& value) { m_terminateBlueInstancesOnDeploymentSuccessHasBeenSet = true; m_terminateBlueInstancesOnDeploymentSuccess = value; }
/**
* <p>Information about whether to terminate instances in the original fleet during
* a blue/green deployment.</p>
*/
inline void SetTerminateBlueInstancesOnDeploymentSuccess(BlueInstanceTerminationOption&& value) { m_terminateBlueInstancesOnDeploymentSuccessHasBeenSet = true; m_terminateBlueInstancesOnDeploymentSuccess = std::move(value); }
/**
* <p>Information about whether to terminate instances in the original fleet during
* a blue/green deployment.</p>
*/
inline BlueGreenDeploymentConfiguration& WithTerminateBlueInstancesOnDeploymentSuccess(const BlueInstanceTerminationOption& value) { SetTerminateBlueInstancesOnDeploymentSuccess(value); return *this;}
/**
* <p>Information about whether to terminate instances in the original fleet during
* a blue/green deployment.</p>
*/
inline BlueGreenDeploymentConfiguration& WithTerminateBlueInstancesOnDeploymentSuccess(BlueInstanceTerminationOption&& value) { SetTerminateBlueInstancesOnDeploymentSuccess(std::move(value)); return *this;}
/**
* <p>Information about the action to take when newly provisioned instances are
* ready to receive traffic in a blue/green deployment.</p>
*/
inline const DeploymentReadyOption& GetDeploymentReadyOption() const{ return m_deploymentReadyOption; }
/**
* <p>Information about the action to take when newly provisioned instances are
* ready to receive traffic in a blue/green deployment.</p>
*/
inline bool DeploymentReadyOptionHasBeenSet() const { return m_deploymentReadyOptionHasBeenSet; }
/**
* <p>Information about the action to take when newly provisioned instances are
* ready to receive traffic in a blue/green deployment.</p>
*/
inline void SetDeploymentReadyOption(const DeploymentReadyOption& value) { m_deploymentReadyOptionHasBeenSet = true; m_deploymentReadyOption = value; }
/**
* <p>Information about the action to take when newly provisioned instances are
* ready to receive traffic in a blue/green deployment.</p>
*/
inline void SetDeploymentReadyOption(DeploymentReadyOption&& value) { m_deploymentReadyOptionHasBeenSet = true; m_deploymentReadyOption = std::move(value); }
/**
* <p>Information about the action to take when newly provisioned instances are
* ready to receive traffic in a blue/green deployment.</p>
*/
inline BlueGreenDeploymentConfiguration& WithDeploymentReadyOption(const DeploymentReadyOption& value) { SetDeploymentReadyOption(value); return *this;}
/**
* <p>Information about the action to take when newly provisioned instances are
* ready to receive traffic in a blue/green deployment.</p>
*/
inline BlueGreenDeploymentConfiguration& WithDeploymentReadyOption(DeploymentReadyOption&& value) { SetDeploymentReadyOption(std::move(value)); return *this;}
/**
* <p>Information about how instances are provisioned for a replacement environment
* in a blue/green deployment.</p>
*/
inline const GreenFleetProvisioningOption& GetGreenFleetProvisioningOption() const{ return m_greenFleetProvisioningOption; }
/**
* <p>Information about how instances are provisioned for a replacement environment
* in a blue/green deployment.</p>
*/
inline bool GreenFleetProvisioningOptionHasBeenSet() const { return m_greenFleetProvisioningOptionHasBeenSet; }
/**
* <p>Information about how instances are provisioned for a replacement environment
* in a blue/green deployment.</p>
*/
inline void SetGreenFleetProvisioningOption(const GreenFleetProvisioningOption& value) { m_greenFleetProvisioningOptionHasBeenSet = true; m_greenFleetProvisioningOption = value; }
/**
* <p>Information about how instances are provisioned for a replacement environment
* in a blue/green deployment.</p>
*/
inline void SetGreenFleetProvisioningOption(GreenFleetProvisioningOption&& value) { m_greenFleetProvisioningOptionHasBeenSet = true; m_greenFleetProvisioningOption = std::move(value); }
/**
* <p>Information about how instances are provisioned for a replacement environment
* in a blue/green deployment.</p>
*/
inline BlueGreenDeploymentConfiguration& WithGreenFleetProvisioningOption(const GreenFleetProvisioningOption& value) { SetGreenFleetProvisioningOption(value); return *this;}
/**
* <p>Information about how instances are provisioned for a replacement environment
* in a blue/green deployment.</p>
*/
inline BlueGreenDeploymentConfiguration& WithGreenFleetProvisioningOption(GreenFleetProvisioningOption&& value) { SetGreenFleetProvisioningOption(std::move(value)); return *this;}
private:
BlueInstanceTerminationOption m_terminateBlueInstancesOnDeploymentSuccess;
bool m_terminateBlueInstancesOnDeploymentSuccessHasBeenSet;
DeploymentReadyOption m_deploymentReadyOption;
bool m_deploymentReadyOptionHasBeenSet;
GreenFleetProvisioningOption m_greenFleetProvisioningOption;
bool m_greenFleetProvisioningOptionHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/InstanceAction.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about whether instances in the original environment are
* terminated when a blue/green deployment is successful.
* <code>BlueInstanceTerminationOption</code> does not apply to Lambda deployments.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BlueInstanceTerminationOption">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API BlueInstanceTerminationOption
{
public:
BlueInstanceTerminationOption();
BlueInstanceTerminationOption(Aws::Utils::Json::JsonView jsonValue);
BlueInstanceTerminationOption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The action to take on instances in the original environment after a
* successful blue/green deployment.</p> <ul> <li> <p> <code>TERMINATE</code>:
* Instances are terminated after a specified wait time.</p> </li> <li> <p>
* <code>KEEP_ALIVE</code>: Instances are left running after they are deregistered
* from the load balancer and removed from the deployment group.</p> </li> </ul>
*/
inline const InstanceAction& GetAction() const{ return m_action; }
/**
* <p>The action to take on instances in the original environment after a
* successful blue/green deployment.</p> <ul> <li> <p> <code>TERMINATE</code>:
* Instances are terminated after a specified wait time.</p> </li> <li> <p>
* <code>KEEP_ALIVE</code>: Instances are left running after they are deregistered
* from the load balancer and removed from the deployment group.</p> </li> </ul>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>The action to take on instances in the original environment after a
* successful blue/green deployment.</p> <ul> <li> <p> <code>TERMINATE</code>:
* Instances are terminated after a specified wait time.</p> </li> <li> <p>
* <code>KEEP_ALIVE</code>: Instances are left running after they are deregistered
* from the load balancer and removed from the deployment group.</p> </li> </ul>
*/
inline void SetAction(const InstanceAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>The action to take on instances in the original environment after a
* successful blue/green deployment.</p> <ul> <li> <p> <code>TERMINATE</code>:
* Instances are terminated after a specified wait time.</p> </li> <li> <p>
* <code>KEEP_ALIVE</code>: Instances are left running after they are deregistered
* from the load balancer and removed from the deployment group.</p> </li> </ul>
*/
inline void SetAction(InstanceAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>The action to take on instances in the original environment after a
* successful blue/green deployment.</p> <ul> <li> <p> <code>TERMINATE</code>:
* Instances are terminated after a specified wait time.</p> </li> <li> <p>
* <code>KEEP_ALIVE</code>: Instances are left running after they are deregistered
* from the load balancer and removed from the deployment group.</p> </li> </ul>
*/
inline BlueInstanceTerminationOption& WithAction(const InstanceAction& value) { SetAction(value); return *this;}
/**
* <p>The action to take on instances in the original environment after a
* successful blue/green deployment.</p> <ul> <li> <p> <code>TERMINATE</code>:
* Instances are terminated after a specified wait time.</p> </li> <li> <p>
* <code>KEEP_ALIVE</code>: Instances are left running after they are deregistered
* from the load balancer and removed from the deployment group.</p> </li> </ul>
*/
inline BlueInstanceTerminationOption& WithAction(InstanceAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>For an Amazon EC2 deployment, the number of minutes to wait after a
* successful blue/green deployment before terminating instances from the original
* environment.</p> <p> For an Amazon ECS deployment, the number of minutes before
* deleting the original (blue) task set. During an Amazon ECS deployment,
* CodeDeploy shifts traffic from the original (blue) task set to a replacement
* (green) task set. </p> <p> The maximum setting is 2880 minutes (2 days). </p>
*/
inline int GetTerminationWaitTimeInMinutes() const{ return m_terminationWaitTimeInMinutes; }
/**
* <p>For an Amazon EC2 deployment, the number of minutes to wait after a
* successful blue/green deployment before terminating instances from the original
* environment.</p> <p> For an Amazon ECS deployment, the number of minutes before
* deleting the original (blue) task set. During an Amazon ECS deployment,
* CodeDeploy shifts traffic from the original (blue) task set to a replacement
* (green) task set. </p> <p> The maximum setting is 2880 minutes (2 days). </p>
*/
inline bool TerminationWaitTimeInMinutesHasBeenSet() const { return m_terminationWaitTimeInMinutesHasBeenSet; }
/**
* <p>For an Amazon EC2 deployment, the number of minutes to wait after a
* successful blue/green deployment before terminating instances from the original
* environment.</p> <p> For an Amazon ECS deployment, the number of minutes before
* deleting the original (blue) task set. During an Amazon ECS deployment,
* CodeDeploy shifts traffic from the original (blue) task set to a replacement
* (green) task set. </p> <p> The maximum setting is 2880 minutes (2 days). </p>
*/
inline void SetTerminationWaitTimeInMinutes(int value) { m_terminationWaitTimeInMinutesHasBeenSet = true; m_terminationWaitTimeInMinutes = value; }
/**
* <p>For an Amazon EC2 deployment, the number of minutes to wait after a
* successful blue/green deployment before terminating instances from the original
* environment.</p> <p> For an Amazon ECS deployment, the number of minutes before
* deleting the original (blue) task set. During an Amazon ECS deployment,
* CodeDeploy shifts traffic from the original (blue) task set to a replacement
* (green) task set. </p> <p> The maximum setting is 2880 minutes (2 days). </p>
*/
inline BlueInstanceTerminationOption& WithTerminationWaitTimeInMinutes(int value) { SetTerminationWaitTimeInMinutes(value); return *this;}
private:
InstanceAction m_action;
bool m_actionHasBeenSet;
int m_terminationWaitTimeInMinutes;
bool m_terminationWaitTimeInMinutesHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class BundleType
{
NOT_SET,
tar,
tgz,
zip,
YAML,
JSON
};
namespace BundleTypeMapper
{
AWS_CODEDEPLOY_API BundleType GetBundleTypeForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForBundleType(BundleType value);
} // namespace BundleTypeMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,350 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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/codedeploy/model/TargetStatus.h>
#include <aws/codedeploy/model/LifecycleEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Information about the target to be updated by an AWS CloudFormation
* blue/green deployment. This target type is used for all deployments initiated by
* a CloudFormation stack update.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CloudFormationTarget">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CloudFormationTarget
{
public:
CloudFormationTarget();
CloudFormationTarget(Aws::Utils::Json::JsonView jsonValue);
CloudFormationTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline CloudFormationTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline CloudFormationTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p>The unique ID of an AWS CloudFormation blue/green deployment.</p>
*/
inline CloudFormationTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline const Aws::String& GetTargetId() const{ return m_targetId; }
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline CloudFormationTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline CloudFormationTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment target that has a type
* of <code>CloudFormationTarget</code>. </p>
*/
inline CloudFormationTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
/**
* <p> The date and time when the target application was updated by an AWS
* CloudFormation blue/green deployment. </p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
/**
* <p> The date and time when the target application was updated by an AWS
* CloudFormation blue/green deployment. </p>
*/
inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
/**
* <p> The date and time when the target application was updated by an AWS
* CloudFormation blue/green deployment. </p>
*/
inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
/**
* <p> The date and time when the target application was updated by an AWS
* CloudFormation blue/green deployment. </p>
*/
inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
/**
* <p> The date and time when the target application was updated by an AWS
* CloudFormation blue/green deployment. </p>
*/
inline CloudFormationTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
/**
* <p> The date and time when the target application was updated by an AWS
* CloudFormation blue/green deployment. </p>
*/
inline CloudFormationTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline CloudFormationTarget& WithLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { SetLifecycleEvents(value); return *this;}
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline CloudFormationTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline CloudFormationTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
/**
* <p> The lifecycle events of the AWS CloudFormation blue/green deployment to this
* target application. </p>
*/
inline CloudFormationTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
/**
* <p> The status of an AWS CloudFormation blue/green deployment's target
* application. </p>
*/
inline const TargetStatus& GetStatus() const{ return m_status; }
/**
* <p> The status of an AWS CloudFormation blue/green deployment's target
* application. </p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> The status of an AWS CloudFormation blue/green deployment's target
* application. </p>
*/
inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> The status of an AWS CloudFormation blue/green deployment's target
* application. </p>
*/
inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> The status of an AWS CloudFormation blue/green deployment's target
* application. </p>
*/
inline CloudFormationTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
/**
* <p> The status of an AWS CloudFormation blue/green deployment's target
* application. </p>
*/
inline CloudFormationTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline const Aws::String& GetResourceType() const{ return m_resourceType; }
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline CloudFormationTarget& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline CloudFormationTarget& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
/**
* <p>The resource type for the AWS CloudFormation blue/green deployment.</p>
*/
inline CloudFormationTarget& WithResourceType(const char* value) { SetResourceType(value); return *this;}
/**
* <p>The percentage of production traffic that the target version of an AWS
* CloudFormation blue/green deployment receives.</p>
*/
inline double GetTargetVersionWeight() const{ return m_targetVersionWeight; }
/**
* <p>The percentage of production traffic that the target version of an AWS
* CloudFormation blue/green deployment receives.</p>
*/
inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
/**
* <p>The percentage of production traffic that the target version of an AWS
* CloudFormation blue/green deployment receives.</p>
*/
inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
/**
* <p>The percentage of production traffic that the target version of an AWS
* CloudFormation blue/green deployment receives.</p>
*/
inline CloudFormationTarget& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::String m_targetId;
bool m_targetIdHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedAt;
bool m_lastUpdatedAtHasBeenSet;
Aws::Vector<LifecycleEvent> m_lifecycleEvents;
bool m_lifecycleEventsHasBeenSet;
TargetStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_resourceType;
bool m_resourceTypeHasBeenSet;
double m_targetVersionWeight;
bool m_targetVersionWeightHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class ComputePlatform
{
NOT_SET,
Server,
Lambda,
ECS
};
namespace ComputePlatformMapper
{
AWS_CODEDEPLOY_API ComputePlatform GetComputePlatformForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForComputePlatform(ComputePlatform value);
} // namespace ComputePlatformMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/DeploymentWaitType.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
*/
class AWS_CODEDEPLOY_API ContinueDeploymentRequest : public CodeDeployRequest
{
public:
ContinueDeploymentRequest();
// 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 "ContinueDeployment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline ContinueDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline ContinueDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a blue/green deployment for which you want to start
* rerouting traffic to the replacement environment. </p>
*/
inline ContinueDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p> The status of the deployment's waiting period. <code>READY_WAIT</code>
* indicates that the deployment is ready to start shifting traffic.
* <code>TERMINATION_WAIT</code> indicates that the traffic is shifted, but the
* original target is not terminated. </p>
*/
inline const DeploymentWaitType& GetDeploymentWaitType() const{ return m_deploymentWaitType; }
/**
* <p> The status of the deployment's waiting period. <code>READY_WAIT</code>
* indicates that the deployment is ready to start shifting traffic.
* <code>TERMINATION_WAIT</code> indicates that the traffic is shifted, but the
* original target is not terminated. </p>
*/
inline bool DeploymentWaitTypeHasBeenSet() const { return m_deploymentWaitTypeHasBeenSet; }
/**
* <p> The status of the deployment's waiting period. <code>READY_WAIT</code>
* indicates that the deployment is ready to start shifting traffic.
* <code>TERMINATION_WAIT</code> indicates that the traffic is shifted, but the
* original target is not terminated. </p>
*/
inline void SetDeploymentWaitType(const DeploymentWaitType& value) { m_deploymentWaitTypeHasBeenSet = true; m_deploymentWaitType = value; }
/**
* <p> The status of the deployment's waiting period. <code>READY_WAIT</code>
* indicates that the deployment is ready to start shifting traffic.
* <code>TERMINATION_WAIT</code> indicates that the traffic is shifted, but the
* original target is not terminated. </p>
*/
inline void SetDeploymentWaitType(DeploymentWaitType&& value) { m_deploymentWaitTypeHasBeenSet = true; m_deploymentWaitType = std::move(value); }
/**
* <p> The status of the deployment's waiting period. <code>READY_WAIT</code>
* indicates that the deployment is ready to start shifting traffic.
* <code>TERMINATION_WAIT</code> indicates that the traffic is shifted, but the
* original target is not terminated. </p>
*/
inline ContinueDeploymentRequest& WithDeploymentWaitType(const DeploymentWaitType& value) { SetDeploymentWaitType(value); return *this;}
/**
* <p> The status of the deployment's waiting period. <code>READY_WAIT</code>
* indicates that the deployment is ready to start shifting traffic.
* <code>TERMINATION_WAIT</code> indicates that the traffic is shifted, but the
* original target is not terminated. </p>
*/
inline ContinueDeploymentRequest& WithDeploymentWaitType(DeploymentWaitType&& value) { SetDeploymentWaitType(std::move(value)); return *this;}
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
DeploymentWaitType m_deploymentWaitType;
bool m_deploymentWaitTypeHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/ComputePlatform.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/Tag.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>CreateApplication</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplicationInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateApplicationRequest : public CodeDeployRequest
{
public:
CreateApplicationRequest();
// 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 "CreateApplication"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline CreateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline CreateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of the application. This name must be unique with the applicable IAM
* user or AWS account.</p>
*/
inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p> The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; }
/**
* <p> The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
/**
* <p> The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
/**
* <p> The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); }
/**
* <p> The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline CreateApplicationRequest& WithComputePlatform(const ComputePlatform& value) { SetComputePlatform(value); return *this;}
/**
* <p> The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline CreateApplicationRequest& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;}
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p> The metadata that you apply to CodeDeploy applications to help you organize
* and categorize them. Each tag consists of a key and an optional value, both of
* which you define. </p>
*/
inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
ComputePlatform m_computePlatform;
bool m_computePlatformHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>CreateApplication</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplicationOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateApplicationResult
{
public:
CreateApplicationResult();
CreateApplicationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateApplicationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A unique application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>A unique application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>A unique application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>A unique application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>A unique application ID.</p>
*/
inline CreateApplicationResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>A unique application ID.</p>
*/
inline CreateApplicationResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>A unique application ID.</p>
*/
inline CreateApplicationResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
private:
Aws::String m_applicationId;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,266 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/MinimumHealthyHosts.h>
#include <aws/codedeploy/model/TrafficRoutingConfig.h>
#include <aws/codedeploy/model/ComputePlatform.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>CreateDeploymentConfig</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfigInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateDeploymentConfigRequest : public CodeDeployRequest
{
public:
CreateDeploymentConfigRequest();
// 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 "CreateDeploymentConfig"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline CreateDeploymentConfigRequest& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline CreateDeploymentConfigRequest& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(std::move(value)); return *this;}
/**
* <p>The name of the deployment configuration to create.</p>
*/
inline CreateDeploymentConfigRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>The minimum number of healthy instances that should be available at any time
* during the deployment. There are two parameters expected in the input: type and
* value.</p> <p>The type parameter takes either of the following values:</p> <ul>
* <li> <p>HOST_COUNT: The value parameter represents the minimum number of healthy
* instances as an absolute value.</p> </li> <li> <p>FLEET_PERCENT: The value
* parameter represents the minimum number of healthy instances as a percentage of
* the total number of instances in the deployment. If you specify FLEET_PERCENT,
* at the start of the deployment, AWS CodeDeploy converts the percentage to the
* equivalent number of instances and rounds up fractional instances.</p> </li>
* </ul> <p>The value parameter takes an integer.</p> <p>For example, to set a
* minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of
* 95.</p>
*/
inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const{ return m_minimumHealthyHosts; }
/**
* <p>The minimum number of healthy instances that should be available at any time
* during the deployment. There are two parameters expected in the input: type and
* value.</p> <p>The type parameter takes either of the following values:</p> <ul>
* <li> <p>HOST_COUNT: The value parameter represents the minimum number of healthy
* instances as an absolute value.</p> </li> <li> <p>FLEET_PERCENT: The value
* parameter represents the minimum number of healthy instances as a percentage of
* the total number of instances in the deployment. If you specify FLEET_PERCENT,
* at the start of the deployment, AWS CodeDeploy converts the percentage to the
* equivalent number of instances and rounds up fractional instances.</p> </li>
* </ul> <p>The value parameter takes an integer.</p> <p>For example, to set a
* minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of
* 95.</p>
*/
inline bool MinimumHealthyHostsHasBeenSet() const { return m_minimumHealthyHostsHasBeenSet; }
/**
* <p>The minimum number of healthy instances that should be available at any time
* during the deployment. There are two parameters expected in the input: type and
* value.</p> <p>The type parameter takes either of the following values:</p> <ul>
* <li> <p>HOST_COUNT: The value parameter represents the minimum number of healthy
* instances as an absolute value.</p> </li> <li> <p>FLEET_PERCENT: The value
* parameter represents the minimum number of healthy instances as a percentage of
* the total number of instances in the deployment. If you specify FLEET_PERCENT,
* at the start of the deployment, AWS CodeDeploy converts the percentage to the
* equivalent number of instances and rounds up fractional instances.</p> </li>
* </ul> <p>The value parameter takes an integer.</p> <p>For example, to set a
* minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of
* 95.</p>
*/
inline void SetMinimumHealthyHosts(const MinimumHealthyHosts& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = value; }
/**
* <p>The minimum number of healthy instances that should be available at any time
* during the deployment. There are two parameters expected in the input: type and
* value.</p> <p>The type parameter takes either of the following values:</p> <ul>
* <li> <p>HOST_COUNT: The value parameter represents the minimum number of healthy
* instances as an absolute value.</p> </li> <li> <p>FLEET_PERCENT: The value
* parameter represents the minimum number of healthy instances as a percentage of
* the total number of instances in the deployment. If you specify FLEET_PERCENT,
* at the start of the deployment, AWS CodeDeploy converts the percentage to the
* equivalent number of instances and rounds up fractional instances.</p> </li>
* </ul> <p>The value parameter takes an integer.</p> <p>For example, to set a
* minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of
* 95.</p>
*/
inline void SetMinimumHealthyHosts(MinimumHealthyHosts&& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = std::move(value); }
/**
* <p>The minimum number of healthy instances that should be available at any time
* during the deployment. There are two parameters expected in the input: type and
* value.</p> <p>The type parameter takes either of the following values:</p> <ul>
* <li> <p>HOST_COUNT: The value parameter represents the minimum number of healthy
* instances as an absolute value.</p> </li> <li> <p>FLEET_PERCENT: The value
* parameter represents the minimum number of healthy instances as a percentage of
* the total number of instances in the deployment. If you specify FLEET_PERCENT,
* at the start of the deployment, AWS CodeDeploy converts the percentage to the
* equivalent number of instances and rounds up fractional instances.</p> </li>
* </ul> <p>The value parameter takes an integer.</p> <p>For example, to set a
* minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of
* 95.</p>
*/
inline CreateDeploymentConfigRequest& WithMinimumHealthyHosts(const MinimumHealthyHosts& value) { SetMinimumHealthyHosts(value); return *this;}
/**
* <p>The minimum number of healthy instances that should be available at any time
* during the deployment. There are two parameters expected in the input: type and
* value.</p> <p>The type parameter takes either of the following values:</p> <ul>
* <li> <p>HOST_COUNT: The value parameter represents the minimum number of healthy
* instances as an absolute value.</p> </li> <li> <p>FLEET_PERCENT: The value
* parameter represents the minimum number of healthy instances as a percentage of
* the total number of instances in the deployment. If you specify FLEET_PERCENT,
* at the start of the deployment, AWS CodeDeploy converts the percentage to the
* equivalent number of instances and rounds up fractional instances.</p> </li>
* </ul> <p>The value parameter takes an integer.</p> <p>For example, to set a
* minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of
* 95.</p>
*/
inline CreateDeploymentConfigRequest& WithMinimumHealthyHosts(MinimumHealthyHosts&& value) { SetMinimumHealthyHosts(std::move(value)); return *this;}
/**
* <p>The configuration that specifies how the deployment traffic is routed.</p>
*/
inline const TrafficRoutingConfig& GetTrafficRoutingConfig() const{ return m_trafficRoutingConfig; }
/**
* <p>The configuration that specifies how the deployment traffic is routed.</p>
*/
inline bool TrafficRoutingConfigHasBeenSet() const { return m_trafficRoutingConfigHasBeenSet; }
/**
* <p>The configuration that specifies how the deployment traffic is routed.</p>
*/
inline void SetTrafficRoutingConfig(const TrafficRoutingConfig& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = value; }
/**
* <p>The configuration that specifies how the deployment traffic is routed.</p>
*/
inline void SetTrafficRoutingConfig(TrafficRoutingConfig&& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = std::move(value); }
/**
* <p>The configuration that specifies how the deployment traffic is routed.</p>
*/
inline CreateDeploymentConfigRequest& WithTrafficRoutingConfig(const TrafficRoutingConfig& value) { SetTrafficRoutingConfig(value); return *this;}
/**
* <p>The configuration that specifies how the deployment traffic is routed.</p>
*/
inline CreateDeploymentConfigRequest& WithTrafficRoutingConfig(TrafficRoutingConfig&& value) { SetTrafficRoutingConfig(std::move(value)); return *this;}
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline CreateDeploymentConfigRequest& WithComputePlatform(const ComputePlatform& value) { SetComputePlatform(value); return *this;}
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline CreateDeploymentConfigRequest& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;}
private:
Aws::String m_deploymentConfigName;
bool m_deploymentConfigNameHasBeenSet;
MinimumHealthyHosts m_minimumHealthyHosts;
bool m_minimumHealthyHostsHasBeenSet;
TrafficRoutingConfig m_trafficRoutingConfig;
bool m_trafficRoutingConfigHasBeenSet;
ComputePlatform m_computePlatform;
bool m_computePlatformHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>CreateDeploymentConfig</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfigOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateDeploymentConfigResult
{
public:
CreateDeploymentConfigResult();
CreateDeploymentConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDeploymentConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A unique deployment configuration ID.</p>
*/
inline const Aws::String& GetDeploymentConfigId() const{ return m_deploymentConfigId; }
/**
* <p>A unique deployment configuration ID.</p>
*/
inline void SetDeploymentConfigId(const Aws::String& value) { m_deploymentConfigId = value; }
/**
* <p>A unique deployment configuration ID.</p>
*/
inline void SetDeploymentConfigId(Aws::String&& value) { m_deploymentConfigId = std::move(value); }
/**
* <p>A unique deployment configuration ID.</p>
*/
inline void SetDeploymentConfigId(const char* value) { m_deploymentConfigId.assign(value); }
/**
* <p>A unique deployment configuration ID.</p>
*/
inline CreateDeploymentConfigResult& WithDeploymentConfigId(const Aws::String& value) { SetDeploymentConfigId(value); return *this;}
/**
* <p>A unique deployment configuration ID.</p>
*/
inline CreateDeploymentConfigResult& WithDeploymentConfigId(Aws::String&& value) { SetDeploymentConfigId(std::move(value)); return *this;}
/**
* <p>A unique deployment configuration ID.</p>
*/
inline CreateDeploymentConfigResult& WithDeploymentConfigId(const char* value) { SetDeploymentConfigId(value); return *this;}
private:
Aws::String m_deploymentConfigId;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,981 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/AlarmConfiguration.h>
#include <aws/codedeploy/model/AutoRollbackConfiguration.h>
#include <aws/codedeploy/model/DeploymentStyle.h>
#include <aws/codedeploy/model/BlueGreenDeploymentConfiguration.h>
#include <aws/codedeploy/model/LoadBalancerInfo.h>
#include <aws/codedeploy/model/EC2TagSet.h>
#include <aws/codedeploy/model/OnPremisesTagSet.h>
#include <aws/codedeploy/model/EC2TagFilter.h>
#include <aws/codedeploy/model/TagFilter.h>
#include <aws/codedeploy/model/TriggerConfig.h>
#include <aws/codedeploy/model/ECSService.h>
#include <aws/codedeploy/model/Tag.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>CreateDeploymentGroup</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroupInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateDeploymentGroupRequest : public CodeDeployRequest
{
public:
CreateDeploymentGroupRequest();
// 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 "CreateDeploymentGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline CreateDeploymentGroupRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline CreateDeploymentGroupRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline CreateDeploymentGroupRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
/**
* <p>The name of a new deployment group for the specified application.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(std::move(value)); return *this;}
/**
* <p>If specified, the deployment configuration name can be either one of the
* predefined configurations provided with AWS CodeDeploy or a custom deployment
* configuration that you create by calling the create deployment configuration
* operation.</p> <p> <code>CodeDeployDefault.OneAtATime</code> is the default
* deployment configuration. It is used if a configuration isn't specified for the
* deployment or deployment group.</p> <p>For more information about the predefined
* deployment configurations in AWS CodeDeploy, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working
* with Deployment Configurations in CodeDeploy</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline const Aws::Vector<EC2TagFilter>& GetEc2TagFilters() const{ return m_ec2TagFilters; }
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline bool Ec2TagFiltersHasBeenSet() const { return m_ec2TagFiltersHasBeenSet; }
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline void SetEc2TagFilters(const Aws::Vector<EC2TagFilter>& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters = value; }
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline void SetEc2TagFilters(Aws::Vector<EC2TagFilter>&& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters = std::move(value); }
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline CreateDeploymentGroupRequest& WithEc2TagFilters(const Aws::Vector<EC2TagFilter>& value) { SetEc2TagFilters(value); return *this;}
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline CreateDeploymentGroupRequest& WithEc2TagFilters(Aws::Vector<EC2TagFilter>&& value) { SetEc2TagFilters(std::move(value)); return *this;}
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline CreateDeploymentGroupRequest& AddEc2TagFilters(const EC2TagFilter& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters.push_back(value); return *this; }
/**
* <p>The Amazon EC2 tags on which to filter. The deployment group includes EC2
* instances with any of the specified tags. Cannot be used in the same call as
* ec2TagSet.</p>
*/
inline CreateDeploymentGroupRequest& AddEc2TagFilters(EC2TagFilter&& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters.push_back(std::move(value)); return *this; }
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline const Aws::Vector<TagFilter>& GetOnPremisesInstanceTagFilters() const{ return m_onPremisesInstanceTagFilters; }
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline bool OnPremisesInstanceTagFiltersHasBeenSet() const { return m_onPremisesInstanceTagFiltersHasBeenSet; }
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline void SetOnPremisesInstanceTagFilters(const Aws::Vector<TagFilter>& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters = value; }
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline void SetOnPremisesInstanceTagFilters(Aws::Vector<TagFilter>&& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters = std::move(value); }
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline CreateDeploymentGroupRequest& WithOnPremisesInstanceTagFilters(const Aws::Vector<TagFilter>& value) { SetOnPremisesInstanceTagFilters(value); return *this;}
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline CreateDeploymentGroupRequest& WithOnPremisesInstanceTagFilters(Aws::Vector<TagFilter>&& value) { SetOnPremisesInstanceTagFilters(std::move(value)); return *this;}
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline CreateDeploymentGroupRequest& AddOnPremisesInstanceTagFilters(const TagFilter& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters.push_back(value); return *this; }
/**
* <p>The on-premises instance tags on which to filter. The deployment group
* includes on-premises instances with any of the specified tags. Cannot be used in
* the same call as <code>OnPremisesTagSet</code>.</p>
*/
inline CreateDeploymentGroupRequest& AddOnPremisesInstanceTagFilters(TagFilter&& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters.push_back(std::move(value)); return *this; }
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline const Aws::Vector<Aws::String>& GetAutoScalingGroups() const{ return m_autoScalingGroups; }
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline void SetAutoScalingGroups(const Aws::Vector<Aws::String>& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = value; }
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline void SetAutoScalingGroups(Aws::Vector<Aws::String>&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = std::move(value); }
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline CreateDeploymentGroupRequest& WithAutoScalingGroups(const Aws::Vector<Aws::String>& value) { SetAutoScalingGroups(value); return *this;}
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline CreateDeploymentGroupRequest& WithAutoScalingGroups(Aws::Vector<Aws::String>&& value) { SetAutoScalingGroups(std::move(value)); return *this;}
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline CreateDeploymentGroupRequest& AddAutoScalingGroups(const Aws::String& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(value); return *this; }
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline CreateDeploymentGroupRequest& AddAutoScalingGroups(Aws::String&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(std::move(value)); return *this; }
/**
* <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
*/
inline CreateDeploymentGroupRequest& AddAutoScalingGroups(const char* value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(value); return *this; }
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); }
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline CreateDeploymentGroupRequest& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;}
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline CreateDeploymentGroupRequest& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;}
/**
* <p>A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act
* on the user's behalf when interacting with AWS services.</p>
*/
inline CreateDeploymentGroupRequest& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline const Aws::Vector<TriggerConfig>& GetTriggerConfigurations() const{ return m_triggerConfigurations; }
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline bool TriggerConfigurationsHasBeenSet() const { return m_triggerConfigurationsHasBeenSet; }
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline void SetTriggerConfigurations(const Aws::Vector<TriggerConfig>& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations = value; }
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline void SetTriggerConfigurations(Aws::Vector<TriggerConfig>&& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations = std::move(value); }
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline CreateDeploymentGroupRequest& WithTriggerConfigurations(const Aws::Vector<TriggerConfig>& value) { SetTriggerConfigurations(value); return *this;}
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline CreateDeploymentGroupRequest& WithTriggerConfigurations(Aws::Vector<TriggerConfig>&& value) { SetTriggerConfigurations(std::move(value)); return *this;}
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline CreateDeploymentGroupRequest& AddTriggerConfigurations(const TriggerConfig& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations.push_back(value); return *this; }
/**
* <p>Information about triggers to create when the deployment group is created.
* For examples, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create
* a Trigger for an AWS CodeDeploy Event</a> in the <i>AWS CodeDeploy User
* Guide</i>.</p>
*/
inline CreateDeploymentGroupRequest& AddTriggerConfigurations(TriggerConfig&& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations.push_back(std::move(value)); return *this; }
/**
* <p>Information to add about Amazon CloudWatch alarms when the deployment group
* is created.</p>
*/
inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
/**
* <p>Information to add about Amazon CloudWatch alarms when the deployment group
* is created.</p>
*/
inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
/**
* <p>Information to add about Amazon CloudWatch alarms when the deployment group
* is created.</p>
*/
inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; }
/**
* <p>Information to add about Amazon CloudWatch alarms when the deployment group
* is created.</p>
*/
inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); }
/**
* <p>Information to add about Amazon CloudWatch alarms when the deployment group
* is created.</p>
*/
inline CreateDeploymentGroupRequest& WithAlarmConfiguration(const AlarmConfiguration& value) { SetAlarmConfiguration(value); return *this;}
/**
* <p>Information to add about Amazon CloudWatch alarms when the deployment group
* is created.</p>
*/
inline CreateDeploymentGroupRequest& WithAlarmConfiguration(AlarmConfiguration&& value) { SetAlarmConfiguration(std::move(value)); return *this;}
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment group is created.</p>
*/
inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const{ return m_autoRollbackConfiguration; }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment group is created.</p>
*/
inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment group is created.</p>
*/
inline void SetAutoRollbackConfiguration(const AutoRollbackConfiguration& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = value; }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment group is created.</p>
*/
inline void SetAutoRollbackConfiguration(AutoRollbackConfiguration&& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = std::move(value); }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment group is created.</p>
*/
inline CreateDeploymentGroupRequest& WithAutoRollbackConfiguration(const AutoRollbackConfiguration& value) { SetAutoRollbackConfiguration(value); return *this;}
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment group is created.</p>
*/
inline CreateDeploymentGroupRequest& WithAutoRollbackConfiguration(AutoRollbackConfiguration&& value) { SetAutoRollbackConfiguration(std::move(value)); return *this;}
/**
* <p>Information about the type of deployment, in-place or blue/green, that you
* want to run and whether to route deployment traffic behind a load balancer.</p>
*/
inline const DeploymentStyle& GetDeploymentStyle() const{ return m_deploymentStyle; }
/**
* <p>Information about the type of deployment, in-place or blue/green, that you
* want to run and whether to route deployment traffic behind a load balancer.</p>
*/
inline bool DeploymentStyleHasBeenSet() const { return m_deploymentStyleHasBeenSet; }
/**
* <p>Information about the type of deployment, in-place or blue/green, that you
* want to run and whether to route deployment traffic behind a load balancer.</p>
*/
inline void SetDeploymentStyle(const DeploymentStyle& value) { m_deploymentStyleHasBeenSet = true; m_deploymentStyle = value; }
/**
* <p>Information about the type of deployment, in-place or blue/green, that you
* want to run and whether to route deployment traffic behind a load balancer.</p>
*/
inline void SetDeploymentStyle(DeploymentStyle&& value) { m_deploymentStyleHasBeenSet = true; m_deploymentStyle = std::move(value); }
/**
* <p>Information about the type of deployment, in-place or blue/green, that you
* want to run and whether to route deployment traffic behind a load balancer.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentStyle(const DeploymentStyle& value) { SetDeploymentStyle(value); return *this;}
/**
* <p>Information about the type of deployment, in-place or blue/green, that you
* want to run and whether to route deployment traffic behind a load balancer.</p>
*/
inline CreateDeploymentGroupRequest& WithDeploymentStyle(DeploymentStyle&& value) { SetDeploymentStyle(std::move(value)); return *this;}
/**
* <p>Information about blue/green deployment options for a deployment group.</p>
*/
inline const BlueGreenDeploymentConfiguration& GetBlueGreenDeploymentConfiguration() const{ return m_blueGreenDeploymentConfiguration; }
/**
* <p>Information about blue/green deployment options for a deployment group.</p>
*/
inline bool BlueGreenDeploymentConfigurationHasBeenSet() const { return m_blueGreenDeploymentConfigurationHasBeenSet; }
/**
* <p>Information about blue/green deployment options for a deployment group.</p>
*/
inline void SetBlueGreenDeploymentConfiguration(const BlueGreenDeploymentConfiguration& value) { m_blueGreenDeploymentConfigurationHasBeenSet = true; m_blueGreenDeploymentConfiguration = value; }
/**
* <p>Information about blue/green deployment options for a deployment group.</p>
*/
inline void SetBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfiguration&& value) { m_blueGreenDeploymentConfigurationHasBeenSet = true; m_blueGreenDeploymentConfiguration = std::move(value); }
/**
* <p>Information about blue/green deployment options for a deployment group.</p>
*/
inline CreateDeploymentGroupRequest& WithBlueGreenDeploymentConfiguration(const BlueGreenDeploymentConfiguration& value) { SetBlueGreenDeploymentConfiguration(value); return *this;}
/**
* <p>Information about blue/green deployment options for a deployment group.</p>
*/
inline CreateDeploymentGroupRequest& WithBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfiguration&& value) { SetBlueGreenDeploymentConfiguration(std::move(value)); return *this;}
/**
* <p>Information about the load balancer used in a deployment.</p>
*/
inline const LoadBalancerInfo& GetLoadBalancerInfo() const{ return m_loadBalancerInfo; }
/**
* <p>Information about the load balancer used in a deployment.</p>
*/
inline bool LoadBalancerInfoHasBeenSet() const { return m_loadBalancerInfoHasBeenSet; }
/**
* <p>Information about the load balancer used in a deployment.</p>
*/
inline void SetLoadBalancerInfo(const LoadBalancerInfo& value) { m_loadBalancerInfoHasBeenSet = true; m_loadBalancerInfo = value; }
/**
* <p>Information about the load balancer used in a deployment.</p>
*/
inline void SetLoadBalancerInfo(LoadBalancerInfo&& value) { m_loadBalancerInfoHasBeenSet = true; m_loadBalancerInfo = std::move(value); }
/**
* <p>Information about the load balancer used in a deployment.</p>
*/
inline CreateDeploymentGroupRequest& WithLoadBalancerInfo(const LoadBalancerInfo& value) { SetLoadBalancerInfo(value); return *this;}
/**
* <p>Information about the load balancer used in a deployment.</p>
*/
inline CreateDeploymentGroupRequest& WithLoadBalancerInfo(LoadBalancerInfo&& value) { SetLoadBalancerInfo(std::move(value)); return *this;}
/**
* <p>Information about groups of tags applied to EC2 instances. The deployment
* group includes only EC2 instances identified by all the tag groups. Cannot be
* used in the same call as <code>ec2TagFilters</code>.</p>
*/
inline const EC2TagSet& GetEc2TagSet() const{ return m_ec2TagSet; }
/**
* <p>Information about groups of tags applied to EC2 instances. The deployment
* group includes only EC2 instances identified by all the tag groups. Cannot be
* used in the same call as <code>ec2TagFilters</code>.</p>
*/
inline bool Ec2TagSetHasBeenSet() const { return m_ec2TagSetHasBeenSet; }
/**
* <p>Information about groups of tags applied to EC2 instances. The deployment
* group includes only EC2 instances identified by all the tag groups. Cannot be
* used in the same call as <code>ec2TagFilters</code>.</p>
*/
inline void SetEc2TagSet(const EC2TagSet& value) { m_ec2TagSetHasBeenSet = true; m_ec2TagSet = value; }
/**
* <p>Information about groups of tags applied to EC2 instances. The deployment
* group includes only EC2 instances identified by all the tag groups. Cannot be
* used in the same call as <code>ec2TagFilters</code>.</p>
*/
inline void SetEc2TagSet(EC2TagSet&& value) { m_ec2TagSetHasBeenSet = true; m_ec2TagSet = std::move(value); }
/**
* <p>Information about groups of tags applied to EC2 instances. The deployment
* group includes only EC2 instances identified by all the tag groups. Cannot be
* used in the same call as <code>ec2TagFilters</code>.</p>
*/
inline CreateDeploymentGroupRequest& WithEc2TagSet(const EC2TagSet& value) { SetEc2TagSet(value); return *this;}
/**
* <p>Information about groups of tags applied to EC2 instances. The deployment
* group includes only EC2 instances identified by all the tag groups. Cannot be
* used in the same call as <code>ec2TagFilters</code>.</p>
*/
inline CreateDeploymentGroupRequest& WithEc2TagSet(EC2TagSet&& value) { SetEc2TagSet(std::move(value)); return *this;}
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline const Aws::Vector<ECSService>& GetEcsServices() const{ return m_ecsServices; }
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline bool EcsServicesHasBeenSet() const { return m_ecsServicesHasBeenSet; }
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline void SetEcsServices(const Aws::Vector<ECSService>& value) { m_ecsServicesHasBeenSet = true; m_ecsServices = value; }
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline void SetEcsServices(Aws::Vector<ECSService>&& value) { m_ecsServicesHasBeenSet = true; m_ecsServices = std::move(value); }
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline CreateDeploymentGroupRequest& WithEcsServices(const Aws::Vector<ECSService>& value) { SetEcsServices(value); return *this;}
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline CreateDeploymentGroupRequest& WithEcsServices(Aws::Vector<ECSService>&& value) { SetEcsServices(std::move(value)); return *this;}
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline CreateDeploymentGroupRequest& AddEcsServices(const ECSService& value) { m_ecsServicesHasBeenSet = true; m_ecsServices.push_back(value); return *this; }
/**
* <p> The target Amazon ECS services in the deployment group. This applies only to
* deployment groups that use the Amazon ECS compute platform. A target Amazon ECS
* service is specified as an Amazon ECS cluster and service name pair using the
* format <code>&lt;clustername&gt;:&lt;servicename&gt;</code>. </p>
*/
inline CreateDeploymentGroupRequest& AddEcsServices(ECSService&& value) { m_ecsServicesHasBeenSet = true; m_ecsServices.push_back(std::move(value)); return *this; }
/**
* <p>Information about groups of tags applied to on-premises instances. The
* deployment group includes only on-premises instances identified by all of the
* tag groups. Cannot be used in the same call as
* <code>onPremisesInstanceTagFilters</code>.</p>
*/
inline const OnPremisesTagSet& GetOnPremisesTagSet() const{ return m_onPremisesTagSet; }
/**
* <p>Information about groups of tags applied to on-premises instances. The
* deployment group includes only on-premises instances identified by all of the
* tag groups. Cannot be used in the same call as
* <code>onPremisesInstanceTagFilters</code>.</p>
*/
inline bool OnPremisesTagSetHasBeenSet() const { return m_onPremisesTagSetHasBeenSet; }
/**
* <p>Information about groups of tags applied to on-premises instances. The
* deployment group includes only on-premises instances identified by all of the
* tag groups. Cannot be used in the same call as
* <code>onPremisesInstanceTagFilters</code>.</p>
*/
inline void SetOnPremisesTagSet(const OnPremisesTagSet& value) { m_onPremisesTagSetHasBeenSet = true; m_onPremisesTagSet = value; }
/**
* <p>Information about groups of tags applied to on-premises instances. The
* deployment group includes only on-premises instances identified by all of the
* tag groups. Cannot be used in the same call as
* <code>onPremisesInstanceTagFilters</code>.</p>
*/
inline void SetOnPremisesTagSet(OnPremisesTagSet&& value) { m_onPremisesTagSetHasBeenSet = true; m_onPremisesTagSet = std::move(value); }
/**
* <p>Information about groups of tags applied to on-premises instances. The
* deployment group includes only on-premises instances identified by all of the
* tag groups. Cannot be used in the same call as
* <code>onPremisesInstanceTagFilters</code>.</p>
*/
inline CreateDeploymentGroupRequest& WithOnPremisesTagSet(const OnPremisesTagSet& value) { SetOnPremisesTagSet(value); return *this;}
/**
* <p>Information about groups of tags applied to on-premises instances. The
* deployment group includes only on-premises instances identified by all of the
* tag groups. Cannot be used in the same call as
* <code>onPremisesInstanceTagFilters</code>.</p>
*/
inline CreateDeploymentGroupRequest& WithOnPremisesTagSet(OnPremisesTagSet&& value) { SetOnPremisesTagSet(std::move(value)); return *this;}
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline CreateDeploymentGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline CreateDeploymentGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline CreateDeploymentGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p> The metadata that you apply to CodeDeploy deployment groups to help you
* organize and categorize them. Each tag consists of a key and an optional value,
* both of which you define. </p>
*/
inline CreateDeploymentGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
Aws::String m_deploymentGroupName;
bool m_deploymentGroupNameHasBeenSet;
Aws::String m_deploymentConfigName;
bool m_deploymentConfigNameHasBeenSet;
Aws::Vector<EC2TagFilter> m_ec2TagFilters;
bool m_ec2TagFiltersHasBeenSet;
Aws::Vector<TagFilter> m_onPremisesInstanceTagFilters;
bool m_onPremisesInstanceTagFiltersHasBeenSet;
Aws::Vector<Aws::String> m_autoScalingGroups;
bool m_autoScalingGroupsHasBeenSet;
Aws::String m_serviceRoleArn;
bool m_serviceRoleArnHasBeenSet;
Aws::Vector<TriggerConfig> m_triggerConfigurations;
bool m_triggerConfigurationsHasBeenSet;
AlarmConfiguration m_alarmConfiguration;
bool m_alarmConfigurationHasBeenSet;
AutoRollbackConfiguration m_autoRollbackConfiguration;
bool m_autoRollbackConfigurationHasBeenSet;
DeploymentStyle m_deploymentStyle;
bool m_deploymentStyleHasBeenSet;
BlueGreenDeploymentConfiguration m_blueGreenDeploymentConfiguration;
bool m_blueGreenDeploymentConfigurationHasBeenSet;
LoadBalancerInfo m_loadBalancerInfo;
bool m_loadBalancerInfoHasBeenSet;
EC2TagSet m_ec2TagSet;
bool m_ec2TagSetHasBeenSet;
Aws::Vector<ECSService> m_ecsServices;
bool m_ecsServicesHasBeenSet;
OnPremisesTagSet m_onPremisesTagSet;
bool m_onPremisesTagSetHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>CreateDeploymentGroup</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroupOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateDeploymentGroupResult
{
public:
CreateDeploymentGroupResult();
CreateDeploymentGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDeploymentGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A unique deployment group ID.</p>
*/
inline const Aws::String& GetDeploymentGroupId() const{ return m_deploymentGroupId; }
/**
* <p>A unique deployment group ID.</p>
*/
inline void SetDeploymentGroupId(const Aws::String& value) { m_deploymentGroupId = value; }
/**
* <p>A unique deployment group ID.</p>
*/
inline void SetDeploymentGroupId(Aws::String&& value) { m_deploymentGroupId = std::move(value); }
/**
* <p>A unique deployment group ID.</p>
*/
inline void SetDeploymentGroupId(const char* value) { m_deploymentGroupId.assign(value); }
/**
* <p>A unique deployment group ID.</p>
*/
inline CreateDeploymentGroupResult& WithDeploymentGroupId(const Aws::String& value) { SetDeploymentGroupId(value); return *this;}
/**
* <p>A unique deployment group ID.</p>
*/
inline CreateDeploymentGroupResult& WithDeploymentGroupId(Aws::String&& value) { SetDeploymentGroupId(std::move(value)); return *this;}
/**
* <p>A unique deployment group ID.</p>
*/
inline CreateDeploymentGroupResult& WithDeploymentGroupId(const char* value) { SetDeploymentGroupId(value); return *this;}
private:
Aws::String m_deploymentGroupId;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,597 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/RevisionLocation.h>
#include <aws/codedeploy/model/TargetInstances.h>
#include <aws/codedeploy/model/AutoRollbackConfiguration.h>
#include <aws/codedeploy/model/FileExistsBehavior.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>CreateDeployment</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateDeploymentRequest : public CodeDeployRequest
{
public:
CreateDeploymentRequest();
// 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 "CreateDeployment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline CreateDeploymentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline CreateDeploymentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline CreateDeploymentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>The name of the deployment group.</p>
*/
inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
/**
* <p>The name of the deployment group.</p>
*/
inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
/**
* <p>The name of the deployment group.</p>
*/
inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
/**
* <p>The name of the deployment group.</p>
*/
inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
/**
* <p>The name of the deployment group.</p>
*/
inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
/**
* <p>The name of the deployment group.</p>
*/
inline CreateDeploymentRequest& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
/**
* <p>The name of the deployment group.</p>
*/
inline CreateDeploymentRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
/**
* <p>The name of the deployment group.</p>
*/
inline CreateDeploymentRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
/**
* <p> The type and location of the revision to deploy. </p>
*/
inline const RevisionLocation& GetRevision() const{ return m_revision; }
/**
* <p> The type and location of the revision to deploy. </p>
*/
inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
/**
* <p> The type and location of the revision to deploy. </p>
*/
inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; }
/**
* <p> The type and location of the revision to deploy. </p>
*/
inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
/**
* <p> The type and location of the revision to deploy. </p>
*/
inline CreateDeploymentRequest& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
/**
* <p> The type and location of the revision to deploy. </p>
*/
inline CreateDeploymentRequest& WithRevision(RevisionLocation&& value) { SetRevision(std::move(value)); return *this;}
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline CreateDeploymentRequest& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline CreateDeploymentRequest& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(std::move(value)); return *this;}
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p> <p>If not specified, the value configured in the deployment group
* is used as the default. If the deployment group does not have a deployment
* configuration associated with it,
* <code>CodeDeployDefault</code>.<code>OneAtATime</code> is used by default.</p>
*/
inline CreateDeploymentRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>A comment about the deployment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A comment about the deployment.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A comment about the deployment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A comment about the deployment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A comment about the deployment.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A comment about the deployment.</p>
*/
inline CreateDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A comment about the deployment.</p>
*/
inline CreateDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A comment about the deployment.</p>
*/
inline CreateDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p> If true, then if an <code>ApplicationStop</code>,
* <code>BeforeBlockTraffic</code>, or <code>AfterBlockTraffic</code> deployment
* lifecycle event to an instance fails, then the deployment continues to the next
* deployment lifecycle event. For example, if <code>ApplicationStop</code> fails,
* the deployment continues with <code>DownloadBundle</code>. If
* <code>BeforeBlockTraffic</code> fails, the deployment continues with
* <code>BlockTraffic</code>. If <code>AfterBlockTraffic</code> fails, the
* deployment continues with <code>ApplicationStop</code>. </p> <p> If false or not
* specified, then if a lifecycle event fails during a deployment to an instance,
* that deployment fails. If deployment to that instance is part of an overall
* deployment and the number of healthy hosts is not less than the minimum number
* of healthy hosts, then a deployment to the next instance is attempted. </p> <p>
* During a deployment, the AWS CodeDeploy agent runs the scripts specified for
* <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>, and
* <code>AfterBlockTraffic</code> in the AppSpec file from the previous successful
* deployment. (All other scripts are run from the AppSpec file in the current
* deployment.) If one of these scripts contains an error and does not run
* successfully, the deployment can fail. </p> <p> If the cause of the failure is a
* script from the last successful deployment that will never run successfully,
* create a new deployment and use <code>ignoreApplicationStopFailures</code> to
* specify that the <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>,
* and <code>AfterBlockTraffic</code> failures should be ignored. </p>
*/
inline bool GetIgnoreApplicationStopFailures() const{ return m_ignoreApplicationStopFailures; }
/**
* <p> If true, then if an <code>ApplicationStop</code>,
* <code>BeforeBlockTraffic</code>, or <code>AfterBlockTraffic</code> deployment
* lifecycle event to an instance fails, then the deployment continues to the next
* deployment lifecycle event. For example, if <code>ApplicationStop</code> fails,
* the deployment continues with <code>DownloadBundle</code>. If
* <code>BeforeBlockTraffic</code> fails, the deployment continues with
* <code>BlockTraffic</code>. If <code>AfterBlockTraffic</code> fails, the
* deployment continues with <code>ApplicationStop</code>. </p> <p> If false or not
* specified, then if a lifecycle event fails during a deployment to an instance,
* that deployment fails. If deployment to that instance is part of an overall
* deployment and the number of healthy hosts is not less than the minimum number
* of healthy hosts, then a deployment to the next instance is attempted. </p> <p>
* During a deployment, the AWS CodeDeploy agent runs the scripts specified for
* <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>, and
* <code>AfterBlockTraffic</code> in the AppSpec file from the previous successful
* deployment. (All other scripts are run from the AppSpec file in the current
* deployment.) If one of these scripts contains an error and does not run
* successfully, the deployment can fail. </p> <p> If the cause of the failure is a
* script from the last successful deployment that will never run successfully,
* create a new deployment and use <code>ignoreApplicationStopFailures</code> to
* specify that the <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>,
* and <code>AfterBlockTraffic</code> failures should be ignored. </p>
*/
inline bool IgnoreApplicationStopFailuresHasBeenSet() const { return m_ignoreApplicationStopFailuresHasBeenSet; }
/**
* <p> If true, then if an <code>ApplicationStop</code>,
* <code>BeforeBlockTraffic</code>, or <code>AfterBlockTraffic</code> deployment
* lifecycle event to an instance fails, then the deployment continues to the next
* deployment lifecycle event. For example, if <code>ApplicationStop</code> fails,
* the deployment continues with <code>DownloadBundle</code>. If
* <code>BeforeBlockTraffic</code> fails, the deployment continues with
* <code>BlockTraffic</code>. If <code>AfterBlockTraffic</code> fails, the
* deployment continues with <code>ApplicationStop</code>. </p> <p> If false or not
* specified, then if a lifecycle event fails during a deployment to an instance,
* that deployment fails. If deployment to that instance is part of an overall
* deployment and the number of healthy hosts is not less than the minimum number
* of healthy hosts, then a deployment to the next instance is attempted. </p> <p>
* During a deployment, the AWS CodeDeploy agent runs the scripts specified for
* <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>, and
* <code>AfterBlockTraffic</code> in the AppSpec file from the previous successful
* deployment. (All other scripts are run from the AppSpec file in the current
* deployment.) If one of these scripts contains an error and does not run
* successfully, the deployment can fail. </p> <p> If the cause of the failure is a
* script from the last successful deployment that will never run successfully,
* create a new deployment and use <code>ignoreApplicationStopFailures</code> to
* specify that the <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>,
* and <code>AfterBlockTraffic</code> failures should be ignored. </p>
*/
inline void SetIgnoreApplicationStopFailures(bool value) { m_ignoreApplicationStopFailuresHasBeenSet = true; m_ignoreApplicationStopFailures = value; }
/**
* <p> If true, then if an <code>ApplicationStop</code>,
* <code>BeforeBlockTraffic</code>, or <code>AfterBlockTraffic</code> deployment
* lifecycle event to an instance fails, then the deployment continues to the next
* deployment lifecycle event. For example, if <code>ApplicationStop</code> fails,
* the deployment continues with <code>DownloadBundle</code>. If
* <code>BeforeBlockTraffic</code> fails, the deployment continues with
* <code>BlockTraffic</code>. If <code>AfterBlockTraffic</code> fails, the
* deployment continues with <code>ApplicationStop</code>. </p> <p> If false or not
* specified, then if a lifecycle event fails during a deployment to an instance,
* that deployment fails. If deployment to that instance is part of an overall
* deployment and the number of healthy hosts is not less than the minimum number
* of healthy hosts, then a deployment to the next instance is attempted. </p> <p>
* During a deployment, the AWS CodeDeploy agent runs the scripts specified for
* <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>, and
* <code>AfterBlockTraffic</code> in the AppSpec file from the previous successful
* deployment. (All other scripts are run from the AppSpec file in the current
* deployment.) If one of these scripts contains an error and does not run
* successfully, the deployment can fail. </p> <p> If the cause of the failure is a
* script from the last successful deployment that will never run successfully,
* create a new deployment and use <code>ignoreApplicationStopFailures</code> to
* specify that the <code>ApplicationStop</code>, <code>BeforeBlockTraffic</code>,
* and <code>AfterBlockTraffic</code> failures should be ignored. </p>
*/
inline CreateDeploymentRequest& WithIgnoreApplicationStopFailures(bool value) { SetIgnoreApplicationStopFailures(value); return *this;}
/**
* <p> Information about the instances that belong to the replacement environment
* in a blue/green deployment. </p>
*/
inline const TargetInstances& GetTargetInstances() const{ return m_targetInstances; }
/**
* <p> Information about the instances that belong to the replacement environment
* in a blue/green deployment. </p>
*/
inline bool TargetInstancesHasBeenSet() const { return m_targetInstancesHasBeenSet; }
/**
* <p> Information about the instances that belong to the replacement environment
* in a blue/green deployment. </p>
*/
inline void SetTargetInstances(const TargetInstances& value) { m_targetInstancesHasBeenSet = true; m_targetInstances = value; }
/**
* <p> Information about the instances that belong to the replacement environment
* in a blue/green deployment. </p>
*/
inline void SetTargetInstances(TargetInstances&& value) { m_targetInstancesHasBeenSet = true; m_targetInstances = std::move(value); }
/**
* <p> Information about the instances that belong to the replacement environment
* in a blue/green deployment. </p>
*/
inline CreateDeploymentRequest& WithTargetInstances(const TargetInstances& value) { SetTargetInstances(value); return *this;}
/**
* <p> Information about the instances that belong to the replacement environment
* in a blue/green deployment. </p>
*/
inline CreateDeploymentRequest& WithTargetInstances(TargetInstances&& value) { SetTargetInstances(std::move(value)); return *this;}
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment is created.</p>
*/
inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const{ return m_autoRollbackConfiguration; }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment is created.</p>
*/
inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment is created.</p>
*/
inline void SetAutoRollbackConfiguration(const AutoRollbackConfiguration& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = value; }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment is created.</p>
*/
inline void SetAutoRollbackConfiguration(AutoRollbackConfiguration&& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = std::move(value); }
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment is created.</p>
*/
inline CreateDeploymentRequest& WithAutoRollbackConfiguration(const AutoRollbackConfiguration& value) { SetAutoRollbackConfiguration(value); return *this;}
/**
* <p>Configuration information for an automatic rollback that is added when a
* deployment is created.</p>
*/
inline CreateDeploymentRequest& WithAutoRollbackConfiguration(AutoRollbackConfiguration&& value) { SetAutoRollbackConfiguration(std::move(value)); return *this;}
/**
* <p> Indicates whether to deploy to all instances or only to instances that are
* not running the latest application revision. </p>
*/
inline bool GetUpdateOutdatedInstancesOnly() const{ return m_updateOutdatedInstancesOnly; }
/**
* <p> Indicates whether to deploy to all instances or only to instances that are
* not running the latest application revision. </p>
*/
inline bool UpdateOutdatedInstancesOnlyHasBeenSet() const { return m_updateOutdatedInstancesOnlyHasBeenSet; }
/**
* <p> Indicates whether to deploy to all instances or only to instances that are
* not running the latest application revision. </p>
*/
inline void SetUpdateOutdatedInstancesOnly(bool value) { m_updateOutdatedInstancesOnlyHasBeenSet = true; m_updateOutdatedInstancesOnly = value; }
/**
* <p> Indicates whether to deploy to all instances or only to instances that are
* not running the latest application revision. </p>
*/
inline CreateDeploymentRequest& WithUpdateOutdatedInstancesOnly(bool value) { SetUpdateOutdatedInstancesOnly(value); return *this;}
/**
* <p>Information about how AWS CodeDeploy handles files that already exist in a
* deployment target location but weren't part of the previous successful
* deployment.</p> <p>The <code>fileExistsBehavior</code> parameter takes any of
* the following values:</p> <ul> <li> <p>DISALLOW: The deployment fails. This is
* also the default behavior if no option is specified.</p> </li> <li>
* <p>OVERWRITE: The version of the file from the application revision currently
* being deployed replaces the version already on the instance.</p> </li> <li>
* <p>RETAIN: The version of the file already on the instance is kept and used as
* part of the new deployment.</p> </li> </ul>
*/
inline const FileExistsBehavior& GetFileExistsBehavior() const{ return m_fileExistsBehavior; }
/**
* <p>Information about how AWS CodeDeploy handles files that already exist in a
* deployment target location but weren't part of the previous successful
* deployment.</p> <p>The <code>fileExistsBehavior</code> parameter takes any of
* the following values:</p> <ul> <li> <p>DISALLOW: The deployment fails. This is
* also the default behavior if no option is specified.</p> </li> <li>
* <p>OVERWRITE: The version of the file from the application revision currently
* being deployed replaces the version already on the instance.</p> </li> <li>
* <p>RETAIN: The version of the file already on the instance is kept and used as
* part of the new deployment.</p> </li> </ul>
*/
inline bool FileExistsBehaviorHasBeenSet() const { return m_fileExistsBehaviorHasBeenSet; }
/**
* <p>Information about how AWS CodeDeploy handles files that already exist in a
* deployment target location but weren't part of the previous successful
* deployment.</p> <p>The <code>fileExistsBehavior</code> parameter takes any of
* the following values:</p> <ul> <li> <p>DISALLOW: The deployment fails. This is
* also the default behavior if no option is specified.</p> </li> <li>
* <p>OVERWRITE: The version of the file from the application revision currently
* being deployed replaces the version already on the instance.</p> </li> <li>
* <p>RETAIN: The version of the file already on the instance is kept and used as
* part of the new deployment.</p> </li> </ul>
*/
inline void SetFileExistsBehavior(const FileExistsBehavior& value) { m_fileExistsBehaviorHasBeenSet = true; m_fileExistsBehavior = value; }
/**
* <p>Information about how AWS CodeDeploy handles files that already exist in a
* deployment target location but weren't part of the previous successful
* deployment.</p> <p>The <code>fileExistsBehavior</code> parameter takes any of
* the following values:</p> <ul> <li> <p>DISALLOW: The deployment fails. This is
* also the default behavior if no option is specified.</p> </li> <li>
* <p>OVERWRITE: The version of the file from the application revision currently
* being deployed replaces the version already on the instance.</p> </li> <li>
* <p>RETAIN: The version of the file already on the instance is kept and used as
* part of the new deployment.</p> </li> </ul>
*/
inline void SetFileExistsBehavior(FileExistsBehavior&& value) { m_fileExistsBehaviorHasBeenSet = true; m_fileExistsBehavior = std::move(value); }
/**
* <p>Information about how AWS CodeDeploy handles files that already exist in a
* deployment target location but weren't part of the previous successful
* deployment.</p> <p>The <code>fileExistsBehavior</code> parameter takes any of
* the following values:</p> <ul> <li> <p>DISALLOW: The deployment fails. This is
* also the default behavior if no option is specified.</p> </li> <li>
* <p>OVERWRITE: The version of the file from the application revision currently
* being deployed replaces the version already on the instance.</p> </li> <li>
* <p>RETAIN: The version of the file already on the instance is kept and used as
* part of the new deployment.</p> </li> </ul>
*/
inline CreateDeploymentRequest& WithFileExistsBehavior(const FileExistsBehavior& value) { SetFileExistsBehavior(value); return *this;}
/**
* <p>Information about how AWS CodeDeploy handles files that already exist in a
* deployment target location but weren't part of the previous successful
* deployment.</p> <p>The <code>fileExistsBehavior</code> parameter takes any of
* the following values:</p> <ul> <li> <p>DISALLOW: The deployment fails. This is
* also the default behavior if no option is specified.</p> </li> <li>
* <p>OVERWRITE: The version of the file from the application revision currently
* being deployed replaces the version already on the instance.</p> </li> <li>
* <p>RETAIN: The version of the file already on the instance is kept and used as
* part of the new deployment.</p> </li> </ul>
*/
inline CreateDeploymentRequest& WithFileExistsBehavior(FileExistsBehavior&& value) { SetFileExistsBehavior(std::move(value)); return *this;}
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
Aws::String m_deploymentGroupName;
bool m_deploymentGroupNameHasBeenSet;
RevisionLocation m_revision;
bool m_revisionHasBeenSet;
Aws::String m_deploymentConfigName;
bool m_deploymentConfigNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
bool m_ignoreApplicationStopFailures;
bool m_ignoreApplicationStopFailuresHasBeenSet;
TargetInstances m_targetInstances;
bool m_targetInstancesHasBeenSet;
AutoRollbackConfiguration m_autoRollbackConfiguration;
bool m_autoRollbackConfigurationHasBeenSet;
bool m_updateOutdatedInstancesOnly;
bool m_updateOutdatedInstancesOnlyHasBeenSet;
FileExistsBehavior m_fileExistsBehavior;
bool m_fileExistsBehaviorHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p> Represents the output of a <code>CreateDeployment</code> operation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API CreateDeploymentResult
{
public:
CreateDeploymentResult();
CreateDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The unique ID of a deployment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentId = value; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline CreateDeploymentResult& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline CreateDeploymentResult& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline CreateDeploymentResult& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
private:
Aws::String m_deploymentId;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>DeleteApplication</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplicationInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeleteApplicationRequest : public CodeDeployRequest
{
public:
DeleteApplicationRequest();
// 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 "DeleteApplication"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline DeleteApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline DeleteApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline DeleteApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>DeleteDeploymentConfig</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfigInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeleteDeploymentConfigRequest : public CodeDeployRequest
{
public:
DeleteDeploymentConfigRequest();
// 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 "DeleteDeploymentConfig"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline DeleteDeploymentConfigRequest& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline DeleteDeploymentConfigRequest& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(std::move(value)); return *this;}
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline DeleteDeploymentConfigRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
private:
Aws::String m_deploymentConfigName;
bool m_deploymentConfigNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>DeleteDeploymentGroup</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroupInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeleteDeploymentGroupRequest : public CodeDeployRequest
{
public:
DeleteDeploymentGroupRequest();
// 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 "DeleteDeploymentGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline DeleteDeploymentGroupRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline DeleteDeploymentGroupRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline DeleteDeploymentGroupRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline DeleteDeploymentGroupRequest& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline DeleteDeploymentGroupRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline DeleteDeploymentGroupRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
Aws::String m_deploymentGroupName;
bool m_deploymentGroupNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,119 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/AutoScalingGroup.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>DeleteDeploymentGroup</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroupOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeleteDeploymentGroupResult
{
public:
DeleteDeploymentGroupResult();
DeleteDeploymentGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteDeploymentGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>If the output contains no data, and the corresponding deployment group
* contained at least one Auto Scaling group, AWS CodeDeploy successfully removed
* all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy
* could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group.</p>
*/
inline const Aws::Vector<AutoScalingGroup>& GetHooksNotCleanedUp() const{ return m_hooksNotCleanedUp; }
/**
* <p>If the output contains no data, and the corresponding deployment group
* contained at least one Auto Scaling group, AWS CodeDeploy successfully removed
* all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy
* could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group.</p>
*/
inline void SetHooksNotCleanedUp(const Aws::Vector<AutoScalingGroup>& value) { m_hooksNotCleanedUp = value; }
/**
* <p>If the output contains no data, and the corresponding deployment group
* contained at least one Auto Scaling group, AWS CodeDeploy successfully removed
* all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy
* could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group.</p>
*/
inline void SetHooksNotCleanedUp(Aws::Vector<AutoScalingGroup>&& value) { m_hooksNotCleanedUp = std::move(value); }
/**
* <p>If the output contains no data, and the corresponding deployment group
* contained at least one Auto Scaling group, AWS CodeDeploy successfully removed
* all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy
* could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group.</p>
*/
inline DeleteDeploymentGroupResult& WithHooksNotCleanedUp(const Aws::Vector<AutoScalingGroup>& value) { SetHooksNotCleanedUp(value); return *this;}
/**
* <p>If the output contains no data, and the corresponding deployment group
* contained at least one Auto Scaling group, AWS CodeDeploy successfully removed
* all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy
* could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group.</p>
*/
inline DeleteDeploymentGroupResult& WithHooksNotCleanedUp(Aws::Vector<AutoScalingGroup>&& value) { SetHooksNotCleanedUp(std::move(value)); return *this;}
/**
* <p>If the output contains no data, and the corresponding deployment group
* contained at least one Auto Scaling group, AWS CodeDeploy successfully removed
* all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy
* could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group.</p>
*/
inline DeleteDeploymentGroupResult& AddHooksNotCleanedUp(const AutoScalingGroup& value) { m_hooksNotCleanedUp.push_back(value); return *this; }
/**
* <p>If the output contains no data, and the corresponding deployment group
* contained at least one Auto Scaling group, AWS CodeDeploy successfully removed
* all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy
* could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2
* instances in the Auto Scaling group.</p>
*/
inline DeleteDeploymentGroupResult& AddHooksNotCleanedUp(AutoScalingGroup&& value) { m_hooksNotCleanedUp.push_back(std::move(value)); return *this; }
private:
Aws::Vector<AutoScalingGroup> m_hooksNotCleanedUp;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>DeleteGitHubAccount</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteGitHubAccountTokenInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeleteGitHubAccountTokenRequest : public CodeDeployRequest
{
public:
DeleteGitHubAccountTokenRequest();
// 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 "DeleteGitHubAccountToken"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline const Aws::String& GetTokenName() const{ return m_tokenName; }
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline bool TokenNameHasBeenSet() const { return m_tokenNameHasBeenSet; }
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline void SetTokenName(const Aws::String& value) { m_tokenNameHasBeenSet = true; m_tokenName = value; }
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline void SetTokenName(Aws::String&& value) { m_tokenNameHasBeenSet = true; m_tokenName = std::move(value); }
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline void SetTokenName(const char* value) { m_tokenNameHasBeenSet = true; m_tokenName.assign(value); }
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline DeleteGitHubAccountTokenRequest& WithTokenName(const Aws::String& value) { SetTokenName(value); return *this;}
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline DeleteGitHubAccountTokenRequest& WithTokenName(Aws::String&& value) { SetTokenName(std::move(value)); return *this;}
/**
* <p>The name of the GitHub account connection to delete.</p>
*/
inline DeleteGitHubAccountTokenRequest& WithTokenName(const char* value) { SetTokenName(value); return *this;}
private:
Aws::String m_tokenName;
bool m_tokenNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>DeleteGitHubAccountToken</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteGitHubAccountTokenOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeleteGitHubAccountTokenResult
{
public:
DeleteGitHubAccountTokenResult();
DeleteGitHubAccountTokenResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteGitHubAccountTokenResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the GitHub account connection that was deleted.</p>
*/
inline const Aws::String& GetTokenName() const{ return m_tokenName; }
/**
* <p>The name of the GitHub account connection that was deleted.</p>
*/
inline void SetTokenName(const Aws::String& value) { m_tokenName = value; }
/**
* <p>The name of the GitHub account connection that was deleted.</p>
*/
inline void SetTokenName(Aws::String&& value) { m_tokenName = std::move(value); }
/**
* <p>The name of the GitHub account connection that was deleted.</p>
*/
inline void SetTokenName(const char* value) { m_tokenName.assign(value); }
/**
* <p>The name of the GitHub account connection that was deleted.</p>
*/
inline DeleteGitHubAccountTokenResult& WithTokenName(const Aws::String& value) { SetTokenName(value); return *this;}
/**
* <p>The name of the GitHub account connection that was deleted.</p>
*/
inline DeleteGitHubAccountTokenResult& WithTokenName(Aws::String&& value) { SetTokenName(std::move(value)); return *this;}
/**
* <p>The name of the GitHub account connection that was deleted.</p>
*/
inline DeleteGitHubAccountTokenResult& WithTokenName(const char* value) { SetTokenName(value); return *this;}
private:
Aws::String m_tokenName;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
*/
class AWS_CODEDEPLOY_API DeleteResourcesByExternalIdRequest : public CodeDeployRequest
{
public:
DeleteResourcesByExternalIdRequest();
// 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 "DeleteResourcesByExternalId"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline const Aws::String& GetExternalId() const{ return m_externalId; }
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline DeleteResourcesByExternalIdRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline DeleteResourcesByExternalIdRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
/**
* <p>The unique ID of an external resource (for example, a CloudFormation stack
* ID) that is linked to one or more CodeDeploy resources.</p>
*/
inline DeleteResourcesByExternalIdRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
private:
Aws::String m_externalId;
bool m_externalIdHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
class AWS_CODEDEPLOY_API DeleteResourcesByExternalIdResult
{
public:
DeleteResourcesByExternalIdResult();
DeleteResourcesByExternalIdResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteResourcesByExternalIdResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,284 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/MinimumHealthyHosts.h>
#include <aws/core/utils/DateTime.h>
#include <aws/codedeploy/model/ComputePlatform.h>
#include <aws/codedeploy/model/TrafficRoutingConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about a deployment configuration.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentConfigInfo">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeploymentConfigInfo
{
public:
DeploymentConfigInfo();
DeploymentConfigInfo(Aws::Utils::Json::JsonView jsonValue);
DeploymentConfigInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The deployment configuration ID.</p>
*/
inline const Aws::String& GetDeploymentConfigId() const{ return m_deploymentConfigId; }
/**
* <p>The deployment configuration ID.</p>
*/
inline bool DeploymentConfigIdHasBeenSet() const { return m_deploymentConfigIdHasBeenSet; }
/**
* <p>The deployment configuration ID.</p>
*/
inline void SetDeploymentConfigId(const Aws::String& value) { m_deploymentConfigIdHasBeenSet = true; m_deploymentConfigId = value; }
/**
* <p>The deployment configuration ID.</p>
*/
inline void SetDeploymentConfigId(Aws::String&& value) { m_deploymentConfigIdHasBeenSet = true; m_deploymentConfigId = std::move(value); }
/**
* <p>The deployment configuration ID.</p>
*/
inline void SetDeploymentConfigId(const char* value) { m_deploymentConfigIdHasBeenSet = true; m_deploymentConfigId.assign(value); }
/**
* <p>The deployment configuration ID.</p>
*/
inline DeploymentConfigInfo& WithDeploymentConfigId(const Aws::String& value) { SetDeploymentConfigId(value); return *this;}
/**
* <p>The deployment configuration ID.</p>
*/
inline DeploymentConfigInfo& WithDeploymentConfigId(Aws::String&& value) { SetDeploymentConfigId(std::move(value)); return *this;}
/**
* <p>The deployment configuration ID.</p>
*/
inline DeploymentConfigInfo& WithDeploymentConfigId(const char* value) { SetDeploymentConfigId(value); return *this;}
/**
* <p>The deployment configuration name.</p>
*/
inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
/**
* <p>The deployment configuration name.</p>
*/
inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
/**
* <p>The deployment configuration name.</p>
*/
inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
/**
* <p>The deployment configuration name.</p>
*/
inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
/**
* <p>The deployment configuration name.</p>
*/
inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
/**
* <p>The deployment configuration name.</p>
*/
inline DeploymentConfigInfo& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>The deployment configuration name.</p>
*/
inline DeploymentConfigInfo& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(std::move(value)); return *this;}
/**
* <p>The deployment configuration name.</p>
*/
inline DeploymentConfigInfo& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>Information about the number or percentage of minimum healthy instance.</p>
*/
inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const{ return m_minimumHealthyHosts; }
/**
* <p>Information about the number or percentage of minimum healthy instance.</p>
*/
inline bool MinimumHealthyHostsHasBeenSet() const { return m_minimumHealthyHostsHasBeenSet; }
/**
* <p>Information about the number or percentage of minimum healthy instance.</p>
*/
inline void SetMinimumHealthyHosts(const MinimumHealthyHosts& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = value; }
/**
* <p>Information about the number or percentage of minimum healthy instance.</p>
*/
inline void SetMinimumHealthyHosts(MinimumHealthyHosts&& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = std::move(value); }
/**
* <p>Information about the number or percentage of minimum healthy instance.</p>
*/
inline DeploymentConfigInfo& WithMinimumHealthyHosts(const MinimumHealthyHosts& value) { SetMinimumHealthyHosts(value); return *this;}
/**
* <p>Information about the number or percentage of minimum healthy instance.</p>
*/
inline DeploymentConfigInfo& WithMinimumHealthyHosts(MinimumHealthyHosts&& value) { SetMinimumHealthyHosts(std::move(value)); return *this;}
/**
* <p>The time at which the deployment configuration was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
/**
* <p>The time at which the deployment configuration was created.</p>
*/
inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
/**
* <p>The time at which the deployment configuration was created.</p>
*/
inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
/**
* <p>The time at which the deployment configuration was created.</p>
*/
inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
/**
* <p>The time at which the deployment configuration was created.</p>
*/
inline DeploymentConfigInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
/**
* <p>The time at which the deployment configuration was created.</p>
*/
inline DeploymentConfigInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); }
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline DeploymentConfigInfo& WithComputePlatform(const ComputePlatform& value) { SetComputePlatform(value); return *this;}
/**
* <p>The destination platform type for the deployment (<code>Lambda</code>,
* <code>Server</code>, or <code>ECS</code>).</p>
*/
inline DeploymentConfigInfo& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;}
/**
* <p>The configuration that specifies how the deployment traffic is routed. Used
* for deployments with a Lambda or ECS compute platform only.</p>
*/
inline const TrafficRoutingConfig& GetTrafficRoutingConfig() const{ return m_trafficRoutingConfig; }
/**
* <p>The configuration that specifies how the deployment traffic is routed. Used
* for deployments with a Lambda or ECS compute platform only.</p>
*/
inline bool TrafficRoutingConfigHasBeenSet() const { return m_trafficRoutingConfigHasBeenSet; }
/**
* <p>The configuration that specifies how the deployment traffic is routed. Used
* for deployments with a Lambda or ECS compute platform only.</p>
*/
inline void SetTrafficRoutingConfig(const TrafficRoutingConfig& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = value; }
/**
* <p>The configuration that specifies how the deployment traffic is routed. Used
* for deployments with a Lambda or ECS compute platform only.</p>
*/
inline void SetTrafficRoutingConfig(TrafficRoutingConfig&& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = std::move(value); }
/**
* <p>The configuration that specifies how the deployment traffic is routed. Used
* for deployments with a Lambda or ECS compute platform only.</p>
*/
inline DeploymentConfigInfo& WithTrafficRoutingConfig(const TrafficRoutingConfig& value) { SetTrafficRoutingConfig(value); return *this;}
/**
* <p>The configuration that specifies how the deployment traffic is routed. Used
* for deployments with a Lambda or ECS compute platform only.</p>
*/
inline DeploymentConfigInfo& WithTrafficRoutingConfig(TrafficRoutingConfig&& value) { SetTrafficRoutingConfig(std::move(value)); return *this;}
private:
Aws::String m_deploymentConfigId;
bool m_deploymentConfigIdHasBeenSet;
Aws::String m_deploymentConfigName;
bool m_deploymentConfigNameHasBeenSet;
MinimumHealthyHosts m_minimumHealthyHosts;
bool m_minimumHealthyHostsHasBeenSet;
Aws::Utils::DateTime m_createTime;
bool m_createTimeHasBeenSet;
ComputePlatform m_computePlatform;
bool m_computePlatformHasBeenSet;
TrafficRoutingConfig m_trafficRoutingConfig;
bool m_trafficRoutingConfigHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class DeploymentCreator
{
NOT_SET,
user,
autoscaling,
codeDeployRollback,
CodeDeploy,
CloudFormation,
CloudFormationRollback
};
namespace DeploymentCreatorMapper
{
AWS_CODEDEPLOY_API DeploymentCreator GetDeploymentCreatorForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentCreator(DeploymentCreator value);
} // namespace DeploymentCreatorMapper
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class DeploymentOption
{
NOT_SET,
WITH_TRAFFIC_CONTROL,
WITHOUT_TRAFFIC_CONTROL
};
namespace DeploymentOptionMapper
{
AWS_CODEDEPLOY_API DeploymentOption GetDeploymentOptionForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentOption(DeploymentOption value);
} // namespace DeploymentOptionMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,195 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about the deployment status of the instances in the
* deployment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentOverview">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeploymentOverview
{
public:
DeploymentOverview();
DeploymentOverview(Aws::Utils::Json::JsonView jsonValue);
DeploymentOverview& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of instances in the deployment in a pending state.</p>
*/
inline long long GetPending() const{ return m_pending; }
/**
* <p>The number of instances in the deployment in a pending state.</p>
*/
inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; }
/**
* <p>The number of instances in the deployment in a pending state.</p>
*/
inline void SetPending(long long value) { m_pendingHasBeenSet = true; m_pending = value; }
/**
* <p>The number of instances in the deployment in a pending state.</p>
*/
inline DeploymentOverview& WithPending(long long value) { SetPending(value); return *this;}
/**
* <p>The number of instances in which the deployment is in progress.</p>
*/
inline long long GetInProgress() const{ return m_inProgress; }
/**
* <p>The number of instances in which the deployment is in progress.</p>
*/
inline bool InProgressHasBeenSet() const { return m_inProgressHasBeenSet; }
/**
* <p>The number of instances in which the deployment is in progress.</p>
*/
inline void SetInProgress(long long value) { m_inProgressHasBeenSet = true; m_inProgress = value; }
/**
* <p>The number of instances in which the deployment is in progress.</p>
*/
inline DeploymentOverview& WithInProgress(long long value) { SetInProgress(value); return *this;}
/**
* <p>The number of instances in the deployment to which revisions have been
* successfully deployed.</p>
*/
inline long long GetSucceeded() const{ return m_succeeded; }
/**
* <p>The number of instances in the deployment to which revisions have been
* successfully deployed.</p>
*/
inline bool SucceededHasBeenSet() const { return m_succeededHasBeenSet; }
/**
* <p>The number of instances in the deployment to which revisions have been
* successfully deployed.</p>
*/
inline void SetSucceeded(long long value) { m_succeededHasBeenSet = true; m_succeeded = value; }
/**
* <p>The number of instances in the deployment to which revisions have been
* successfully deployed.</p>
*/
inline DeploymentOverview& WithSucceeded(long long value) { SetSucceeded(value); return *this;}
/**
* <p>The number of instances in the deployment in a failed state.</p>
*/
inline long long GetFailed() const{ return m_failed; }
/**
* <p>The number of instances in the deployment in a failed state.</p>
*/
inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; }
/**
* <p>The number of instances in the deployment in a failed state.</p>
*/
inline void SetFailed(long long value) { m_failedHasBeenSet = true; m_failed = value; }
/**
* <p>The number of instances in the deployment in a failed state.</p>
*/
inline DeploymentOverview& WithFailed(long long value) { SetFailed(value); return *this;}
/**
* <p>The number of instances in the deployment in a skipped state.</p>
*/
inline long long GetSkipped() const{ return m_skipped; }
/**
* <p>The number of instances in the deployment in a skipped state.</p>
*/
inline bool SkippedHasBeenSet() const { return m_skippedHasBeenSet; }
/**
* <p>The number of instances in the deployment in a skipped state.</p>
*/
inline void SetSkipped(long long value) { m_skippedHasBeenSet = true; m_skipped = value; }
/**
* <p>The number of instances in the deployment in a skipped state.</p>
*/
inline DeploymentOverview& WithSkipped(long long value) { SetSkipped(value); return *this;}
/**
* <p>The number of instances in a replacement environment ready to receive traffic
* in a blue/green deployment.</p>
*/
inline long long GetReady() const{ return m_ready; }
/**
* <p>The number of instances in a replacement environment ready to receive traffic
* in a blue/green deployment.</p>
*/
inline bool ReadyHasBeenSet() const { return m_readyHasBeenSet; }
/**
* <p>The number of instances in a replacement environment ready to receive traffic
* in a blue/green deployment.</p>
*/
inline void SetReady(long long value) { m_readyHasBeenSet = true; m_ready = value; }
/**
* <p>The number of instances in a replacement environment ready to receive traffic
* in a blue/green deployment.</p>
*/
inline DeploymentOverview& WithReady(long long value) { SetReady(value); return *this;}
private:
long long m_pending;
bool m_pendingHasBeenSet;
long long m_inProgress;
bool m_inProgressHasBeenSet;
long long m_succeeded;
bool m_succeededHasBeenSet;
long long m_failed;
bool m_failedHasBeenSet;
long long m_skipped;
bool m_skippedHasBeenSet;
long long m_ready;
bool m_readyHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class DeploymentReadyAction
{
NOT_SET,
CONTINUE_DEPLOYMENT,
STOP_DEPLOYMENT
};
namespace DeploymentReadyActionMapper
{
AWS_CODEDEPLOY_API DeploymentReadyAction GetDeploymentReadyActionForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentReadyAction(DeploymentReadyAction value);
} // namespace DeploymentReadyActionMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/DeploymentReadyAction.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about how traffic is rerouted to instances in a replacement
* environment in a blue/green deployment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentReadyOption">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeploymentReadyOption
{
public:
DeploymentReadyOption();
DeploymentReadyOption(Aws::Utils::Json::JsonView jsonValue);
DeploymentReadyOption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about when to reroute traffic from an original environment to a
* replacement environment in a blue/green deployment.</p> <ul> <li>
* <p>CONTINUE_DEPLOYMENT: Register new instances with the load balancer
* immediately after the new application revision is installed on the instances in
* the replacement environment.</p> </li> <li> <p>STOP_DEPLOYMENT: Do not register
* new instances with a load balancer unless traffic rerouting is started using
* <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of
* the specified wait period, the deployment status is changed to Stopped.</p>
* </li> </ul>
*/
inline const DeploymentReadyAction& GetActionOnTimeout() const{ return m_actionOnTimeout; }
/**
* <p>Information about when to reroute traffic from an original environment to a
* replacement environment in a blue/green deployment.</p> <ul> <li>
* <p>CONTINUE_DEPLOYMENT: Register new instances with the load balancer
* immediately after the new application revision is installed on the instances in
* the replacement environment.</p> </li> <li> <p>STOP_DEPLOYMENT: Do not register
* new instances with a load balancer unless traffic rerouting is started using
* <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of
* the specified wait period, the deployment status is changed to Stopped.</p>
* </li> </ul>
*/
inline bool ActionOnTimeoutHasBeenSet() const { return m_actionOnTimeoutHasBeenSet; }
/**
* <p>Information about when to reroute traffic from an original environment to a
* replacement environment in a blue/green deployment.</p> <ul> <li>
* <p>CONTINUE_DEPLOYMENT: Register new instances with the load balancer
* immediately after the new application revision is installed on the instances in
* the replacement environment.</p> </li> <li> <p>STOP_DEPLOYMENT: Do not register
* new instances with a load balancer unless traffic rerouting is started using
* <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of
* the specified wait period, the deployment status is changed to Stopped.</p>
* </li> </ul>
*/
inline void SetActionOnTimeout(const DeploymentReadyAction& value) { m_actionOnTimeoutHasBeenSet = true; m_actionOnTimeout = value; }
/**
* <p>Information about when to reroute traffic from an original environment to a
* replacement environment in a blue/green deployment.</p> <ul> <li>
* <p>CONTINUE_DEPLOYMENT: Register new instances with the load balancer
* immediately after the new application revision is installed on the instances in
* the replacement environment.</p> </li> <li> <p>STOP_DEPLOYMENT: Do not register
* new instances with a load balancer unless traffic rerouting is started using
* <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of
* the specified wait period, the deployment status is changed to Stopped.</p>
* </li> </ul>
*/
inline void SetActionOnTimeout(DeploymentReadyAction&& value) { m_actionOnTimeoutHasBeenSet = true; m_actionOnTimeout = std::move(value); }
/**
* <p>Information about when to reroute traffic from an original environment to a
* replacement environment in a blue/green deployment.</p> <ul> <li>
* <p>CONTINUE_DEPLOYMENT: Register new instances with the load balancer
* immediately after the new application revision is installed on the instances in
* the replacement environment.</p> </li> <li> <p>STOP_DEPLOYMENT: Do not register
* new instances with a load balancer unless traffic rerouting is started using
* <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of
* the specified wait period, the deployment status is changed to Stopped.</p>
* </li> </ul>
*/
inline DeploymentReadyOption& WithActionOnTimeout(const DeploymentReadyAction& value) { SetActionOnTimeout(value); return *this;}
/**
* <p>Information about when to reroute traffic from an original environment to a
* replacement environment in a blue/green deployment.</p> <ul> <li>
* <p>CONTINUE_DEPLOYMENT: Register new instances with the load balancer
* immediately after the new application revision is installed on the instances in
* the replacement environment.</p> </li> <li> <p>STOP_DEPLOYMENT: Do not register
* new instances with a load balancer unless traffic rerouting is started using
* <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of
* the specified wait period, the deployment status is changed to Stopped.</p>
* </li> </ul>
*/
inline DeploymentReadyOption& WithActionOnTimeout(DeploymentReadyAction&& value) { SetActionOnTimeout(std::move(value)); return *this;}
/**
* <p>The number of minutes to wait before the status of a blue/green deployment is
* changed to Stopped if rerouting is not started manually. Applies only to the
* <code>STOP_DEPLOYMENT</code> option for <code>actionOnTimeout</code>.</p>
*/
inline int GetWaitTimeInMinutes() const{ return m_waitTimeInMinutes; }
/**
* <p>The number of minutes to wait before the status of a blue/green deployment is
* changed to Stopped if rerouting is not started manually. Applies only to the
* <code>STOP_DEPLOYMENT</code> option for <code>actionOnTimeout</code>.</p>
*/
inline bool WaitTimeInMinutesHasBeenSet() const { return m_waitTimeInMinutesHasBeenSet; }
/**
* <p>The number of minutes to wait before the status of a blue/green deployment is
* changed to Stopped if rerouting is not started manually. Applies only to the
* <code>STOP_DEPLOYMENT</code> option for <code>actionOnTimeout</code>.</p>
*/
inline void SetWaitTimeInMinutes(int value) { m_waitTimeInMinutesHasBeenSet = true; m_waitTimeInMinutes = value; }
/**
* <p>The number of minutes to wait before the status of a blue/green deployment is
* changed to Stopped if rerouting is not started manually. Applies only to the
* <code>STOP_DEPLOYMENT</code> option for <code>actionOnTimeout</code>.</p>
*/
inline DeploymentReadyOption& WithWaitTimeInMinutes(int value) { SetWaitTimeInMinutes(value); return *this;}
private:
DeploymentReadyAction m_actionOnTimeout;
bool m_actionOnTimeoutHasBeenSet;
int m_waitTimeInMinutes;
bool m_waitTimeInMinutesHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class DeploymentStatus
{
NOT_SET,
Created,
Queued,
InProgress,
Baking,
Succeeded,
Failed,
Stopped,
Ready
};
namespace DeploymentStatusMapper
{
AWS_CODEDEPLOY_API DeploymentStatus GetDeploymentStatusForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentStatus(DeploymentStatus value);
} // namespace DeploymentStatusMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/DeploymentType.h>
#include <aws/codedeploy/model/DeploymentOption.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about the type of deployment, either in-place or blue/green, you
* want to run and whether to route deployment traffic behind a load
* balancer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentStyle">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeploymentStyle
{
public:
DeploymentStyle();
DeploymentStyle(Aws::Utils::Json::JsonView jsonValue);
DeploymentStyle& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Indicates whether to run an in-place deployment or a blue/green
* deployment.</p>
*/
inline const DeploymentType& GetDeploymentType() const{ return m_deploymentType; }
/**
* <p>Indicates whether to run an in-place deployment or a blue/green
* deployment.</p>
*/
inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
/**
* <p>Indicates whether to run an in-place deployment or a blue/green
* deployment.</p>
*/
inline void SetDeploymentType(const DeploymentType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
/**
* <p>Indicates whether to run an in-place deployment or a blue/green
* deployment.</p>
*/
inline void SetDeploymentType(DeploymentType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
/**
* <p>Indicates whether to run an in-place deployment or a blue/green
* deployment.</p>
*/
inline DeploymentStyle& WithDeploymentType(const DeploymentType& value) { SetDeploymentType(value); return *this;}
/**
* <p>Indicates whether to run an in-place deployment or a blue/green
* deployment.</p>
*/
inline DeploymentStyle& WithDeploymentType(DeploymentType&& value) { SetDeploymentType(std::move(value)); return *this;}
/**
* <p>Indicates whether to route deployment traffic behind a load balancer.</p>
*/
inline const DeploymentOption& GetDeploymentOption() const{ return m_deploymentOption; }
/**
* <p>Indicates whether to route deployment traffic behind a load balancer.</p>
*/
inline bool DeploymentOptionHasBeenSet() const { return m_deploymentOptionHasBeenSet; }
/**
* <p>Indicates whether to route deployment traffic behind a load balancer.</p>
*/
inline void SetDeploymentOption(const DeploymentOption& value) { m_deploymentOptionHasBeenSet = true; m_deploymentOption = value; }
/**
* <p>Indicates whether to route deployment traffic behind a load balancer.</p>
*/
inline void SetDeploymentOption(DeploymentOption&& value) { m_deploymentOptionHasBeenSet = true; m_deploymentOption = std::move(value); }
/**
* <p>Indicates whether to route deployment traffic behind a load balancer.</p>
*/
inline DeploymentStyle& WithDeploymentOption(const DeploymentOption& value) { SetDeploymentOption(value); return *this;}
/**
* <p>Indicates whether to route deployment traffic behind a load balancer.</p>
*/
inline DeploymentStyle& WithDeploymentOption(DeploymentOption&& value) { SetDeploymentOption(std::move(value)); return *this;}
private:
DeploymentType m_deploymentType;
bool m_deploymentTypeHasBeenSet;
DeploymentOption m_deploymentOption;
bool m_deploymentOptionHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,230 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/DeploymentTargetType.h>
#include <aws/codedeploy/model/InstanceTarget.h>
#include <aws/codedeploy/model/LambdaTarget.h>
#include <aws/codedeploy/model/ECSTarget.h>
#include <aws/codedeploy/model/CloudFormationTarget.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Information about the deployment target. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentTarget">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeploymentTarget
{
public:
DeploymentTarget();
DeploymentTarget(Aws::Utils::Json::JsonView jsonValue);
DeploymentTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The deployment type that is specific to the deployment's compute platform or
* deployments initiated by a CloudFormation stack update.</p>
*/
inline const DeploymentTargetType& GetDeploymentTargetType() const{ return m_deploymentTargetType; }
/**
* <p>The deployment type that is specific to the deployment's compute platform or
* deployments initiated by a CloudFormation stack update.</p>
*/
inline bool DeploymentTargetTypeHasBeenSet() const { return m_deploymentTargetTypeHasBeenSet; }
/**
* <p>The deployment type that is specific to the deployment's compute platform or
* deployments initiated by a CloudFormation stack update.</p>
*/
inline void SetDeploymentTargetType(const DeploymentTargetType& value) { m_deploymentTargetTypeHasBeenSet = true; m_deploymentTargetType = value; }
/**
* <p>The deployment type that is specific to the deployment's compute platform or
* deployments initiated by a CloudFormation stack update.</p>
*/
inline void SetDeploymentTargetType(DeploymentTargetType&& value) { m_deploymentTargetTypeHasBeenSet = true; m_deploymentTargetType = std::move(value); }
/**
* <p>The deployment type that is specific to the deployment's compute platform or
* deployments initiated by a CloudFormation stack update.</p>
*/
inline DeploymentTarget& WithDeploymentTargetType(const DeploymentTargetType& value) { SetDeploymentTargetType(value); return *this;}
/**
* <p>The deployment type that is specific to the deployment's compute platform or
* deployments initiated by a CloudFormation stack update.</p>
*/
inline DeploymentTarget& WithDeploymentTargetType(DeploymentTargetType&& value) { SetDeploymentTargetType(std::move(value)); return *this;}
/**
* <p> Information about the target for a deployment that uses the EC2/On-premises
* compute platform. </p>
*/
inline const InstanceTarget& GetInstanceTarget() const{ return m_instanceTarget; }
/**
* <p> Information about the target for a deployment that uses the EC2/On-premises
* compute platform. </p>
*/
inline bool InstanceTargetHasBeenSet() const { return m_instanceTargetHasBeenSet; }
/**
* <p> Information about the target for a deployment that uses the EC2/On-premises
* compute platform. </p>
*/
inline void SetInstanceTarget(const InstanceTarget& value) { m_instanceTargetHasBeenSet = true; m_instanceTarget = value; }
/**
* <p> Information about the target for a deployment that uses the EC2/On-premises
* compute platform. </p>
*/
inline void SetInstanceTarget(InstanceTarget&& value) { m_instanceTargetHasBeenSet = true; m_instanceTarget = std::move(value); }
/**
* <p> Information about the target for a deployment that uses the EC2/On-premises
* compute platform. </p>
*/
inline DeploymentTarget& WithInstanceTarget(const InstanceTarget& value) { SetInstanceTarget(value); return *this;}
/**
* <p> Information about the target for a deployment that uses the EC2/On-premises
* compute platform. </p>
*/
inline DeploymentTarget& WithInstanceTarget(InstanceTarget&& value) { SetInstanceTarget(std::move(value)); return *this;}
/**
* <p> Information about the target for a deployment that uses the AWS Lambda
* compute platform. </p>
*/
inline const LambdaTarget& GetLambdaTarget() const{ return m_lambdaTarget; }
/**
* <p> Information about the target for a deployment that uses the AWS Lambda
* compute platform. </p>
*/
inline bool LambdaTargetHasBeenSet() const { return m_lambdaTargetHasBeenSet; }
/**
* <p> Information about the target for a deployment that uses the AWS Lambda
* compute platform. </p>
*/
inline void SetLambdaTarget(const LambdaTarget& value) { m_lambdaTargetHasBeenSet = true; m_lambdaTarget = value; }
/**
* <p> Information about the target for a deployment that uses the AWS Lambda
* compute platform. </p>
*/
inline void SetLambdaTarget(LambdaTarget&& value) { m_lambdaTargetHasBeenSet = true; m_lambdaTarget = std::move(value); }
/**
* <p> Information about the target for a deployment that uses the AWS Lambda
* compute platform. </p>
*/
inline DeploymentTarget& WithLambdaTarget(const LambdaTarget& value) { SetLambdaTarget(value); return *this;}
/**
* <p> Information about the target for a deployment that uses the AWS Lambda
* compute platform. </p>
*/
inline DeploymentTarget& WithLambdaTarget(LambdaTarget&& value) { SetLambdaTarget(std::move(value)); return *this;}
/**
* <p> Information about the target for a deployment that uses the Amazon ECS
* compute platform. </p>
*/
inline const ECSTarget& GetEcsTarget() const{ return m_ecsTarget; }
/**
* <p> Information about the target for a deployment that uses the Amazon ECS
* compute platform. </p>
*/
inline bool EcsTargetHasBeenSet() const { return m_ecsTargetHasBeenSet; }
/**
* <p> Information about the target for a deployment that uses the Amazon ECS
* compute platform. </p>
*/
inline void SetEcsTarget(const ECSTarget& value) { m_ecsTargetHasBeenSet = true; m_ecsTarget = value; }
/**
* <p> Information about the target for a deployment that uses the Amazon ECS
* compute platform. </p>
*/
inline void SetEcsTarget(ECSTarget&& value) { m_ecsTargetHasBeenSet = true; m_ecsTarget = std::move(value); }
/**
* <p> Information about the target for a deployment that uses the Amazon ECS
* compute platform. </p>
*/
inline DeploymentTarget& WithEcsTarget(const ECSTarget& value) { SetEcsTarget(value); return *this;}
/**
* <p> Information about the target for a deployment that uses the Amazon ECS
* compute platform. </p>
*/
inline DeploymentTarget& WithEcsTarget(ECSTarget&& value) { SetEcsTarget(std::move(value)); return *this;}
inline const CloudFormationTarget& GetCloudFormationTarget() const{ return m_cloudFormationTarget; }
inline bool CloudFormationTargetHasBeenSet() const { return m_cloudFormationTargetHasBeenSet; }
inline void SetCloudFormationTarget(const CloudFormationTarget& value) { m_cloudFormationTargetHasBeenSet = true; m_cloudFormationTarget = value; }
inline void SetCloudFormationTarget(CloudFormationTarget&& value) { m_cloudFormationTargetHasBeenSet = true; m_cloudFormationTarget = std::move(value); }
inline DeploymentTarget& WithCloudFormationTarget(const CloudFormationTarget& value) { SetCloudFormationTarget(value); return *this;}
inline DeploymentTarget& WithCloudFormationTarget(CloudFormationTarget&& value) { SetCloudFormationTarget(std::move(value)); return *this;}
private:
DeploymentTargetType m_deploymentTargetType;
bool m_deploymentTargetTypeHasBeenSet;
InstanceTarget m_instanceTarget;
bool m_instanceTargetHasBeenSet;
LambdaTarget m_lambdaTarget;
bool m_lambdaTargetHasBeenSet;
ECSTarget m_ecsTarget;
bool m_ecsTargetHasBeenSet;
CloudFormationTarget m_cloudFormationTarget;
bool m_cloudFormationTargetHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class DeploymentTargetType
{
NOT_SET,
InstanceTarget,
LambdaTarget,
ECSTarget,
CloudFormationTarget
};
namespace DeploymentTargetTypeMapper
{
AWS_CODEDEPLOY_API DeploymentTargetType GetDeploymentTargetTypeForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentTargetType(DeploymentTargetType value);
} // namespace DeploymentTargetTypeMapper
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class DeploymentType
{
NOT_SET,
IN_PLACE,
BLUE_GREEN
};
namespace DeploymentTypeMapper
{
AWS_CODEDEPLOY_API DeploymentType GetDeploymentTypeForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentType(DeploymentType value);
} // namespace DeploymentTypeMapper
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class DeploymentWaitType
{
NOT_SET,
READY_WAIT,
TERMINATION_WAIT
};
namespace DeploymentWaitTypeMapper
{
AWS_CODEDEPLOY_API DeploymentWaitType GetDeploymentWaitTypeForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForDeploymentWaitType(DeploymentWaitType value);
} // namespace DeploymentWaitTypeMapper
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>DeregisterOnPremisesInstance</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstanceInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API DeregisterOnPremisesInstanceRequest : public CodeDeployRequest
{
public:
DeregisterOnPremisesInstanceRequest();
// 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 "DeregisterOnPremisesInstance"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline DeregisterOnPremisesInstanceRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline DeregisterOnPremisesInstanceRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
/**
* <p>The name of the on-premises instance to deregister.</p>
*/
inline DeregisterOnPremisesInstanceRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
private:
Aws::String m_instanceName;
bool m_instanceNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,262 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/LifecycleErrorCode.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 CodeDeploy
{
namespace Model
{
/**
* <p>Diagnostic information about executable scripts that are part of a
* deployment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Diagnostics">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API Diagnostics
{
public:
Diagnostics();
Diagnostics(Aws::Utils::Json::JsonView jsonValue);
Diagnostics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The associated error code:</p> <ul> <li> <p>Success: The specified script
* ran.</p> </li> <li> <p>ScriptMissing: The specified script was not found in the
* specified location.</p> </li> <li> <p>ScriptNotExecutable: The specified script
* is not a recognized executable file type.</p> </li> <li> <p>ScriptTimedOut: The
* specified script did not finish running in the specified time period.</p> </li>
* <li> <p>ScriptFailed: The specified script failed to run as expected.</p> </li>
* <li> <p>UnknownError: The specified script did not run for an unknown
* reason.</p> </li> </ul>
*/
inline const LifecycleErrorCode& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The associated error code:</p> <ul> <li> <p>Success: The specified script
* ran.</p> </li> <li> <p>ScriptMissing: The specified script was not found in the
* specified location.</p> </li> <li> <p>ScriptNotExecutable: The specified script
* is not a recognized executable file type.</p> </li> <li> <p>ScriptTimedOut: The
* specified script did not finish running in the specified time period.</p> </li>
* <li> <p>ScriptFailed: The specified script failed to run as expected.</p> </li>
* <li> <p>UnknownError: The specified script did not run for an unknown
* reason.</p> </li> </ul>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The associated error code:</p> <ul> <li> <p>Success: The specified script
* ran.</p> </li> <li> <p>ScriptMissing: The specified script was not found in the
* specified location.</p> </li> <li> <p>ScriptNotExecutable: The specified script
* is not a recognized executable file type.</p> </li> <li> <p>ScriptTimedOut: The
* specified script did not finish running in the specified time period.</p> </li>
* <li> <p>ScriptFailed: The specified script failed to run as expected.</p> </li>
* <li> <p>UnknownError: The specified script did not run for an unknown
* reason.</p> </li> </ul>
*/
inline void SetErrorCode(const LifecycleErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The associated error code:</p> <ul> <li> <p>Success: The specified script
* ran.</p> </li> <li> <p>ScriptMissing: The specified script was not found in the
* specified location.</p> </li> <li> <p>ScriptNotExecutable: The specified script
* is not a recognized executable file type.</p> </li> <li> <p>ScriptTimedOut: The
* specified script did not finish running in the specified time period.</p> </li>
* <li> <p>ScriptFailed: The specified script failed to run as expected.</p> </li>
* <li> <p>UnknownError: The specified script did not run for an unknown
* reason.</p> </li> </ul>
*/
inline void SetErrorCode(LifecycleErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The associated error code:</p> <ul> <li> <p>Success: The specified script
* ran.</p> </li> <li> <p>ScriptMissing: The specified script was not found in the
* specified location.</p> </li> <li> <p>ScriptNotExecutable: The specified script
* is not a recognized executable file type.</p> </li> <li> <p>ScriptTimedOut: The
* specified script did not finish running in the specified time period.</p> </li>
* <li> <p>ScriptFailed: The specified script failed to run as expected.</p> </li>
* <li> <p>UnknownError: The specified script did not run for an unknown
* reason.</p> </li> </ul>
*/
inline Diagnostics& WithErrorCode(const LifecycleErrorCode& value) { SetErrorCode(value); return *this;}
/**
* <p>The associated error code:</p> <ul> <li> <p>Success: The specified script
* ran.</p> </li> <li> <p>ScriptMissing: The specified script was not found in the
* specified location.</p> </li> <li> <p>ScriptNotExecutable: The specified script
* is not a recognized executable file type.</p> </li> <li> <p>ScriptTimedOut: The
* specified script did not finish running in the specified time period.</p> </li>
* <li> <p>ScriptFailed: The specified script failed to run as expected.</p> </li>
* <li> <p>UnknownError: The specified script did not run for an unknown
* reason.</p> </li> </ul>
*/
inline Diagnostics& WithErrorCode(LifecycleErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The name of the script.</p>
*/
inline const Aws::String& GetScriptName() const{ return m_scriptName; }
/**
* <p>The name of the script.</p>
*/
inline bool ScriptNameHasBeenSet() const { return m_scriptNameHasBeenSet; }
/**
* <p>The name of the script.</p>
*/
inline void SetScriptName(const Aws::String& value) { m_scriptNameHasBeenSet = true; m_scriptName = value; }
/**
* <p>The name of the script.</p>
*/
inline void SetScriptName(Aws::String&& value) { m_scriptNameHasBeenSet = true; m_scriptName = std::move(value); }
/**
* <p>The name of the script.</p>
*/
inline void SetScriptName(const char* value) { m_scriptNameHasBeenSet = true; m_scriptName.assign(value); }
/**
* <p>The name of the script.</p>
*/
inline Diagnostics& WithScriptName(const Aws::String& value) { SetScriptName(value); return *this;}
/**
* <p>The name of the script.</p>
*/
inline Diagnostics& WithScriptName(Aws::String&& value) { SetScriptName(std::move(value)); return *this;}
/**
* <p>The name of the script.</p>
*/
inline Diagnostics& WithScriptName(const char* value) { SetScriptName(value); return *this;}
/**
* <p>The message associated with the error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The message associated with the error.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The message associated with the error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The message associated with the error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The message associated with the error.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The message associated with the error.</p>
*/
inline Diagnostics& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The message associated with the error.</p>
*/
inline Diagnostics& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The message associated with the error.</p>
*/
inline Diagnostics& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline const Aws::String& GetLogTail() const{ return m_logTail; }
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline bool LogTailHasBeenSet() const { return m_logTailHasBeenSet; }
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline void SetLogTail(const Aws::String& value) { m_logTailHasBeenSet = true; m_logTail = value; }
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline void SetLogTail(Aws::String&& value) { m_logTailHasBeenSet = true; m_logTail = std::move(value); }
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline void SetLogTail(const char* value) { m_logTailHasBeenSet = true; m_logTail.assign(value); }
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline Diagnostics& WithLogTail(const Aws::String& value) { SetLogTail(value); return *this;}
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline Diagnostics& WithLogTail(Aws::String&& value) { SetLogTail(std::move(value)); return *this;}
/**
* <p>The last portion of the diagnostic log.</p> <p>If available, AWS CodeDeploy
* returns up to the last 4 KB of the diagnostic log.</p>
*/
inline Diagnostics& WithLogTail(const char* value) { SetLogTail(value); return *this;}
private:
LifecycleErrorCode m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_scriptName;
bool m_scriptNameHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_logTail;
bool m_logTailHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,179 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/EC2TagFilterType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about an EC2 tag filter.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/EC2TagFilter">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API EC2TagFilter
{
public:
EC2TagFilter();
EC2TagFilter(Aws::Utils::Json::JsonView jsonValue);
EC2TagFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The tag filter key.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The tag filter key.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The tag filter key.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The tag filter key.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The tag filter key.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The tag filter key.</p>
*/
inline EC2TagFilter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The tag filter key.</p>
*/
inline EC2TagFilter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The tag filter key.</p>
*/
inline EC2TagFilter& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The tag filter value.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The tag filter value.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The tag filter value.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The tag filter value.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The tag filter value.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The tag filter value.</p>
*/
inline EC2TagFilter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The tag filter value.</p>
*/
inline EC2TagFilter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The tag filter value.</p>
*/
inline EC2TagFilter& WithValue(const char* value) { SetValue(value); return *this;}
/**
* <p>The tag filter type:</p> <ul> <li> <p> <code>KEY_ONLY</code>: Key only.</p>
* </li> <li> <p> <code>VALUE_ONLY</code>: Value only.</p> </li> <li> <p>
* <code>KEY_AND_VALUE</code>: Key and value.</p> </li> </ul>
*/
inline const EC2TagFilterType& GetType() const{ return m_type; }
/**
* <p>The tag filter type:</p> <ul> <li> <p> <code>KEY_ONLY</code>: Key only.</p>
* </li> <li> <p> <code>VALUE_ONLY</code>: Value only.</p> </li> <li> <p>
* <code>KEY_AND_VALUE</code>: Key and value.</p> </li> </ul>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The tag filter type:</p> <ul> <li> <p> <code>KEY_ONLY</code>: Key only.</p>
* </li> <li> <p> <code>VALUE_ONLY</code>: Value only.</p> </li> <li> <p>
* <code>KEY_AND_VALUE</code>: Key and value.</p> </li> </ul>
*/
inline void SetType(const EC2TagFilterType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The tag filter type:</p> <ul> <li> <p> <code>KEY_ONLY</code>: Key only.</p>
* </li> <li> <p> <code>VALUE_ONLY</code>: Value only.</p> </li> <li> <p>
* <code>KEY_AND_VALUE</code>: Key and value.</p> </li> </ul>
*/
inline void SetType(EC2TagFilterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The tag filter type:</p> <ul> <li> <p> <code>KEY_ONLY</code>: Key only.</p>
* </li> <li> <p> <code>VALUE_ONLY</code>: Value only.</p> </li> <li> <p>
* <code>KEY_AND_VALUE</code>: Key and value.</p> </li> </ul>
*/
inline EC2TagFilter& WithType(const EC2TagFilterType& value) { SetType(value); return *this;}
/**
* <p>The tag filter type:</p> <ul> <li> <p> <code>KEY_ONLY</code>: Key only.</p>
* </li> <li> <p> <code>VALUE_ONLY</code>: Value only.</p> </li> <li> <p>
* <code>KEY_AND_VALUE</code>: Key and value.</p> </li> </ul>
*/
inline EC2TagFilter& WithType(EC2TagFilterType&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
EC2TagFilterType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class EC2TagFilterType
{
NOT_SET,
KEY_ONLY,
VALUE_ONLY,
KEY_AND_VALUE
};
namespace EC2TagFilterTypeMapper
{
AWS_CODEDEPLOY_API EC2TagFilterType GetEC2TagFilterTypeForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForEC2TagFilterType(EC2TagFilterType value);
} // namespace EC2TagFilterTypeMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/EC2TagFilter.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about groups of EC2 instance tags.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/EC2TagSet">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API EC2TagSet
{
public:
EC2TagSet();
EC2TagSet(Aws::Utils::Json::JsonView jsonValue);
EC2TagSet& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline const Aws::Vector<Aws::Vector<EC2TagFilter>>& GetEc2TagSetList() const{ return m_ec2TagSetList; }
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline bool Ec2TagSetListHasBeenSet() const { return m_ec2TagSetListHasBeenSet; }
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline void SetEc2TagSetList(const Aws::Vector<Aws::Vector<EC2TagFilter>>& value) { m_ec2TagSetListHasBeenSet = true; m_ec2TagSetList = value; }
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline void SetEc2TagSetList(Aws::Vector<Aws::Vector<EC2TagFilter>>&& value) { m_ec2TagSetListHasBeenSet = true; m_ec2TagSetList = std::move(value); }
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline EC2TagSet& WithEc2TagSetList(const Aws::Vector<Aws::Vector<EC2TagFilter>>& value) { SetEc2TagSetList(value); return *this;}
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline EC2TagSet& WithEc2TagSetList(Aws::Vector<Aws::Vector<EC2TagFilter>>&& value) { SetEc2TagSetList(std::move(value)); return *this;}
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline EC2TagSet& AddEc2TagSetList(const Aws::Vector<EC2TagFilter>& value) { m_ec2TagSetListHasBeenSet = true; m_ec2TagSetList.push_back(value); return *this; }
/**
* <p>A list that contains other lists of EC2 instance tag groups. For an instance
* to be included in the deployment group, it must be identified by all of the tag
* groups in the list.</p>
*/
inline EC2TagSet& AddEc2TagSetList(Aws::Vector<EC2TagFilter>&& value) { m_ec2TagSetListHasBeenSet = true; m_ec2TagSetList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Aws::Vector<EC2TagFilter>> m_ec2TagSetList;
bool m_ec2TagSetListHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

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/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p> Contains the service and cluster names used to identify an Amazon ECS
* deployment's target. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ECSService">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API ECSService
{
public:
ECSService();
ECSService(Aws::Utils::Json::JsonView jsonValue);
ECSService& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline const Aws::String& GetServiceName() const{ return m_serviceName; }
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline ECSService& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline ECSService& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
/**
* <p> The name of the target Amazon ECS service. </p>
*/
inline ECSService& WithServiceName(const char* value) { SetServiceName(value); return *this;}
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline const Aws::String& GetClusterName() const{ return m_clusterName; }
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline ECSService& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline ECSService& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
/**
* <p> The name of the cluster that the Amazon ECS service is associated with. </p>
*/
inline ECSService& WithClusterName(const char* value) { SetClusterName(value); return *this;}
private:
Aws::String m_serviceName;
bool m_serviceNameHasBeenSet;
Aws::String m_clusterName;
bool m_clusterNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,360 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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/codedeploy/model/TargetStatus.h>
#include <aws/codedeploy/model/LifecycleEvent.h>
#include <aws/codedeploy/model/ECSTaskSet.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Information about the target of an Amazon ECS deployment. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ECSTarget">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API ECSTarget
{
public:
ECSTarget();
ECSTarget(Aws::Utils::Json::JsonView jsonValue);
ECSTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The unique ID of a deployment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline ECSTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline ECSTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline ECSTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline const Aws::String& GetTargetId() const{ return m_targetId; }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline ECSTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline ECSTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment target that has a type of
* <code>ecsTarget</code>. </p>
*/
inline ECSTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline ECSTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline ECSTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline ECSTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
/**
* <p> The date and time when the target Amazon ECS application was updated by a
* deployment. </p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
/**
* <p> The date and time when the target Amazon ECS application was updated by a
* deployment. </p>
*/
inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
/**
* <p> The date and time when the target Amazon ECS application was updated by a
* deployment. </p>
*/
inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
/**
* <p> The date and time when the target Amazon ECS application was updated by a
* deployment. </p>
*/
inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
/**
* <p> The date and time when the target Amazon ECS application was updated by a
* deployment. </p>
*/
inline ECSTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
/**
* <p> The date and time when the target Amazon ECS application was updated by a
* deployment. </p>
*/
inline ECSTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline ECSTarget& WithLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { SetLifecycleEvents(value); return *this;}
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline ECSTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline ECSTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
/**
* <p> The lifecycle events of the deployment to this target Amazon ECS
* application. </p>
*/
inline ECSTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
/**
* <p> The status an Amazon ECS deployment's target ECS application. </p>
*/
inline const TargetStatus& GetStatus() const{ return m_status; }
/**
* <p> The status an Amazon ECS deployment's target ECS application. </p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> The status an Amazon ECS deployment's target ECS application. </p>
*/
inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> The status an Amazon ECS deployment's target ECS application. </p>
*/
inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> The status an Amazon ECS deployment's target ECS application. </p>
*/
inline ECSTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
/**
* <p> The status an Amazon ECS deployment's target ECS application. </p>
*/
inline ECSTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline const Aws::Vector<ECSTaskSet>& GetTaskSetsInfo() const{ return m_taskSetsInfo; }
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline bool TaskSetsInfoHasBeenSet() const { return m_taskSetsInfoHasBeenSet; }
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline void SetTaskSetsInfo(const Aws::Vector<ECSTaskSet>& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo = value; }
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline void SetTaskSetsInfo(Aws::Vector<ECSTaskSet>&& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo = std::move(value); }
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline ECSTarget& WithTaskSetsInfo(const Aws::Vector<ECSTaskSet>& value) { SetTaskSetsInfo(value); return *this;}
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline ECSTarget& WithTaskSetsInfo(Aws::Vector<ECSTaskSet>&& value) { SetTaskSetsInfo(std::move(value)); return *this;}
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline ECSTarget& AddTaskSetsInfo(const ECSTaskSet& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo.push_back(value); return *this; }
/**
* <p> The <code>ECSTaskSet</code> objects associated with the ECS target. </p>
*/
inline ECSTarget& AddTaskSetsInfo(ECSTaskSet&& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo.push_back(std::move(value)); return *this; }
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::String m_targetId;
bool m_targetIdHasBeenSet;
Aws::String m_targetArn;
bool m_targetArnHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedAt;
bool m_lastUpdatedAtHasBeenSet;
Aws::Vector<LifecycleEvent> m_lifecycleEvents;
bool m_lifecycleEventsHasBeenSet;
TargetStatus m_status;
bool m_statusHasBeenSet;
Aws::Vector<ECSTaskSet> m_taskSetsInfo;
bool m_taskSetsInfoHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,391 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/TargetGroupInfo.h>
#include <aws/codedeploy/model/TargetLabel.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment.
* An Amazon ECS task set includes details such as the desired number of tasks, how
* many tasks are running, and whether the task set serves production traffic. An
* AWS CodeDeploy application that uses the Amazon ECS compute platform deploys a
* containerized application in an Amazon ECS service as a task set. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ECSTaskSet">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API ECSTaskSet
{
public:
ECSTaskSet();
ECSTaskSet(Aws::Utils::Json::JsonView jsonValue);
ECSTaskSet& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline const Aws::String& GetIdentifer() const{ return m_identifer; }
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline bool IdentiferHasBeenSet() const { return m_identiferHasBeenSet; }
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline void SetIdentifer(const Aws::String& value) { m_identiferHasBeenSet = true; m_identifer = value; }
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline void SetIdentifer(Aws::String&& value) { m_identiferHasBeenSet = true; m_identifer = std::move(value); }
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline void SetIdentifer(const char* value) { m_identiferHasBeenSet = true; m_identifer.assign(value); }
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline ECSTaskSet& WithIdentifer(const Aws::String& value) { SetIdentifer(value); return *this;}
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline ECSTaskSet& WithIdentifer(Aws::String&& value) { SetIdentifer(std::move(value)); return *this;}
/**
* <p> A unique ID of an <code>ECSTaskSet</code>. </p>
*/
inline ECSTaskSet& WithIdentifer(const char* value) { SetIdentifer(value); return *this;}
/**
* <p> The number of tasks in a task set. During a deployment that uses the Amazon
* ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and
* uses this value to determine how many tasks to create. After the updated task
* set is created, CodeDeploy shifts traffic to the new task set. </p>
*/
inline long long GetDesiredCount() const{ return m_desiredCount; }
/**
* <p> The number of tasks in a task set. During a deployment that uses the Amazon
* ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and
* uses this value to determine how many tasks to create. After the updated task
* set is created, CodeDeploy shifts traffic to the new task set. </p>
*/
inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
/**
* <p> The number of tasks in a task set. During a deployment that uses the Amazon
* ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and
* uses this value to determine how many tasks to create. After the updated task
* set is created, CodeDeploy shifts traffic to the new task set. </p>
*/
inline void SetDesiredCount(long long value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
/**
* <p> The number of tasks in a task set. During a deployment that uses the Amazon
* ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and
* uses this value to determine how many tasks to create. After the updated task
* set is created, CodeDeploy shifts traffic to the new task set. </p>
*/
inline ECSTaskSet& WithDesiredCount(long long value) { SetDesiredCount(value); return *this;}
/**
* <p> The number of tasks in the task set that are in the <code>PENDING</code>
* status during an Amazon ECS deployment. A task in the <code>PENDING</code> state
* is preparing to enter the <code>RUNNING</code> state. A task set enters the
* <code>PENDING</code> status when it launches for the first time, or when it is
* restarted after being in the <code>STOPPED</code> state. </p>
*/
inline long long GetPendingCount() const{ return m_pendingCount; }
/**
* <p> The number of tasks in the task set that are in the <code>PENDING</code>
* status during an Amazon ECS deployment. A task in the <code>PENDING</code> state
* is preparing to enter the <code>RUNNING</code> state. A task set enters the
* <code>PENDING</code> status when it launches for the first time, or when it is
* restarted after being in the <code>STOPPED</code> state. </p>
*/
inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
/**
* <p> The number of tasks in the task set that are in the <code>PENDING</code>
* status during an Amazon ECS deployment. A task in the <code>PENDING</code> state
* is preparing to enter the <code>RUNNING</code> state. A task set enters the
* <code>PENDING</code> status when it launches for the first time, or when it is
* restarted after being in the <code>STOPPED</code> state. </p>
*/
inline void SetPendingCount(long long value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
/**
* <p> The number of tasks in the task set that are in the <code>PENDING</code>
* status during an Amazon ECS deployment. A task in the <code>PENDING</code> state
* is preparing to enter the <code>RUNNING</code> state. A task set enters the
* <code>PENDING</code> status when it launches for the first time, or when it is
* restarted after being in the <code>STOPPED</code> state. </p>
*/
inline ECSTaskSet& WithPendingCount(long long value) { SetPendingCount(value); return *this;}
/**
* <p> The number of tasks in the task set that are in the <code>RUNNING</code>
* status during an Amazon ECS deployment. A task in the <code>RUNNING</code> state
* is running and ready for use. </p>
*/
inline long long GetRunningCount() const{ return m_runningCount; }
/**
* <p> The number of tasks in the task set that are in the <code>RUNNING</code>
* status during an Amazon ECS deployment. A task in the <code>RUNNING</code> state
* is running and ready for use. </p>
*/
inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
/**
* <p> The number of tasks in the task set that are in the <code>RUNNING</code>
* status during an Amazon ECS deployment. A task in the <code>RUNNING</code> state
* is running and ready for use. </p>
*/
inline void SetRunningCount(long long value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
/**
* <p> The number of tasks in the task set that are in the <code>RUNNING</code>
* status during an Amazon ECS deployment. A task in the <code>RUNNING</code> state
* is running and ready for use. </p>
*/
inline ECSTaskSet& WithRunningCount(long long value) { SetRunningCount(value); return *this;}
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline ECSTaskSet& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline ECSTaskSet& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p> The status of the task set. There are three valid task set statuses: </p>
* <ul> <li> <p> <code>PRIMARY</code>: Indicates the task set is serving production
* traffic. </p> </li> <li> <p> <code>ACTIVE</code>: Indicates the task set is not
* serving production traffic. </p> </li> <li> <p> <code>DRAINING</code>: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group. </p> </li> </ul>
*/
inline ECSTaskSet& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p> The percentage of traffic served by this task set. </p>
*/
inline double GetTrafficWeight() const{ return m_trafficWeight; }
/**
* <p> The percentage of traffic served by this task set. </p>
*/
inline bool TrafficWeightHasBeenSet() const { return m_trafficWeightHasBeenSet; }
/**
* <p> The percentage of traffic served by this task set. </p>
*/
inline void SetTrafficWeight(double value) { m_trafficWeightHasBeenSet = true; m_trafficWeight = value; }
/**
* <p> The percentage of traffic served by this task set. </p>
*/
inline ECSTaskSet& WithTrafficWeight(double value) { SetTrafficWeight(value); return *this;}
/**
* <p> The target group associated with the task set. The target group is used by
* AWS CodeDeploy to manage traffic to a task set. </p>
*/
inline const TargetGroupInfo& GetTargetGroup() const{ return m_targetGroup; }
/**
* <p> The target group associated with the task set. The target group is used by
* AWS CodeDeploy to manage traffic to a task set. </p>
*/
inline bool TargetGroupHasBeenSet() const { return m_targetGroupHasBeenSet; }
/**
* <p> The target group associated with the task set. The target group is used by
* AWS CodeDeploy to manage traffic to a task set. </p>
*/
inline void SetTargetGroup(const TargetGroupInfo& value) { m_targetGroupHasBeenSet = true; m_targetGroup = value; }
/**
* <p> The target group associated with the task set. The target group is used by
* AWS CodeDeploy to manage traffic to a task set. </p>
*/
inline void SetTargetGroup(TargetGroupInfo&& value) { m_targetGroupHasBeenSet = true; m_targetGroup = std::move(value); }
/**
* <p> The target group associated with the task set. The target group is used by
* AWS CodeDeploy to manage traffic to a task set. </p>
*/
inline ECSTaskSet& WithTargetGroup(const TargetGroupInfo& value) { SetTargetGroup(value); return *this;}
/**
* <p> The target group associated with the task set. The target group is used by
* AWS CodeDeploy to manage traffic to a task set. </p>
*/
inline ECSTaskSet& WithTargetGroup(TargetGroupInfo&& value) { SetTargetGroup(std::move(value)); return *this;}
/**
* <p> A label that identifies whether the ECS task set is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline const TargetLabel& GetTaskSetLabel() const{ return m_taskSetLabel; }
/**
* <p> A label that identifies whether the ECS task set is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline bool TaskSetLabelHasBeenSet() const { return m_taskSetLabelHasBeenSet; }
/**
* <p> A label that identifies whether the ECS task set is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline void SetTaskSetLabel(const TargetLabel& value) { m_taskSetLabelHasBeenSet = true; m_taskSetLabel = value; }
/**
* <p> A label that identifies whether the ECS task set is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline void SetTaskSetLabel(TargetLabel&& value) { m_taskSetLabelHasBeenSet = true; m_taskSetLabel = std::move(value); }
/**
* <p> A label that identifies whether the ECS task set is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline ECSTaskSet& WithTaskSetLabel(const TargetLabel& value) { SetTaskSetLabel(value); return *this;}
/**
* <p> A label that identifies whether the ECS task set is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline ECSTaskSet& WithTaskSetLabel(TargetLabel&& value) { SetTaskSetLabel(std::move(value)); return *this;}
private:
Aws::String m_identifer;
bool m_identiferHasBeenSet;
long long m_desiredCount;
bool m_desiredCountHasBeenSet;
long long m_pendingCount;
bool m_pendingCountHasBeenSet;
long long m_runningCount;
bool m_runningCountHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
double m_trafficWeight;
bool m_trafficWeightHasBeenSet;
TargetGroupInfo m_targetGroup;
bool m_targetGroupHasBeenSet;
TargetLabel m_taskSetLabel;
bool m_taskSetLabelHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Information about a load balancer in Elastic Load Balancing to use in a
* deployment. Instances are registered directly with a load balancer, and traffic
* is routed to the load balancer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ELBInfo">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API ELBInfo
{
public:
ELBInfo();
ELBInfo(Aws::Utils::Json::JsonView jsonValue);
ELBInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline ELBInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline ELBInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>For blue/green deployments, the name of the load balancer that is used to
* route traffic from original instances to replacement instances in a blue/green
* deployment. For in-place deployments, the name of the load balancer that
* instances are deregistered from so they are not serving traffic during a
* deployment, and then re-registered with after the deployment is complete.</p>
*/
inline ELBInfo& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class ErrorCode
{
NOT_SET,
AGENT_ISSUE,
ALARM_ACTIVE,
APPLICATION_MISSING,
AUTOSCALING_VALIDATION_ERROR,
AUTO_SCALING_CONFIGURATION,
AUTO_SCALING_IAM_ROLE_PERMISSIONS,
CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND,
CUSTOMER_APPLICATION_UNHEALTHY,
DEPLOYMENT_GROUP_MISSING,
ECS_UPDATE_ERROR,
ELASTIC_LOAD_BALANCING_INVALID,
ELB_INVALID_INSTANCE,
HEALTH_CONSTRAINTS,
HEALTH_CONSTRAINTS_INVALID,
HOOK_EXECUTION_FAILURE,
IAM_ROLE_MISSING,
IAM_ROLE_PERMISSIONS,
INTERNAL_ERROR,
INVALID_ECS_SERVICE,
INVALID_LAMBDA_CONFIGURATION,
INVALID_LAMBDA_FUNCTION,
INVALID_REVISION,
MANUAL_STOP,
MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION,
MISSING_ELB_INFORMATION,
MISSING_GITHUB_TOKEN,
NO_EC2_SUBSCRIPTION,
NO_INSTANCES,
OVER_MAX_INSTANCES,
RESOURCE_LIMIT_EXCEEDED,
REVISION_MISSING,
THROTTLED,
TIMEOUT,
CLOUDFORMATION_STACK_FAILURE
};
namespace ErrorCodeMapper
{
AWS_CODEDEPLOY_API ErrorCode GetErrorCodeForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForErrorCode(ErrorCode value);
} // namespace ErrorCodeMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,273 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/ErrorCode.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 CodeDeploy
{
namespace Model
{
/**
* <p>Information about a deployment error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ErrorInformation">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API ErrorInformation
{
public:
ErrorInformation();
ErrorInformation(Aws::Utils::Json::JsonView jsonValue);
ErrorInformation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html">Error
* Codes for AWS CodeDeploy</a> in the <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide">AWS CodeDeploy
* User Guide</a>.</p> <p>The error code:</p> <ul> <li> <p>APPLICATION_MISSING: The
* application was missing. This error code is most likely raised if the
* application is deleted after the deployment is created, but before it is
* started.</p> </li> <li> <p>DEPLOYMENT_GROUP_MISSING: The deployment group was
* missing. This error code is most likely raised if the deployment group is
* deleted after the deployment is created, but before it is started.</p> </li>
* <li> <p>HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
* successfully deployed within the instance health constraints specified.</p>
* </li> <li> <p>HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully
* deployed within the instance health constraints specified.</p> </li> <li>
* <p>IAM_ROLE_MISSING: The service role cannot be accessed.</p> </li> <li>
* <p>IAM_ROLE_PERMISSIONS: The service role does not have the correct
* permissions.</p> </li> <li> <p>INTERNAL_ERROR: There was an internal error.</p>
* </li> <li> <p>NO_EC2_SUBSCRIPTION: The calling account is not subscribed to
* Amazon EC2.</p> </li> <li> <p>NO_INSTANCES: No instances were specified, or no
* instances can be found.</p> </li> <li> <p>OVER_MAX_INSTANCES: The maximum number
* of instances was exceeded.</p> </li> <li> <p>THROTTLED: The operation was
* throttled because the calling account exceeded the throttling limits of one or
* more AWS services.</p> </li> <li> <p>TIMEOUT: The deployment has timed out.</p>
* </li> <li> <p>REVISION_MISSING: The revision ID was missing. This error code is
* most likely raised if the revision is deleted after the deployment is created,
* but before it is started.</p> </li> </ul>
*/
inline const ErrorCode& GetCode() const{ return m_code; }
/**
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html">Error
* Codes for AWS CodeDeploy</a> in the <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide">AWS CodeDeploy
* User Guide</a>.</p> <p>The error code:</p> <ul> <li> <p>APPLICATION_MISSING: The
* application was missing. This error code is most likely raised if the
* application is deleted after the deployment is created, but before it is
* started.</p> </li> <li> <p>DEPLOYMENT_GROUP_MISSING: The deployment group was
* missing. This error code is most likely raised if the deployment group is
* deleted after the deployment is created, but before it is started.</p> </li>
* <li> <p>HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
* successfully deployed within the instance health constraints specified.</p>
* </li> <li> <p>HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully
* deployed within the instance health constraints specified.</p> </li> <li>
* <p>IAM_ROLE_MISSING: The service role cannot be accessed.</p> </li> <li>
* <p>IAM_ROLE_PERMISSIONS: The service role does not have the correct
* permissions.</p> </li> <li> <p>INTERNAL_ERROR: There was an internal error.</p>
* </li> <li> <p>NO_EC2_SUBSCRIPTION: The calling account is not subscribed to
* Amazon EC2.</p> </li> <li> <p>NO_INSTANCES: No instances were specified, or no
* instances can be found.</p> </li> <li> <p>OVER_MAX_INSTANCES: The maximum number
* of instances was exceeded.</p> </li> <li> <p>THROTTLED: The operation was
* throttled because the calling account exceeded the throttling limits of one or
* more AWS services.</p> </li> <li> <p>TIMEOUT: The deployment has timed out.</p>
* </li> <li> <p>REVISION_MISSING: The revision ID was missing. This error code is
* most likely raised if the revision is deleted after the deployment is created,
* but before it is started.</p> </li> </ul>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html">Error
* Codes for AWS CodeDeploy</a> in the <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide">AWS CodeDeploy
* User Guide</a>.</p> <p>The error code:</p> <ul> <li> <p>APPLICATION_MISSING: The
* application was missing. This error code is most likely raised if the
* application is deleted after the deployment is created, but before it is
* started.</p> </li> <li> <p>DEPLOYMENT_GROUP_MISSING: The deployment group was
* missing. This error code is most likely raised if the deployment group is
* deleted after the deployment is created, but before it is started.</p> </li>
* <li> <p>HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
* successfully deployed within the instance health constraints specified.</p>
* </li> <li> <p>HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully
* deployed within the instance health constraints specified.</p> </li> <li>
* <p>IAM_ROLE_MISSING: The service role cannot be accessed.</p> </li> <li>
* <p>IAM_ROLE_PERMISSIONS: The service role does not have the correct
* permissions.</p> </li> <li> <p>INTERNAL_ERROR: There was an internal error.</p>
* </li> <li> <p>NO_EC2_SUBSCRIPTION: The calling account is not subscribed to
* Amazon EC2.</p> </li> <li> <p>NO_INSTANCES: No instances were specified, or no
* instances can be found.</p> </li> <li> <p>OVER_MAX_INSTANCES: The maximum number
* of instances was exceeded.</p> </li> <li> <p>THROTTLED: The operation was
* throttled because the calling account exceeded the throttling limits of one or
* more AWS services.</p> </li> <li> <p>TIMEOUT: The deployment has timed out.</p>
* </li> <li> <p>REVISION_MISSING: The revision ID was missing. This error code is
* most likely raised if the revision is deleted after the deployment is created,
* but before it is started.</p> </li> </ul>
*/
inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html">Error
* Codes for AWS CodeDeploy</a> in the <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide">AWS CodeDeploy
* User Guide</a>.</p> <p>The error code:</p> <ul> <li> <p>APPLICATION_MISSING: The
* application was missing. This error code is most likely raised if the
* application is deleted after the deployment is created, but before it is
* started.</p> </li> <li> <p>DEPLOYMENT_GROUP_MISSING: The deployment group was
* missing. This error code is most likely raised if the deployment group is
* deleted after the deployment is created, but before it is started.</p> </li>
* <li> <p>HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
* successfully deployed within the instance health constraints specified.</p>
* </li> <li> <p>HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully
* deployed within the instance health constraints specified.</p> </li> <li>
* <p>IAM_ROLE_MISSING: The service role cannot be accessed.</p> </li> <li>
* <p>IAM_ROLE_PERMISSIONS: The service role does not have the correct
* permissions.</p> </li> <li> <p>INTERNAL_ERROR: There was an internal error.</p>
* </li> <li> <p>NO_EC2_SUBSCRIPTION: The calling account is not subscribed to
* Amazon EC2.</p> </li> <li> <p>NO_INSTANCES: No instances were specified, or no
* instances can be found.</p> </li> <li> <p>OVER_MAX_INSTANCES: The maximum number
* of instances was exceeded.</p> </li> <li> <p>THROTTLED: The operation was
* throttled because the calling account exceeded the throttling limits of one or
* more AWS services.</p> </li> <li> <p>TIMEOUT: The deployment has timed out.</p>
* </li> <li> <p>REVISION_MISSING: The revision ID was missing. This error code is
* most likely raised if the revision is deleted after the deployment is created,
* but before it is started.</p> </li> </ul>
*/
inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html">Error
* Codes for AWS CodeDeploy</a> in the <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide">AWS CodeDeploy
* User Guide</a>.</p> <p>The error code:</p> <ul> <li> <p>APPLICATION_MISSING: The
* application was missing. This error code is most likely raised if the
* application is deleted after the deployment is created, but before it is
* started.</p> </li> <li> <p>DEPLOYMENT_GROUP_MISSING: The deployment group was
* missing. This error code is most likely raised if the deployment group is
* deleted after the deployment is created, but before it is started.</p> </li>
* <li> <p>HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
* successfully deployed within the instance health constraints specified.</p>
* </li> <li> <p>HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully
* deployed within the instance health constraints specified.</p> </li> <li>
* <p>IAM_ROLE_MISSING: The service role cannot be accessed.</p> </li> <li>
* <p>IAM_ROLE_PERMISSIONS: The service role does not have the correct
* permissions.</p> </li> <li> <p>INTERNAL_ERROR: There was an internal error.</p>
* </li> <li> <p>NO_EC2_SUBSCRIPTION: The calling account is not subscribed to
* Amazon EC2.</p> </li> <li> <p>NO_INSTANCES: No instances were specified, or no
* instances can be found.</p> </li> <li> <p>OVER_MAX_INSTANCES: The maximum number
* of instances was exceeded.</p> </li> <li> <p>THROTTLED: The operation was
* throttled because the calling account exceeded the throttling limits of one or
* more AWS services.</p> </li> <li> <p>TIMEOUT: The deployment has timed out.</p>
* </li> <li> <p>REVISION_MISSING: The revision ID was missing. This error code is
* most likely raised if the revision is deleted after the deployment is created,
* but before it is started.</p> </li> </ul>
*/
inline ErrorInformation& WithCode(const ErrorCode& value) { SetCode(value); return *this;}
/**
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html">Error
* Codes for AWS CodeDeploy</a> in the <a
* href="https://docs.aws.amazon.com/codedeploy/latest/userguide">AWS CodeDeploy
* User Guide</a>.</p> <p>The error code:</p> <ul> <li> <p>APPLICATION_MISSING: The
* application was missing. This error code is most likely raised if the
* application is deleted after the deployment is created, but before it is
* started.</p> </li> <li> <p>DEPLOYMENT_GROUP_MISSING: The deployment group was
* missing. This error code is most likely raised if the deployment group is
* deleted after the deployment is created, but before it is started.</p> </li>
* <li> <p>HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
* successfully deployed within the instance health constraints specified.</p>
* </li> <li> <p>HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully
* deployed within the instance health constraints specified.</p> </li> <li>
* <p>IAM_ROLE_MISSING: The service role cannot be accessed.</p> </li> <li>
* <p>IAM_ROLE_PERMISSIONS: The service role does not have the correct
* permissions.</p> </li> <li> <p>INTERNAL_ERROR: There was an internal error.</p>
* </li> <li> <p>NO_EC2_SUBSCRIPTION: The calling account is not subscribed to
* Amazon EC2.</p> </li> <li> <p>NO_INSTANCES: No instances were specified, or no
* instances can be found.</p> </li> <li> <p>OVER_MAX_INSTANCES: The maximum number
* of instances was exceeded.</p> </li> <li> <p>THROTTLED: The operation was
* throttled because the calling account exceeded the throttling limits of one or
* more AWS services.</p> </li> <li> <p>TIMEOUT: The deployment has timed out.</p>
* </li> <li> <p>REVISION_MISSING: The revision ID was missing. This error code is
* most likely raised if the revision is deleted after the deployment is created,
* but before it is started.</p> </li> </ul>
*/
inline ErrorInformation& WithCode(ErrorCode&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>An accompanying error message.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>An accompanying error message.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>An accompanying error message.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>An accompanying error message.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>An accompanying error message.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>An accompanying error message.</p>
*/
inline ErrorInformation& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>An accompanying error message.</p>
*/
inline ErrorInformation& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>An accompanying error message.</p>
*/
inline ErrorInformation& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
ErrorCode m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class FileExistsBehavior
{
NOT_SET,
DISALLOW,
OVERWRITE,
RETAIN
};
namespace FileExistsBehaviorMapper
{
AWS_CODEDEPLOY_API FileExistsBehavior GetFileExistsBehaviorForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForFileExistsBehavior(FileExistsBehavior value);
} // namespace FileExistsBehaviorMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,241 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about an application revision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GenericRevisionInfo">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GenericRevisionInfo
{
public:
GenericRevisionInfo();
GenericRevisionInfo(Aws::Utils::Json::JsonView jsonValue);
GenericRevisionInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A comment about the revision.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A comment about the revision.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A comment about the revision.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A comment about the revision.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A comment about the revision.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A comment about the revision.</p>
*/
inline GenericRevisionInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A comment about the revision.</p>
*/
inline GenericRevisionInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A comment about the revision.</p>
*/
inline GenericRevisionInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline const Aws::Vector<Aws::String>& GetDeploymentGroups() const{ return m_deploymentGroups; }
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline bool DeploymentGroupsHasBeenSet() const { return m_deploymentGroupsHasBeenSet; }
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline void SetDeploymentGroups(const Aws::Vector<Aws::String>& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = value; }
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline void SetDeploymentGroups(Aws::Vector<Aws::String>&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = std::move(value); }
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline GenericRevisionInfo& WithDeploymentGroups(const Aws::Vector<Aws::String>& value) { SetDeploymentGroups(value); return *this;}
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline GenericRevisionInfo& WithDeploymentGroups(Aws::Vector<Aws::String>&& value) { SetDeploymentGroups(std::move(value)); return *this;}
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline GenericRevisionInfo& AddDeploymentGroups(const Aws::String& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline GenericRevisionInfo& AddDeploymentGroups(Aws::String&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(std::move(value)); return *this; }
/**
* <p>The deployment groups for which this is the current target revision.</p>
*/
inline GenericRevisionInfo& AddDeploymentGroups(const char* value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
/**
* <p>When the revision was first used by AWS CodeDeploy.</p>
*/
inline const Aws::Utils::DateTime& GetFirstUsedTime() const{ return m_firstUsedTime; }
/**
* <p>When the revision was first used by AWS CodeDeploy.</p>
*/
inline bool FirstUsedTimeHasBeenSet() const { return m_firstUsedTimeHasBeenSet; }
/**
* <p>When the revision was first used by AWS CodeDeploy.</p>
*/
inline void SetFirstUsedTime(const Aws::Utils::DateTime& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = value; }
/**
* <p>When the revision was first used by AWS CodeDeploy.</p>
*/
inline void SetFirstUsedTime(Aws::Utils::DateTime&& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = std::move(value); }
/**
* <p>When the revision was first used by AWS CodeDeploy.</p>
*/
inline GenericRevisionInfo& WithFirstUsedTime(const Aws::Utils::DateTime& value) { SetFirstUsedTime(value); return *this;}
/**
* <p>When the revision was first used by AWS CodeDeploy.</p>
*/
inline GenericRevisionInfo& WithFirstUsedTime(Aws::Utils::DateTime&& value) { SetFirstUsedTime(std::move(value)); return *this;}
/**
* <p>When the revision was last used by AWS CodeDeploy.</p>
*/
inline const Aws::Utils::DateTime& GetLastUsedTime() const{ return m_lastUsedTime; }
/**
* <p>When the revision was last used by AWS CodeDeploy.</p>
*/
inline bool LastUsedTimeHasBeenSet() const { return m_lastUsedTimeHasBeenSet; }
/**
* <p>When the revision was last used by AWS CodeDeploy.</p>
*/
inline void SetLastUsedTime(const Aws::Utils::DateTime& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = value; }
/**
* <p>When the revision was last used by AWS CodeDeploy.</p>
*/
inline void SetLastUsedTime(Aws::Utils::DateTime&& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = std::move(value); }
/**
* <p>When the revision was last used by AWS CodeDeploy.</p>
*/
inline GenericRevisionInfo& WithLastUsedTime(const Aws::Utils::DateTime& value) { SetLastUsedTime(value); return *this;}
/**
* <p>When the revision was last used by AWS CodeDeploy.</p>
*/
inline GenericRevisionInfo& WithLastUsedTime(Aws::Utils::DateTime&& value) { SetLastUsedTime(std::move(value)); return *this;}
/**
* <p>When the revision was registered with AWS CodeDeploy.</p>
*/
inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; }
/**
* <p>When the revision was registered with AWS CodeDeploy.</p>
*/
inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; }
/**
* <p>When the revision was registered with AWS CodeDeploy.</p>
*/
inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; }
/**
* <p>When the revision was registered with AWS CodeDeploy.</p>
*/
inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::move(value); }
/**
* <p>When the revision was registered with AWS CodeDeploy.</p>
*/
inline GenericRevisionInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;}
/**
* <p>When the revision was registered with AWS CodeDeploy.</p>
*/
inline GenericRevisionInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(std::move(value)); return *this;}
private:
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<Aws::String> m_deploymentGroups;
bool m_deploymentGroupsHasBeenSet;
Aws::Utils::DateTime m_firstUsedTime;
bool m_firstUsedTimeHasBeenSet;
Aws::Utils::DateTime m_lastUsedTime;
bool m_lastUsedTimeHasBeenSet;
Aws::Utils::DateTime m_registerTime;
bool m_registerTimeHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>GetApplication</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetApplicationRequest : public CodeDeployRequest
{
public:
GetApplicationRequest();
// 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 "GetApplication"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline GetApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline GetApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline GetApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/ApplicationInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>GetApplication</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetApplicationResult
{
public:
GetApplicationResult();
GetApplicationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetApplicationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the application.</p>
*/
inline const ApplicationInfo& GetApplication() const{ return m_application; }
/**
* <p>Information about the application.</p>
*/
inline void SetApplication(const ApplicationInfo& value) { m_application = value; }
/**
* <p>Information about the application.</p>
*/
inline void SetApplication(ApplicationInfo&& value) { m_application = std::move(value); }
/**
* <p>Information about the application.</p>
*/
inline GetApplicationResult& WithApplication(const ApplicationInfo& value) { SetApplication(value); return *this;}
/**
* <p>Information about the application.</p>
*/
inline GetApplicationResult& WithApplication(ApplicationInfo&& value) { SetApplication(std::move(value)); return *this;}
private:
ApplicationInfo m_application;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/RevisionLocation.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>GetApplicationRevision</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevisionInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetApplicationRevisionRequest : public CodeDeployRequest
{
public:
GetApplicationRevisionRequest();
// 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 "GetApplicationRevision"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline GetApplicationRevisionRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline GetApplicationRevisionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline GetApplicationRevisionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>Information about the application revision to get, including type and
* location.</p>
*/
inline const RevisionLocation& GetRevision() const{ return m_revision; }
/**
* <p>Information about the application revision to get, including type and
* location.</p>
*/
inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
/**
* <p>Information about the application revision to get, including type and
* location.</p>
*/
inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; }
/**
* <p>Information about the application revision to get, including type and
* location.</p>
*/
inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
/**
* <p>Information about the application revision to get, including type and
* location.</p>
*/
inline GetApplicationRevisionRequest& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
/**
* <p>Information about the application revision to get, including type and
* location.</p>
*/
inline GetApplicationRevisionRequest& WithRevision(RevisionLocation&& value) { SetRevision(std::move(value)); return *this;}
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
RevisionLocation m_revision;
bool m_revisionHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/RevisionLocation.h>
#include <aws/codedeploy/model/GenericRevisionInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>GetApplicationRevision</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevisionOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetApplicationRevisionResult
{
public:
GetApplicationRevisionResult();
GetApplicationRevisionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetApplicationRevisionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationName = value; }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationName = std::move(value); }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationName.assign(value); }
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline GetApplicationRevisionResult& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline GetApplicationRevisionResult& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of the application that corresponds to the revision.</p>
*/
inline GetApplicationRevisionResult& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>Additional information about the revision, including type and location.</p>
*/
inline const RevisionLocation& GetRevision() const{ return m_revision; }
/**
* <p>Additional information about the revision, including type and location.</p>
*/
inline void SetRevision(const RevisionLocation& value) { m_revision = value; }
/**
* <p>Additional information about the revision, including type and location.</p>
*/
inline void SetRevision(RevisionLocation&& value) { m_revision = std::move(value); }
/**
* <p>Additional information about the revision, including type and location.</p>
*/
inline GetApplicationRevisionResult& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
/**
* <p>Additional information about the revision, including type and location.</p>
*/
inline GetApplicationRevisionResult& WithRevision(RevisionLocation&& value) { SetRevision(std::move(value)); return *this;}
/**
* <p>General information about the revision.</p>
*/
inline const GenericRevisionInfo& GetRevisionInfo() const{ return m_revisionInfo; }
/**
* <p>General information about the revision.</p>
*/
inline void SetRevisionInfo(const GenericRevisionInfo& value) { m_revisionInfo = value; }
/**
* <p>General information about the revision.</p>
*/
inline void SetRevisionInfo(GenericRevisionInfo&& value) { m_revisionInfo = std::move(value); }
/**
* <p>General information about the revision.</p>
*/
inline GetApplicationRevisionResult& WithRevisionInfo(const GenericRevisionInfo& value) { SetRevisionInfo(value); return *this;}
/**
* <p>General information about the revision.</p>
*/
inline GetApplicationRevisionResult& WithRevisionInfo(GenericRevisionInfo&& value) { SetRevisionInfo(std::move(value)); return *this;}
private:
Aws::String m_applicationName;
RevisionLocation m_revision;
GenericRevisionInfo m_revisionInfo;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>GetDeploymentConfig</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfigInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetDeploymentConfigRequest : public CodeDeployRequest
{
public:
GetDeploymentConfigRequest();
// 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 "GetDeploymentConfig"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline GetDeploymentConfigRequest& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline GetDeploymentConfigRequest& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(std::move(value)); return *this;}
/**
* <p>The name of a deployment configuration associated with the IAM user or AWS
* account.</p>
*/
inline GetDeploymentConfigRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
private:
Aws::String m_deploymentConfigName;
bool m_deploymentConfigNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/DeploymentConfigInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>GetDeploymentConfig</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfigOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetDeploymentConfigResult
{
public:
GetDeploymentConfigResult();
GetDeploymentConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDeploymentConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the deployment configuration.</p>
*/
inline const DeploymentConfigInfo& GetDeploymentConfigInfo() const{ return m_deploymentConfigInfo; }
/**
* <p>Information about the deployment configuration.</p>
*/
inline void SetDeploymentConfigInfo(const DeploymentConfigInfo& value) { m_deploymentConfigInfo = value; }
/**
* <p>Information about the deployment configuration.</p>
*/
inline void SetDeploymentConfigInfo(DeploymentConfigInfo&& value) { m_deploymentConfigInfo = std::move(value); }
/**
* <p>Information about the deployment configuration.</p>
*/
inline GetDeploymentConfigResult& WithDeploymentConfigInfo(const DeploymentConfigInfo& value) { SetDeploymentConfigInfo(value); return *this;}
/**
* <p>Information about the deployment configuration.</p>
*/
inline GetDeploymentConfigResult& WithDeploymentConfigInfo(DeploymentConfigInfo&& value) { SetDeploymentConfigInfo(std::move(value)); return *this;}
private:
DeploymentConfigInfo m_deploymentConfigInfo;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>GetDeploymentGroup</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroupInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetDeploymentGroupRequest : public CodeDeployRequest
{
public:
GetDeploymentGroupRequest();
// 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 "GetDeploymentGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline GetDeploymentGroupRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline GetDeploymentGroupRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
/**
* <p>The name of an AWS CodeDeploy application associated with the IAM user or AWS
* account.</p>
*/
inline GetDeploymentGroupRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline GetDeploymentGroupRequest& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline GetDeploymentGroupRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
/**
* <p>The name of a deployment group for the specified application.</p>
*/
inline GetDeploymentGroupRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
private:
Aws::String m_applicationName;
bool m_applicationNameHasBeenSet;
Aws::String m_deploymentGroupName;
bool m_deploymentGroupNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/DeploymentGroupInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>GetDeploymentGroup</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroupOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetDeploymentGroupResult
{
public:
GetDeploymentGroupResult();
GetDeploymentGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDeploymentGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the deployment group.</p>
*/
inline const DeploymentGroupInfo& GetDeploymentGroupInfo() const{ return m_deploymentGroupInfo; }
/**
* <p>Information about the deployment group.</p>
*/
inline void SetDeploymentGroupInfo(const DeploymentGroupInfo& value) { m_deploymentGroupInfo = value; }
/**
* <p>Information about the deployment group.</p>
*/
inline void SetDeploymentGroupInfo(DeploymentGroupInfo&& value) { m_deploymentGroupInfo = std::move(value); }
/**
* <p>Information about the deployment group.</p>
*/
inline GetDeploymentGroupResult& WithDeploymentGroupInfo(const DeploymentGroupInfo& value) { SetDeploymentGroupInfo(value); return *this;}
/**
* <p>Information about the deployment group.</p>
*/
inline GetDeploymentGroupResult& WithDeploymentGroupInfo(DeploymentGroupInfo&& value) { SetDeploymentGroupInfo(std::move(value)); return *this;}
private:
DeploymentGroupInfo m_deploymentGroupInfo;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the input of a <code>GetDeployment</code> operation.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetDeploymentRequest : public CodeDeployRequest
{
public:
GetDeploymentRequest();
// 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 "GetDeployment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline GetDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline GetDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment associated with the IAM user or AWS account.
* </p>
*/
inline GetDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/DeploymentInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Represents the output of a <code>GetDeployment</code>
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetDeploymentResult
{
public:
GetDeploymentResult();
GetDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the deployment.</p>
*/
inline const DeploymentInfo& GetDeploymentInfo() const{ return m_deploymentInfo; }
/**
* <p>Information about the deployment.</p>
*/
inline void SetDeploymentInfo(const DeploymentInfo& value) { m_deploymentInfo = value; }
/**
* <p>Information about the deployment.</p>
*/
inline void SetDeploymentInfo(DeploymentInfo&& value) { m_deploymentInfo = std::move(value); }
/**
* <p>Information about the deployment.</p>
*/
inline GetDeploymentResult& WithDeploymentInfo(const DeploymentInfo& value) { SetDeploymentInfo(value); return *this;}
/**
* <p>Information about the deployment.</p>
*/
inline GetDeploymentResult& WithDeploymentInfo(DeploymentInfo&& value) { SetDeploymentInfo(std::move(value)); return *this;}
private:
DeploymentInfo m_deploymentInfo;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
*/
class AWS_CODEDEPLOY_API GetDeploymentTargetRequest : public CodeDeployRequest
{
public:
GetDeploymentTargetRequest();
// 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 "GetDeploymentTarget"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The unique ID of a deployment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline GetDeploymentTargetRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline GetDeploymentTargetRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline GetDeploymentTargetRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment target. </p>
*/
inline const Aws::String& GetTargetId() const{ return m_targetId; }
/**
* <p> The unique ID of a deployment target. </p>
*/
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
/**
* <p> The unique ID of a deployment target. </p>
*/
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
/**
* <p> The unique ID of a deployment target. </p>
*/
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
/**
* <p> The unique ID of a deployment target. </p>
*/
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
/**
* <p> The unique ID of a deployment target. </p>
*/
inline GetDeploymentTargetRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
/**
* <p> The unique ID of a deployment target. </p>
*/
inline GetDeploymentTargetRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment target. </p>
*/
inline GetDeploymentTargetRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::String m_targetId;
bool m_targetIdHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,87 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/DeploymentTarget.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
class AWS_CODEDEPLOY_API GetDeploymentTargetResult
{
public:
GetDeploymentTargetResult();
GetDeploymentTargetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDeploymentTargetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> A deployment target that contains information about a deployment such as its
* status, lifecycle events, and when it was last updated. It also contains
* metadata about the deployment target. The deployment target metadata depends on
* the deployment target's type (<code>instanceTarget</code>,
* <code>lambdaTarget</code>, or <code>ecsTarget</code>). </p>
*/
inline const DeploymentTarget& GetDeploymentTarget() const{ return m_deploymentTarget; }
/**
* <p> A deployment target that contains information about a deployment such as its
* status, lifecycle events, and when it was last updated. It also contains
* metadata about the deployment target. The deployment target metadata depends on
* the deployment target's type (<code>instanceTarget</code>,
* <code>lambdaTarget</code>, or <code>ecsTarget</code>). </p>
*/
inline void SetDeploymentTarget(const DeploymentTarget& value) { m_deploymentTarget = value; }
/**
* <p> A deployment target that contains information about a deployment such as its
* status, lifecycle events, and when it was last updated. It also contains
* metadata about the deployment target. The deployment target metadata depends on
* the deployment target's type (<code>instanceTarget</code>,
* <code>lambdaTarget</code>, or <code>ecsTarget</code>). </p>
*/
inline void SetDeploymentTarget(DeploymentTarget&& value) { m_deploymentTarget = std::move(value); }
/**
* <p> A deployment target that contains information about a deployment such as its
* status, lifecycle events, and when it was last updated. It also contains
* metadata about the deployment target. The deployment target metadata depends on
* the deployment target's type (<code>instanceTarget</code>,
* <code>lambdaTarget</code>, or <code>ecsTarget</code>). </p>
*/
inline GetDeploymentTargetResult& WithDeploymentTarget(const DeploymentTarget& value) { SetDeploymentTarget(value); return *this;}
/**
* <p> A deployment target that contains information about a deployment such as its
* status, lifecycle events, and when it was last updated. It also contains
* metadata about the deployment target. The deployment target metadata depends on
* the deployment target's type (<code>instanceTarget</code>,
* <code>lambdaTarget</code>, or <code>ecsTarget</code>). </p>
*/
inline GetDeploymentTargetResult& WithDeploymentTarget(DeploymentTarget&& value) { SetDeploymentTarget(std::move(value)); return *this;}
private:
DeploymentTarget m_deploymentTarget;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/CodeDeployRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Represents the input of a <code>GetOnPremisesInstance</code> operation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstanceInput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetOnPremisesInstanceRequest : public CodeDeployRequest
{
public:
GetOnPremisesInstanceRequest();
// 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 "GetOnPremisesInstance"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline GetOnPremisesInstanceRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline GetOnPremisesInstanceRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
/**
* <p> The name of the on-premises instance about which to get information. </p>
*/
inline GetOnPremisesInstanceRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
private:
Aws::String m_instanceName;
bool m_instanceNameHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/InstanceInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p> Represents the output of a <code>GetOnPremisesInstance</code> operation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstanceOutput">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GetOnPremisesInstanceResult
{
public:
GetOnPremisesInstanceResult();
GetOnPremisesInstanceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetOnPremisesInstanceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Information about the on-premises instance. </p>
*/
inline const InstanceInfo& GetInstanceInfo() const{ return m_instanceInfo; }
/**
* <p> Information about the on-premises instance. </p>
*/
inline void SetInstanceInfo(const InstanceInfo& value) { m_instanceInfo = value; }
/**
* <p> Information about the on-premises instance. </p>
*/
inline void SetInstanceInfo(InstanceInfo&& value) { m_instanceInfo = std::move(value); }
/**
* <p> Information about the on-premises instance. </p>
*/
inline GetOnPremisesInstanceResult& WithInstanceInfo(const InstanceInfo& value) { SetInstanceInfo(value); return *this;}
/**
* <p> Information about the on-premises instance. </p>
*/
inline GetOnPremisesInstanceResult& WithInstanceInfo(InstanceInfo&& value) { SetInstanceInfo(std::move(value)); return *this;}
private:
InstanceInfo m_instanceInfo;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,157 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p>Information about the location of application artifacts stored in
* GitHub.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GitHubLocation">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GitHubLocation
{
public:
GitHubLocation();
GitHubLocation(Aws::Utils::Json::JsonView jsonValue);
GitHubLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline const Aws::String& GetRepository() const{ return m_repository; }
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline GitHubLocation& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline GitHubLocation& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
/**
* <p>The GitHub account and repository pair that stores a reference to the commit
* that represents the bundled artifacts for the application revision. </p>
* <p>Specified as account/repository.</p>
*/
inline GitHubLocation& WithRepository(const char* value) { SetRepository(value); return *this;}
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline const Aws::String& GetCommitId() const{ return m_commitId; }
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline GitHubLocation& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline GitHubLocation& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
/**
* <p>The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
* for the application revision.</p>
*/
inline GitHubLocation& WithCommitId(const char* value) { SetCommitId(value); return *this;}
private:
Aws::String m_repository;
bool m_repositoryHasBeenSet;
Aws::String m_commitId;
bool m_commitIdHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class GreenFleetProvisioningAction
{
NOT_SET,
DISCOVER_EXISTING,
COPY_AUTO_SCALING_GROUP
};
namespace GreenFleetProvisioningActionMapper
{
AWS_CODEDEPLOY_API GreenFleetProvisioningAction GetGreenFleetProvisioningActionForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForGreenFleetProvisioningAction(GreenFleetProvisioningAction value);
} // namespace GreenFleetProvisioningActionMapper
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/codedeploy/model/GreenFleetProvisioningAction.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about the instances that belong to the replacement environment in
* a blue/green deployment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GreenFleetProvisioningOption">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API GreenFleetProvisioningOption
{
public:
GreenFleetProvisioningOption();
GreenFleetProvisioningOption(Aws::Utils::Json::JsonView jsonValue);
GreenFleetProvisioningOption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The method used to add instances to a replacement environment.</p> <ul> <li>
* <p> <code>DISCOVER_EXISTING</code>: Use instances that already exist or will be
* created manually.</p> </li> <li> <p> <code>COPY_AUTO_SCALING_GROUP</code>: Use
* settings from a specified Auto Scaling group to define and create instances in a
* new Auto Scaling group.</p> </li> </ul>
*/
inline const GreenFleetProvisioningAction& GetAction() const{ return m_action; }
/**
* <p>The method used to add instances to a replacement environment.</p> <ul> <li>
* <p> <code>DISCOVER_EXISTING</code>: Use instances that already exist or will be
* created manually.</p> </li> <li> <p> <code>COPY_AUTO_SCALING_GROUP</code>: Use
* settings from a specified Auto Scaling group to define and create instances in a
* new Auto Scaling group.</p> </li> </ul>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>The method used to add instances to a replacement environment.</p> <ul> <li>
* <p> <code>DISCOVER_EXISTING</code>: Use instances that already exist or will be
* created manually.</p> </li> <li> <p> <code>COPY_AUTO_SCALING_GROUP</code>: Use
* settings from a specified Auto Scaling group to define and create instances in a
* new Auto Scaling group.</p> </li> </ul>
*/
inline void SetAction(const GreenFleetProvisioningAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>The method used to add instances to a replacement environment.</p> <ul> <li>
* <p> <code>DISCOVER_EXISTING</code>: Use instances that already exist or will be
* created manually.</p> </li> <li> <p> <code>COPY_AUTO_SCALING_GROUP</code>: Use
* settings from a specified Auto Scaling group to define and create instances in a
* new Auto Scaling group.</p> </li> </ul>
*/
inline void SetAction(GreenFleetProvisioningAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>The method used to add instances to a replacement environment.</p> <ul> <li>
* <p> <code>DISCOVER_EXISTING</code>: Use instances that already exist or will be
* created manually.</p> </li> <li> <p> <code>COPY_AUTO_SCALING_GROUP</code>: Use
* settings from a specified Auto Scaling group to define and create instances in a
* new Auto Scaling group.</p> </li> </ul>
*/
inline GreenFleetProvisioningOption& WithAction(const GreenFleetProvisioningAction& value) { SetAction(value); return *this;}
/**
* <p>The method used to add instances to a replacement environment.</p> <ul> <li>
* <p> <code>DISCOVER_EXISTING</code>: Use instances that already exist or will be
* created manually.</p> </li> <li> <p> <code>COPY_AUTO_SCALING_GROUP</code>: Use
* settings from a specified Auto Scaling group to define and create instances in a
* new Auto Scaling group.</p> </li> </ul>
*/
inline GreenFleetProvisioningOption& WithAction(GreenFleetProvisioningAction&& value) { SetAction(std::move(value)); return *this;}
private:
GreenFleetProvisioningAction m_action;
bool m_actionHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class InstanceAction
{
NOT_SET,
TERMINATE,
KEEP_ALIVE
};
namespace InstanceActionMapper
{
AWS_CODEDEPLOY_API InstanceAction GetInstanceActionForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForInstanceAction(InstanceAction value);
} // namespace InstanceActionMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,341 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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/codedeploy/model/Tag.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about an on-premises instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceInfo">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API InstanceInfo
{
public:
InstanceInfo();
InstanceInfo(Aws::Utils::Json::JsonView jsonValue);
InstanceInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the on-premises instance.</p>
*/
inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
/**
* <p>The name of the on-premises instance.</p>
*/
inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
/**
* <p>The name of the on-premises instance.</p>
*/
inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
/**
* <p>The name of the on-premises instance.</p>
*/
inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
/**
* <p>The name of the on-premises instance.</p>
*/
inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
/**
* <p>The name of the on-premises instance.</p>
*/
inline InstanceInfo& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
/**
* <p>The name of the on-premises instance.</p>
*/
inline InstanceInfo& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
/**
* <p>The name of the on-premises instance.</p>
*/
inline InstanceInfo& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline const Aws::String& GetIamSessionArn() const{ return m_iamSessionArn; }
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline bool IamSessionArnHasBeenSet() const { return m_iamSessionArnHasBeenSet; }
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline void SetIamSessionArn(const Aws::String& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = value; }
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline void SetIamSessionArn(Aws::String&& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = std::move(value); }
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline void SetIamSessionArn(const char* value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn.assign(value); }
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithIamSessionArn(const Aws::String& value) { SetIamSessionArn(value); return *this;}
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithIamSessionArn(Aws::String&& value) { SetIamSessionArn(std::move(value)); return *this;}
/**
* <p>The ARN of the IAM session associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithIamSessionArn(const char* value) { SetIamSessionArn(value); return *this;}
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
/**
* <p>The IAM user ARN associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline InstanceInfo& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline InstanceInfo& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the on-premises instance.</p>
*/
inline InstanceInfo& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
/**
* <p>The time at which the on-premises instance was registered.</p>
*/
inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; }
/**
* <p>The time at which the on-premises instance was registered.</p>
*/
inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; }
/**
* <p>The time at which the on-premises instance was registered.</p>
*/
inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; }
/**
* <p>The time at which the on-premises instance was registered.</p>
*/
inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::move(value); }
/**
* <p>The time at which the on-premises instance was registered.</p>
*/
inline InstanceInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;}
/**
* <p>The time at which the on-premises instance was registered.</p>
*/
inline InstanceInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(std::move(value)); return *this;}
/**
* <p>If the on-premises instance was deregistered, the time at which the
* on-premises instance was deregistered.</p>
*/
inline const Aws::Utils::DateTime& GetDeregisterTime() const{ return m_deregisterTime; }
/**
* <p>If the on-premises instance was deregistered, the time at which the
* on-premises instance was deregistered.</p>
*/
inline bool DeregisterTimeHasBeenSet() const { return m_deregisterTimeHasBeenSet; }
/**
* <p>If the on-premises instance was deregistered, the time at which the
* on-premises instance was deregistered.</p>
*/
inline void SetDeregisterTime(const Aws::Utils::DateTime& value) { m_deregisterTimeHasBeenSet = true; m_deregisterTime = value; }
/**
* <p>If the on-premises instance was deregistered, the time at which the
* on-premises instance was deregistered.</p>
*/
inline void SetDeregisterTime(Aws::Utils::DateTime&& value) { m_deregisterTimeHasBeenSet = true; m_deregisterTime = std::move(value); }
/**
* <p>If the on-premises instance was deregistered, the time at which the
* on-premises instance was deregistered.</p>
*/
inline InstanceInfo& WithDeregisterTime(const Aws::Utils::DateTime& value) { SetDeregisterTime(value); return *this;}
/**
* <p>If the on-premises instance was deregistered, the time at which the
* on-premises instance was deregistered.</p>
*/
inline InstanceInfo& WithDeregisterTime(Aws::Utils::DateTime&& value) { SetDeregisterTime(std::move(value)); return *this;}
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline InstanceInfo& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline InstanceInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags currently associated with the on-premises instance.</p>
*/
inline InstanceInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_instanceName;
bool m_instanceNameHasBeenSet;
Aws::String m_iamSessionArn;
bool m_iamSessionArnHasBeenSet;
Aws::String m_iamUserArn;
bool m_iamUserArnHasBeenSet;
Aws::String m_instanceArn;
bool m_instanceArnHasBeenSet;
Aws::Utils::DateTime m_registerTime;
bool m_registerTimeHasBeenSet;
Aws::Utils::DateTime m_deregisterTime;
bool m_deregisterTimeHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class InstanceStatus
{
NOT_SET,
Pending,
InProgress,
Succeeded,
Failed,
Skipped,
Unknown,
Ready
};
namespace InstanceStatusMapper
{
AWS_CODEDEPLOY_API InstanceStatus GetInstanceStatusForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForInstanceStatus(InstanceStatus value);
} // namespace InstanceStatusMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,355 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/InstanceStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/InstanceType.h>
#include <aws/codedeploy/model/LifecycleEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about an instance in a deployment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API InstanceSummary
{
public:
InstanceSummary();
InstanceSummary(Aws::Utils::Json::JsonView jsonValue);
InstanceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The unique ID of a deployment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceSummary& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceSummary& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceSummary& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p>The instance ID.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The instance ID.</p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The instance ID.</p>
*/
inline InstanceSummary& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The instance ID.</p>
*/
inline InstanceSummary& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The instance ID.</p>
*/
inline InstanceSummary& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline const InstanceStatus& GetStatus() const{ return m_status; }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline InstanceSummary& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline InstanceSummary& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline InstanceSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline InstanceSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& WithLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { SetLifecycleEvents(value); return *this;}
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline InstanceSummary& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline InstanceSummary& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
InstanceStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedAt;
bool m_lastUpdatedAtHasBeenSet;
Aws::Vector<LifecycleEvent> m_lifecycleEvents;
bool m_lifecycleEventsHasBeenSet;
InstanceType m_instanceType;
bool m_instanceTypeHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,342 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/TargetStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/TargetLabel.h>
#include <aws/codedeploy/model/LifecycleEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p> A target Amazon EC2 or on-premises instance during a deployment that uses
* the EC2/On-premises compute platform. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceTarget">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API InstanceTarget
{
public:
InstanceTarget();
InstanceTarget(Aws::Utils::Json::JsonView jsonValue);
InstanceTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The unique ID of a deployment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline const Aws::String& GetTargetId() const{ return m_targetId; }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline InstanceTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline InstanceTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment target that has a type of
* <code>instanceTarget</code>. </p>
*/
inline InstanceTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline InstanceTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline InstanceTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the target. </p>
*/
inline InstanceTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
/**
* <p> The status an EC2/On-premises deployment's target instance. </p>
*/
inline const TargetStatus& GetStatus() const{ return m_status; }
/**
* <p> The status an EC2/On-premises deployment's target instance. </p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> The status an EC2/On-premises deployment's target instance. </p>
*/
inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> The status an EC2/On-premises deployment's target instance. </p>
*/
inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> The status an EC2/On-premises deployment's target instance. </p>
*/
inline InstanceTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
/**
* <p> The status an EC2/On-premises deployment's target instance. </p>
*/
inline InstanceTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p> The date and time when the target instance was updated by a deployment. </p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
/**
* <p> The date and time when the target instance was updated by a deployment. </p>
*/
inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
/**
* <p> The date and time when the target instance was updated by a deployment. </p>
*/
inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
/**
* <p> The date and time when the target instance was updated by a deployment. </p>
*/
inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
/**
* <p> The date and time when the target instance was updated by a deployment. </p>
*/
inline InstanceTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
/**
* <p> The date and time when the target instance was updated by a deployment. </p>
*/
inline InstanceTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline InstanceTarget& WithLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { SetLifecycleEvents(value); return *this;}
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline InstanceTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline InstanceTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
/**
* <p> The lifecycle events of the deployment to this target instance. </p>
*/
inline InstanceTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
/**
* <p> A label that identifies whether the instance is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline const TargetLabel& GetInstanceLabel() const{ return m_instanceLabel; }
/**
* <p> A label that identifies whether the instance is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline bool InstanceLabelHasBeenSet() const { return m_instanceLabelHasBeenSet; }
/**
* <p> A label that identifies whether the instance is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline void SetInstanceLabel(const TargetLabel& value) { m_instanceLabelHasBeenSet = true; m_instanceLabel = value; }
/**
* <p> A label that identifies whether the instance is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline void SetInstanceLabel(TargetLabel&& value) { m_instanceLabelHasBeenSet = true; m_instanceLabel = std::move(value); }
/**
* <p> A label that identifies whether the instance is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline InstanceTarget& WithInstanceLabel(const TargetLabel& value) { SetInstanceLabel(value); return *this;}
/**
* <p> A label that identifies whether the instance is an original target
* (<code>BLUE</code>) or a replacement target (<code>GREEN</code>). </p>
*/
inline InstanceTarget& WithInstanceLabel(TargetLabel&& value) { SetInstanceLabel(std::move(value)); return *this;}
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::String m_targetId;
bool m_targetIdHasBeenSet;
Aws::String m_targetArn;
bool m_targetArnHasBeenSet;
TargetStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedAt;
bool m_lastUpdatedAtHasBeenSet;
Aws::Vector<LifecycleEvent> m_lifecycleEvents;
bool m_lifecycleEventsHasBeenSet;
TargetLabel m_instanceLabel;
bool m_instanceLabelHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // 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/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeDeploy
{
namespace Model
{
enum class InstanceType
{
NOT_SET,
Blue,
Green
};
namespace InstanceTypeMapper
{
AWS_CODEDEPLOY_API InstanceType GetInstanceTypeForName(const Aws::String& name);
AWS_CODEDEPLOY_API Aws::String GetNameForInstanceType(InstanceType value);
} // namespace InstanceTypeMapper
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

View File

@@ -0,0 +1,273 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
{
namespace Model
{
/**
* <p> Information about a Lambda function specified in a deployment.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/LambdaFunctionInfo">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API LambdaFunctionInfo
{
public:
LambdaFunctionInfo();
LambdaFunctionInfo(Aws::Utils::Json::JsonView jsonValue);
LambdaFunctionInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of a Lambda function. </p>
*/
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
/**
* <p> The name of a Lambda function. </p>
*/
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
/**
* <p> The name of a Lambda function. </p>
*/
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
/**
* <p> The name of a Lambda function. </p>
*/
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
/**
* <p> The name of a Lambda function. </p>
*/
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
/**
* <p> The name of a Lambda function. </p>
*/
inline LambdaFunctionInfo& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
/**
* <p> The name of a Lambda function. </p>
*/
inline LambdaFunctionInfo& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
/**
* <p> The name of a Lambda function. </p>
*/
inline LambdaFunctionInfo& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline const Aws::String& GetFunctionAlias() const{ return m_functionAlias; }
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline bool FunctionAliasHasBeenSet() const { return m_functionAliasHasBeenSet; }
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline void SetFunctionAlias(const Aws::String& value) { m_functionAliasHasBeenSet = true; m_functionAlias = value; }
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline void SetFunctionAlias(Aws::String&& value) { m_functionAliasHasBeenSet = true; m_functionAlias = std::move(value); }
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline void SetFunctionAlias(const char* value) { m_functionAliasHasBeenSet = true; m_functionAlias.assign(value); }
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline LambdaFunctionInfo& WithFunctionAlias(const Aws::String& value) { SetFunctionAlias(value); return *this;}
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline LambdaFunctionInfo& WithFunctionAlias(Aws::String&& value) { SetFunctionAlias(std::move(value)); return *this;}
/**
* <p> The alias of a Lambda function. For more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html">AWS
* Lambda Function Aliases</a> in the <i>AWS Lambda Developer Guide</i>.</p>
*/
inline LambdaFunctionInfo& WithFunctionAlias(const char* value) { SetFunctionAlias(value); return *this;}
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline LambdaFunctionInfo& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline LambdaFunctionInfo& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
/**
* <p> The version of a Lambda function that production traffic points to. </p>
*/
inline LambdaFunctionInfo& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline const Aws::String& GetTargetVersion() const{ return m_targetVersion; }
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline void SetTargetVersion(const Aws::String& value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; }
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline void SetTargetVersion(Aws::String&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::move(value); }
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline void SetTargetVersion(const char* value) { m_targetVersionHasBeenSet = true; m_targetVersion.assign(value); }
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline LambdaFunctionInfo& WithTargetVersion(const Aws::String& value) { SetTargetVersion(value); return *this;}
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline LambdaFunctionInfo& WithTargetVersion(Aws::String&& value) { SetTargetVersion(std::move(value)); return *this;}
/**
* <p> The version of a Lambda function that production traffic points to after the
* Lambda function is deployed. </p>
*/
inline LambdaFunctionInfo& WithTargetVersion(const char* value) { SetTargetVersion(value); return *this;}
/**
* <p> The percentage of production traffic that the target version of a Lambda
* function receives. </p>
*/
inline double GetTargetVersionWeight() const{ return m_targetVersionWeight; }
/**
* <p> The percentage of production traffic that the target version of a Lambda
* function receives. </p>
*/
inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
/**
* <p> The percentage of production traffic that the target version of a Lambda
* function receives. </p>
*/
inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
/**
* <p> The percentage of production traffic that the target version of a Lambda
* function receives. </p>
*/
inline LambdaFunctionInfo& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
private:
Aws::String m_functionName;
bool m_functionNameHasBeenSet;
Aws::String m_functionAlias;
bool m_functionAliasHasBeenSet;
Aws::String m_currentVersion;
bool m_currentVersionHasBeenSet;
Aws::String m_targetVersion;
bool m_targetVersionHasBeenSet;
double m_targetVersionWeight;
bool m_targetVersionWeightHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws

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