aws-sdk-autoscaling 1.80.0 → 1.81.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/client.rb +20 -3
- data/lib/aws-sdk-autoscaling/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-autoscaling/endpoint_provider.rb +117 -0
- data/lib/aws-sdk-autoscaling/endpoints.rb +869 -0
- data/lib/aws-sdk-autoscaling/plugins/endpoints.rb +190 -0
- data/lib/aws-sdk-autoscaling.rb +5 -1
- metadata +8 -4
@@ -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
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -13,10 +13,14 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-autoscaling/types'
|
15
15
|
require_relative 'aws-sdk-autoscaling/client_api'
|
16
|
+
require_relative 'aws-sdk-autoscaling/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-autoscaling/client'
|
17
18
|
require_relative 'aws-sdk-autoscaling/errors'
|
18
19
|
require_relative 'aws-sdk-autoscaling/waiters'
|
19
20
|
require_relative 'aws-sdk-autoscaling/resource'
|
21
|
+
require_relative 'aws-sdk-autoscaling/endpoint_parameters'
|
22
|
+
require_relative 'aws-sdk-autoscaling/endpoint_provider'
|
23
|
+
require_relative 'aws-sdk-autoscaling/endpoints'
|
20
24
|
require_relative 'aws-sdk-autoscaling/activity'
|
21
25
|
require_relative 'aws-sdk-autoscaling/auto_scaling_group'
|
22
26
|
require_relative 'aws-sdk-autoscaling/instance'
|
@@ -59,6 +63,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
|
|
59
63
|
# @!group service
|
60
64
|
module Aws::AutoScaling
|
61
65
|
|
62
|
-
GEM_VERSION = '1.
|
66
|
+
GEM_VERSION = '1.81.0'
|
63
67
|
|
64
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-autoscaling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.81.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,12 +61,16 @@ files:
|
|
61
61
|
- lib/aws-sdk-autoscaling/client.rb
|
62
62
|
- lib/aws-sdk-autoscaling/client_api.rb
|
63
63
|
- lib/aws-sdk-autoscaling/customizations.rb
|
64
|
+
- lib/aws-sdk-autoscaling/endpoint_parameters.rb
|
65
|
+
- lib/aws-sdk-autoscaling/endpoint_provider.rb
|
66
|
+
- lib/aws-sdk-autoscaling/endpoints.rb
|
64
67
|
- lib/aws-sdk-autoscaling/errors.rb
|
65
68
|
- lib/aws-sdk-autoscaling/instance.rb
|
66
69
|
- lib/aws-sdk-autoscaling/launch_configuration.rb
|
67
70
|
- lib/aws-sdk-autoscaling/lifecycle_hook.rb
|
68
71
|
- lib/aws-sdk-autoscaling/load_balancer.rb
|
69
72
|
- lib/aws-sdk-autoscaling/notification_configuration.rb
|
73
|
+
- lib/aws-sdk-autoscaling/plugins/endpoints.rb
|
70
74
|
- lib/aws-sdk-autoscaling/resource.rb
|
71
75
|
- lib/aws-sdk-autoscaling/scaling_policy.rb
|
72
76
|
- lib/aws-sdk-autoscaling/scheduled_action.rb
|