aws-sdk-lightsail 1.84.0 → 1.86.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,6 +81,7 @@ module Aws::Lightsail
81
81
  Certificate = Shapes::StructureShape.new(name: 'Certificate')
82
82
  CertificateDomainValidationStatus = Shapes::StringShape.new(name: 'CertificateDomainValidationStatus')
83
83
  CertificateName = Shapes::StringShape.new(name: 'CertificateName')
84
+ CertificateProvider = Shapes::StringShape.new(name: 'CertificateProvider')
84
85
  CertificateStatus = Shapes::StringShape.new(name: 'CertificateStatus')
85
86
  CertificateStatusList = Shapes::ListShape.new(name: 'CertificateStatusList')
86
87
  CertificateSummary = Shapes::StructureShape.new(name: 'CertificateSummary')
@@ -271,6 +272,7 @@ module Aws::Lightsail
271
272
  DownloadDefaultKeyPairRequest = Shapes::StructureShape.new(name: 'DownloadDefaultKeyPairRequest')
272
273
  DownloadDefaultKeyPairResult = Shapes::StructureShape.new(name: 'DownloadDefaultKeyPairResult')
273
274
  EligibleToRenew = Shapes::StringShape.new(name: 'EligibleToRenew')
275
+ EmailAddress = Shapes::StringShape.new(name: 'EmailAddress')
274
276
  EnableAddOnRequest = Shapes::StructureShape.new(name: 'EnableAddOnRequest')
275
277
  EnableAddOnResult = Shapes::StructureShape.new(name: 'EnableAddOnResult')
276
278
  EndpointRequest = Shapes::StructureShape.new(name: 'EndpointRequest')
@@ -407,6 +409,8 @@ module Aws::Lightsail
407
409
  GetRelationalDatabaseSnapshotsResult = Shapes::StructureShape.new(name: 'GetRelationalDatabaseSnapshotsResult')
408
410
  GetRelationalDatabasesRequest = Shapes::StructureShape.new(name: 'GetRelationalDatabasesRequest')
409
411
  GetRelationalDatabasesResult = Shapes::StructureShape.new(name: 'GetRelationalDatabasesResult')
412
+ GetSetupHistoryRequest = Shapes::StructureShape.new(name: 'GetSetupHistoryRequest')
413
+ GetSetupHistoryResult = Shapes::StructureShape.new(name: 'GetSetupHistoryResult')
410
414
  GetStaticIpRequest = Shapes::StructureShape.new(name: 'GetStaticIpRequest')
411
415
  GetStaticIpResult = Shapes::StructureShape.new(name: 'GetStaticIpResult')
412
416
  GetStaticIpsRequest = Shapes::StructureShape.new(name: 'GetStaticIpsRequest')
@@ -599,6 +603,17 @@ module Aws::Lightsail
599
603
  SetIpAddressTypeResult = Shapes::StructureShape.new(name: 'SetIpAddressTypeResult')
600
604
  SetResourceAccessForBucketRequest = Shapes::StructureShape.new(name: 'SetResourceAccessForBucketRequest')
601
605
  SetResourceAccessForBucketResult = Shapes::StructureShape.new(name: 'SetResourceAccessForBucketResult')
606
+ SetupDomainName = Shapes::StringShape.new(name: 'SetupDomainName')
607
+ SetupDomainNameList = Shapes::ListShape.new(name: 'SetupDomainNameList')
608
+ SetupExecutionDetails = Shapes::StructureShape.new(name: 'SetupExecutionDetails')
609
+ SetupExecutionDetailsList = Shapes::ListShape.new(name: 'SetupExecutionDetailsList')
610
+ SetupHistory = Shapes::StructureShape.new(name: 'SetupHistory')
611
+ SetupHistoryPageToken = Shapes::StringShape.new(name: 'SetupHistoryPageToken')
612
+ SetupHistoryResource = Shapes::StructureShape.new(name: 'SetupHistoryResource')
613
+ SetupInstanceHttpsRequest = Shapes::StructureShape.new(name: 'SetupInstanceHttpsRequest')
614
+ SetupInstanceHttpsResult = Shapes::StructureShape.new(name: 'SetupInstanceHttpsResult')
615
+ SetupRequest = Shapes::StructureShape.new(name: 'SetupRequest')
616
+ SetupStatus = Shapes::StringShape.new(name: 'SetupStatus')
602
617
  StartGUISessionRequest = Shapes::StructureShape.new(name: 'StartGUISessionRequest')
603
618
  StartGUISessionResult = Shapes::StructureShape.new(name: 'StartGUISessionResult')
604
619
  StartInstanceRequest = Shapes::StructureShape.new(name: 'StartInstanceRequest')
@@ -661,6 +676,7 @@ module Aws::Lightsail
661
676
  float = Shapes::FloatShape.new(name: 'float')
662
677
  integer = Shapes::IntegerShape.new(name: 'integer')
663
678
  long = Shapes::IntegerShape.new(name: 'long')
679
+ setupHistoryList = Shapes::ListShape.new(name: 'setupHistoryList')
664
680
  string = Shapes::StringShape.new(name: 'string')
665
681
  timestamp = Shapes::TimestampShape.new(name: 'timestamp')
666
682
 
@@ -882,6 +898,7 @@ module Aws::Lightsail
882
898
  Bundle.add_member(:transfer_per_month_in_gb, Shapes::ShapeRef.new(shape: integer, location_name: "transferPerMonthInGb"))
883
899
  Bundle.add_member(:supported_platforms, Shapes::ShapeRef.new(shape: InstancePlatformList, location_name: "supportedPlatforms"))
884
900
  Bundle.add_member(:supported_app_categories, Shapes::ShapeRef.new(shape: AppCategoryList, location_name: "supportedAppCategories"))
901
+ Bundle.add_member(:public_ipv_4_address_count, Shapes::ShapeRef.new(shape: integer, location_name: "publicIpv4AddressCount"))
885
902
  Bundle.struct_class = Types::Bundle
886
903
 
887
904
  BundleList.member = Shapes::ShapeRef.new(shape: Bundle)
@@ -2175,6 +2192,14 @@ module Aws::Lightsail
2175
2192
  GetRelationalDatabasesResult.add_member(:next_page_token, Shapes::ShapeRef.new(shape: string, location_name: "nextPageToken"))
2176
2193
  GetRelationalDatabasesResult.struct_class = Types::GetRelationalDatabasesResult
2177
2194
 
2195
+ GetSetupHistoryRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
2196
+ GetSetupHistoryRequest.add_member(:page_token, Shapes::ShapeRef.new(shape: SetupHistoryPageToken, location_name: "pageToken"))
2197
+ GetSetupHistoryRequest.struct_class = Types::GetSetupHistoryRequest
2198
+
2199
+ GetSetupHistoryResult.add_member(:setup_history, Shapes::ShapeRef.new(shape: setupHistoryList, location_name: "setupHistory"))
2200
+ GetSetupHistoryResult.add_member(:next_page_token, Shapes::ShapeRef.new(shape: SetupHistoryPageToken, location_name: "nextPageToken"))
2201
+ GetSetupHistoryResult.struct_class = Types::GetSetupHistoryResult
2202
+
2178
2203
  GetStaticIpRequest.add_member(:static_ip_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "staticIpName"))
2179
2204
  GetStaticIpRequest.struct_class = Types::GetStaticIpRequest
2180
2205
 
@@ -2244,6 +2269,7 @@ module Aws::Lightsail
2244
2269
  InstanceAccessDetails.add_member(:cert_key, Shapes::ShapeRef.new(shape: string, location_name: "certKey"))
2245
2270
  InstanceAccessDetails.add_member(:expires_at, Shapes::ShapeRef.new(shape: IsoDate, location_name: "expiresAt"))
2246
2271
  InstanceAccessDetails.add_member(:ip_address, Shapes::ShapeRef.new(shape: IpAddress, location_name: "ipAddress"))
2272
+ InstanceAccessDetails.add_member(:ipv6_addresses, Shapes::ShapeRef.new(shape: Ipv6AddressList, location_name: "ipv6Addresses"))
2247
2273
  InstanceAccessDetails.add_member(:password, Shapes::ShapeRef.new(shape: string, location_name: "password"))
2248
2274
  InstanceAccessDetails.add_member(:password_data, Shapes::ShapeRef.new(shape: PasswordData, location_name: "passwordData"))
2249
2275
  InstanceAccessDetails.add_member(:private_key, Shapes::ShapeRef.new(shape: string, location_name: "privateKey"))
@@ -2847,6 +2873,47 @@ module Aws::Lightsail
2847
2873
  SetResourceAccessForBucketResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2848
2874
  SetResourceAccessForBucketResult.struct_class = Types::SetResourceAccessForBucketResult
2849
2875
 
2876
+ SetupDomainNameList.member = Shapes::ShapeRef.new(shape: SetupDomainName)
2877
+
2878
+ SetupExecutionDetails.add_member(:command, Shapes::ShapeRef.new(shape: string, location_name: "command"))
2879
+ SetupExecutionDetails.add_member(:date_time, Shapes::ShapeRef.new(shape: IsoDate, location_name: "dateTime"))
2880
+ SetupExecutionDetails.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "name"))
2881
+ SetupExecutionDetails.add_member(:status, Shapes::ShapeRef.new(shape: SetupStatus, location_name: "status"))
2882
+ SetupExecutionDetails.add_member(:standard_error, Shapes::ShapeRef.new(shape: string, location_name: "standardError"))
2883
+ SetupExecutionDetails.add_member(:standard_output, Shapes::ShapeRef.new(shape: string, location_name: "standardOutput"))
2884
+ SetupExecutionDetails.add_member(:version, Shapes::ShapeRef.new(shape: string, location_name: "version"))
2885
+ SetupExecutionDetails.struct_class = Types::SetupExecutionDetails
2886
+
2887
+ SetupExecutionDetailsList.member = Shapes::ShapeRef.new(shape: SetupExecutionDetails)
2888
+
2889
+ SetupHistory.add_member(:operation_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "operationId"))
2890
+ SetupHistory.add_member(:request, Shapes::ShapeRef.new(shape: SetupRequest, location_name: "request"))
2891
+ SetupHistory.add_member(:resource, Shapes::ShapeRef.new(shape: SetupHistoryResource, location_name: "resource"))
2892
+ SetupHistory.add_member(:execution_details, Shapes::ShapeRef.new(shape: SetupExecutionDetailsList, location_name: "executionDetails"))
2893
+ SetupHistory.add_member(:status, Shapes::ShapeRef.new(shape: SetupStatus, location_name: "status"))
2894
+ SetupHistory.struct_class = Types::SetupHistory
2895
+
2896
+ SetupHistoryResource.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
2897
+ SetupHistoryResource.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "arn"))
2898
+ SetupHistoryResource.add_member(:created_at, Shapes::ShapeRef.new(shape: IsoDate, location_name: "createdAt"))
2899
+ SetupHistoryResource.add_member(:location, Shapes::ShapeRef.new(shape: ResourceLocation, location_name: "location"))
2900
+ SetupHistoryResource.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
2901
+ SetupHistoryResource.struct_class = Types::SetupHistoryResource
2902
+
2903
+ SetupInstanceHttpsRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
2904
+ SetupInstanceHttpsRequest.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "emailAddress"))
2905
+ SetupInstanceHttpsRequest.add_member(:domain_names, Shapes::ShapeRef.new(shape: SetupDomainNameList, required: true, location_name: "domainNames"))
2906
+ SetupInstanceHttpsRequest.add_member(:certificate_provider, Shapes::ShapeRef.new(shape: CertificateProvider, required: true, location_name: "certificateProvider"))
2907
+ SetupInstanceHttpsRequest.struct_class = Types::SetupInstanceHttpsRequest
2908
+
2909
+ SetupInstanceHttpsResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2910
+ SetupInstanceHttpsResult.struct_class = Types::SetupInstanceHttpsResult
2911
+
2912
+ SetupRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "instanceName"))
2913
+ SetupRequest.add_member(:domain_names, Shapes::ShapeRef.new(shape: SetupDomainNameList, location_name: "domainNames"))
2914
+ SetupRequest.add_member(:certificate_provider, Shapes::ShapeRef.new(shape: CertificateProvider, location_name: "certificateProvider"))
2915
+ SetupRequest.struct_class = Types::SetupRequest
2916
+
2850
2917
  StartGUISessionRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
2851
2918
  StartGUISessionRequest.struct_class = Types::StartGUISessionRequest
2852
2919
 
@@ -3046,6 +3113,8 @@ module Aws::Lightsail
3046
3113
  UpdateRelationalDatabaseResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
3047
3114
  UpdateRelationalDatabaseResult.struct_class = Types::UpdateRelationalDatabaseResult
3048
3115
 
3116
+ setupHistoryList.member = Shapes::ShapeRef.new(shape: SetupHistory)
3117
+
3049
3118
 
3050
3119
  # @api private
3051
3120
  API = Seahorse::Model::Api.new.tap do |api|
@@ -4836,6 +4905,19 @@ module Aws::Lightsail
4836
4905
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4837
4906
  end)
4838
4907
 
4908
+ api.add_operation(:get_setup_history, Seahorse::Model::Operation.new.tap do |o|
4909
+ o.name = "GetSetupHistory"
4910
+ o.http_method = "POST"
4911
+ o.http_request_uri = "/"
4912
+ o.input = Shapes::ShapeRef.new(shape: GetSetupHistoryRequest)
4913
+ o.output = Shapes::ShapeRef.new(shape: GetSetupHistoryResult)
4914
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
4915
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
4916
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
4917
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
4918
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4919
+ end)
4920
+
4839
4921
  api.add_operation(:get_static_ip, Seahorse::Model::Operation.new.tap do |o|
4840
4922
  o.name = "GetStaticIp"
4841
4923
  o.http_method = "POST"
@@ -5069,6 +5151,19 @@ module Aws::Lightsail
5069
5151
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5070
5152
  end)
5071
5153
 
5154
+ api.add_operation(:setup_instance_https, Seahorse::Model::Operation.new.tap do |o|
5155
+ o.name = "SetupInstanceHttps"
5156
+ o.http_method = "POST"
5157
+ o.http_request_uri = "/"
5158
+ o.input = Shapes::ShapeRef.new(shape: SetupInstanceHttpsRequest)
5159
+ o.output = Shapes::ShapeRef.new(shape: SetupInstanceHttpsResult)
5160
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
5161
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
5162
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
5163
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
5164
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5165
+ end)
5166
+
5072
5167
  api.add_operation(:start_gui_session, Seahorse::Model::Operation.new.tap do |o|
5073
5168
  o.name = "StartGUISession"
5074
5169
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::Lightsail
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://lightsail-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -1734,6 +1734,20 @@ module Aws::Lightsail
1734
1734
  end
1735
1735
  end
1736
1736
 
1737
+ class GetSetupHistory
1738
+ def self.build(context)
1739
+ unless context.config.regional_endpoint
1740
+ endpoint = context.config.endpoint.to_s
1741
+ end
1742
+ Aws::Lightsail::EndpointParameters.new(
1743
+ region: context.config.region,
1744
+ use_dual_stack: context.config.use_dualstack_endpoint,
1745
+ use_fips: context.config.use_fips_endpoint,
1746
+ endpoint: endpoint,
1747
+ )
1748
+ end
1749
+ end
1750
+
1737
1751
  class GetStaticIp
1738
1752
  def self.build(context)
1739
1753
  unless context.config.regional_endpoint
@@ -1958,6 +1972,20 @@ module Aws::Lightsail
1958
1972
  end
1959
1973
  end
1960
1974
 
1975
+ class SetupInstanceHttps
1976
+ def self.build(context)
1977
+ unless context.config.regional_endpoint
1978
+ endpoint = context.config.endpoint.to_s
1979
+ end
1980
+ Aws::Lightsail::EndpointParameters.new(
1981
+ region: context.config.region,
1982
+ use_dual_stack: context.config.use_dualstack_endpoint,
1983
+ use_fips: context.config.use_fips_endpoint,
1984
+ endpoint: endpoint,
1985
+ )
1986
+ end
1987
+ end
1988
+
1961
1989
  class StartGUISession
1962
1990
  def self.build(context)
1963
1991
  unless context.config.regional_endpoint
@@ -303,6 +303,8 @@ module Aws::Lightsail
303
303
  Aws::Lightsail::Endpoints::GetRelationalDatabaseSnapshots.build(context)
304
304
  when :get_relational_databases
305
305
  Aws::Lightsail::Endpoints::GetRelationalDatabases.build(context)
306
+ when :get_setup_history
307
+ Aws::Lightsail::Endpoints::GetSetupHistory.build(context)
306
308
  when :get_static_ip
307
309
  Aws::Lightsail::Endpoints::GetStaticIp.build(context)
308
310
  when :get_static_ips
@@ -335,6 +337,8 @@ module Aws::Lightsail
335
337
  Aws::Lightsail::Endpoints::SetIpAddressType.build(context)
336
338
  when :set_resource_access_for_bucket
337
339
  Aws::Lightsail::Endpoints::SetResourceAccessForBucket.build(context)
340
+ when :setup_instance_https
341
+ Aws::Lightsail::Endpoints::SetupInstanceHttps.build(context)
338
342
  when :start_gui_session
339
343
  Aws::Lightsail::Endpoints::StartGUISession.build(context)
340
344
  when :start_instance