aws-sdk-lightsail 1.83.0 → 1.85.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lightsail/client.rb +258 -144
- data/lib/aws-sdk-lightsail/client_api.rb +93 -0
- data/lib/aws-sdk-lightsail/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-lightsail/endpoints.rb +28 -0
- data/lib/aws-sdk-lightsail/plugins/endpoints.rb +7 -2
- data/lib/aws-sdk-lightsail/types.rb +401 -185
- data/lib/aws-sdk-lightsail.rb +1 -1
- metadata +2 -2
@@ -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?(
|
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
|
@@ -25,16 +25,17 @@ module Aws::Lightsail
|
|
25
25
|
# @api private
|
26
26
|
class Handler < Seahorse::Client::Handler
|
27
27
|
def call(context)
|
28
|
-
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
28
|
unless context[:discovered_endpoint]
|
30
29
|
params = parameters_for_operation(context)
|
31
30
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
31
|
|
33
32
|
context.http_request.endpoint = endpoint.url
|
34
33
|
apply_endpoint_headers(context, endpoint.headers)
|
34
|
+
|
35
|
+
context[:endpoint_params] = params
|
36
|
+
context[:endpoint_properties] = endpoint.properties
|
35
37
|
end
|
36
38
|
|
37
|
-
context[:endpoint_params] = params
|
38
39
|
context[:auth_scheme] =
|
39
40
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
41
|
|
@@ -302,6 +303,8 @@ module Aws::Lightsail
|
|
302
303
|
Aws::Lightsail::Endpoints::GetRelationalDatabaseSnapshots.build(context)
|
303
304
|
when :get_relational_databases
|
304
305
|
Aws::Lightsail::Endpoints::GetRelationalDatabases.build(context)
|
306
|
+
when :get_setup_history
|
307
|
+
Aws::Lightsail::Endpoints::GetSetupHistory.build(context)
|
305
308
|
when :get_static_ip
|
306
309
|
Aws::Lightsail::Endpoints::GetStaticIp.build(context)
|
307
310
|
when :get_static_ips
|
@@ -334,6 +337,8 @@ module Aws::Lightsail
|
|
334
337
|
Aws::Lightsail::Endpoints::SetIpAddressType.build(context)
|
335
338
|
when :set_resource_access_for_bucket
|
336
339
|
Aws::Lightsail::Endpoints::SetResourceAccessForBucket.build(context)
|
340
|
+
when :setup_instance_https
|
341
|
+
Aws::Lightsail::Endpoints::SetupInstanceHttps.build(context)
|
337
342
|
when :start_gui_session
|
338
343
|
Aws::Lightsail::Endpoints::StartGUISession.build(context)
|
339
344
|
when :start_instance
|