@aws-sdk/client-lightsail 3.1123.0 → 3.1125.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.
Files changed (113) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +63 -6
  3. package/dist-es/Lightsail.js +2 -0
  4. package/dist-es/commands/GetProfileCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +19 -0
  7. package/dist-es/schemas/schemas_0.js +31 -5
  8. package/dist-types/Lightsail.d.ts +8 -0
  9. package/dist-types/LightsailClient.d.ts +3 -2
  10. package/dist-types/commands/AllocateStaticIpCommand.d.ts +1 -1
  11. package/dist-types/commands/AttachCertificateToDistributionCommand.d.ts +1 -1
  12. package/dist-types/commands/AttachDiskCommand.d.ts +1 -1
  13. package/dist-types/commands/AttachInstancesToLoadBalancerCommand.d.ts +1 -1
  14. package/dist-types/commands/AttachLoadBalancerTlsCertificateCommand.d.ts +1 -1
  15. package/dist-types/commands/AttachStaticIpCommand.d.ts +1 -1
  16. package/dist-types/commands/CloseInstancePublicPortsCommand.d.ts +1 -1
  17. package/dist-types/commands/CopySnapshotCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateBucketAccessKeyCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateBucketCommand.d.ts +1 -1
  20. package/dist-types/commands/CreateCertificateCommand.d.ts +1 -1
  21. package/dist-types/commands/CreateCloudFormationStackCommand.d.ts +1 -1
  22. package/dist-types/commands/CreateContactMethodCommand.d.ts +1 -1
  23. package/dist-types/commands/CreateDiskCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateDiskFromSnapshotCommand.d.ts +1 -1
  25. package/dist-types/commands/CreateDiskSnapshotCommand.d.ts +1 -1
  26. package/dist-types/commands/CreateDistributionCommand.d.ts +1 -1
  27. package/dist-types/commands/CreateDomainCommand.d.ts +1 -1
  28. package/dist-types/commands/CreateDomainEntryCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateInstanceSnapshotCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateInstancesCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateInstancesFromSnapshotCommand.d.ts +1 -1
  32. package/dist-types/commands/CreateKeyPairCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateLoadBalancerCommand.d.ts +1 -1
  34. package/dist-types/commands/CreateLoadBalancerTlsCertificateCommand.d.ts +1 -1
  35. package/dist-types/commands/CreateRelationalDatabaseCommand.d.ts +1 -1
  36. package/dist-types/commands/CreateRelationalDatabaseFromSnapshotCommand.d.ts +1 -1
  37. package/dist-types/commands/CreateRelationalDatabaseSnapshotCommand.d.ts +1 -1
  38. package/dist-types/commands/DeleteAlarmCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteAutoSnapshotCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteBucketAccessKeyCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteBucketCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteCertificateCommand.d.ts +1 -1
  43. package/dist-types/commands/DeleteContactMethodCommand.d.ts +1 -1
  44. package/dist-types/commands/DeleteDiskCommand.d.ts +1 -1
  45. package/dist-types/commands/DeleteDiskSnapshotCommand.d.ts +1 -1
  46. package/dist-types/commands/DeleteDistributionCommand.d.ts +1 -1
  47. package/dist-types/commands/DeleteDomainCommand.d.ts +1 -1
  48. package/dist-types/commands/DeleteDomainEntryCommand.d.ts +1 -1
  49. package/dist-types/commands/DeleteInstanceCommand.d.ts +1 -1
  50. package/dist-types/commands/DeleteInstanceSnapshotCommand.d.ts +1 -1
  51. package/dist-types/commands/DeleteKeyPairCommand.d.ts +1 -1
  52. package/dist-types/commands/DeleteKnownHostKeysCommand.d.ts +1 -1
  53. package/dist-types/commands/DeleteLoadBalancerCommand.d.ts +1 -1
  54. package/dist-types/commands/DeleteLoadBalancerTlsCertificateCommand.d.ts +1 -1
  55. package/dist-types/commands/DeleteRelationalDatabaseCommand.d.ts +1 -1
  56. package/dist-types/commands/DeleteRelationalDatabaseSnapshotCommand.d.ts +1 -1
  57. package/dist-types/commands/DetachCertificateFromDistributionCommand.d.ts +1 -1
  58. package/dist-types/commands/DetachDiskCommand.d.ts +1 -1
  59. package/dist-types/commands/DetachInstancesFromLoadBalancerCommand.d.ts +1 -1
  60. package/dist-types/commands/DetachStaticIpCommand.d.ts +1 -1
  61. package/dist-types/commands/DisableAddOnCommand.d.ts +1 -1
  62. package/dist-types/commands/EnableAddOnCommand.d.ts +1 -1
  63. package/dist-types/commands/ExportSnapshotCommand.d.ts +1 -1
  64. package/dist-types/commands/GetAlarmsCommand.d.ts +1 -1
  65. package/dist-types/commands/GetOperationCommand.d.ts +1 -1
  66. package/dist-types/commands/GetOperationsCommand.d.ts +1 -1
  67. package/dist-types/commands/GetOperationsForResourceCommand.d.ts +1 -1
  68. package/dist-types/commands/GetProfileCommand.d.ts +100 -0
  69. package/dist-types/commands/GetRelationalDatabaseMetricDataCommand.d.ts +2 -2
  70. package/dist-types/commands/ImportKeyPairCommand.d.ts +1 -1
  71. package/dist-types/commands/OpenInstancePublicPortsCommand.d.ts +1 -1
  72. package/dist-types/commands/PeerVpcCommand.d.ts +1 -1
  73. package/dist-types/commands/PutAlarmCommand.d.ts +2 -2
  74. package/dist-types/commands/PutInstancePublicPortsCommand.d.ts +1 -1
  75. package/dist-types/commands/RebootInstanceCommand.d.ts +1 -1
  76. package/dist-types/commands/RebootRelationalDatabaseCommand.d.ts +1 -1
  77. package/dist-types/commands/ReleaseStaticIpCommand.d.ts +1 -1
  78. package/dist-types/commands/ResetDistributionCacheCommand.d.ts +1 -1
  79. package/dist-types/commands/SendContactMethodVerificationCommand.d.ts +1 -1
  80. package/dist-types/commands/SetIpAddressTypeCommand.d.ts +1 -1
  81. package/dist-types/commands/SetResourceAccessForBucketCommand.d.ts +1 -1
  82. package/dist-types/commands/SetupInstanceHttpsCommand.d.ts +1 -1
  83. package/dist-types/commands/StartGUISessionCommand.d.ts +1 -1
  84. package/dist-types/commands/StartInstanceCommand.d.ts +1 -1
  85. package/dist-types/commands/StartRelationalDatabaseCommand.d.ts +1 -1
  86. package/dist-types/commands/StopGUISessionCommand.d.ts +1 -1
  87. package/dist-types/commands/StopInstanceCommand.d.ts +1 -1
  88. package/dist-types/commands/StopRelationalDatabaseCommand.d.ts +1 -1
  89. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  90. package/dist-types/commands/TestAlarmCommand.d.ts +1 -1
  91. package/dist-types/commands/UnpeerVpcCommand.d.ts +1 -1
  92. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  93. package/dist-types/commands/UpdateBucketBundleCommand.d.ts +1 -1
  94. package/dist-types/commands/UpdateBucketCommand.d.ts +1 -1
  95. package/dist-types/commands/UpdateDistributionBundleCommand.d.ts +1 -1
  96. package/dist-types/commands/UpdateDistributionCommand.d.ts +1 -1
  97. package/dist-types/commands/UpdateDomainEntryCommand.d.ts +1 -1
  98. package/dist-types/commands/UpdateInstanceMetadataOptionsCommand.d.ts +1 -1
  99. package/dist-types/commands/UpdateLoadBalancerAttributeCommand.d.ts +1 -1
  100. package/dist-types/commands/UpdateRelationalDatabaseCommand.d.ts +1 -1
  101. package/dist-types/commands/UpdateRelationalDatabaseParametersCommand.d.ts +1 -1
  102. package/dist-types/commands/index.d.ts +1 -0
  103. package/dist-types/models/enums.d.ts +43 -0
  104. package/dist-types/models/models_1.d.ts +72 -1
  105. package/dist-types/schemas/schemas_0.d.ts +4 -0
  106. package/dist-types/ts3.4/Lightsail.d.ts +15 -0
  107. package/dist-types/ts3.4/LightsailClient.d.ts +3 -0
  108. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +38 -0
  109. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  110. package/dist-types/ts3.4/models/enums.d.ts +22 -0
  111. package/dist-types/ts3.4/models/models_1.d.ts +13 -0
  112. package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
  113. package/package.json +1 -1
@@ -425,6 +425,7 @@ import {
425
425
  GetOperationsForResourceCommandInput,
426
426
  GetOperationsForResourceCommandOutput,
427
427
  } from "./commands/GetOperationsForResourceCommand";
428
+ import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
428
429
  import { GetRegionsCommandInput, GetRegionsCommandOutput } from "./commands/GetRegionsCommand";
429
430
  import {
430
431
  GetRelationalDatabaseBlueprintsCommandInput,
@@ -723,6 +724,7 @@ export type ServiceInputTypes =
723
724
  | GetOperationCommandInput
724
725
  | GetOperationsCommandInput
725
726
  | GetOperationsForResourceCommandInput
727
+ | GetProfileCommandInput
726
728
  | GetRegionsCommandInput
727
729
  | GetRelationalDatabaseBlueprintsCommandInput
728
730
  | GetRelationalDatabaseBundlesCommandInput
@@ -885,6 +887,7 @@ export type ServiceOutputTypes =
885
887
  | GetOperationCommandOutput
886
888
  | GetOperationsCommandOutput
887
889
  | GetOperationsForResourceCommandOutput
890
+ | GetProfileCommandOutput
888
891
  | GetRegionsCommandOutput
889
892
  | GetRelationalDatabaseBlueprintsCommandOutput
890
893
  | GetRelationalDatabaseBundlesCommandOutput
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { GetProfileRequest, GetProfileResult } from "../models/models_1";
3
+ export { __MetadataBearer };
4
+ export interface GetProfileCommandInput extends GetProfileRequest {}
5
+ export interface GetProfileCommandOutput extends GetProfileResult, __MetadataBearer {}
6
+ declare const GetProfileCommand_base: {
7
+ new (
8
+ input: GetProfileCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ GetProfileCommandInput,
11
+ GetProfileCommandOutput,
12
+ import("..").LightsailClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ ...[input]: [] | [GetProfileCommandInput]
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ GetProfileCommandInput,
20
+ GetProfileCommandOutput,
21
+ import("..").LightsailClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class GetProfileCommand extends GetProfileCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: {};
31
+ output: GetProfileResult;
32
+ };
33
+ sdk: {
34
+ input: GetProfileCommandInput;
35
+ output: GetProfileCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -108,6 +108,7 @@ export * from "./GetLoadBalancersCommand";
108
108
  export * from "./GetOperationCommand";
109
109
  export * from "./GetOperationsCommand";
110
110
  export * from "./GetOperationsForResourceCommand";
111
+ export * from "./GetProfileCommand";
111
112
  export * from "./GetRegionsCommand";
112
113
  export * from "./GetRelationalDatabaseBlueprintsCommand";
113
114
  export * from "./GetRelationalDatabaseBundlesCommand";
@@ -76,6 +76,7 @@ export declare const MetricName: {
76
76
  readonly DatabaseConnections: "DatabaseConnections";
77
77
  readonly DiskQueueDepth: "DiskQueueDepth";
78
78
  readonly FreeStorageSpace: "FreeStorageSpace";
79
+ readonly FreeableMemory: "FreeableMemory";
79
80
  readonly HTTPCode_Instance_2XX_Count: "HTTPCode_Instance_2XX_Count";
80
81
  readonly HTTPCode_Instance_3XX_Count: "HTTPCode_Instance_3XX_Count";
81
82
  readonly HTTPCode_Instance_4XX_Count: "HTTPCode_Instance_4XX_Count";
@@ -93,6 +94,7 @@ export declare const MetricName: {
93
94
  readonly StatusCheckFailed: "StatusCheckFailed";
94
95
  readonly StatusCheckFailed_Instance: "StatusCheckFailed_Instance";
95
96
  readonly StatusCheckFailed_System: "StatusCheckFailed_System";
97
+ readonly SwapUsage: "SwapUsage";
96
98
  readonly UnhealthyHostCount: "UnhealthyHostCount";
97
99
  };
98
100
  export type MetricName = (typeof MetricName)[keyof typeof MetricName];
@@ -225,6 +227,7 @@ export declare const OperationType: {
225
227
  readonly EnableAddOn: "EnableAddOn";
226
228
  readonly GetAlarms: "GetAlarms";
227
229
  readonly GetContactMethods: "GetContactMethods";
230
+ readonly GetProfile: "GetProfile";
228
231
  readonly OpenInstancePublicPorts: "OpenInstancePublicPorts";
229
232
  readonly PutAlarm: "PutAlarm";
230
233
  readonly PutInstancePublicPorts: "PutInstancePublicPorts";
@@ -727,6 +730,23 @@ export declare const LoadBalancerTlsCertificateStatus: {
727
730
  };
728
731
  export type LoadBalancerTlsCertificateStatus =
729
732
  (typeof LoadBalancerTlsCertificateStatus)[keyof typeof LoadBalancerTlsCertificateStatus];
733
+ export declare const PartnerStatus: {
734
+ readonly Active: "Active";
735
+ readonly Suspended: "Suspended";
736
+ };
737
+ export type PartnerStatus = (typeof PartnerStatus)[keyof typeof PartnerStatus];
738
+ export declare const TierName: {
739
+ readonly Accelerate: "Accelerate";
740
+ readonly Essential: "Essential";
741
+ readonly Growth: "Growth";
742
+ readonly Premier: "Premier";
743
+ };
744
+ export type TierName = (typeof TierName)[keyof typeof TierName];
745
+ export declare const ProfileType: {
746
+ readonly LightsailPartner: "LightsailPartner";
747
+ readonly Lightsailor: "Lightsailor";
748
+ };
749
+ export type ProfileType = (typeof ProfileType)[keyof typeof ProfileType];
730
750
  export declare const RelationalDatabaseEngine: {
731
751
  readonly MYSQL: "mysql";
732
752
  };
@@ -744,8 +764,10 @@ export declare const RelationalDatabaseMetricName: {
744
764
  readonly DatabaseConnections: "DatabaseConnections";
745
765
  readonly DiskQueueDepth: "DiskQueueDepth";
746
766
  readonly FreeStorageSpace: "FreeStorageSpace";
767
+ readonly FreeableMemory: "FreeableMemory";
747
768
  readonly NetworkReceiveThroughput: "NetworkReceiveThroughput";
748
769
  readonly NetworkTransmitThroughput: "NetworkTransmitThroughput";
770
+ readonly SwapUsage: "SwapUsage";
749
771
  };
750
772
  export type RelationalDatabaseMetricName =
751
773
  (typeof RelationalDatabaseMetricName)[keyof typeof RelationalDatabaseMetricName];
@@ -24,6 +24,8 @@ import {
24
24
  MetricName,
25
25
  MetricStatistic,
26
26
  MetricUnit,
27
+ PartnerStatus,
28
+ ProfileType,
27
29
  RegionName,
28
30
  RelationalDatabaseEngine,
29
31
  RelationalDatabaseMetricName,
@@ -31,6 +33,7 @@ import {
31
33
  ResourceBucketAccess,
32
34
  ResourceType,
33
35
  SetupStatus,
36
+ TierName,
34
37
  TreatMissingData,
35
38
  ViewerMinimumTlsProtocolVersionEnum,
36
39
  } from "./enums";
@@ -196,6 +199,16 @@ export interface GetOperationsForResourceResult {
196
199
  nextPageCount?: string | undefined;
197
200
  nextPageToken?: string | undefined;
198
201
  }
202
+ export interface GetProfileRequest {}
203
+ export interface PartnerInfo {
204
+ enrolledAt: Date | undefined;
205
+ tierName?: TierName | undefined;
206
+ status: PartnerStatus | undefined;
207
+ }
208
+ export interface GetProfileResult {
209
+ profileType: ProfileType | undefined;
210
+ partner?: PartnerInfo | undefined;
211
+ }
199
212
  export interface GetRegionsRequest {
200
213
  includeAvailabilityZones?: boolean | undefined;
201
214
  includeRelationalDatabaseAvailabilityZones?: boolean | undefined;
@@ -287,6 +287,8 @@ export declare var GetOperationsForResourceRequest$: StaticStructureSchema;
287
287
  export declare var GetOperationsForResourceResult$: StaticStructureSchema;
288
288
  export declare var GetOperationsRequest$: StaticStructureSchema;
289
289
  export declare var GetOperationsResult$: StaticStructureSchema;
290
+ export declare var GetProfileRequest$: StaticStructureSchema;
291
+ export declare var GetProfileResult$: StaticStructureSchema;
290
292
  export declare var GetRegionsRequest$: StaticStructureSchema;
291
293
  export declare var GetRegionsResult$: StaticStructureSchema;
292
294
  export declare var GetRelationalDatabaseBlueprintsRequest$: StaticStructureSchema;
@@ -357,6 +359,7 @@ export declare var OpenInstancePublicPortsRequest$: StaticStructureSchema;
357
359
  export declare var OpenInstancePublicPortsResult$: StaticStructureSchema;
358
360
  export declare var Operation$: StaticStructureSchema;
359
361
  export declare var Origin$: StaticStructureSchema;
362
+ export declare var PartnerInfo$: StaticStructureSchema;
360
363
  export declare var PasswordData$: StaticStructureSchema;
361
364
  export declare var PeerVpcRequest$: StaticStructureSchema;
362
365
  export declare var PeerVpcResult$: StaticStructureSchema;
@@ -563,6 +566,7 @@ export declare var GetLoadBalancerTlsPolicies$: StaticOperationSchema;
563
566
  export declare var GetOperation$: StaticOperationSchema;
564
567
  export declare var GetOperations$: StaticOperationSchema;
565
568
  export declare var GetOperationsForResource$: StaticOperationSchema;
569
+ export declare var GetProfile$: StaticOperationSchema;
566
570
  export declare var GetRegions$: StaticOperationSchema;
567
571
  export declare var GetRelationalDatabase$: StaticOperationSchema;
568
572
  export declare var GetRelationalDatabaseBlueprints$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lightsail",
3
- "version": "3.1123.0",
3
+ "version": "3.1125.0",
4
4
  "description": "AWS SDK for JavaScript Lightsail Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lightsail",
6
6
  "license": "Apache-2.0",