Skip to content

Commit

Permalink
Added the RequiresAuthenticationTimestamp field to the RegistrationVe…
Browse files Browse the repository at this point in the history
…rsionStatusHistory data type.

Adds new error code `Ec2InstanceTypeDoesNotExist` for Amazon EKS managed node groups
This release adds support for using AWS KMS customer managed keys to encrypt AWS Lambda .zip deployment packages.
Adds S3 path option to pass group member list for PutGroup API.
AWS Control Catalog GetControl public API returns additional data in output, including Implementation and Parameters
This feature allows override LaunchTemplates to be specified in an AWS Batch Compute Environment.
Added support for Media Capture Pipeline and Media Concatenation Pipeline for customer managed server side encryption. Now Media Capture Pipeline can use IAM sink role to get access to KMS key and encrypt/decrypt recorded artifacts. KMS key ID can also be supplied with encryption context.
Amazon Data Firehose / Features : Adds support for a new DeliveryStreamType, DatabaseAsSource. DatabaseAsSource hoses allow customers to stream CDC events from their RDS and Amazon EC2 hosted databases, running MySQL and PostgreSQL database engines, to Iceberg Table destinations.
This release adds trace functionality to Bedrock Prompt Flows
  • Loading branch information
aws-sdk-cpp-automation committed Nov 8, 2024
1 parent b6be363 commit a154acd
Show file tree
Hide file tree
Showing 198 changed files with 7,440 additions and 625 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.442
1.11.443
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#pragma once
#include <aws/batch/Batch_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/batch/model/LaunchTemplateSpecificationOverride.h>
#include <utility>

namespace Aws
Expand Down Expand Up @@ -74,23 +76,23 @@ namespace Model

///@{
/**
* <p>The version number of the launch template, <code>$Latest</code>, or
* <code>$Default</code>.</p> <p>If the value is <code>$Latest</code>, the latest
* version of the launch template is used. If the value is <code>$Default</code>,
* the default version of the launch template is used.</p> <p>If the
* <p>The version number of the launch template, <code>$Default</code>, or
* <code>$Latest</code>.</p> <p>If the value is <code>$Default</code>, the default
* version of the launch template is used. If the value is <code>$Latest</code>,
* the latest version of the launch template is used. </p> <p>If the
* AMI ID that's used in a compute environment is from the launch template, the AMI
* isn't changed when the compute environment is updated. It's only changed if the
* <code>updateToLatestImageVersion</code> parameter for the compute environment is
* set to <code>true</code>. During an infrastructure update, if either
* <code>$Latest</code> or <code>$Default</code> is specified, Batch re-evaluates
* <code>$Default</code> or <code>$Latest</code> is specified, Batch re-evaluates
* the launch template version, and it might use a different version of the launch
* template. This is the case even if the launch template isn't specified in the
* update. When updating a compute environment, changing the launch template
* requires an infrastructure update of the compute environment. For more
* information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
* compute environments</a> in the <i>Batch User Guide</i>.</p>
* <p>Default: <code>$Default</code>.</p>
* <p>Default: <code>$Default</code> </p> <p>Latest: <code>$Latest</code> </p>
*/
inline const Aws::String& GetVersion() const{ return m_version; }
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
Expand All @@ -101,6 +103,28 @@ namespace Model
inline LaunchTemplateSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
inline LaunchTemplateSpecification& WithVersion(const char* value) { SetVersion(value); return *this;}
///@}

///@{
/**
* <p>A launch template to use in place of the default launch template. You must
* specify either the launch template ID or launch template name in the request,
* but not both.</p> <p>You can specify up to ten (10) launch template overrides
* that are associated to unique instance types or families for each compute
* environment.</p> <p>To unset all override templates for a compute
* environment, you can pass an empty array to the <a
* href="https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html">UpdateComputeEnvironment.overrides</a>
* parameter, or not include the <code>overrides</code> parameter when submitting
* the <code>UpdateComputeEnvironment</code> API operation.</p>
*/
inline const Aws::Vector<LaunchTemplateSpecificationOverride>& GetOverrides() const{ return m_overrides; }
inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
inline void SetOverrides(const Aws::Vector<LaunchTemplateSpecificationOverride>& value) { m_overridesHasBeenSet = true; m_overrides = value; }
inline void SetOverrides(Aws::Vector<LaunchTemplateSpecificationOverride>&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
inline LaunchTemplateSpecification& WithOverrides(const Aws::Vector<LaunchTemplateSpecificationOverride>& value) { SetOverrides(value); return *this;}
inline LaunchTemplateSpecification& WithOverrides(Aws::Vector<LaunchTemplateSpecificationOverride>&& value) { SetOverrides(std::move(value)); return *this;}
inline LaunchTemplateSpecification& AddOverrides(const LaunchTemplateSpecificationOverride& value) { m_overridesHasBeenSet = true; m_overrides.push_back(value); return *this; }
inline LaunchTemplateSpecification& AddOverrides(LaunchTemplateSpecificationOverride&& value) { m_overridesHasBeenSet = true; m_overrides.push_back(std::move(value)); return *this; }
///@}
private:

Aws::String m_launchTemplateId;
Expand All @@ -111,6 +135,9 @@ namespace Model

Aws::String m_version;
bool m_versionHasBeenSet = false;

Aws::Vector<LaunchTemplateSpecificationOverride> m_overrides;
bool m_overridesHasBeenSet = false;
};

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

#pragma once
#include <aws/batch/Batch_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Batch
{
namespace Model
{

/**
* <p>An object that represents a launch template to use in place of the default
* launch template. You must specify either the launch template ID or launch
* template name in the request, but not both.</p> <p>If security groups are
* specified using both the <code>securityGroupIds</code> parameter of
* <code>CreateComputeEnvironment</code> and the launch template, the values in the
* <code>securityGroupIds</code> parameter of <code>CreateComputeEnvironment</code>
* will be used.</p> <p>You can define up to ten (10) overrides for each compute
* environment.</p> <p>This object isn't applicable to jobs that are running
* on Fargate resources.</p> <p>To unset all override templates for
* a compute environment, you can pass an empty array to the <a
* href="https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html">UpdateComputeEnvironment.overrides</a>
* parameter, or not include the <code>overrides</code> parameter when submitting
* the <code>UpdateComputeEnvironment</code> API operation.</p> <p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LaunchTemplateSpecificationOverride">AWS
* API Reference</a></p>
*/
class LaunchTemplateSpecificationOverride
{
public:
AWS_BATCH_API LaunchTemplateSpecificationOverride();
AWS_BATCH_API LaunchTemplateSpecificationOverride(Aws::Utils::Json::JsonView jsonValue);
AWS_BATCH_API LaunchTemplateSpecificationOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;


///@{
/**
* <p>The ID of the launch template.</p> <p> <b>Note:</b> If you specify the
* <code>launchTemplateId</code> you can't specify the
* <code>launchTemplateName</code> as well.</p>
*/
inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
inline LaunchTemplateSpecificationOverride& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
inline LaunchTemplateSpecificationOverride& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
inline LaunchTemplateSpecificationOverride& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
///@}

///@{
/**
* <p>The name of the launch template.</p> <p> <b>Note:</b> If you specify the
* <code>launchTemplateName</code> you can't specify the
* <code>launchTemplateId</code> as well.</p>
*/
inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
inline LaunchTemplateSpecificationOverride& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
inline LaunchTemplateSpecificationOverride& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
inline LaunchTemplateSpecificationOverride& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
///@}

///@{
/**
* <p>The version number of the launch template, <code>$Default</code>, or
* <code>$Latest</code>.</p> <p>If the value is <code>$Default</code>, the default
* version of the launch template is used. If the value is <code>$Latest</code>,
* the latest version of the launch template is used. </p> <p>If the
* AMI ID that's used in a compute environment is from the launch template, the AMI
* isn't changed when the compute environment is updated. It's only changed if the
* <code>updateToLatestImageVersion</code> parameter for the compute environment is
* set to <code>true</code>. During an infrastructure update, if either
* <code>$Default</code> or <code>$Latest</code> is specified, Batch re-evaluates
* the launch template version, and it might use a different version of the launch
* template. This is the case even if the launch template isn't specified in the
* update. When updating a compute environment, changing the launch template
* requires an infrastructure update of the compute environment. For more
* information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
* compute environments</a> in the <i>Batch User Guide</i>.</p>
* <p>Default: <code>$Default</code> </p> <p>Latest: <code>$Latest</code> </p>
*/
inline const Aws::String& GetVersion() const{ return m_version; }
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
inline LaunchTemplateSpecificationOverride& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
inline LaunchTemplateSpecificationOverride& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
inline LaunchTemplateSpecificationOverride& WithVersion(const char* value) { SetVersion(value); return *this;}
///@}

///@{
/**
* <p>The instance type or family that this this override launch template should be
* applied to.</p> <p>This parameter is required when defining a launch template
* override.</p> <p>Information included in this parameter must meet the following
* requirements:</p> <ul> <li> <p>Must be a valid Amazon EC2 instance type or
* family.</p> </li> <li> <p> <code>optimal</code> isn't allowed.</p> </li> <li>
* <p> <code>targetInstanceTypes</code> can target only instance types and families
* that are included within the <a
* href="https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-instanceTypes">
* <code>ComputeResource.instanceTypes</code> </a> set.
* <code>targetInstanceTypes</code> doesn't need to include all of the instances
* from the <code>instanceType</code> set, but at least a subset. For example, if
* <code>ComputeResource.instanceTypes</code> includes <code>[m5, g5]</code>,
* <code>targetInstanceTypes</code> can include <code>[m5.2xlarge]</code> and
* <code>[m5.large]</code> but not <code>[c5.large]</code>.</p> </li> <li> <p>
* <code>targetInstanceTypes</code> included within the same launch template
* override or across launch template overrides can't overlap for the same compute
* environment. For example, you can't define one launch template override to
* target an instance family and another define an instance type within this same
* family.</p> </li> </ul>
*/
inline const Aws::Vector<Aws::String>& GetTargetInstanceTypes() const{ return m_targetInstanceTypes; }
inline bool TargetInstanceTypesHasBeenSet() const { return m_targetInstanceTypesHasBeenSet; }
inline void SetTargetInstanceTypes(const Aws::Vector<Aws::String>& value) { m_targetInstanceTypesHasBeenSet = true; m_targetInstanceTypes = value; }
inline void SetTargetInstanceTypes(Aws::Vector<Aws::String>&& value) { m_targetInstanceTypesHasBeenSet = true; m_targetInstanceTypes = std::move(value); }
inline LaunchTemplateSpecificationOverride& WithTargetInstanceTypes(const Aws::Vector<Aws::String>& value) { SetTargetInstanceTypes(value); return *this;}
inline LaunchTemplateSpecificationOverride& WithTargetInstanceTypes(Aws::Vector<Aws::String>&& value) { SetTargetInstanceTypes(std::move(value)); return *this;}
inline LaunchTemplateSpecificationOverride& AddTargetInstanceTypes(const Aws::String& value) { m_targetInstanceTypesHasBeenSet = true; m_targetInstanceTypes.push_back(value); return *this; }
inline LaunchTemplateSpecificationOverride& AddTargetInstanceTypes(Aws::String&& value) { m_targetInstanceTypesHasBeenSet = true; m_targetInstanceTypes.push_back(std::move(value)); return *this; }
inline LaunchTemplateSpecificationOverride& AddTargetInstanceTypes(const char* value) { m_targetInstanceTypesHasBeenSet = true; m_targetInstanceTypes.push_back(value); return *this; }
///@}
private:

Aws::String m_launchTemplateId;
bool m_launchTemplateIdHasBeenSet = false;

Aws::String m_launchTemplateName;
bool m_launchTemplateNameHasBeenSet = false;

Aws::String m_version;
bool m_versionHasBeenSet = false;

Aws::Vector<Aws::String> m_targetInstanceTypes;
bool m_targetInstanceTypesHasBeenSet = false;
};

} // namespace Model
} // namespace Batch
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ namespace Model
LaunchTemplateSpecification::LaunchTemplateSpecification() :
m_launchTemplateIdHasBeenSet(false),
m_launchTemplateNameHasBeenSet(false),
m_versionHasBeenSet(false)
m_versionHasBeenSet(false),
m_overridesHasBeenSet(false)
{
}

Expand Down Expand Up @@ -54,6 +55,16 @@ LaunchTemplateSpecification& LaunchTemplateSpecification::operator =(JsonView js
m_versionHasBeenSet = true;
}

if(jsonValue.ValueExists("overrides"))
{
Aws::Utils::Array<JsonView> overridesJsonList = jsonValue.GetArray("overrides");
for(unsigned overridesIndex = 0; overridesIndex < overridesJsonList.GetLength(); ++overridesIndex)
{
m_overrides.push_back(overridesJsonList[overridesIndex].AsObject());
}
m_overridesHasBeenSet = true;
}

return *this;
}

Expand All @@ -79,6 +90,17 @@ JsonValue LaunchTemplateSpecification::Jsonize() const

}

if(m_overridesHasBeenSet)
{
Aws::Utils::Array<JsonValue> overridesJsonList(m_overrides.size());
for(unsigned overridesIndex = 0; overridesIndex < overridesJsonList.GetLength(); ++overridesIndex)
{
overridesJsonList[overridesIndex].AsObject(m_overrides[overridesIndex].Jsonize());
}
payload.WithArray("overrides", std::move(overridesJsonList));

}

return payload;
}

Expand Down
Loading

0 comments on commit a154acd

Please sign in to comment.