aws-sdk-lightsail 1.74.0 → 1.75.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,8 @@ module Aws::Lightsail
34
34
  AlarmsList = Shapes::ListShape.new(name: 'AlarmsList')
35
35
  AllocateStaticIpRequest = Shapes::StructureShape.new(name: 'AllocateStaticIpRequest')
36
36
  AllocateStaticIpResult = Shapes::StructureShape.new(name: 'AllocateStaticIpResult')
37
+ AppCategory = Shapes::StringShape.new(name: 'AppCategory')
38
+ AppCategoryList = Shapes::ListShape.new(name: 'AppCategoryList')
37
39
  AttachCertificateToDistributionRequest = Shapes::StructureShape.new(name: 'AttachCertificateToDistributionRequest')
38
40
  AttachCertificateToDistributionResult = Shapes::StructureShape.new(name: 'AttachCertificateToDistributionResult')
39
41
  AttachDiskRequest = Shapes::StructureShape.new(name: 'AttachDiskRequest')
@@ -47,6 +49,7 @@ module Aws::Lightsail
47
49
  AttachedDisk = Shapes::StructureShape.new(name: 'AttachedDisk')
48
50
  AttachedDiskList = Shapes::ListShape.new(name: 'AttachedDiskList')
49
51
  AttachedDiskMap = Shapes::MapShape.new(name: 'AttachedDiskMap')
52
+ AutoMountStatus = Shapes::StringShape.new(name: 'AutoMountStatus')
50
53
  AutoSnapshotAddOnRequest = Shapes::StructureShape.new(name: 'AutoSnapshotAddOnRequest')
51
54
  AutoSnapshotDate = Shapes::StringShape.new(name: 'AutoSnapshotDate')
52
55
  AutoSnapshotDetails = Shapes::StructureShape.new(name: 'AutoSnapshotDetails')
@@ -133,6 +136,8 @@ module Aws::Lightsail
133
136
  CookieObject = Shapes::StructureShape.new(name: 'CookieObject')
134
137
  CopySnapshotRequest = Shapes::StructureShape.new(name: 'CopySnapshotRequest')
135
138
  CopySnapshotResult = Shapes::StructureShape.new(name: 'CopySnapshotResult')
139
+ CostEstimate = Shapes::StructureShape.new(name: 'CostEstimate')
140
+ CostEstimates = Shapes::ListShape.new(name: 'CostEstimates')
136
141
  CreateBucketAccessKeyRequest = Shapes::StructureShape.new(name: 'CreateBucketAccessKeyRequest')
137
142
  CreateBucketAccessKeyResult = Shapes::StructureShape.new(name: 'CreateBucketAccessKeyResult')
138
143
  CreateBucketRequest = Shapes::StructureShape.new(name: 'CreateBucketRequest')
@@ -161,6 +166,8 @@ module Aws::Lightsail
161
166
  CreateDomainEntryResult = Shapes::StructureShape.new(name: 'CreateDomainEntryResult')
162
167
  CreateDomainRequest = Shapes::StructureShape.new(name: 'CreateDomainRequest')
163
168
  CreateDomainResult = Shapes::StructureShape.new(name: 'CreateDomainResult')
169
+ CreateGUISessionAccessDetailsRequest = Shapes::StructureShape.new(name: 'CreateGUISessionAccessDetailsRequest')
170
+ CreateGUISessionAccessDetailsResult = Shapes::StructureShape.new(name: 'CreateGUISessionAccessDetailsResult')
164
171
  CreateInstanceSnapshotRequest = Shapes::StructureShape.new(name: 'CreateInstanceSnapshotRequest')
165
172
  CreateInstanceSnapshotResult = Shapes::StructureShape.new(name: 'CreateInstanceSnapshotResult')
166
173
  CreateInstancesFromSnapshotRequest = Shapes::StructureShape.new(name: 'CreateInstancesFromSnapshotRequest')
@@ -179,6 +186,7 @@ module Aws::Lightsail
179
186
  CreateRelationalDatabaseResult = Shapes::StructureShape.new(name: 'CreateRelationalDatabaseResult')
180
187
  CreateRelationalDatabaseSnapshotRequest = Shapes::StructureShape.new(name: 'CreateRelationalDatabaseSnapshotRequest')
181
188
  CreateRelationalDatabaseSnapshotResult = Shapes::StructureShape.new(name: 'CreateRelationalDatabaseSnapshotResult')
189
+ Currency = Shapes::StringShape.new(name: 'Currency')
182
190
  DeleteAlarmRequest = Shapes::StructureShape.new(name: 'DeleteAlarmRequest')
183
191
  DeleteAlarmResult = Shapes::StructureShape.new(name: 'DeleteAlarmResult')
184
192
  DeleteAutoSnapshotRequest = Shapes::StructureShape.new(name: 'DeleteAutoSnapshotRequest')
@@ -267,6 +275,8 @@ module Aws::Lightsail
267
275
  EnableAddOnResult = Shapes::StructureShape.new(name: 'EnableAddOnResult')
268
276
  EndpointRequest = Shapes::StructureShape.new(name: 'EndpointRequest')
269
277
  Environment = Shapes::MapShape.new(name: 'Environment')
278
+ EstimateByTime = Shapes::StructureShape.new(name: 'EstimateByTime')
279
+ EstimatesByTime = Shapes::ListShape.new(name: 'EstimatesByTime')
270
280
  ExportSnapshotRecord = Shapes::StructureShape.new(name: 'ExportSnapshotRecord')
271
281
  ExportSnapshotRecordList = Shapes::ListShape.new(name: 'ExportSnapshotRecordList')
272
282
  ExportSnapshotRecordSourceInfo = Shapes::StructureShape.new(name: 'ExportSnapshotRecordSourceInfo')
@@ -311,6 +321,8 @@ module Aws::Lightsail
311
321
  GetContainerServicePowersRequest = Shapes::StructureShape.new(name: 'GetContainerServicePowersRequest')
312
322
  GetContainerServicePowersResult = Shapes::StructureShape.new(name: 'GetContainerServicePowersResult')
313
323
  GetContainerServicesRequest = Shapes::StructureShape.new(name: 'GetContainerServicesRequest')
324
+ GetCostEstimateRequest = Shapes::StructureShape.new(name: 'GetCostEstimateRequest')
325
+ GetCostEstimateResult = Shapes::StructureShape.new(name: 'GetCostEstimateResult')
314
326
  GetDiskRequest = Shapes::StructureShape.new(name: 'GetDiskRequest')
315
327
  GetDiskResult = Shapes::StructureShape.new(name: 'GetDiskResult')
316
328
  GetDiskSnapshotRequest = Shapes::StructureShape.new(name: 'GetDiskSnapshotRequest')
@@ -518,6 +530,7 @@ module Aws::Lightsail
518
530
  PortList = Shapes::ListShape.new(name: 'PortList')
519
531
  PortMap = Shapes::MapShape.new(name: 'PortMap')
520
532
  PortState = Shapes::StringShape.new(name: 'PortState')
533
+ PricingUnit = Shapes::StringShape.new(name: 'PricingUnit')
521
534
  PrivateRegistryAccess = Shapes::StructureShape.new(name: 'PrivateRegistryAccess')
522
535
  PrivateRegistryAccessRequest = Shapes::StructureShape.new(name: 'PrivateRegistryAccessRequest')
523
536
  PutAlarmRequest = Shapes::StructureShape.new(name: 'PutAlarmRequest')
@@ -565,29 +578,40 @@ module Aws::Lightsail
565
578
  ResetDistributionCacheResult = Shapes::StructureShape.new(name: 'ResetDistributionCacheResult')
566
579
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
567
580
  ResourceBucketAccess = Shapes::StringShape.new(name: 'ResourceBucketAccess')
581
+ ResourceBudgetEstimate = Shapes::StructureShape.new(name: 'ResourceBudgetEstimate')
568
582
  ResourceLocation = Shapes::StructureShape.new(name: 'ResourceLocation')
569
583
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
570
584
  ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
571
585
  ResourceReceivingAccess = Shapes::StructureShape.new(name: 'ResourceReceivingAccess')
572
586
  ResourceRecord = Shapes::StructureShape.new(name: 'ResourceRecord')
573
587
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
588
+ ResourcesBudgetEstimate = Shapes::ListShape.new(name: 'ResourcesBudgetEstimate')
574
589
  RevocationReason = Shapes::StringShape.new(name: 'RevocationReason')
575
590
  SendContactMethodVerificationRequest = Shapes::StructureShape.new(name: 'SendContactMethodVerificationRequest')
576
591
  SendContactMethodVerificationResult = Shapes::StructureShape.new(name: 'SendContactMethodVerificationResult')
592
+ SensitiveNonEmptyString = Shapes::StringShape.new(name: 'SensitiveNonEmptyString')
577
593
  SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
578
594
  SerialNumber = Shapes::StringShape.new(name: 'SerialNumber')
579
595
  ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
596
+ Session = Shapes::StructureShape.new(name: 'Session')
597
+ Sessions = Shapes::ListShape.new(name: 'Sessions')
580
598
  SetIpAddressTypeRequest = Shapes::StructureShape.new(name: 'SetIpAddressTypeRequest')
581
599
  SetIpAddressTypeResult = Shapes::StructureShape.new(name: 'SetIpAddressTypeResult')
582
600
  SetResourceAccessForBucketRequest = Shapes::StructureShape.new(name: 'SetResourceAccessForBucketRequest')
583
601
  SetResourceAccessForBucketResult = Shapes::StructureShape.new(name: 'SetResourceAccessForBucketResult')
602
+ StartGUISessionRequest = Shapes::StructureShape.new(name: 'StartGUISessionRequest')
603
+ StartGUISessionResult = Shapes::StructureShape.new(name: 'StartGUISessionResult')
584
604
  StartInstanceRequest = Shapes::StructureShape.new(name: 'StartInstanceRequest')
585
605
  StartInstanceResult = Shapes::StructureShape.new(name: 'StartInstanceResult')
586
606
  StartRelationalDatabaseRequest = Shapes::StructureShape.new(name: 'StartRelationalDatabaseRequest')
587
607
  StartRelationalDatabaseResult = Shapes::StructureShape.new(name: 'StartRelationalDatabaseResult')
588
608
  StaticIp = Shapes::StructureShape.new(name: 'StaticIp')
589
609
  StaticIpList = Shapes::ListShape.new(name: 'StaticIpList')
610
+ Status = Shapes::StringShape.new(name: 'Status')
590
611
  StatusType = Shapes::StringShape.new(name: 'StatusType')
612
+ StopGUISessionRequest = Shapes::StructureShape.new(name: 'StopGUISessionRequest')
613
+ StopGUISessionResult = Shapes::StructureShape.new(name: 'StopGUISessionResult')
614
+ StopInstanceOnIdleRequest = Shapes::StructureShape.new(name: 'StopInstanceOnIdleRequest')
591
615
  StopInstanceRequest = Shapes::StructureShape.new(name: 'StopInstanceRequest')
592
616
  StopInstanceResult = Shapes::StructureShape.new(name: 'StopInstanceResult')
593
617
  StopRelationalDatabaseRequest = Shapes::StructureShape.new(name: 'StopRelationalDatabaseRequest')
@@ -605,6 +629,7 @@ module Aws::Lightsail
605
629
  TestAlarmRequest = Shapes::StructureShape.new(name: 'TestAlarmRequest')
606
630
  TestAlarmResult = Shapes::StructureShape.new(name: 'TestAlarmResult')
607
631
  TimeOfDay = Shapes::StringShape.new(name: 'TimeOfDay')
632
+ TimePeriod = Shapes::StructureShape.new(name: 'TimePeriod')
608
633
  TreatMissingData = Shapes::StringShape.new(name: 'TreatMissingData')
609
634
  UnauthenticatedException = Shapes::StructureShape.new(name: 'UnauthenticatedException')
610
635
  UnpeerVpcRequest = Shapes::StructureShape.new(name: 'UnpeerVpcRequest')
@@ -681,12 +706,15 @@ module Aws::Lightsail
681
706
  AddOn.add_member(:status, Shapes::ShapeRef.new(shape: string, location_name: "status"))
682
707
  AddOn.add_member(:snapshot_time_of_day, Shapes::ShapeRef.new(shape: TimeOfDay, location_name: "snapshotTimeOfDay"))
683
708
  AddOn.add_member(:next_snapshot_time_of_day, Shapes::ShapeRef.new(shape: TimeOfDay, location_name: "nextSnapshotTimeOfDay"))
709
+ AddOn.add_member(:threshold, Shapes::ShapeRef.new(shape: string, location_name: "threshold"))
710
+ AddOn.add_member(:duration, Shapes::ShapeRef.new(shape: string, location_name: "duration"))
684
711
  AddOn.struct_class = Types::AddOn
685
712
 
686
713
  AddOnList.member = Shapes::ShapeRef.new(shape: AddOn)
687
714
 
688
715
  AddOnRequest.add_member(:add_on_type, Shapes::ShapeRef.new(shape: AddOnType, required: true, location_name: "addOnType"))
689
716
  AddOnRequest.add_member(:auto_snapshot_add_on_request, Shapes::ShapeRef.new(shape: AutoSnapshotAddOnRequest, location_name: "autoSnapshotAddOnRequest"))
717
+ AddOnRequest.add_member(:stop_instance_on_idle_request, Shapes::ShapeRef.new(shape: StopInstanceOnIdleRequest, location_name: "stopInstanceOnIdleRequest"))
690
718
  AddOnRequest.struct_class = Types::AddOnRequest
691
719
 
692
720
  AddOnRequestList.member = Shapes::ShapeRef.new(shape: AddOnRequest)
@@ -721,6 +749,8 @@ module Aws::Lightsail
721
749
  AllocateStaticIpResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
722
750
  AllocateStaticIpResult.struct_class = Types::AllocateStaticIpResult
723
751
 
752
+ AppCategoryList.member = Shapes::ShapeRef.new(shape: AppCategory)
753
+
724
754
  AttachCertificateToDistributionRequest.add_member(:distribution_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "distributionName"))
725
755
  AttachCertificateToDistributionRequest.add_member(:certificate_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "certificateName"))
726
756
  AttachCertificateToDistributionRequest.struct_class = Types::AttachCertificateToDistributionRequest
@@ -731,6 +761,7 @@ module Aws::Lightsail
731
761
  AttachDiskRequest.add_member(:disk_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "diskName"))
732
762
  AttachDiskRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
733
763
  AttachDiskRequest.add_member(:disk_path, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "diskPath"))
764
+ AttachDiskRequest.add_member(:auto_mounting, Shapes::ShapeRef.new(shape: boolean, location_name: "autoMounting"))
734
765
  AttachDiskRequest.struct_class = Types::AttachDiskRequest
735
766
 
736
767
  AttachDiskResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
@@ -795,6 +826,7 @@ module Aws::Lightsail
795
826
  Blueprint.add_member(:product_url, Shapes::ShapeRef.new(shape: string, location_name: "productUrl"))
796
827
  Blueprint.add_member(:license_url, Shapes::ShapeRef.new(shape: string, location_name: "licenseUrl"))
797
828
  Blueprint.add_member(:platform, Shapes::ShapeRef.new(shape: InstancePlatform, location_name: "platform"))
829
+ Blueprint.add_member(:app_category, Shapes::ShapeRef.new(shape: AppCategory, location_name: "appCategory"))
798
830
  Blueprint.struct_class = Types::Blueprint
799
831
 
800
832
  BlueprintList.member = Shapes::ShapeRef.new(shape: Blueprint)
@@ -849,6 +881,7 @@ module Aws::Lightsail
849
881
  Bundle.add_member(:ram_size_in_gb, Shapes::ShapeRef.new(shape: float, location_name: "ramSizeInGb"))
850
882
  Bundle.add_member(:transfer_per_month_in_gb, Shapes::ShapeRef.new(shape: integer, location_name: "transferPerMonthInGb"))
851
883
  Bundle.add_member(:supported_platforms, Shapes::ShapeRef.new(shape: InstancePlatformList, location_name: "supportedPlatforms"))
884
+ Bundle.add_member(:supported_app_categories, Shapes::ShapeRef.new(shape: AppCategoryList, location_name: "supportedAppCategories"))
852
885
  Bundle.struct_class = Types::Bundle
853
886
 
854
887
  BundleList.member = Shapes::ShapeRef.new(shape: Bundle)
@@ -1073,6 +1106,12 @@ module Aws::Lightsail
1073
1106
  CopySnapshotResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
1074
1107
  CopySnapshotResult.struct_class = Types::CopySnapshotResult
1075
1108
 
1109
+ CostEstimate.add_member(:usage_type, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "usageType"))
1110
+ CostEstimate.add_member(:results_by_time, Shapes::ShapeRef.new(shape: EstimatesByTime, location_name: "resultsByTime"))
1111
+ CostEstimate.struct_class = Types::CostEstimate
1112
+
1113
+ CostEstimates.member = Shapes::ShapeRef.new(shape: CostEstimate)
1114
+
1076
1115
  CreateBucketAccessKeyRequest.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "bucketName"))
1077
1116
  CreateBucketAccessKeyRequest.struct_class = Types::CreateBucketAccessKeyRequest
1078
1117
 
@@ -1199,6 +1238,16 @@ module Aws::Lightsail
1199
1238
  CreateDomainResult.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "operation"))
1200
1239
  CreateDomainResult.struct_class = Types::CreateDomainResult
1201
1240
 
1241
+ CreateGUISessionAccessDetailsRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
1242
+ CreateGUISessionAccessDetailsRequest.struct_class = Types::CreateGUISessionAccessDetailsRequest
1243
+
1244
+ CreateGUISessionAccessDetailsResult.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "resourceName"))
1245
+ CreateGUISessionAccessDetailsResult.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
1246
+ CreateGUISessionAccessDetailsResult.add_member(:percentage_complete, Shapes::ShapeRef.new(shape: integer, location_name: "percentageComplete"))
1247
+ CreateGUISessionAccessDetailsResult.add_member(:failure_reason, Shapes::ShapeRef.new(shape: string, location_name: "failureReason"))
1248
+ CreateGUISessionAccessDetailsResult.add_member(:sessions, Shapes::ShapeRef.new(shape: Sessions, location_name: "sessions"))
1249
+ CreateGUISessionAccessDetailsResult.struct_class = Types::CreateGUISessionAccessDetailsResult
1250
+
1202
1251
  CreateInstanceSnapshotRequest.add_member(:instance_snapshot_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceSnapshotName"))
1203
1252
  CreateInstanceSnapshotRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
1204
1253
  CreateInstanceSnapshotRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
@@ -1501,6 +1550,7 @@ module Aws::Lightsail
1501
1550
  Disk.add_member(:is_attached, Shapes::ShapeRef.new(shape: boolean, location_name: "isAttached"))
1502
1551
  Disk.add_member(:attachment_state, Shapes::ShapeRef.new(shape: string, deprecated: true, location_name: "attachmentState"))
1503
1552
  Disk.add_member(:gb_in_use, Shapes::ShapeRef.new(shape: integer, deprecated: true, location_name: "gbInUse"))
1553
+ Disk.add_member(:auto_mount_status, Shapes::ShapeRef.new(shape: AutoMountStatus, location_name: "autoMountStatus"))
1504
1554
  Disk.struct_class = Types::Disk
1505
1555
 
1506
1556
  DiskInfo.add_member(:name, Shapes::ShapeRef.new(shape: string, location_name: "name"))
@@ -1614,6 +1664,15 @@ module Aws::Lightsail
1614
1664
  Environment.key = Shapes::ShapeRef.new(shape: string)
1615
1665
  Environment.value = Shapes::ShapeRef.new(shape: string)
1616
1666
 
1667
+ EstimateByTime.add_member(:usage_cost, Shapes::ShapeRef.new(shape: double, location_name: "usageCost"))
1668
+ EstimateByTime.add_member(:pricing_unit, Shapes::ShapeRef.new(shape: PricingUnit, location_name: "pricingUnit"))
1669
+ EstimateByTime.add_member(:unit, Shapes::ShapeRef.new(shape: double, location_name: "unit"))
1670
+ EstimateByTime.add_member(:currency, Shapes::ShapeRef.new(shape: Currency, location_name: "currency"))
1671
+ EstimateByTime.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, location_name: "timePeriod"))
1672
+ EstimateByTime.struct_class = Types::EstimateByTime
1673
+
1674
+ EstimatesByTime.member = Shapes::ShapeRef.new(shape: EstimateByTime)
1675
+
1617
1676
  ExportSnapshotRecord.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
1618
1677
  ExportSnapshotRecord.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "arn"))
1619
1678
  ExportSnapshotRecord.add_member(:created_at, Shapes::ShapeRef.new(shape: IsoDate, location_name: "createdAt"))
@@ -1668,6 +1727,7 @@ module Aws::Lightsail
1668
1727
 
1669
1728
  GetBlueprintsRequest.add_member(:include_inactive, Shapes::ShapeRef.new(shape: boolean, location_name: "includeInactive"))
1670
1729
  GetBlueprintsRequest.add_member(:page_token, Shapes::ShapeRef.new(shape: string, location_name: "pageToken"))
1730
+ GetBlueprintsRequest.add_member(:app_category, Shapes::ShapeRef.new(shape: AppCategory, location_name: "appCategory"))
1671
1731
  GetBlueprintsRequest.struct_class = Types::GetBlueprintsRequest
1672
1732
 
1673
1733
  GetBlueprintsResult.add_member(:blueprints, Shapes::ShapeRef.new(shape: BlueprintList, location_name: "blueprints"))
@@ -1711,6 +1771,7 @@ module Aws::Lightsail
1711
1771
 
1712
1772
  GetBundlesRequest.add_member(:include_inactive, Shapes::ShapeRef.new(shape: boolean, location_name: "includeInactive"))
1713
1773
  GetBundlesRequest.add_member(:page_token, Shapes::ShapeRef.new(shape: string, location_name: "pageToken"))
1774
+ GetBundlesRequest.add_member(:app_category, Shapes::ShapeRef.new(shape: AppCategory, location_name: "appCategory"))
1714
1775
  GetBundlesRequest.struct_class = Types::GetBundlesRequest
1715
1776
 
1716
1777
  GetBundlesResult.add_member(:bundles, Shapes::ShapeRef.new(shape: BundleList, location_name: "bundles"))
@@ -1787,6 +1848,14 @@ module Aws::Lightsail
1787
1848
  GetContainerServicesRequest.add_member(:service_name, Shapes::ShapeRef.new(shape: ContainerServiceName, location_name: "serviceName"))
1788
1849
  GetContainerServicesRequest.struct_class = Types::GetContainerServicesRequest
1789
1850
 
1851
+ GetCostEstimateRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
1852
+ GetCostEstimateRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: IsoDate, required: true, location_name: "startTime"))
1853
+ GetCostEstimateRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: IsoDate, required: true, location_name: "endTime"))
1854
+ GetCostEstimateRequest.struct_class = Types::GetCostEstimateRequest
1855
+
1856
+ GetCostEstimateResult.add_member(:resources_budget_estimate, Shapes::ShapeRef.new(shape: ResourcesBudgetEstimate, location_name: "resourcesBudgetEstimate"))
1857
+ GetCostEstimateResult.struct_class = Types::GetCostEstimateResult
1858
+
1790
1859
  GetDiskRequest.add_member(:disk_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "diskName"))
1791
1860
  GetDiskRequest.struct_class = Types::GetDiskRequest
1792
1861
 
@@ -2717,6 +2786,13 @@ module Aws::Lightsail
2717
2786
  ResetDistributionCacheResult.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "operation"))
2718
2787
  ResetDistributionCacheResult.struct_class = Types::ResetDistributionCacheResult
2719
2788
 
2789
+ ResourceBudgetEstimate.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "resourceName"))
2790
+ ResourceBudgetEstimate.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
2791
+ ResourceBudgetEstimate.add_member(:cost_estimates, Shapes::ShapeRef.new(shape: CostEstimates, location_name: "costEstimates"))
2792
+ ResourceBudgetEstimate.add_member(:start_time, Shapes::ShapeRef.new(shape: IsoDate, location_name: "startTime"))
2793
+ ResourceBudgetEstimate.add_member(:end_time, Shapes::ShapeRef.new(shape: IsoDate, location_name: "endTime"))
2794
+ ResourceBudgetEstimate.struct_class = Types::ResourceBudgetEstimate
2795
+
2720
2796
  ResourceLocation.add_member(:availability_zone, Shapes::ShapeRef.new(shape: string, location_name: "availabilityZone"))
2721
2797
  ResourceLocation.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, location_name: "regionName"))
2722
2798
  ResourceLocation.struct_class = Types::ResourceLocation
@@ -2732,6 +2808,8 @@ module Aws::Lightsail
2732
2808
  ResourceRecord.add_member(:value, Shapes::ShapeRef.new(shape: string, location_name: "value"))
2733
2809
  ResourceRecord.struct_class = Types::ResourceRecord
2734
2810
 
2811
+ ResourcesBudgetEstimate.member = Shapes::ShapeRef.new(shape: ResourceBudgetEstimate)
2812
+
2735
2813
  SendContactMethodVerificationRequest.add_member(:protocol, Shapes::ShapeRef.new(shape: ContactMethodVerificationProtocol, required: true, location_name: "protocol"))
2736
2814
  SendContactMethodVerificationRequest.struct_class = Types::SendContactMethodVerificationRequest
2737
2815
 
@@ -2744,6 +2822,13 @@ module Aws::Lightsail
2744
2822
  ServiceException.add_member(:tip, Shapes::ShapeRef.new(shape: string, location_name: "tip"))
2745
2823
  ServiceException.struct_class = Types::ServiceException
2746
2824
 
2825
+ Session.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "name"))
2826
+ Session.add_member(:url, Shapes::ShapeRef.new(shape: SensitiveNonEmptyString, location_name: "url"))
2827
+ Session.add_member(:is_primary, Shapes::ShapeRef.new(shape: boolean, location_name: "isPrimary"))
2828
+ Session.struct_class = Types::Session
2829
+
2830
+ Sessions.member = Shapes::ShapeRef.new(shape: Session)
2831
+
2747
2832
  SetIpAddressTypeRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
2748
2833
  SetIpAddressTypeRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
2749
2834
  SetIpAddressTypeRequest.add_member(:ip_address_type, Shapes::ShapeRef.new(shape: IpAddressType, required: true, location_name: "ipAddressType"))
@@ -2760,6 +2845,12 @@ module Aws::Lightsail
2760
2845
  SetResourceAccessForBucketResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2761
2846
  SetResourceAccessForBucketResult.struct_class = Types::SetResourceAccessForBucketResult
2762
2847
 
2848
+ StartGUISessionRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
2849
+ StartGUISessionRequest.struct_class = Types::StartGUISessionRequest
2850
+
2851
+ StartGUISessionResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2852
+ StartGUISessionResult.struct_class = Types::StartGUISessionResult
2853
+
2763
2854
  StartInstanceRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
2764
2855
  StartInstanceRequest.struct_class = Types::StartInstanceRequest
2765
2856
 
@@ -2785,6 +2876,16 @@ module Aws::Lightsail
2785
2876
 
2786
2877
  StaticIpList.member = Shapes::ShapeRef.new(shape: StaticIp)
2787
2878
 
2879
+ StopGUISessionRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "resourceName"))
2880
+ StopGUISessionRequest.struct_class = Types::StopGUISessionRequest
2881
+
2882
+ StopGUISessionResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2883
+ StopGUISessionResult.struct_class = Types::StopGUISessionResult
2884
+
2885
+ StopInstanceOnIdleRequest.add_member(:threshold, Shapes::ShapeRef.new(shape: string, location_name: "threshold"))
2886
+ StopInstanceOnIdleRequest.add_member(:duration, Shapes::ShapeRef.new(shape: string, location_name: "duration"))
2887
+ StopInstanceOnIdleRequest.struct_class = Types::StopInstanceOnIdleRequest
2888
+
2788
2889
  StopInstanceRequest.add_member(:instance_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "instanceName"))
2789
2890
  StopInstanceRequest.add_member(:force, Shapes::ShapeRef.new(shape: boolean, location_name: "force"))
2790
2891
  StopInstanceRequest.struct_class = Types::StopInstanceRequest
@@ -2826,6 +2927,10 @@ module Aws::Lightsail
2826
2927
  TestAlarmResult.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "operations"))
2827
2928
  TestAlarmResult.struct_class = Types::TestAlarmResult
2828
2929
 
2930
+ TimePeriod.add_member(:start, Shapes::ShapeRef.new(shape: IsoDate, location_name: "start"))
2931
+ TimePeriod.add_member(:end, Shapes::ShapeRef.new(shape: IsoDate, location_name: "end"))
2932
+ TimePeriod.struct_class = Types::TimePeriod
2933
+
2829
2934
  UnauthenticatedException.add_member(:code, Shapes::ShapeRef.new(shape: string, location_name: "code"))
2830
2935
  UnauthenticatedException.add_member(:docs, Shapes::ShapeRef.new(shape: string, location_name: "docs"))
2831
2936
  UnauthenticatedException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
@@ -3271,6 +3376,19 @@ module Aws::Lightsail
3271
3376
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
3272
3377
  end)
3273
3378
 
3379
+ api.add_operation(:create_gui_session_access_details, Seahorse::Model::Operation.new.tap do |o|
3380
+ o.name = "CreateGUISessionAccessDetails"
3381
+ o.http_method = "POST"
3382
+ o.http_request_uri = "/"
3383
+ o.input = Shapes::ShapeRef.new(shape: CreateGUISessionAccessDetailsRequest)
3384
+ o.output = Shapes::ShapeRef.new(shape: CreateGUISessionAccessDetailsResult)
3385
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3386
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
3387
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3388
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
3389
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
3390
+ end)
3391
+
3274
3392
  api.add_operation(:create_instance_snapshot, Seahorse::Model::Operation.new.tap do |o|
3275
3393
  o.name = "CreateInstanceSnapshot"
3276
3394
  o.http_method = "POST"
@@ -4079,6 +4197,19 @@ module Aws::Lightsail
4079
4197
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4080
4198
  end)
4081
4199
 
4200
+ api.add_operation(:get_cost_estimate, Seahorse::Model::Operation.new.tap do |o|
4201
+ o.name = "GetCostEstimate"
4202
+ o.http_method = "POST"
4203
+ o.http_request_uri = "/"
4204
+ o.input = Shapes::ShapeRef.new(shape: GetCostEstimateRequest)
4205
+ o.output = Shapes::ShapeRef.new(shape: GetCostEstimateResult)
4206
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
4207
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
4208
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
4209
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
4210
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4211
+ end)
4212
+
4082
4213
  api.add_operation(:get_disk, Seahorse::Model::Operation.new.tap do |o|
4083
4214
  o.name = "GetDisk"
4084
4215
  o.http_method = "POST"
@@ -4936,6 +5067,19 @@ module Aws::Lightsail
4936
5067
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4937
5068
  end)
4938
5069
 
5070
+ api.add_operation(:start_gui_session, Seahorse::Model::Operation.new.tap do |o|
5071
+ o.name = "StartGUISession"
5072
+ o.http_method = "POST"
5073
+ o.http_request_uri = "/"
5074
+ o.input = Shapes::ShapeRef.new(shape: StartGUISessionRequest)
5075
+ o.output = Shapes::ShapeRef.new(shape: StartGUISessionResult)
5076
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
5077
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
5078
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
5079
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
5080
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5081
+ end)
5082
+
4939
5083
  api.add_operation(:start_instance, Seahorse::Model::Operation.new.tap do |o|
4940
5084
  o.name = "StartInstance"
4941
5085
  o.http_method = "POST"
@@ -4966,6 +5110,19 @@ module Aws::Lightsail
4966
5110
  o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
4967
5111
  end)
4968
5112
 
5113
+ api.add_operation(:stop_gui_session, Seahorse::Model::Operation.new.tap do |o|
5114
+ o.name = "StopGUISession"
5115
+ o.http_method = "POST"
5116
+ o.http_request_uri = "/"
5117
+ o.input = Shapes::ShapeRef.new(shape: StopGUISessionRequest)
5118
+ o.output = Shapes::ShapeRef.new(shape: StopGUISessionResult)
5119
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
5120
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
5121
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
5122
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
5123
+ o.errors << Shapes::ShapeRef.new(shape: UnauthenticatedException)
5124
+ end)
5125
+
4969
5126
  api.add_operation(:stop_instance, Seahorse::Model::Operation.new.tap do |o|
4970
5127
  o.name = "StopInstance"
4971
5128
  o.http_method = "POST"
@@ -50,9 +50,6 @@ module Aws::Lightsail
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::Lightsail
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://lightsail-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://lightsail-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://lightsail.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://lightsail-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
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"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://lightsail-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://lightsail.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://lightsail.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://lightsail.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -319,6 +319,20 @@ module Aws::Lightsail
319
319
  end
320
320
  end
321
321
 
322
+ class CreateGUISessionAccessDetails
323
+ def self.build(context)
324
+ unless context.config.regional_endpoint
325
+ endpoint = context.config.endpoint.to_s
326
+ end
327
+ Aws::Lightsail::EndpointParameters.new(
328
+ region: context.config.region,
329
+ use_dual_stack: context.config.use_dualstack_endpoint,
330
+ use_fips: context.config.use_fips_endpoint,
331
+ endpoint: endpoint,
332
+ )
333
+ end
334
+ end
335
+
322
336
  class CreateInstanceSnapshot
323
337
  def self.build(context)
324
338
  unless context.config.regional_endpoint
@@ -1117,6 +1131,20 @@ module Aws::Lightsail
1117
1131
  end
1118
1132
  end
1119
1133
 
1134
+ class GetCostEstimate
1135
+ def self.build(context)
1136
+ unless context.config.regional_endpoint
1137
+ endpoint = context.config.endpoint.to_s
1138
+ end
1139
+ Aws::Lightsail::EndpointParameters.new(
1140
+ region: context.config.region,
1141
+ use_dual_stack: context.config.use_dualstack_endpoint,
1142
+ use_fips: context.config.use_fips_endpoint,
1143
+ endpoint: endpoint,
1144
+ )
1145
+ end
1146
+ end
1147
+
1120
1148
  class GetDisk
1121
1149
  def self.build(context)
1122
1150
  unless context.config.regional_endpoint
@@ -1929,6 +1957,20 @@ module Aws::Lightsail
1929
1957
  end
1930
1958
  end
1931
1959
 
1960
+ class StartGUISession
1961
+ def self.build(context)
1962
+ unless context.config.regional_endpoint
1963
+ endpoint = context.config.endpoint.to_s
1964
+ end
1965
+ Aws::Lightsail::EndpointParameters.new(
1966
+ region: context.config.region,
1967
+ use_dual_stack: context.config.use_dualstack_endpoint,
1968
+ use_fips: context.config.use_fips_endpoint,
1969
+ endpoint: endpoint,
1970
+ )
1971
+ end
1972
+ end
1973
+
1932
1974
  class StartInstance
1933
1975
  def self.build(context)
1934
1976
  unless context.config.regional_endpoint
@@ -1957,6 +1999,20 @@ module Aws::Lightsail
1957
1999
  end
1958
2000
  end
1959
2001
 
2002
+ class StopGUISession
2003
+ def self.build(context)
2004
+ unless context.config.regional_endpoint
2005
+ endpoint = context.config.endpoint.to_s
2006
+ end
2007
+ Aws::Lightsail::EndpointParameters.new(
2008
+ region: context.config.region,
2009
+ use_dual_stack: context.config.use_dualstack_endpoint,
2010
+ use_fips: context.config.use_fips_endpoint,
2011
+ endpoint: endpoint,
2012
+ )
2013
+ end
2014
+ end
2015
+
1960
2016
  class StopInstance
1961
2017
  def self.build(context)
1962
2018
  unless context.config.regional_endpoint
@@ -100,6 +100,8 @@ module Aws::Lightsail
100
100
  Aws::Lightsail::Endpoints::CreateDomain.build(context)
101
101
  when :create_domain_entry
102
102
  Aws::Lightsail::Endpoints::CreateDomainEntry.build(context)
103
+ when :create_gui_session_access_details
104
+ Aws::Lightsail::Endpoints::CreateGUISessionAccessDetails.build(context)
103
105
  when :create_instance_snapshot
104
106
  Aws::Lightsail::Endpoints::CreateInstanceSnapshot.build(context)
105
107
  when :create_instances
@@ -214,6 +216,8 @@ module Aws::Lightsail
214
216
  Aws::Lightsail::Endpoints::GetContainerServicePowers.build(context)
215
217
  when :get_container_services
216
218
  Aws::Lightsail::Endpoints::GetContainerServices.build(context)
219
+ when :get_cost_estimate
220
+ Aws::Lightsail::Endpoints::GetCostEstimate.build(context)
217
221
  when :get_disk
218
222
  Aws::Lightsail::Endpoints::GetDisk.build(context)
219
223
  when :get_disk_snapshot
@@ -330,10 +334,14 @@ module Aws::Lightsail
330
334
  Aws::Lightsail::Endpoints::SetIpAddressType.build(context)
331
335
  when :set_resource_access_for_bucket
332
336
  Aws::Lightsail::Endpoints::SetResourceAccessForBucket.build(context)
337
+ when :start_gui_session
338
+ Aws::Lightsail::Endpoints::StartGUISession.build(context)
333
339
  when :start_instance
334
340
  Aws::Lightsail::Endpoints::StartInstance.build(context)
335
341
  when :start_relational_database
336
342
  Aws::Lightsail::Endpoints::StartRelationalDatabase.build(context)
343
+ when :stop_gui_session
344
+ Aws::Lightsail::Endpoints::StopGUISession.build(context)
337
345
  when :stop_instance
338
346
  Aws::Lightsail::Endpoints::StopInstance.build(context)
339
347
  when :stop_relational_database