aws-sdk-lightsail 1.84.0 → 1.85.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
 
@@ -2175,6 +2191,14 @@ module Aws::Lightsail
2175
2191
  GetRelationalDatabasesResult.add_member(:next_page_token, Shapes::ShapeRef.new(shape: string, location_name: "nextPageToken"))
2176
2192
  GetRelationalDatabasesResult.struct_class = Types::GetRelationalDatabasesResult
2177
2193
 
2194
+ GetSetupHistoryRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
2195
+ GetSetupHistoryRequest.add_member(:page_token, Shapes::ShapeRef.new(shape: SetupHistoryPageToken, location_name: "pageToken"))
2196
+ GetSetupHistoryRequest.struct_class = Types::GetSetupHistoryRequest
2197
+
2198
+ GetSetupHistoryResult.add_member(:setup_history, Shapes::ShapeRef.new(shape: setupHistoryList, location_name: "setupHistory"))
2199
+ GetSetupHistoryResult.add_member(:next_page_token, Shapes::ShapeRef.new(shape: SetupHistoryPageToken, location_name: "nextPageToken"))
2200
+ GetSetupHistoryResult.struct_class = Types::GetSetupHistoryResult
2201
+
2178
2202
  GetStaticIpRequest.add_member(:static_ip_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "staticIpName"))
2179
2203
  GetStaticIpRequest.struct_class = Types::GetStaticIpRequest
2180
2204
 
@@ -2847,6 +2871,47 @@ module Aws::Lightsail
2847
2871
  SetResourceAccessForBucketResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2848
2872
  SetResourceAccessForBucketResult.struct_class = Types::SetResourceAccessForBucketResult
2849
2873
 
2874
+ SetupDomainNameList.member = Shapes::ShapeRef.new(shape: SetupDomainName)
2875
+
2876
+ SetupExecutionDetails.add_member(:command, Shapes::ShapeRef.new(shape: string, location_name: "command"))
2877
+ SetupExecutionDetails.add_member(:date_time, Shapes::ShapeRef.new(shape: IsoDate, location_name: "dateTime"))
2878
+ SetupExecutionDetails.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "name"))
2879
+ SetupExecutionDetails.add_member(:status, Shapes::ShapeRef.new(shape: SetupStatus, location_name: "status"))
2880
+ SetupExecutionDetails.add_member(:standard_error, Shapes::ShapeRef.new(shape: string, location_name: "standardError"))
2881
+ SetupExecutionDetails.add_member(:standard_output, Shapes::ShapeRef.new(shape: string, location_name: "standardOutput"))
2882
+ SetupExecutionDetails.add_member(:version, Shapes::ShapeRef.new(shape: string, location_name: "version"))
2883
+ SetupExecutionDetails.struct_class = Types::SetupExecutionDetails
2884
+
2885
+ SetupExecutionDetailsList.member = Shapes::ShapeRef.new(shape: SetupExecutionDetails)
2886
+
2887
+ SetupHistory.add_member(:operation_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "operationId"))
2888
+ SetupHistory.add_member(:request, Shapes::ShapeRef.new(shape: SetupRequest, location_name: "request"))
2889
+ SetupHistory.add_member(:resource, Shapes::ShapeRef.new(shape: SetupHistoryResource, location_name: "resource"))
2890
+ SetupHistory.add_member(:execution_details, Shapes::ShapeRef.new(shape: SetupExecutionDetailsList, location_name: "executionDetails"))
2891
+ SetupHistory.add_member(:status, Shapes::ShapeRef.new(shape: SetupStatus, location_name: "status"))
2892
+ SetupHistory.struct_class = Types::SetupHistory
2893
+
2894
+ SetupHistoryResource.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
2895
+ SetupHistoryResource.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "arn"))
2896
+ SetupHistoryResource.add_member(:created_at, Shapes::ShapeRef.new(shape: IsoDate, location_name: "createdAt"))
2897
+ SetupHistoryResource.add_member(:location, Shapes::ShapeRef.new(shape: ResourceLocation, location_name: "location"))
2898
+ SetupHistoryResource.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
2899
+ SetupHistoryResource.struct_class = Types::SetupHistoryResource
2900
+
2901
+ SetupInstanceHttpsRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
2902
+ SetupInstanceHttpsRequest.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "emailAddress"))
2903
+ SetupInstanceHttpsRequest.add_member(:domain_names, Shapes::ShapeRef.new(shape: SetupDomainNameList, required: true, location_name: "domainNames"))
2904
+ SetupInstanceHttpsRequest.add_member(:certificate_provider, Shapes::ShapeRef.new(shape: CertificateProvider, required: true, location_name: "certificateProvider"))
2905
+ SetupInstanceHttpsRequest.struct_class = Types::SetupInstanceHttpsRequest
2906
+
2907
+ SetupInstanceHttpsResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2908
+ SetupInstanceHttpsResult.struct_class = Types::SetupInstanceHttpsResult
2909
+
2910
+ SetupRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "instanceName"))
2911
+ SetupRequest.add_member(:domain_names, Shapes::ShapeRef.new(shape: SetupDomainNameList, location_name: "domainNames"))
2912
+ SetupRequest.add_member(:certificate_provider, Shapes::ShapeRef.new(shape: CertificateProvider, location_name: "certificateProvider"))
2913
+ SetupRequest.struct_class = Types::SetupRequest
2914
+
2850
2915
  StartGUISessionRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
2851
2916
  StartGUISessionRequest.struct_class = Types::StartGUISessionRequest
2852
2917
 
@@ -3046,6 +3111,8 @@ module Aws::Lightsail
3046
3111
  UpdateRelationalDatabaseResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
3047
3112
  UpdateRelationalDatabaseResult.struct_class = Types::UpdateRelationalDatabaseResult
3048
3113
 
3114
+ setupHistoryList.member = Shapes::ShapeRef.new(shape: SetupHistory)
3115
+
3049
3116
 
3050
3117
  # @api private
3051
3118
  API = Seahorse::Model::Api.new.tap do |api|
@@ -4836,6 +4903,19 @@ module Aws::Lightsail
4836
4903
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4837
4904
  end)
4838
4905
 
4906
+ api.add_operation(:get_setup_history, Seahorse::Model::Operation.new.tap do |o|
4907
+ o.name = "GetSetupHistory"
4908
+ o.http_method = "POST"
4909
+ o.http_request_uri = "/"
4910
+ o.input = Shapes::ShapeRef.new(shape: GetSetupHistoryRequest)
4911
+ o.output = Shapes::ShapeRef.new(shape: GetSetupHistoryResult)
4912
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
4913
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
4914
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
4915
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
4916
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4917
+ end)
4918
+
4839
4919
  api.add_operation(:get_static_ip, Seahorse::Model::Operation.new.tap do |o|
4840
4920
  o.name = "GetStaticIp"
4841
4921
  o.http_method = "POST"
@@ -5069,6 +5149,19 @@ module Aws::Lightsail
5069
5149
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5070
5150
  end)
5071
5151
 
5152
+ api.add_operation(:setup_instance_https, Seahorse::Model::Operation.new.tap do |o|
5153
+ o.name = "SetupInstanceHttps"
5154
+ o.http_method = "POST"
5155
+ o.http_request_uri = "/"
5156
+ o.input = Shapes::ShapeRef.new(shape: SetupInstanceHttpsRequest)
5157
+ o.output = Shapes::ShapeRef.new(shape: SetupInstanceHttpsResult)
5158
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
5159
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
5160
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
5161
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
5162
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5163
+ end)
5164
+
5072
5165
  api.add_operation(:start_gui_session, Seahorse::Model::Operation.new.tap do |o|
5073
5166
  o.name = "StartGUISession"
5074
5167
  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