Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update clients as of 11/20/2020 #1711

Merged
merged 2 commits into from
Nov 24, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: update clients as of 11/20/2020
trivikr committed Nov 21, 2020
commit 7d96ef7e35713bead58aaccc248accfe421a681d
63 changes: 33 additions & 30 deletions clients/client-auto-scaling/models/models_0.ts
Original file line number Diff line number Diff line change
@@ -557,8 +557,7 @@ export interface LaunchTemplateSpecification {
LaunchTemplateName?: string;

/**
* <p>The version number, <code>$Latest</code>, or <code>$Default</code>. To get the version
* number, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplateVersions.html">DescribeLaunchTemplateVersions</a> API operation. New launch template versions
* <p>The version number, <code>$Latest</code>, or <code>$Default</code>. To get the version number, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplateVersions.html">DescribeLaunchTemplateVersions</a> API operation. New launch template versions
* can be created using the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplateVersion.html">CreateLaunchTemplateVersion</a> API. If the value is <code>$Latest</code>,
* Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If
* the value is <code>$Default</code>, Amazon EC2 Auto Scaling selects the default version of the launch
@@ -750,19 +749,15 @@ export namespace InstancesDistribution {
}

/**
* <p>Describes an override for a launch template. Currently, the only supported override is
* instance type.</p>
* <p>The maximum number of instance type overrides that can be associated with an Auto Scaling
* group is 20.</p>
* <p>Describes an override for a launch template. The maximum number of instance types that
* can be associated with an Auto Scaling group is 20. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-override-options.html">Configuring overrides</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
*/
export interface LaunchTemplateOverrides {
/**
* <p>The instance type, such as <code>m3.xlarge</code>. You must use an instance type that
* is supported in your requested Region and Availability Zones. For information about
* available instance types, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes">Available
* instance types</a> in the <i>Amazon Elastic Compute Cloud User
* Guide.</i>
* </p>
* is supported in your requested Region and Availability Zones. For more information, see
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance types</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
InstanceType?: string;

@@ -778,6 +773,16 @@ export interface LaunchTemplateOverrides {
* <p>Valid Range: Minimum value of 1. Maximum value of 999.</p>
*/
WeightedCapacity?: string;

/**
* <p>Provides the launch template to be used when launching the instance type. For example,
* some instance types might require a launch template with a different AMI. If not
* provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances
* policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html">Specifying a
* different launch template for an instance type</a> in the
* <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
*/
LaunchTemplateSpecification?: LaunchTemplateSpecification;
}

export namespace LaunchTemplateOverrides {
@@ -787,14 +792,12 @@ export namespace LaunchTemplateOverrides {
}

/**
* <p>Describes a launch template and overrides.</p>
* <p>The overrides are used to override the instance type specified by the launch template
* with multiple instance types that can be used to launch On-Demand Instances and Spot
* Instances.</p>
* <p>When you update the launch template or overrides, existing Amazon EC2 instances
* continue to run. When scale out occurs, Amazon EC2 Auto Scaling launches instances to match the new
* settings. When scale in occurs, Amazon EC2 Auto Scaling terminates instances according to the group's
* termination policies.</p>
* <p>Describes a launch template and overrides. </p>
* <p>You specify these parameters as part of a mixed instances policy. </p>
* <p>When you update the launch template or overrides, existing Amazon EC2 instances continue to
* run. When scale out occurs, Amazon EC2 Auto Scaling launches instances to match the new settings. When
* scale in occurs, Amazon EC2 Auto Scaling terminates instances according to the group's termination
* policies.</p>
*/
export interface LaunchTemplate {
/**
@@ -804,9 +807,8 @@ export interface LaunchTemplate {

/**
* <p>Any parameters that you specify override the same parameters in the launch template.
* Currently, the only supported override is instance type. You can specify between 1 and
* 20 instance types. If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the
* launch template when it launches an instance. </p>
* If not provided, Amazon EC2 Auto Scaling uses the instance type specified in the launch template when
* it launches an instance. </p>
*/
Overrides?: LaunchTemplateOverrides[];
}
@@ -820,8 +822,8 @@ export namespace LaunchTemplate {
/**
* <p>Describes a mixed instances policy for an Auto Scaling group. With mixed instances, your Auto Scaling
* group can provision a combination of On-Demand Instances and Spot Instances across
* multiple instance types. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling Groups with
* Multiple Instance Types and Purchase Options</a> in the <i>Amazon EC2 Auto Scaling User
* multiple instance types. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling groups with multiple
* instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
* Guide</i>.</p>
* <p>You can create a mixed instances policy for a new Auto Scaling group, or you can create it for
* an existing group by updating the group to specify <code>MixedInstancesPolicy</code> as
@@ -921,10 +923,11 @@ export interface CreateAutoScalingGroupType {
* used.</p>
* <p>The policy includes parameters that not only define the distribution of On-Demand
* Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the
* Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities, but also the
* parameters that specify the instance configuration information—the launch template and
* instance types. The policy can also include a weight for each instance type. For more
* information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling groups with multiple
* Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities, but also
* the parameters that specify the instance configuration information—the launch template
* and instance types. The policy can also include a weight for each instance type and
* different launch templates for individual instance types. For more information, see
* <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling groups with multiple
* instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
* Guide</i>.</p>
* <p>Conditional: You must specify either a launch template (<code>LaunchTemplate</code> or
@@ -5041,8 +5044,8 @@ export interface UpdateAutoScalingGroupType {
/**
* <p>An embedded object that specifies a mixed instances policy. When you make changes to
* an existing policy, all optional parameters are left unchanged if not specified. For
* more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling Groups with Multiple
* Instance Types and Purchase Options</a> in the <i>Amazon EC2 Auto Scaling User
* more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling groups with multiple
* instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
* Guide</i>.</p>
*/
MixedInstancesPolicy?: MixedInstancesPolicy;
14 changes: 14 additions & 0 deletions clients/client-auto-scaling/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
@@ -5863,6 +5863,13 @@ const serializeAws_queryLaunchTemplateOverrides = (input: LaunchTemplateOverride
if (input.WeightedCapacity !== undefined) {
entries["WeightedCapacity"] = input.WeightedCapacity;
}
if (input.LaunchTemplateSpecification !== undefined) {
const memberEntries = serializeAws_queryLaunchTemplateSpecification(input.LaunchTemplateSpecification, context);
Object.entries(memberEntries).forEach(([key, value]) => {
const loc = `LaunchTemplateSpecification.${key}`;
entries[loc] = value;
});
}
return entries;
};

@@ -7852,13 +7859,20 @@ const deserializeAws_queryLaunchTemplateOverrides = (output: any, context: __Ser
let contents: any = {
InstanceType: undefined,
WeightedCapacity: undefined,
LaunchTemplateSpecification: undefined,
};
if (output["InstanceType"] !== undefined) {
contents.InstanceType = output["InstanceType"];
}
if (output["WeightedCapacity"] !== undefined) {
contents.WeightedCapacity = output["WeightedCapacity"];
}
if (output["LaunchTemplateSpecification"] !== undefined) {
contents.LaunchTemplateSpecification = deserializeAws_queryLaunchTemplateSpecification(
output["LaunchTemplateSpecification"],
context
);
}
return contents;
};

Loading