aws-sdk-lightsail 1.16.0 → 1.17.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.
@@ -86,6 +86,8 @@ module Aws::Lightsail
86
86
  DeleteInstanceSnapshotResult = Shapes::StructureShape.new(name: 'DeleteInstanceSnapshotResult')
87
87
  DeleteKeyPairRequest = Shapes::StructureShape.new(name: 'DeleteKeyPairRequest')
88
88
  DeleteKeyPairResult = Shapes::StructureShape.new(name: 'DeleteKeyPairResult')
89
+ DeleteKnownHostKeysRequest = Shapes::StructureShape.new(name: 'DeleteKnownHostKeysRequest')
90
+ DeleteKnownHostKeysResult = Shapes::StructureShape.new(name: 'DeleteKnownHostKeysResult')
89
91
  DeleteLoadBalancerRequest = Shapes::StructureShape.new(name: 'DeleteLoadBalancerRequest')
90
92
  DeleteLoadBalancerResult = Shapes::StructureShape.new(name: 'DeleteLoadBalancerResult')
91
93
  DeleteLoadBalancerTlsCertificateRequest = Shapes::StructureShape.new(name: 'DeleteLoadBalancerTlsCertificateRequest')
@@ -215,6 +217,8 @@ module Aws::Lightsail
215
217
  GetStaticIpResult = Shapes::StructureShape.new(name: 'GetStaticIpResult')
216
218
  GetStaticIpsRequest = Shapes::StructureShape.new(name: 'GetStaticIpsRequest')
217
219
  GetStaticIpsResult = Shapes::StructureShape.new(name: 'GetStaticIpsResult')
220
+ HostKeyAttributes = Shapes::StructureShape.new(name: 'HostKeyAttributes')
221
+ HostKeysList = Shapes::ListShape.new(name: 'HostKeysList')
218
222
  ImportKeyPairRequest = Shapes::StructureShape.new(name: 'ImportKeyPairRequest')
219
223
  ImportKeyPairResult = Shapes::StructureShape.new(name: 'ImportKeyPairResult')
220
224
  Instance = Shapes::StructureShape.new(name: 'Instance')
@@ -680,6 +684,12 @@ module Aws::Lightsail
680
684
  DeleteKeyPairResult.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "operation"))
681
685
  DeleteKeyPairResult.struct_class = Types::DeleteKeyPairResult
682
686
 
687
+ DeleteKnownHostKeysRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
688
+ DeleteKnownHostKeysRequest.struct_class = Types::DeleteKnownHostKeysRequest
689
+
690
+ DeleteKnownHostKeysResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
691
+ DeleteKnownHostKeysResult.struct_class = Types::DeleteKnownHostKeysResult
692
+
683
693
  DeleteLoadBalancerRequest.add_member(:load_balancer_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "loadBalancerName"))
684
694
  DeleteLoadBalancerRequest.struct_class = Types::DeleteLoadBalancerRequest
685
695
 
@@ -1165,6 +1175,17 @@ module Aws::Lightsail
1165
1175
  GetStaticIpsResult.add_member(:next_page_token, Shapes::ShapeRef.new(shape: string, location_name: "nextPageToken"))
1166
1176
  GetStaticIpsResult.struct_class = Types::GetStaticIpsResult
1167
1177
 
1178
+ HostKeyAttributes.add_member(:algorithm, Shapes::ShapeRef.new(shape: string, location_name: "algorithm"))
1179
+ HostKeyAttributes.add_member(:public_key, Shapes::ShapeRef.new(shape: string, location_name: "publicKey"))
1180
+ HostKeyAttributes.add_member(:witnessed_at, Shapes::ShapeRef.new(shape: IsoDate, location_name: "witnessedAt"))
1181
+ HostKeyAttributes.add_member(:fingerprint_sha1, Shapes::ShapeRef.new(shape: string, location_name: "fingerprintSHA1"))
1182
+ HostKeyAttributes.add_member(:fingerprint_sha256, Shapes::ShapeRef.new(shape: string, location_name: "fingerprintSHA256"))
1183
+ HostKeyAttributes.add_member(:not_valid_before, Shapes::ShapeRef.new(shape: IsoDate, location_name: "notValidBefore"))
1184
+ HostKeyAttributes.add_member(:not_valid_after, Shapes::ShapeRef.new(shape: IsoDate, location_name: "notValidAfter"))
1185
+ HostKeyAttributes.struct_class = Types::HostKeyAttributes
1186
+
1187
+ HostKeysList.member = Shapes::ShapeRef.new(shape: HostKeyAttributes)
1188
+
1168
1189
  ImportKeyPairRequest.add_member(:key_pair_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "keyPairName"))
1169
1190
  ImportKeyPairRequest.add_member(:public_key_base_64, Shapes::ShapeRef.new(shape: Base64, required: true, location_name: "publicKeyBase64"))
1170
1191
  ImportKeyPairRequest.struct_class = Types::ImportKeyPairRequest
@@ -1202,6 +1223,7 @@ module Aws::Lightsail
1202
1223
  InstanceAccessDetails.add_member(:protocol, Shapes::ShapeRef.new(shape: InstanceAccessProtocol, location_name: "protocol"))
1203
1224
  InstanceAccessDetails.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "instanceName"))
1204
1225
  InstanceAccessDetails.add_member(:username, Shapes::ShapeRef.new(shape: string, location_name: "username"))
1226
+ InstanceAccessDetails.add_member(:host_keys, Shapes::ShapeRef.new(shape: HostKeysList, location_name: "hostKeys"))
1205
1227
  InstanceAccessDetails.struct_class = Types::InstanceAccessDetails
1206
1228
 
1207
1229
  InstanceEntry.add_member(:source_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "sourceName"))
@@ -2147,6 +2169,21 @@ module Aws::Lightsail
2147
2169
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
2148
2170
  end)
2149
2171
 
2172
+ api.add_operation(:delete_known_host_keys, Seahorse::Model::Operation.new.tap do |o|
2173
+ o.name = "DeleteKnownHostKeys"
2174
+ o.http_method = "POST"
2175
+ o.http_request_uri = "/"
2176
+ o.input = Shapes::ShapeRef.new(shape: DeleteKnownHostKeysRequest)
2177
+ o.output = Shapes::ShapeRef.new(shape: DeleteKnownHostKeysResult)
2178
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
2179
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
2180
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2181
+ o.errors << Shapes::ShapeRef.new(shape: OperationFailureException)
2182
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2183
+ o.errors << Shapes::ShapeRef.new(shape: AccountSetupInProgressException)
2184
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
2185
+ end)
2186
+
2150
2187
  api.add_operation(:delete_load_balancer, Seahorse::Model::Operation.new.tap do |o|
2151
2188
  o.name = "DeleteLoadBalancer"
2152
2189
  o.http_method = "POST"
@@ -1980,6 +1980,36 @@ module Aws::Lightsail
1980
1980
  include Aws::Structure
1981
1981
  end
1982
1982
 
1983
+ # @note When making an API call, you may pass DeleteKnownHostKeysRequest
1984
+ # data as a hash:
1985
+ #
1986
+ # {
1987
+ # instance_name: "ResourceName", # required
1988
+ # }
1989
+ #
1990
+ # @!attribute [rw] instance_name
1991
+ # The name of the instance for which you want to reset the host key or
1992
+ # certificate.
1993
+ # @return [String]
1994
+ #
1995
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKnownHostKeysRequest AWS API Documentation
1996
+ #
1997
+ class DeleteKnownHostKeysRequest < Struct.new(
1998
+ :instance_name)
1999
+ include Aws::Structure
2000
+ end
2001
+
2002
+ # @!attribute [rw] operations
2003
+ # A list of objects describing the API operation.
2004
+ # @return [Array<Types::Operation>]
2005
+ #
2006
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKnownHostKeysResult AWS API Documentation
2007
+ #
2008
+ class DeleteKnownHostKeysResult < Struct.new(
2009
+ :operations)
2010
+ include Aws::Structure
2011
+ end
2012
+
1983
2013
  # @note When making an API call, you may pass DeleteLoadBalancerRequest
1984
2014
  # data as a hash:
1985
2015
  #
@@ -2633,7 +2663,25 @@ module Aws::Lightsail
2633
2663
  # @return [Boolean]
2634
2664
  #
2635
2665
  # @!attribute [rw] type
2636
- # The type of domain entry (e.g., `SOA` or `NS`).
2666
+ # The type of domain entry, such as address (A), canonical name
2667
+ # (CNAME), mail exchanger (MX), name server (NS), start of authority
2668
+ # (SOA), service locator (SRV), or text (TXT).
2669
+ #
2670
+ # The following domain entry types can be used:
2671
+ #
2672
+ # * `A`
2673
+ #
2674
+ # * `CNAME`
2675
+ #
2676
+ # * `MX`
2677
+ #
2678
+ # * `NS`
2679
+ #
2680
+ # * `SOA`
2681
+ #
2682
+ # * `SRV`
2683
+ #
2684
+ # * `TXT`
2637
2685
  # @return [String]
2638
2686
  #
2639
2687
  # @!attribute [rw] options
@@ -4734,6 +4782,76 @@ module Aws::Lightsail
4734
4782
  include Aws::Structure
4735
4783
  end
4736
4784
 
4785
+ # Describes the public SSH host keys or the RDP certificate.
4786
+ #
4787
+ # @!attribute [rw] algorithm
4788
+ # The SSH host key algorithm or the RDP certificate format.
4789
+ #
4790
+ # For SSH host keys, the algorithm may be `ssh-rsa`,
4791
+ # `ecdsa-sha2-nistp256`, `ssh-ed25519`, etc. For RDP certificates, the
4792
+ # algorithm is always `x509-cert`.
4793
+ # @return [String]
4794
+ #
4795
+ # @!attribute [rw] public_key
4796
+ # The public SSH host key or the RDP certificate.
4797
+ # @return [String]
4798
+ #
4799
+ # @!attribute [rw] witnessed_at
4800
+ # The time that the SSH host key or RDP certificate was recorded by
4801
+ # Lightsail.
4802
+ # @return [Time]
4803
+ #
4804
+ # @!attribute [rw] fingerprint_sha1
4805
+ # The SHA-1 fingerprint of the returned SSH host key or RDP
4806
+ # certificate.
4807
+ #
4808
+ # * Example of an SHA-1 SSH fingerprint:
4809
+ #
4810
+ # `SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0`
4811
+ #
4812
+ # * Example of an SHA-1 RDP fingerprint:
4813
+ #
4814
+ # `af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45`
4815
+ # @return [String]
4816
+ #
4817
+ # @!attribute [rw] fingerprint_sha256
4818
+ # The SHA-256 fingerprint of the returned SSH host key or RDP
4819
+ # certificate.
4820
+ #
4821
+ # * Example of an SHA-256 SSH fingerprint:
4822
+ #
4823
+ # `SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o`
4824
+ #
4825
+ # * Example of an SHA-256 RDP fingerprint:
4826
+ #
4827
+ # `03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68`
4828
+ # @return [String]
4829
+ #
4830
+ # @!attribute [rw] not_valid_before
4831
+ # The returned RDP certificate is valid after this point in time.
4832
+ #
4833
+ # This value is listed only for RDP certificates.
4834
+ # @return [Time]
4835
+ #
4836
+ # @!attribute [rw] not_valid_after
4837
+ # The returned RDP certificate is not valid after this point in time.
4838
+ #
4839
+ # This value is listed only for RDP certificates.
4840
+ # @return [Time]
4841
+ #
4842
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/HostKeyAttributes AWS API Documentation
4843
+ #
4844
+ class HostKeyAttributes < Struct.new(
4845
+ :algorithm,
4846
+ :public_key,
4847
+ :witnessed_at,
4848
+ :fingerprint_sha1,
4849
+ :fingerprint_sha256,
4850
+ :not_valid_before,
4851
+ :not_valid_after)
4852
+ include Aws::Structure
4853
+ end
4854
+
4737
4855
  # @note When making an API call, you may pass ImportKeyPairRequest
4738
4856
  # data as a hash:
4739
4857
  #
@@ -4949,6 +5067,10 @@ module Aws::Lightsail
4949
5067
  # instance.
4950
5068
  # @return [String]
4951
5069
  #
5070
+ # @!attribute [rw] host_keys
5071
+ # Describes the public SSH host keys or the RDP certificate.
5072
+ # @return [Array<Types::HostKeyAttributes>]
5073
+ #
4952
5074
  # @see http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceAccessDetails AWS API Documentation
4953
5075
  #
4954
5076
  class InstanceAccessDetails < Struct.new(
@@ -4960,7 +5082,8 @@ module Aws::Lightsail
4960
5082
  :private_key,
4961
5083
  :protocol,
4962
5084
  :instance_name,
4963
- :username)
5085
+ :username,
5086
+ :host_keys)
4964
5087
  include Aws::Structure
4965
5088
  end
4966
5089
 
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.16.0
4
+ version: 1.17.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: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core