Skip to content

Commit e932876

Browse files
authored
feat: update clients as of 11/20/2020 (#1711)
1 parent 5fba8a4 commit e932876

File tree

268 files changed

+81249
-33785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+81249
-33785
lines changed

clients/client-auto-scaling/models/models_0.ts

+33-30
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,7 @@ export interface LaunchTemplateSpecification {
557557
LaunchTemplateName?: string;
558558

559559
/**
560-
* <p>The version number, <code>$Latest</code>, or <code>$Default</code>. To get the version
561-
* 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
560+
* <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
562561
* 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>,
563562
* Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If
564563
* the value is <code>$Default</code>, Amazon EC2 Auto Scaling selects the default version of the launch
@@ -750,19 +749,15 @@ export namespace InstancesDistribution {
750749
}
751750

752751
/**
753-
* <p>Describes an override for a launch template. Currently, the only supported override is
754-
* instance type.</p>
755-
* <p>The maximum number of instance type overrides that can be associated with an Auto Scaling
756-
* group is 20.</p>
752+
* <p>Describes an override for a launch template. The maximum number of instance types that
753+
* 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>
757754
*/
758755
export interface LaunchTemplateOverrides {
759756
/**
760757
* <p>The instance type, such as <code>m3.xlarge</code>. You must use an instance type that
761-
* is supported in your requested Region and Availability Zones. For information about
762-
* available instance types, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes">Available
763-
* instance types</a> in the <i>Amazon Elastic Compute Cloud User
764-
* Guide.</i>
765-
* </p>
758+
* is supported in your requested Region and Availability Zones. For more information, see
759+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance types</a> in the <i>Amazon Elastic Compute Cloud User
760+
* Guide</i>.</p>
766761
*/
767762
InstanceType?: string;
768763

@@ -778,6 +773,16 @@ export interface LaunchTemplateOverrides {
778773
* <p>Valid Range: Minimum value of 1. Maximum value of 999.</p>
779774
*/
780775
WeightedCapacity?: string;
776+
777+
/**
778+
* <p>Provides the launch template to be used when launching the instance type. For example,
779+
* some instance types might require a launch template with a different AMI. If not
780+
* provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances
781+
* policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html">Specifying a
782+
* different launch template for an instance type</a> in the
783+
* <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
784+
*/
785+
LaunchTemplateSpecification?: LaunchTemplateSpecification;
781786
}
782787

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

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

805808
/**
806809
* <p>Any parameters that you specify override the same parameters in the launch template.
807-
* Currently, the only supported override is instance type. You can specify between 1 and
808-
* 20 instance types. If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the
809-
* launch template when it launches an instance. </p>
810+
* If not provided, Amazon EC2 Auto Scaling uses the instance type specified in the launch template when
811+
* it launches an instance. </p>
810812
*/
811813
Overrides?: LaunchTemplateOverrides[];
812814
}
@@ -820,8 +822,8 @@ export namespace LaunchTemplate {
820822
/**
821823
* <p>Describes a mixed instances policy for an Auto Scaling group. With mixed instances, your Auto Scaling
822824
* group can provision a combination of On-Demand Instances and Spot Instances across
823-
* 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
824-
* Multiple Instance Types and Purchase Options</a> in the <i>Amazon EC2 Auto Scaling User
825+
* 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
826+
* instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
825827
* Guide</i>.</p>
826828
* <p>You can create a mixed instances policy for a new Auto Scaling group, or you can create it for
827829
* an existing group by updating the group to specify <code>MixedInstancesPolicy</code> as
@@ -921,10 +923,11 @@ export interface CreateAutoScalingGroupType {
921923
* used.</p>
922924
* <p>The policy includes parameters that not only define the distribution of On-Demand
923925
* Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the
924-
* Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities, but also the
925-
* parameters that specify the instance configuration information—the launch template and
926-
* instance types. The policy can also include a weight for each instance type. For more
927-
* information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling groups with multiple
926+
* Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities, but also
927+
* the parameters that specify the instance configuration information—the launch template
928+
* and instance types. The policy can also include a weight for each instance type and
929+
* different launch templates for individual instance types. For more information, see
930+
* <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling groups with multiple
928931
* instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
929932
* Guide</i>.</p>
930933
* <p>Conditional: You must specify either a launch template (<code>LaunchTemplate</code> or
@@ -5041,8 +5044,8 @@ export interface UpdateAutoScalingGroupType {
50415044
/**
50425045
* <p>An embedded object that specifies a mixed instances policy. When you make changes to
50435046
* an existing policy, all optional parameters are left unchanged if not specified. For
5044-
* more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling Groups with Multiple
5045-
* Instance Types and Purchase Options</a> in the <i>Amazon EC2 Auto Scaling User
5047+
* more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html">Auto Scaling groups with multiple
5048+
* instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
50465049
* Guide</i>.</p>
50475050
*/
50485051
MixedInstancesPolicy?: MixedInstancesPolicy;

clients/client-auto-scaling/protocols/Aws_query.ts

+14
Original file line numberDiff line numberDiff line change
@@ -5863,6 +5863,13 @@ const serializeAws_queryLaunchTemplateOverrides = (input: LaunchTemplateOverride
58635863
if (input.WeightedCapacity !== undefined) {
58645864
entries["WeightedCapacity"] = input.WeightedCapacity;
58655865
}
5866+
if (input.LaunchTemplateSpecification !== undefined) {
5867+
const memberEntries = serializeAws_queryLaunchTemplateSpecification(input.LaunchTemplateSpecification, context);
5868+
Object.entries(memberEntries).forEach(([key, value]) => {
5869+
const loc = `LaunchTemplateSpecification.${key}`;
5870+
entries[loc] = value;
5871+
});
5872+
}
58665873
return entries;
58675874
};
58685875

@@ -7852,13 +7859,20 @@ const deserializeAws_queryLaunchTemplateOverrides = (output: any, context: __Ser
78527859
let contents: any = {
78537860
InstanceType: undefined,
78547861
WeightedCapacity: undefined,
7862+
LaunchTemplateSpecification: undefined,
78557863
};
78567864
if (output["InstanceType"] !== undefined) {
78577865
contents.InstanceType = output["InstanceType"];
78587866
}
78597867
if (output["WeightedCapacity"] !== undefined) {
78607868
contents.WeightedCapacity = output["WeightedCapacity"];
78617869
}
7870+
if (output["LaunchTemplateSpecification"] !== undefined) {
7871+
contents.LaunchTemplateSpecification = deserializeAws_queryLaunchTemplateSpecification(
7872+
output["LaunchTemplateSpecification"],
7873+
context
7874+
);
7875+
}
78627876
return contents;
78637877
};
78647878

0 commit comments

Comments
 (0)