aws-sdk-lightsail 1.68.0 → 1.69.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -401,6 +401,9 @@ module Aws::Lightsail
401
401
  HeaderObject = Shapes::StructureShape.new(name: 'HeaderObject')
402
402
  HostKeyAttributes = Shapes::StructureShape.new(name: 'HostKeyAttributes')
403
403
  HostKeysList = Shapes::ListShape.new(name: 'HostKeysList')
404
+ HttpEndpoint = Shapes::StringShape.new(name: 'HttpEndpoint')
405
+ HttpProtocolIpv6 = Shapes::StringShape.new(name: 'HttpProtocolIpv6')
406
+ HttpTokens = Shapes::StringShape.new(name: 'HttpTokens')
404
407
  IAMAccessKeyId = Shapes::StringShape.new(name: 'IAMAccessKeyId')
405
408
  ImportKeyPairRequest = Shapes::StructureShape.new(name: 'ImportKeyPairRequest')
406
409
  ImportKeyPairResult = Shapes::StructureShape.new(name: 'ImportKeyPairResult')
@@ -418,6 +421,8 @@ module Aws::Lightsail
418
421
  InstanceHealthSummary = Shapes::StructureShape.new(name: 'InstanceHealthSummary')
419
422
  InstanceHealthSummaryList = Shapes::ListShape.new(name: 'InstanceHealthSummaryList')
420
423
  InstanceList = Shapes::ListShape.new(name: 'InstanceList')
424
+ InstanceMetadataOptions = Shapes::StructureShape.new(name: 'InstanceMetadataOptions')
425
+ InstanceMetadataState = Shapes::StringShape.new(name: 'InstanceMetadataState')
421
426
  InstanceMetricName = Shapes::StringShape.new(name: 'InstanceMetricName')
422
427
  InstanceNetworking = Shapes::StructureShape.new(name: 'InstanceNetworking')
423
428
  InstancePlatform = Shapes::StringShape.new(name: 'InstancePlatform')
@@ -608,6 +613,8 @@ module Aws::Lightsail
608
613
  UpdateDistributionResult = Shapes::StructureShape.new(name: 'UpdateDistributionResult')
609
614
  UpdateDomainEntryRequest = Shapes::StructureShape.new(name: 'UpdateDomainEntryRequest')
610
615
  UpdateDomainEntryResult = Shapes::StructureShape.new(name: 'UpdateDomainEntryResult')
616
+ UpdateInstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'UpdateInstanceMetadataOptionsRequest')
617
+ UpdateInstanceMetadataOptionsResult = Shapes::StructureShape.new(name: 'UpdateInstanceMetadataOptionsResult')
611
618
  UpdateLoadBalancerAttributeRequest = Shapes::StructureShape.new(name: 'UpdateLoadBalancerAttributeRequest')
612
619
  UpdateLoadBalancerAttributeResult = Shapes::StructureShape.new(name: 'UpdateLoadBalancerAttributeResult')
613
620
  UpdateRelationalDatabaseParametersRequest = Shapes::StructureShape.new(name: 'UpdateRelationalDatabaseParametersRequest')
@@ -2143,6 +2150,7 @@ module Aws::Lightsail
2143
2150
  Instance.add_member(:state, Shapes::ShapeRef.new(shape: InstanceState, location_name: "state"))
2144
2151
  Instance.add_member(:username, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "username"))
2145
2152
  Instance.add_member(:ssh_key_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "sshKeyName"))
2153
+ Instance.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptions, location_name: "metadataOptions"))
2146
2154
  Instance.struct_class = Types::Instance
2147
2155
 
2148
2156
  InstanceAccessDetails.add_member(:cert_key, Shapes::ShapeRef.new(shape: string, location_name: "certKey"))
@@ -2180,6 +2188,13 @@ module Aws::Lightsail
2180
2188
 
2181
2189
  InstanceList.member = Shapes::ShapeRef.new(shape: Instance)
2182
2190
 
2191
+ InstanceMetadataOptions.add_member(:state, Shapes::ShapeRef.new(shape: InstanceMetadataState, location_name: "state"))
2192
+ InstanceMetadataOptions.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokens, location_name: "httpTokens"))
2193
+ InstanceMetadataOptions.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: HttpEndpoint, location_name: "httpEndpoint"))
2194
+ InstanceMetadataOptions.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: integer, location_name: "httpPutResponseHopLimit"))
2195
+ InstanceMetadataOptions.add_member(:http_protocol_ipv_6, Shapes::ShapeRef.new(shape: HttpProtocolIpv6, location_name: "httpProtocolIpv6"))
2196
+ InstanceMetadataOptions.struct_class = Types::InstanceMetadataOptions
2197
+
2183
2198
  InstanceNetworking.add_member(:monthly_transfer, Shapes::ShapeRef.new(shape: MonthlyTransfer, location_name: "monthlyTransfer"))
2184
2199
  InstanceNetworking.add_member(:ports, Shapes::ShapeRef.new(shape: InstancePortInfoList, location_name: "ports"))
2185
2200
  InstanceNetworking.struct_class = Types::InstanceNetworking
@@ -2850,6 +2865,16 @@ module Aws::Lightsail
2850
2865
  UpdateDomainEntryResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2851
2866
  UpdateDomainEntryResult.struct_class = Types::UpdateDomainEntryResult
2852
2867
 
2868
+ UpdateInstanceMetadataOptionsRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
2869
+ UpdateInstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokens, location_name: "httpTokens"))
2870
+ UpdateInstanceMetadataOptionsRequest.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: HttpEndpoint, location_name: "httpEndpoint"))
2871
+ UpdateInstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: integer, location_name: "httpPutResponseHopLimit"))
2872
+ UpdateInstanceMetadataOptionsRequest.add_member(:http_protocol_ipv_6, Shapes::ShapeRef.new(shape: HttpProtocolIpv6, location_name: "httpProtocolIpv6"))
2873
+ UpdateInstanceMetadataOptionsRequest.struct_class = Types::UpdateInstanceMetadataOptionsRequest
2874
+
2875
+ UpdateInstanceMetadataOptionsResult.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "operation"))
2876
+ UpdateInstanceMetadataOptionsResult.struct_class = Types::UpdateInstanceMetadataOptionsResult
2877
+
2853
2878
  UpdateLoadBalancerAttributeRequest.add_member(:load_balancer_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "loadBalancerName"))
2854
2879
  UpdateLoadBalancerAttributeRequest.add_member(:attribute_name, Shapes::ShapeRef.new(shape: LoadBalancerAttributeName, required: true, location_name: "attributeName"))
2855
2880
  UpdateLoadBalancerAttributeRequest.add_member(:attribute_value, Shapes::ShapeRef.new(shape: StringMax256, required: true, location_name: "attributeValue"))
@@ -5078,6 +5103,21 @@ module Aws::Lightsail
5078
5103
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5079
5104
  end)
5080
5105
 
5106
+ api.add_operation(:update_instance_metadata_options, Seahorse::Model::Operation.new.tap do |o|
5107
+ o.name = "UpdateInstanceMetadataOptions"
5108
+ o.http_method = "POST"
5109
+ o.http_request_uri = "/"
5110
+ o.input = Shapes::ShapeRef.new(shape: UpdateInstanceMetadataOptionsRequest)
5111
+ o.output = Shapes::ShapeRef.new(shape: UpdateInstanceMetadataOptionsResult)
5112
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
5113
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
5114
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
5115
+ o.errors << Shapes::ShapeRef.new(shape: OperationFailureException)
5116
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
5117
+ o.errors << Shapes::ShapeRef.new(shape: AccountSetupInProgressException)
5118
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5119
+ end)
5120
+
5081
5121
  api.add_operation(:update_load_balancer_attribute, Seahorse::Model::Operation.new.tap do |o|
5082
5122
  o.name = "UpdateLoadBalancerAttribute"
5083
5123
  o.http_method = "POST"
@@ -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
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lightsail/customizations'
48
48
  # @!group service
49
49
  module Aws::Lightsail
50
50
 
51
- GEM_VERSION = '1.68.0'
51
+ GEM_VERSION = '1.69.0'
52
52
 
53
53
  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.69.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-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core