aws-sdk-autoscaling 1.80.0 → 1.82.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -78,21 +78,13 @@ module Aws::AutoScaling
78
78
  data[:security_groups]
79
79
  end
80
80
 
81
- # *EC2-Classic retires on August 15, 2022. This property is not
82
- # supported after that date.*
83
- #
84
- # The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
85
- # to.
81
+ # Available for backward compatibility.
86
82
  # @return [String]
87
83
  def classic_link_vpc_id
88
84
  data[:classic_link_vpc_id]
89
85
  end
90
86
 
91
- # *EC2-Classic retires on August 15, 2022. This property is not
92
- # supported after that date.*
93
- #
94
- # The IDs of one or more security groups for the VPC specified in
95
- # `ClassicLinkVPCId`.
87
+ # Available for backward compatibility.
96
88
  # @return [Array<String>]
97
89
  def classic_link_vpc_security_groups
98
90
  data[:classic_link_vpc_security_groups]
@@ -0,0 +1,190 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AutoScaling
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::AutoScaling::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::AutoScaling::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::AutoScaling::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :attach_instances
60
+ Aws::AutoScaling::Endpoints::AttachInstances.build(context)
61
+ when :attach_load_balancer_target_groups
62
+ Aws::AutoScaling::Endpoints::AttachLoadBalancerTargetGroups.build(context)
63
+ when :attach_load_balancers
64
+ Aws::AutoScaling::Endpoints::AttachLoadBalancers.build(context)
65
+ when :batch_delete_scheduled_action
66
+ Aws::AutoScaling::Endpoints::BatchDeleteScheduledAction.build(context)
67
+ when :batch_put_scheduled_update_group_action
68
+ Aws::AutoScaling::Endpoints::BatchPutScheduledUpdateGroupAction.build(context)
69
+ when :cancel_instance_refresh
70
+ Aws::AutoScaling::Endpoints::CancelInstanceRefresh.build(context)
71
+ when :complete_lifecycle_action
72
+ Aws::AutoScaling::Endpoints::CompleteLifecycleAction.build(context)
73
+ when :create_auto_scaling_group
74
+ Aws::AutoScaling::Endpoints::CreateAutoScalingGroup.build(context)
75
+ when :create_launch_configuration
76
+ Aws::AutoScaling::Endpoints::CreateLaunchConfiguration.build(context)
77
+ when :create_or_update_tags
78
+ Aws::AutoScaling::Endpoints::CreateOrUpdateTags.build(context)
79
+ when :delete_auto_scaling_group
80
+ Aws::AutoScaling::Endpoints::DeleteAutoScalingGroup.build(context)
81
+ when :delete_launch_configuration
82
+ Aws::AutoScaling::Endpoints::DeleteLaunchConfiguration.build(context)
83
+ when :delete_lifecycle_hook
84
+ Aws::AutoScaling::Endpoints::DeleteLifecycleHook.build(context)
85
+ when :delete_notification_configuration
86
+ Aws::AutoScaling::Endpoints::DeleteNotificationConfiguration.build(context)
87
+ when :delete_policy
88
+ Aws::AutoScaling::Endpoints::DeletePolicy.build(context)
89
+ when :delete_scheduled_action
90
+ Aws::AutoScaling::Endpoints::DeleteScheduledAction.build(context)
91
+ when :delete_tags
92
+ Aws::AutoScaling::Endpoints::DeleteTags.build(context)
93
+ when :delete_warm_pool
94
+ Aws::AutoScaling::Endpoints::DeleteWarmPool.build(context)
95
+ when :describe_account_limits
96
+ Aws::AutoScaling::Endpoints::DescribeAccountLimits.build(context)
97
+ when :describe_adjustment_types
98
+ Aws::AutoScaling::Endpoints::DescribeAdjustmentTypes.build(context)
99
+ when :describe_auto_scaling_groups
100
+ Aws::AutoScaling::Endpoints::DescribeAutoScalingGroups.build(context)
101
+ when :describe_auto_scaling_instances
102
+ Aws::AutoScaling::Endpoints::DescribeAutoScalingInstances.build(context)
103
+ when :describe_auto_scaling_notification_types
104
+ Aws::AutoScaling::Endpoints::DescribeAutoScalingNotificationTypes.build(context)
105
+ when :describe_instance_refreshes
106
+ Aws::AutoScaling::Endpoints::DescribeInstanceRefreshes.build(context)
107
+ when :describe_launch_configurations
108
+ Aws::AutoScaling::Endpoints::DescribeLaunchConfigurations.build(context)
109
+ when :describe_lifecycle_hook_types
110
+ Aws::AutoScaling::Endpoints::DescribeLifecycleHookTypes.build(context)
111
+ when :describe_lifecycle_hooks
112
+ Aws::AutoScaling::Endpoints::DescribeLifecycleHooks.build(context)
113
+ when :describe_load_balancer_target_groups
114
+ Aws::AutoScaling::Endpoints::DescribeLoadBalancerTargetGroups.build(context)
115
+ when :describe_load_balancers
116
+ Aws::AutoScaling::Endpoints::DescribeLoadBalancers.build(context)
117
+ when :describe_metric_collection_types
118
+ Aws::AutoScaling::Endpoints::DescribeMetricCollectionTypes.build(context)
119
+ when :describe_notification_configurations
120
+ Aws::AutoScaling::Endpoints::DescribeNotificationConfigurations.build(context)
121
+ when :describe_policies
122
+ Aws::AutoScaling::Endpoints::DescribePolicies.build(context)
123
+ when :describe_scaling_activities
124
+ Aws::AutoScaling::Endpoints::DescribeScalingActivities.build(context)
125
+ when :describe_scaling_process_types
126
+ Aws::AutoScaling::Endpoints::DescribeScalingProcessTypes.build(context)
127
+ when :describe_scheduled_actions
128
+ Aws::AutoScaling::Endpoints::DescribeScheduledActions.build(context)
129
+ when :describe_tags
130
+ Aws::AutoScaling::Endpoints::DescribeTags.build(context)
131
+ when :describe_termination_policy_types
132
+ Aws::AutoScaling::Endpoints::DescribeTerminationPolicyTypes.build(context)
133
+ when :describe_warm_pool
134
+ Aws::AutoScaling::Endpoints::DescribeWarmPool.build(context)
135
+ when :detach_instances
136
+ Aws::AutoScaling::Endpoints::DetachInstances.build(context)
137
+ when :detach_load_balancer_target_groups
138
+ Aws::AutoScaling::Endpoints::DetachLoadBalancerTargetGroups.build(context)
139
+ when :detach_load_balancers
140
+ Aws::AutoScaling::Endpoints::DetachLoadBalancers.build(context)
141
+ when :disable_metrics_collection
142
+ Aws::AutoScaling::Endpoints::DisableMetricsCollection.build(context)
143
+ when :enable_metrics_collection
144
+ Aws::AutoScaling::Endpoints::EnableMetricsCollection.build(context)
145
+ when :enter_standby
146
+ Aws::AutoScaling::Endpoints::EnterStandby.build(context)
147
+ when :execute_policy
148
+ Aws::AutoScaling::Endpoints::ExecutePolicy.build(context)
149
+ when :exit_standby
150
+ Aws::AutoScaling::Endpoints::ExitStandby.build(context)
151
+ when :get_predictive_scaling_forecast
152
+ Aws::AutoScaling::Endpoints::GetPredictiveScalingForecast.build(context)
153
+ when :put_lifecycle_hook
154
+ Aws::AutoScaling::Endpoints::PutLifecycleHook.build(context)
155
+ when :put_notification_configuration
156
+ Aws::AutoScaling::Endpoints::PutNotificationConfiguration.build(context)
157
+ when :put_scaling_policy
158
+ Aws::AutoScaling::Endpoints::PutScalingPolicy.build(context)
159
+ when :put_scheduled_update_group_action
160
+ Aws::AutoScaling::Endpoints::PutScheduledUpdateGroupAction.build(context)
161
+ when :put_warm_pool
162
+ Aws::AutoScaling::Endpoints::PutWarmPool.build(context)
163
+ when :record_lifecycle_action_heartbeat
164
+ Aws::AutoScaling::Endpoints::RecordLifecycleActionHeartbeat.build(context)
165
+ when :resume_processes
166
+ Aws::AutoScaling::Endpoints::ResumeProcesses.build(context)
167
+ when :set_desired_capacity
168
+ Aws::AutoScaling::Endpoints::SetDesiredCapacity.build(context)
169
+ when :set_instance_health
170
+ Aws::AutoScaling::Endpoints::SetInstanceHealth.build(context)
171
+ when :set_instance_protection
172
+ Aws::AutoScaling::Endpoints::SetInstanceProtection.build(context)
173
+ when :start_instance_refresh
174
+ Aws::AutoScaling::Endpoints::StartInstanceRefresh.build(context)
175
+ when :suspend_processes
176
+ Aws::AutoScaling::Endpoints::SuspendProcesses.build(context)
177
+ when :terminate_instance_in_auto_scaling_group
178
+ Aws::AutoScaling::Endpoints::TerminateInstanceInAutoScalingGroup.build(context)
179
+ when :update_auto_scaling_group
180
+ Aws::AutoScaling::Endpoints::UpdateAutoScalingGroup.build(context)
181
+ end
182
+ end
183
+ end
184
+
185
+ def add_handlers(handlers, _config)
186
+ handlers.add(Handler, step: :build, priority: 75)
187
+ end
188
+ end
189
+ end
190
+ end
@@ -107,6 +107,11 @@ module Aws::AutoScaling
107
107
  # min: 1,
108
108
  # max: 1,
109
109
  # },
110
+ # network_bandwidth_gbps: {
111
+ # min: 1.0,
112
+ # max: 1.0,
113
+ # },
114
+ # allowed_instance_types: ["AllowedInstanceType"],
110
115
  # },
111
116
  # },
112
117
  # ],
@@ -190,11 +195,9 @@ module Aws::AutoScaling
190
195
  #
191
196
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
192
197
  # @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
193
- # An embedded object that specifies a mixed instances policy.
194
- #
195
- # For more information, see [Auto Scaling groups with multiple instance
196
- # types and purchase options][1] in the *Amazon EC2 Auto Scaling User
197
- # Guide*.
198
+ # The mixed instances policy. For more information, see [Auto Scaling
199
+ # groups with multiple instance types and purchase options][1] in the
200
+ # *Amazon EC2 Auto Scaling User Guide*.
198
201
  #
199
202
  #
200
203
  #
@@ -513,25 +516,9 @@ module Aws::AutoScaling
513
516
  #
514
517
  # [1]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html
515
518
  # @option options [String] :classic_link_vpc_id
516
- # *EC2-Classic retires on August 15, 2022. This property is not
517
- # supported after that date.*
518
- #
519
- # The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
520
- # to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
521
- # Guide for Linux Instances*.
522
- #
523
- #
524
- #
525
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
519
+ # Available for backward compatibility.
526
520
  # @option options [Array<String>] :classic_link_vpc_security_groups
527
- # *EC2-Classic retires on August 15, 2022. This property is not
528
- # supported after that date.*
529
- #
530
- # The IDs of one or more security groups for the specified
531
- # ClassicLink-enabled VPC.
532
- #
533
- # If you specify the `ClassicLinkVPCId` property, you must specify
534
- # `ClassicLinkVPCSecurityGroups`.
521
+ # Available for backward compatibility.
535
522
  # @option options [String] :user_data
536
523
  # The user data to make available to the launched EC2 instances. For
537
524
  # more information, see [Instance metadata and user data][1] (Linux) and