aws-sdk-lightsail 1.68.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,378 @@
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::Lightsail
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Lightsail::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::Lightsail::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Lightsail::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 :allocate_static_ip
60
+ Aws::Lightsail::Endpoints::AllocateStaticIp.build(context)
61
+ when :attach_certificate_to_distribution
62
+ Aws::Lightsail::Endpoints::AttachCertificateToDistribution.build(context)
63
+ when :attach_disk
64
+ Aws::Lightsail::Endpoints::AttachDisk.build(context)
65
+ when :attach_instances_to_load_balancer
66
+ Aws::Lightsail::Endpoints::AttachInstancesToLoadBalancer.build(context)
67
+ when :attach_load_balancer_tls_certificate
68
+ Aws::Lightsail::Endpoints::AttachLoadBalancerTlsCertificate.build(context)
69
+ when :attach_static_ip
70
+ Aws::Lightsail::Endpoints::AttachStaticIp.build(context)
71
+ when :close_instance_public_ports
72
+ Aws::Lightsail::Endpoints::CloseInstancePublicPorts.build(context)
73
+ when :copy_snapshot
74
+ Aws::Lightsail::Endpoints::CopySnapshot.build(context)
75
+ when :create_bucket
76
+ Aws::Lightsail::Endpoints::CreateBucket.build(context)
77
+ when :create_bucket_access_key
78
+ Aws::Lightsail::Endpoints::CreateBucketAccessKey.build(context)
79
+ when :create_certificate
80
+ Aws::Lightsail::Endpoints::CreateCertificate.build(context)
81
+ when :create_cloud_formation_stack
82
+ Aws::Lightsail::Endpoints::CreateCloudFormationStack.build(context)
83
+ when :create_contact_method
84
+ Aws::Lightsail::Endpoints::CreateContactMethod.build(context)
85
+ when :create_container_service
86
+ Aws::Lightsail::Endpoints::CreateContainerService.build(context)
87
+ when :create_container_service_deployment
88
+ Aws::Lightsail::Endpoints::CreateContainerServiceDeployment.build(context)
89
+ when :create_container_service_registry_login
90
+ Aws::Lightsail::Endpoints::CreateContainerServiceRegistryLogin.build(context)
91
+ when :create_disk
92
+ Aws::Lightsail::Endpoints::CreateDisk.build(context)
93
+ when :create_disk_from_snapshot
94
+ Aws::Lightsail::Endpoints::CreateDiskFromSnapshot.build(context)
95
+ when :create_disk_snapshot
96
+ Aws::Lightsail::Endpoints::CreateDiskSnapshot.build(context)
97
+ when :create_distribution
98
+ Aws::Lightsail::Endpoints::CreateDistribution.build(context)
99
+ when :create_domain
100
+ Aws::Lightsail::Endpoints::CreateDomain.build(context)
101
+ when :create_domain_entry
102
+ Aws::Lightsail::Endpoints::CreateDomainEntry.build(context)
103
+ when :create_instance_snapshot
104
+ Aws::Lightsail::Endpoints::CreateInstanceSnapshot.build(context)
105
+ when :create_instances
106
+ Aws::Lightsail::Endpoints::CreateInstances.build(context)
107
+ when :create_instances_from_snapshot
108
+ Aws::Lightsail::Endpoints::CreateInstancesFromSnapshot.build(context)
109
+ when :create_key_pair
110
+ Aws::Lightsail::Endpoints::CreateKeyPair.build(context)
111
+ when :create_load_balancer
112
+ Aws::Lightsail::Endpoints::CreateLoadBalancer.build(context)
113
+ when :create_load_balancer_tls_certificate
114
+ Aws::Lightsail::Endpoints::CreateLoadBalancerTlsCertificate.build(context)
115
+ when :create_relational_database
116
+ Aws::Lightsail::Endpoints::CreateRelationalDatabase.build(context)
117
+ when :create_relational_database_from_snapshot
118
+ Aws::Lightsail::Endpoints::CreateRelationalDatabaseFromSnapshot.build(context)
119
+ when :create_relational_database_snapshot
120
+ Aws::Lightsail::Endpoints::CreateRelationalDatabaseSnapshot.build(context)
121
+ when :delete_alarm
122
+ Aws::Lightsail::Endpoints::DeleteAlarm.build(context)
123
+ when :delete_auto_snapshot
124
+ Aws::Lightsail::Endpoints::DeleteAutoSnapshot.build(context)
125
+ when :delete_bucket
126
+ Aws::Lightsail::Endpoints::DeleteBucket.build(context)
127
+ when :delete_bucket_access_key
128
+ Aws::Lightsail::Endpoints::DeleteBucketAccessKey.build(context)
129
+ when :delete_certificate
130
+ Aws::Lightsail::Endpoints::DeleteCertificate.build(context)
131
+ when :delete_contact_method
132
+ Aws::Lightsail::Endpoints::DeleteContactMethod.build(context)
133
+ when :delete_container_image
134
+ Aws::Lightsail::Endpoints::DeleteContainerImage.build(context)
135
+ when :delete_container_service
136
+ Aws::Lightsail::Endpoints::DeleteContainerService.build(context)
137
+ when :delete_disk
138
+ Aws::Lightsail::Endpoints::DeleteDisk.build(context)
139
+ when :delete_disk_snapshot
140
+ Aws::Lightsail::Endpoints::DeleteDiskSnapshot.build(context)
141
+ when :delete_distribution
142
+ Aws::Lightsail::Endpoints::DeleteDistribution.build(context)
143
+ when :delete_domain
144
+ Aws::Lightsail::Endpoints::DeleteDomain.build(context)
145
+ when :delete_domain_entry
146
+ Aws::Lightsail::Endpoints::DeleteDomainEntry.build(context)
147
+ when :delete_instance
148
+ Aws::Lightsail::Endpoints::DeleteInstance.build(context)
149
+ when :delete_instance_snapshot
150
+ Aws::Lightsail::Endpoints::DeleteInstanceSnapshot.build(context)
151
+ when :delete_key_pair
152
+ Aws::Lightsail::Endpoints::DeleteKeyPair.build(context)
153
+ when :delete_known_host_keys
154
+ Aws::Lightsail::Endpoints::DeleteKnownHostKeys.build(context)
155
+ when :delete_load_balancer
156
+ Aws::Lightsail::Endpoints::DeleteLoadBalancer.build(context)
157
+ when :delete_load_balancer_tls_certificate
158
+ Aws::Lightsail::Endpoints::DeleteLoadBalancerTlsCertificate.build(context)
159
+ when :delete_relational_database
160
+ Aws::Lightsail::Endpoints::DeleteRelationalDatabase.build(context)
161
+ when :delete_relational_database_snapshot
162
+ Aws::Lightsail::Endpoints::DeleteRelationalDatabaseSnapshot.build(context)
163
+ when :detach_certificate_from_distribution
164
+ Aws::Lightsail::Endpoints::DetachCertificateFromDistribution.build(context)
165
+ when :detach_disk
166
+ Aws::Lightsail::Endpoints::DetachDisk.build(context)
167
+ when :detach_instances_from_load_balancer
168
+ Aws::Lightsail::Endpoints::DetachInstancesFromLoadBalancer.build(context)
169
+ when :detach_static_ip
170
+ Aws::Lightsail::Endpoints::DetachStaticIp.build(context)
171
+ when :disable_add_on
172
+ Aws::Lightsail::Endpoints::DisableAddOn.build(context)
173
+ when :download_default_key_pair
174
+ Aws::Lightsail::Endpoints::DownloadDefaultKeyPair.build(context)
175
+ when :enable_add_on
176
+ Aws::Lightsail::Endpoints::EnableAddOn.build(context)
177
+ when :export_snapshot
178
+ Aws::Lightsail::Endpoints::ExportSnapshot.build(context)
179
+ when :get_active_names
180
+ Aws::Lightsail::Endpoints::GetActiveNames.build(context)
181
+ when :get_alarms
182
+ Aws::Lightsail::Endpoints::GetAlarms.build(context)
183
+ when :get_auto_snapshots
184
+ Aws::Lightsail::Endpoints::GetAutoSnapshots.build(context)
185
+ when :get_blueprints
186
+ Aws::Lightsail::Endpoints::GetBlueprints.build(context)
187
+ when :get_bucket_access_keys
188
+ Aws::Lightsail::Endpoints::GetBucketAccessKeys.build(context)
189
+ when :get_bucket_bundles
190
+ Aws::Lightsail::Endpoints::GetBucketBundles.build(context)
191
+ when :get_bucket_metric_data
192
+ Aws::Lightsail::Endpoints::GetBucketMetricData.build(context)
193
+ when :get_buckets
194
+ Aws::Lightsail::Endpoints::GetBuckets.build(context)
195
+ when :get_bundles
196
+ Aws::Lightsail::Endpoints::GetBundles.build(context)
197
+ when :get_certificates
198
+ Aws::Lightsail::Endpoints::GetCertificates.build(context)
199
+ when :get_cloud_formation_stack_records
200
+ Aws::Lightsail::Endpoints::GetCloudFormationStackRecords.build(context)
201
+ when :get_contact_methods
202
+ Aws::Lightsail::Endpoints::GetContactMethods.build(context)
203
+ when :get_container_api_metadata
204
+ Aws::Lightsail::Endpoints::GetContainerAPIMetadata.build(context)
205
+ when :get_container_images
206
+ Aws::Lightsail::Endpoints::GetContainerImages.build(context)
207
+ when :get_container_log
208
+ Aws::Lightsail::Endpoints::GetContainerLog.build(context)
209
+ when :get_container_service_deployments
210
+ Aws::Lightsail::Endpoints::GetContainerServiceDeployments.build(context)
211
+ when :get_container_service_metric_data
212
+ Aws::Lightsail::Endpoints::GetContainerServiceMetricData.build(context)
213
+ when :get_container_service_powers
214
+ Aws::Lightsail::Endpoints::GetContainerServicePowers.build(context)
215
+ when :get_container_services
216
+ Aws::Lightsail::Endpoints::GetContainerServices.build(context)
217
+ when :get_disk
218
+ Aws::Lightsail::Endpoints::GetDisk.build(context)
219
+ when :get_disk_snapshot
220
+ Aws::Lightsail::Endpoints::GetDiskSnapshot.build(context)
221
+ when :get_disk_snapshots
222
+ Aws::Lightsail::Endpoints::GetDiskSnapshots.build(context)
223
+ when :get_disks
224
+ Aws::Lightsail::Endpoints::GetDisks.build(context)
225
+ when :get_distribution_bundles
226
+ Aws::Lightsail::Endpoints::GetDistributionBundles.build(context)
227
+ when :get_distribution_latest_cache_reset
228
+ Aws::Lightsail::Endpoints::GetDistributionLatestCacheReset.build(context)
229
+ when :get_distribution_metric_data
230
+ Aws::Lightsail::Endpoints::GetDistributionMetricData.build(context)
231
+ when :get_distributions
232
+ Aws::Lightsail::Endpoints::GetDistributions.build(context)
233
+ when :get_domain
234
+ Aws::Lightsail::Endpoints::GetDomain.build(context)
235
+ when :get_domains
236
+ Aws::Lightsail::Endpoints::GetDomains.build(context)
237
+ when :get_export_snapshot_records
238
+ Aws::Lightsail::Endpoints::GetExportSnapshotRecords.build(context)
239
+ when :get_instance
240
+ Aws::Lightsail::Endpoints::GetInstance.build(context)
241
+ when :get_instance_access_details
242
+ Aws::Lightsail::Endpoints::GetInstanceAccessDetails.build(context)
243
+ when :get_instance_metric_data
244
+ Aws::Lightsail::Endpoints::GetInstanceMetricData.build(context)
245
+ when :get_instance_port_states
246
+ Aws::Lightsail::Endpoints::GetInstancePortStates.build(context)
247
+ when :get_instance_snapshot
248
+ Aws::Lightsail::Endpoints::GetInstanceSnapshot.build(context)
249
+ when :get_instance_snapshots
250
+ Aws::Lightsail::Endpoints::GetInstanceSnapshots.build(context)
251
+ when :get_instance_state
252
+ Aws::Lightsail::Endpoints::GetInstanceState.build(context)
253
+ when :get_instances
254
+ Aws::Lightsail::Endpoints::GetInstances.build(context)
255
+ when :get_key_pair
256
+ Aws::Lightsail::Endpoints::GetKeyPair.build(context)
257
+ when :get_key_pairs
258
+ Aws::Lightsail::Endpoints::GetKeyPairs.build(context)
259
+ when :get_load_balancer
260
+ Aws::Lightsail::Endpoints::GetLoadBalancer.build(context)
261
+ when :get_load_balancer_metric_data
262
+ Aws::Lightsail::Endpoints::GetLoadBalancerMetricData.build(context)
263
+ when :get_load_balancer_tls_certificates
264
+ Aws::Lightsail::Endpoints::GetLoadBalancerTlsCertificates.build(context)
265
+ when :get_load_balancer_tls_policies
266
+ Aws::Lightsail::Endpoints::GetLoadBalancerTlsPolicies.build(context)
267
+ when :get_load_balancers
268
+ Aws::Lightsail::Endpoints::GetLoadBalancers.build(context)
269
+ when :get_operation
270
+ Aws::Lightsail::Endpoints::GetOperation.build(context)
271
+ when :get_operations
272
+ Aws::Lightsail::Endpoints::GetOperations.build(context)
273
+ when :get_operations_for_resource
274
+ Aws::Lightsail::Endpoints::GetOperationsForResource.build(context)
275
+ when :get_regions
276
+ Aws::Lightsail::Endpoints::GetRegions.build(context)
277
+ when :get_relational_database
278
+ Aws::Lightsail::Endpoints::GetRelationalDatabase.build(context)
279
+ when :get_relational_database_blueprints
280
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseBlueprints.build(context)
281
+ when :get_relational_database_bundles
282
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseBundles.build(context)
283
+ when :get_relational_database_events
284
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseEvents.build(context)
285
+ when :get_relational_database_log_events
286
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseLogEvents.build(context)
287
+ when :get_relational_database_log_streams
288
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseLogStreams.build(context)
289
+ when :get_relational_database_master_user_password
290
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseMasterUserPassword.build(context)
291
+ when :get_relational_database_metric_data
292
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseMetricData.build(context)
293
+ when :get_relational_database_parameters
294
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseParameters.build(context)
295
+ when :get_relational_database_snapshot
296
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseSnapshot.build(context)
297
+ when :get_relational_database_snapshots
298
+ Aws::Lightsail::Endpoints::GetRelationalDatabaseSnapshots.build(context)
299
+ when :get_relational_databases
300
+ Aws::Lightsail::Endpoints::GetRelationalDatabases.build(context)
301
+ when :get_static_ip
302
+ Aws::Lightsail::Endpoints::GetStaticIp.build(context)
303
+ when :get_static_ips
304
+ Aws::Lightsail::Endpoints::GetStaticIps.build(context)
305
+ when :import_key_pair
306
+ Aws::Lightsail::Endpoints::ImportKeyPair.build(context)
307
+ when :is_vpc_peered
308
+ Aws::Lightsail::Endpoints::IsVpcPeered.build(context)
309
+ when :open_instance_public_ports
310
+ Aws::Lightsail::Endpoints::OpenInstancePublicPorts.build(context)
311
+ when :peer_vpc
312
+ Aws::Lightsail::Endpoints::PeerVpc.build(context)
313
+ when :put_alarm
314
+ Aws::Lightsail::Endpoints::PutAlarm.build(context)
315
+ when :put_instance_public_ports
316
+ Aws::Lightsail::Endpoints::PutInstancePublicPorts.build(context)
317
+ when :reboot_instance
318
+ Aws::Lightsail::Endpoints::RebootInstance.build(context)
319
+ when :reboot_relational_database
320
+ Aws::Lightsail::Endpoints::RebootRelationalDatabase.build(context)
321
+ when :register_container_image
322
+ Aws::Lightsail::Endpoints::RegisterContainerImage.build(context)
323
+ when :release_static_ip
324
+ Aws::Lightsail::Endpoints::ReleaseStaticIp.build(context)
325
+ when :reset_distribution_cache
326
+ Aws::Lightsail::Endpoints::ResetDistributionCache.build(context)
327
+ when :send_contact_method_verification
328
+ Aws::Lightsail::Endpoints::SendContactMethodVerification.build(context)
329
+ when :set_ip_address_type
330
+ Aws::Lightsail::Endpoints::SetIpAddressType.build(context)
331
+ when :set_resource_access_for_bucket
332
+ Aws::Lightsail::Endpoints::SetResourceAccessForBucket.build(context)
333
+ when :start_instance
334
+ Aws::Lightsail::Endpoints::StartInstance.build(context)
335
+ when :start_relational_database
336
+ Aws::Lightsail::Endpoints::StartRelationalDatabase.build(context)
337
+ when :stop_instance
338
+ Aws::Lightsail::Endpoints::StopInstance.build(context)
339
+ when :stop_relational_database
340
+ Aws::Lightsail::Endpoints::StopRelationalDatabase.build(context)
341
+ when :tag_resource
342
+ Aws::Lightsail::Endpoints::TagResource.build(context)
343
+ when :test_alarm
344
+ Aws::Lightsail::Endpoints::TestAlarm.build(context)
345
+ when :unpeer_vpc
346
+ Aws::Lightsail::Endpoints::UnpeerVpc.build(context)
347
+ when :untag_resource
348
+ Aws::Lightsail::Endpoints::UntagResource.build(context)
349
+ when :update_bucket
350
+ Aws::Lightsail::Endpoints::UpdateBucket.build(context)
351
+ when :update_bucket_bundle
352
+ Aws::Lightsail::Endpoints::UpdateBucketBundle.build(context)
353
+ when :update_container_service
354
+ Aws::Lightsail::Endpoints::UpdateContainerService.build(context)
355
+ when :update_distribution
356
+ Aws::Lightsail::Endpoints::UpdateDistribution.build(context)
357
+ when :update_distribution_bundle
358
+ Aws::Lightsail::Endpoints::UpdateDistributionBundle.build(context)
359
+ when :update_domain_entry
360
+ Aws::Lightsail::Endpoints::UpdateDomainEntry.build(context)
361
+ when :update_instance_metadata_options
362
+ Aws::Lightsail::Endpoints::UpdateInstanceMetadataOptions.build(context)
363
+ when :update_load_balancer_attribute
364
+ Aws::Lightsail::Endpoints::UpdateLoadBalancerAttribute.build(context)
365
+ when :update_relational_database
366
+ Aws::Lightsail::Endpoints::UpdateRelationalDatabase.build(context)
367
+ when :update_relational_database_parameters
368
+ Aws::Lightsail::Endpoints::UpdateRelationalDatabaseParameters.build(context)
369
+ end
370
+ end
371
+ end
372
+
373
+ def add_handlers(handlers, _config)
374
+ handlers.add(Handler, step: :build, priority: 75)
375
+ end
376
+ end
377
+ end
378
+ end
@@ -8774,7 +8774,7 @@ module Aws::Lightsail
8774
8774
  #
8775
8775
  # {
8776
8776
  # instance_name: "ResourceName", # required
8777
- # metric_name: "CPUUtilization", # required, accepts CPUUtilization, NetworkIn, NetworkOut, StatusCheckFailed, StatusCheckFailed_Instance, StatusCheckFailed_System, BurstCapacityTime, BurstCapacityPercentage
8777
+ # metric_name: "CPUUtilization", # required, accepts CPUUtilization, NetworkIn, NetworkOut, StatusCheckFailed, StatusCheckFailed_Instance, StatusCheckFailed_System, BurstCapacityTime, BurstCapacityPercentage, MetadataNoToken
8778
8778
  # period: 1, # required
8779
8779
  # start_time: Time.now, # required
8780
8780
  # end_time: Time.now, # required
@@ -8887,6 +8887,18 @@ module Aws::Lightsail
8887
8887
  #
8888
8888
  # `Unit`\: The published unit is `Count`.
8889
8889
  #
8890
+ # * <b> <code>MetadataNoToken</code> </b> - Reports the number of
8891
+ # times that the instance metadata service was successfully accessed
8892
+ # without a token. This metric determines if there are any processes
8893
+ # accessing instance metadata by using Instance Metadata Service
8894
+ # Version 1, which doesn't use a token. If all requests use
8895
+ # token-backed sessions, such as Instance Metadata Service Version
8896
+ # 2, then the value is 0.
8897
+ #
8898
+ # `Statistics`\: The most useful statistic is `Sum`.
8899
+ #
8900
+ # `Unit`\: The published unit is `Count`.
8901
+ #
8890
8902
  #
8891
8903
  #
8892
8904
  # [1]: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity
@@ -10991,6 +11003,10 @@ module Aws::Lightsail
10991
11003
  # `LightsailDefaultKeyPair`).
10992
11004
  # @return [String]
10993
11005
  #
11006
+ # @!attribute [rw] metadata_options
11007
+ # The metadata options for the Amazon Lightsail instance.
11008
+ # @return [Types::InstanceMetadataOptions]
11009
+ #
10994
11010
  # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Instance AWS API Documentation
10995
11011
  #
10996
11012
  class Instance < Struct.new(
@@ -11014,7 +11030,8 @@ module Aws::Lightsail
11014
11030
  :networking,
11015
11031
  :state,
11016
11032
  :username,
11017
- :ssh_key_name)
11033
+ :ssh_key_name,
11034
+ :metadata_options)
11018
11035
  SENSITIVE = []
11019
11036
  include Aws::Structure
11020
11037
  end
@@ -11301,6 +11318,79 @@ module Aws::Lightsail
11301
11318
  include Aws::Structure
11302
11319
  end
11303
11320
 
11321
+ # The metadata options for the instance.
11322
+ #
11323
+ # @!attribute [rw] state
11324
+ # The state of the metadata option changes.
11325
+ #
11326
+ # The following states are possible:
11327
+ #
11328
+ # * `pending` - The metadata options are being updated. The instance
11329
+ # is not yet ready to process metadata traffic with the new
11330
+ # selection.
11331
+ #
11332
+ # * `applied` - The metadata options have been successfully applied to
11333
+ # the instance.
11334
+ # @return [String]
11335
+ #
11336
+ # @!attribute [rw] http_tokens
11337
+ # The state of token usage for your instance metadata requests.
11338
+ #
11339
+ # If the state is `optional`, you can choose whether to retrieve
11340
+ # instance metadata with a signed token header on your request. If you
11341
+ # retrieve the IAM role credentials without a token, the version 1.0
11342
+ # role credentials are returned. If you retrieve the IAM role
11343
+ # credentials by using a valid signed token, the version 2.0 role
11344
+ # credentials are returned.
11345
+ #
11346
+ # If the state is `required`, you must send a signed token header with
11347
+ # all instance metadata retrieval requests. In this state, retrieving
11348
+ # the IAM role credential always returns the version 2.0 credentials.
11349
+ # The version 1.0 credentials are not available.
11350
+ #
11351
+ # Not all instance blueprints in Lightsail support version 2.0
11352
+ # credentials. Use the `MetadataNoToken` instance metric to track the
11353
+ # number of calls to the instance metadata service that are using
11354
+ # version 1.0 credentials. For more information, see [Viewing instance
11355
+ # metrics in Amazon Lightsail][1] in the *Amazon Lightsail Developer
11356
+ # Guide*.
11357
+ #
11358
+ #
11359
+ #
11360
+ # [1]: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-health-metrics
11361
+ # @return [String]
11362
+ #
11363
+ # @!attribute [rw] http_endpoint
11364
+ # Indicates whether the HTTP metadata endpoint on your instances is
11365
+ # enabled or disabled.
11366
+ #
11367
+ # If the value is `disabled`, you cannot access your instance
11368
+ # metadata.
11369
+ # @return [String]
11370
+ #
11371
+ # @!attribute [rw] http_put_response_hop_limit
11372
+ # The desired HTTP PUT response hop limit for instance metadata
11373
+ # requests. A larger number means that the instance metadata requests
11374
+ # can travel farther.
11375
+ # @return [Integer]
11376
+ #
11377
+ # @!attribute [rw] http_protocol_ipv_6
11378
+ # Indicates whether the IPv6 endpoint for the instance metadata
11379
+ # service is enabled or disabled.
11380
+ # @return [String]
11381
+ #
11382
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceMetadataOptions AWS API Documentation
11383
+ #
11384
+ class InstanceMetadataOptions < Struct.new(
11385
+ :state,
11386
+ :http_tokens,
11387
+ :http_endpoint,
11388
+ :http_put_response_hop_limit,
11389
+ :http_protocol_ipv_6)
11390
+ SENSITIVE = []
11391
+ include Aws::Structure
11392
+ end
11393
+
11304
11394
  # Describes monthly data transfer rates and port information for an
11305
11395
  # instance.
11306
11396
  #
@@ -15494,6 +15584,89 @@ module Aws::Lightsail
15494
15584
  include Aws::Structure
15495
15585
  end
15496
15586
 
15587
+ # @note When making an API call, you may pass UpdateInstanceMetadataOptionsRequest
15588
+ # data as a hash:
15589
+ #
15590
+ # {
15591
+ # instance_name: "ResourceName", # required
15592
+ # http_tokens: "optional", # accepts optional, required
15593
+ # http_endpoint: "disabled", # accepts disabled, enabled
15594
+ # http_put_response_hop_limit: 1,
15595
+ # http_protocol_ipv_6: "disabled", # accepts disabled, enabled
15596
+ # }
15597
+ #
15598
+ # @!attribute [rw] instance_name
15599
+ # The name of the instance for which to update metadata parameters.
15600
+ # @return [String]
15601
+ #
15602
+ # @!attribute [rw] http_tokens
15603
+ # The state of token usage for your instance metadata requests. If the
15604
+ # parameter is not specified in the request, the default state is
15605
+ # `optional`.
15606
+ #
15607
+ # If the state is `optional`, you can choose whether to retrieve
15608
+ # instance metadata with a signed token header on your request. If you
15609
+ # retrieve the IAM role credentials without a token, the version 1.0
15610
+ # role credentials are returned. If you retrieve the IAM role
15611
+ # credentials by using a valid signed token, the version 2.0 role
15612
+ # credentials are returned.
15613
+ #
15614
+ # If the state is `required`, you must send a signed token header with
15615
+ # all instance metadata retrieval requests. In this state, retrieving
15616
+ # the IAM role credential always returns the version 2.0 credentials.
15617
+ # The version 1.0 credentials are not available.
15618
+ # @return [String]
15619
+ #
15620
+ # @!attribute [rw] http_endpoint
15621
+ # Enables or disables the HTTP metadata endpoint on your instances. If
15622
+ # this parameter is not specified, the existing state is maintained.
15623
+ #
15624
+ # If you specify a value of `disabled`, you cannot access your
15625
+ # instance metadata.
15626
+ # @return [String]
15627
+ #
15628
+ # @!attribute [rw] http_put_response_hop_limit
15629
+ # The desired HTTP PUT response hop limit for instance metadata
15630
+ # requests. A larger number means that the instance metadata requests
15631
+ # can travel farther. If no parameter is specified, the existing state
15632
+ # is maintained.
15633
+ # @return [Integer]
15634
+ #
15635
+ # @!attribute [rw] http_protocol_ipv_6
15636
+ # Enables or disables the IPv6 endpoint for the instance metadata
15637
+ # service. This setting applies only when the HTTP metadata endpoint
15638
+ # is enabled.
15639
+ #
15640
+ # <note markdown="1"> This parameter is available only for instances in the Europe
15641
+ # (Stockholm) Amazon Web Services Region (`eu-north-1`).
15642
+ #
15643
+ # </note>
15644
+ # @return [String]
15645
+ #
15646
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateInstanceMetadataOptionsRequest AWS API Documentation
15647
+ #
15648
+ class UpdateInstanceMetadataOptionsRequest < Struct.new(
15649
+ :instance_name,
15650
+ :http_tokens,
15651
+ :http_endpoint,
15652
+ :http_put_response_hop_limit,
15653
+ :http_protocol_ipv_6)
15654
+ SENSITIVE = []
15655
+ include Aws::Structure
15656
+ end
15657
+
15658
+ # @!attribute [rw] operation
15659
+ # Describes the API operation.
15660
+ # @return [Types::Operation]
15661
+ #
15662
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateInstanceMetadataOptionsResult AWS API Documentation
15663
+ #
15664
+ class UpdateInstanceMetadataOptionsResult < Struct.new(
15665
+ :operation)
15666
+ SENSITIVE = []
15667
+ include Aws::Structure
15668
+ end
15669
+
15497
15670
  # @note When making an API call, you may pass UpdateLoadBalancerAttributeRequest
15498
15671
  # data as a hash:
15499
15672
  #
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-lightsail/types'
15
15
  require_relative 'aws-sdk-lightsail/client_api'
16
+ require_relative 'aws-sdk-lightsail/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-lightsail/client'
17
18
  require_relative 'aws-sdk-lightsail/errors'
18
19
  require_relative 'aws-sdk-lightsail/resource'
20
+ require_relative 'aws-sdk-lightsail/endpoint_parameters'
21
+ require_relative 'aws-sdk-lightsail/endpoint_provider'
22
+ require_relative 'aws-sdk-lightsail/endpoints'
19
23
  require_relative 'aws-sdk-lightsail/customizations'
20
24
 
21
25
  # This module provides support for Amazon Lightsail. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-lightsail/customizations'
48
52
  # @!group service
49
53
  module Aws::Lightsail
50
54
 
51
- GEM_VERSION = '1.68.0'
55
+ GEM_VERSION = '1.70.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lightsail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.68.0
4
+ version: 1.70.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-05-26 00:00:00.000000000 Z
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.127.0
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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-lightsail/client.rb
60
60
  - lib/aws-sdk-lightsail/client_api.rb
61
61
  - lib/aws-sdk-lightsail/customizations.rb
62
+ - lib/aws-sdk-lightsail/endpoint_parameters.rb
63
+ - lib/aws-sdk-lightsail/endpoint_provider.rb
64
+ - lib/aws-sdk-lightsail/endpoints.rb
62
65
  - lib/aws-sdk-lightsail/errors.rb
66
+ - lib/aws-sdk-lightsail/plugins/endpoints.rb
63
67
  - lib/aws-sdk-lightsail/resource.rb
64
68
  - lib/aws-sdk-lightsail/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby