Skip to content

Commit

Permalink
This release adds an optional Duration parameter to StateManager Asso…
Browse files Browse the repository at this point in the history
…ciations. This allows customers to specify how long an apply-only-on-cron association execution should run. Once the specified Duration is out all the ongoing cancellable commands or automations are cancelled.

Update page size limits for GetJobRuns and GetTriggers APIs.
CloudFormation IaC generator allows you to scan existing resources in your account and select resources to generate a template for a new or existing CloudFormation stack.
This release enables unhealthy target draining intervals for Network Load Balancers.
  • Loading branch information
aws-sdk-cpp-automation committed Jan 31, 2024
1 parent 706ab12 commit c6311a1
Show file tree
Hide file tree
Showing 119 changed files with 13,078 additions and 391 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.254
1.11.255

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ enum class CloudFormationErrors

ALREADY_EXISTS= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CHANGE_SET_NOT_FOUND,
CONCURRENT_RESOURCES_LIMIT_EXCEEDED,
CREATED_BUT_MODIFIED,
C_F_N_REGISTRY,
GENERATED_TEMPLATE_NOT_FOUND,
INSUFFICIENT_CAPABILITIES,
INVALID_CHANGE_SET_STATUS,
INVALID_OPERATION,
Expand All @@ -61,6 +63,9 @@ enum class CloudFormationErrors
OPERATION_IN_PROGRESS,
OPERATION_NOT_FOUND,
OPERATION_STATUS_CHECK_FAILED,
RESOURCE_SCAN_IN_PROGRESS,
RESOURCE_SCAN_LIMIT_EXCEEDED,
RESOURCE_SCAN_NOT_FOUND,
STACK_INSTANCE_NOT_FOUND,
STACK_NOT_FOUND,
STACK_SET_NOT_EMPTY,
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/cloudformation/CloudFormation_EXPORTS.h>
#include <aws/cloudformation/CloudFormationRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cloudformation/model/TemplateConfiguration.h>
#include <aws/cloudformation/model/ResourceDefinition.h>
#include <utility>

namespace Aws
{
namespace CloudFormation
{
namespace Model
{

/**
*/
class CreateGeneratedTemplateRequest : public CloudFormationRequest
{
public:
AWS_CLOUDFORMATION_API CreateGeneratedTemplateRequest();

// 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 "CreateGeneratedTemplate"; }

AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;

protected:
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;

public:

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline const Aws::Vector<ResourceDefinition>& GetResources() const{ return m_resources; }

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline void SetResources(const Aws::Vector<ResourceDefinition>& value) { m_resourcesHasBeenSet = true; m_resources = value; }

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline void SetResources(Aws::Vector<ResourceDefinition>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline CreateGeneratedTemplateRequest& WithResources(const Aws::Vector<ResourceDefinition>& value) { SetResources(value); return *this;}

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline CreateGeneratedTemplateRequest& WithResources(Aws::Vector<ResourceDefinition>&& value) { SetResources(std::move(value)); return *this;}

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline CreateGeneratedTemplateRequest& AddResources(const ResourceDefinition& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }

/**
* <p>An optional list of resources to be included in the generated template.</p>
* <p> If no resources are specified,the template will be created without any
* resources. Resources can be added to the template using the
* <code>UpdateGeneratedTemplate</code> API action.</p>
*/
inline CreateGeneratedTemplateRequest& AddResources(ResourceDefinition&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }


/**
* <p>The name assigned to the generated template.</p>
*/
inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; }

/**
* <p>The name assigned to the generated template.</p>
*/
inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; }

/**
* <p>The name assigned to the generated template.</p>
*/
inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; }

/**
* <p>The name assigned to the generated template.</p>
*/
inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); }

/**
* <p>The name assigned to the generated template.</p>
*/
inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); }

/**
* <p>The name assigned to the generated template.</p>
*/
inline CreateGeneratedTemplateRequest& WithGeneratedTemplateName(const Aws::String& value) { SetGeneratedTemplateName(value); return *this;}

/**
* <p>The name assigned to the generated template.</p>
*/
inline CreateGeneratedTemplateRequest& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;}

/**
* <p>The name assigned to the generated template.</p>
*/
inline CreateGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;}


/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline const Aws::String& GetStackName() const{ return m_stackName; }

/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }

/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }

/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }

/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }

/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline CreateGeneratedTemplateRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}

/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline CreateGeneratedTemplateRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}

/**
* <p>An optional name or ARN of a stack to use as the base stack for the generated
* template.</p>
*/
inline CreateGeneratedTemplateRequest& WithStackName(const char* value) { SetStackName(value); return *this;}


/**
* <p>The configuration details of the generated template, including the
* <code>DeletionPolicy</code> and <code>UpdateReplacePolicy</code>.</p>
*/
inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }

/**
* <p>The configuration details of the generated template, including the
* <code>DeletionPolicy</code> and <code>UpdateReplacePolicy</code>.</p>
*/
inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }

/**
* <p>The configuration details of the generated template, including the
* <code>DeletionPolicy</code> and <code>UpdateReplacePolicy</code>.</p>
*/
inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }

/**
* <p>The configuration details of the generated template, including the
* <code>DeletionPolicy</code> and <code>UpdateReplacePolicy</code>.</p>
*/
inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }

/**
* <p>The configuration details of the generated template, including the
* <code>DeletionPolicy</code> and <code>UpdateReplacePolicy</code>.</p>
*/
inline CreateGeneratedTemplateRequest& WithTemplateConfiguration(const TemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;}

/**
* <p>The configuration details of the generated template, including the
* <code>DeletionPolicy</code> and <code>UpdateReplacePolicy</code>.</p>
*/
inline CreateGeneratedTemplateRequest& WithTemplateConfiguration(TemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;}

private:

Aws::Vector<ResourceDefinition> m_resources;
bool m_resourcesHasBeenSet = false;

Aws::String m_generatedTemplateName;
bool m_generatedTemplateNameHasBeenSet = false;

Aws::String m_stackName;
bool m_stackNameHasBeenSet = false;

TemplateConfiguration m_templateConfiguration;
bool m_templateConfigurationHasBeenSet = false;
};

} // namespace Model
} // namespace CloudFormation
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/cloudformation/CloudFormation_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cloudformation/model/ResponseMetadata.h>
#include <utility>

namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils
{
namespace Xml
{
class XmlDocument;
} // namespace Xml
} // namespace Utils
namespace CloudFormation
{
namespace Model
{
class CreateGeneratedTemplateResult
{
public:
AWS_CLOUDFORMATION_API CreateGeneratedTemplateResult();
AWS_CLOUDFORMATION_API CreateGeneratedTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
AWS_CLOUDFORMATION_API CreateGeneratedTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);


/**
* <p>The ID of the generated template.</p>
*/
inline const Aws::String& GetGeneratedTemplateId() const{ return m_generatedTemplateId; }

/**
* <p>The ID of the generated template.</p>
*/
inline void SetGeneratedTemplateId(const Aws::String& value) { m_generatedTemplateId = value; }

/**
* <p>The ID of the generated template.</p>
*/
inline void SetGeneratedTemplateId(Aws::String&& value) { m_generatedTemplateId = std::move(value); }

/**
* <p>The ID of the generated template.</p>
*/
inline void SetGeneratedTemplateId(const char* value) { m_generatedTemplateId.assign(value); }

/**
* <p>The ID of the generated template.</p>
*/
inline CreateGeneratedTemplateResult& WithGeneratedTemplateId(const Aws::String& value) { SetGeneratedTemplateId(value); return *this;}

/**
* <p>The ID of the generated template.</p>
*/
inline CreateGeneratedTemplateResult& WithGeneratedTemplateId(Aws::String&& value) { SetGeneratedTemplateId(std::move(value)); return *this;}

/**
* <p>The ID of the generated template.</p>
*/
inline CreateGeneratedTemplateResult& WithGeneratedTemplateId(const char* value) { SetGeneratedTemplateId(value); return *this;}



inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }


inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }


inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }


inline CreateGeneratedTemplateResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}


inline CreateGeneratedTemplateResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}

private:

Aws::String m_generatedTemplateId;

ResponseMetadata m_responseMetadata;
};

} // namespace Model
} // namespace CloudFormation
} // namespace Aws
Loading

0 comments on commit c6311a1

Please sign in to comment.