@aws-sdk/client-lightsail 3.1166.0 → 3.1168.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 (162) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +202 -15
  3. package/dist-es/Lightsail.js +10 -0
  4. package/dist-es/commands/CheckSubdomainAvailabilityCommand.js +4 -0
  5. package/dist-es/commands/CreateSubdomainCommand.js +4 -0
  6. package/dist-es/commands/DeleteSubdomainCommand.js +4 -0
  7. package/dist-es/commands/GetSubdomainsCommand.js +4 -0
  8. package/dist-es/commands/UpdateSubdomainAssociationCommand.js +4 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/enums.js +25 -0
  11. package/dist-es/schemas/schemas_0.js +130 -14
  12. package/dist-types/Lightsail.d.ts +36 -0
  13. package/dist-types/LightsailClient.d.ts +7 -2
  14. package/dist-types/commands/AllocateStaticIpCommand.d.ts +2 -2
  15. package/dist-types/commands/AttachCertificateToDistributionCommand.d.ts +2 -2
  16. package/dist-types/commands/AttachDiskCommand.d.ts +2 -2
  17. package/dist-types/commands/AttachInstancesToLoadBalancerCommand.d.ts +2 -2
  18. package/dist-types/commands/AttachLoadBalancerTlsCertificateCommand.d.ts +2 -2
  19. package/dist-types/commands/AttachStaticIpCommand.d.ts +2 -2
  20. package/dist-types/commands/CheckSubdomainAvailabilityCommand.d.ts +99 -0
  21. package/dist-types/commands/CloseInstancePublicPortsCommand.d.ts +2 -2
  22. package/dist-types/commands/CopySnapshotCommand.d.ts +2 -2
  23. package/dist-types/commands/CreateBucketAccessKeyCommand.d.ts +2 -2
  24. package/dist-types/commands/CreateBucketCommand.d.ts +2 -2
  25. package/dist-types/commands/CreateCertificateCommand.d.ts +2 -2
  26. package/dist-types/commands/CreateCloudFormationStackCommand.d.ts +2 -2
  27. package/dist-types/commands/CreateContactMethodCommand.d.ts +2 -2
  28. package/dist-types/commands/CreateContainerServiceCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateContainerServiceDeploymentCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateDiskCommand.d.ts +2 -2
  31. package/dist-types/commands/CreateDiskFromSnapshotCommand.d.ts +2 -2
  32. package/dist-types/commands/CreateDiskSnapshotCommand.d.ts +2 -2
  33. package/dist-types/commands/CreateDistributionCommand.d.ts +11 -4
  34. package/dist-types/commands/CreateDomainCommand.d.ts +2 -2
  35. package/dist-types/commands/CreateDomainEntryCommand.d.ts +2 -2
  36. package/dist-types/commands/CreateInstanceSnapshotCommand.d.ts +2 -2
  37. package/dist-types/commands/CreateInstancesCommand.d.ts +2 -2
  38. package/dist-types/commands/CreateInstancesFromSnapshotCommand.d.ts +2 -2
  39. package/dist-types/commands/CreateKeyPairCommand.d.ts +3 -3
  40. package/dist-types/commands/CreateLoadBalancerCommand.d.ts +2 -2
  41. package/dist-types/commands/CreateLoadBalancerTlsCertificateCommand.d.ts +2 -2
  42. package/dist-types/commands/CreateRelationalDatabaseCommand.d.ts +2 -2
  43. package/dist-types/commands/CreateRelationalDatabaseFromSnapshotCommand.d.ts +2 -2
  44. package/dist-types/commands/CreateRelationalDatabaseSnapshotCommand.d.ts +2 -2
  45. package/dist-types/commands/CreateSubdomainCommand.d.ts +193 -0
  46. package/dist-types/commands/DeleteAlarmCommand.d.ts +2 -2
  47. package/dist-types/commands/DeleteAutoSnapshotCommand.d.ts +2 -2
  48. package/dist-types/commands/DeleteBucketAccessKeyCommand.d.ts +2 -2
  49. package/dist-types/commands/DeleteBucketCommand.d.ts +2 -2
  50. package/dist-types/commands/DeleteCertificateCommand.d.ts +2 -2
  51. package/dist-types/commands/DeleteContactMethodCommand.d.ts +2 -2
  52. package/dist-types/commands/DeleteDiskCommand.d.ts +2 -2
  53. package/dist-types/commands/DeleteDiskSnapshotCommand.d.ts +2 -2
  54. package/dist-types/commands/DeleteDistributionCommand.d.ts +2 -2
  55. package/dist-types/commands/DeleteDomainCommand.d.ts +2 -2
  56. package/dist-types/commands/DeleteDomainEntryCommand.d.ts +2 -2
  57. package/dist-types/commands/DeleteInstanceCommand.d.ts +2 -2
  58. package/dist-types/commands/DeleteInstanceSnapshotCommand.d.ts +2 -2
  59. package/dist-types/commands/DeleteKeyPairCommand.d.ts +2 -2
  60. package/dist-types/commands/DeleteKnownHostKeysCommand.d.ts +2 -2
  61. package/dist-types/commands/DeleteLoadBalancerCommand.d.ts +2 -2
  62. package/dist-types/commands/DeleteLoadBalancerTlsCertificateCommand.d.ts +2 -2
  63. package/dist-types/commands/DeleteRelationalDatabaseCommand.d.ts +2 -2
  64. package/dist-types/commands/DeleteRelationalDatabaseSnapshotCommand.d.ts +2 -2
  65. package/dist-types/commands/DeleteSubdomainCommand.d.ts +187 -0
  66. package/dist-types/commands/DetachCertificateFromDistributionCommand.d.ts +2 -2
  67. package/dist-types/commands/DetachDiskCommand.d.ts +2 -2
  68. package/dist-types/commands/DetachInstancesFromLoadBalancerCommand.d.ts +2 -2
  69. package/dist-types/commands/DetachStaticIpCommand.d.ts +2 -2
  70. package/dist-types/commands/DisableAddOnCommand.d.ts +2 -2
  71. package/dist-types/commands/EnableAddOnCommand.d.ts +2 -2
  72. package/dist-types/commands/ExportSnapshotCommand.d.ts +2 -2
  73. package/dist-types/commands/GetAlarmsCommand.d.ts +2 -2
  74. package/dist-types/commands/GetAutoSnapshotsCommand.d.ts +1 -1
  75. package/dist-types/commands/GetCloudFormationStackRecordsCommand.d.ts +1 -1
  76. package/dist-types/commands/GetContactMethodsCommand.d.ts +1 -1
  77. package/dist-types/commands/GetContainerServicesCommand.d.ts +1 -1
  78. package/dist-types/commands/GetCostEstimateCommand.d.ts +1 -1
  79. package/dist-types/commands/GetDiskCommand.d.ts +1 -1
  80. package/dist-types/commands/GetDiskSnapshotCommand.d.ts +1 -1
  81. package/dist-types/commands/GetDiskSnapshotsCommand.d.ts +1 -1
  82. package/dist-types/commands/GetDisksCommand.d.ts +1 -1
  83. package/dist-types/commands/GetDistributionsCommand.d.ts +14 -2
  84. package/dist-types/commands/GetDomainCommand.d.ts +1 -1
  85. package/dist-types/commands/GetDomainsCommand.d.ts +1 -1
  86. package/dist-types/commands/GetExportSnapshotRecordsCommand.d.ts +1 -1
  87. package/dist-types/commands/GetInstanceCommand.d.ts +2 -2
  88. package/dist-types/commands/GetInstancePortStatesCommand.d.ts +2 -1
  89. package/dist-types/commands/GetInstanceSnapshotCommand.d.ts +3 -3
  90. package/dist-types/commands/GetInstanceSnapshotsCommand.d.ts +2 -2
  91. package/dist-types/commands/GetInstancesCommand.d.ts +3 -3
  92. package/dist-types/commands/GetKeyPairCommand.d.ts +1 -1
  93. package/dist-types/commands/GetKeyPairsCommand.d.ts +1 -1
  94. package/dist-types/commands/GetLoadBalancerCommand.d.ts +1 -1
  95. package/dist-types/commands/GetLoadBalancerTlsCertificatesCommand.d.ts +1 -1
  96. package/dist-types/commands/GetLoadBalancersCommand.d.ts +1 -1
  97. package/dist-types/commands/GetOperationCommand.d.ts +2 -2
  98. package/dist-types/commands/GetOperationsCommand.d.ts +2 -2
  99. package/dist-types/commands/GetOperationsForResourceCommand.d.ts +2 -2
  100. package/dist-types/commands/GetRelationalDatabaseCommand.d.ts +1 -1
  101. package/dist-types/commands/GetRelationalDatabaseSnapshotCommand.d.ts +1 -1
  102. package/dist-types/commands/GetRelationalDatabaseSnapshotsCommand.d.ts +1 -1
  103. package/dist-types/commands/GetRelationalDatabasesCommand.d.ts +1 -1
  104. package/dist-types/commands/GetSetupHistoryCommand.d.ts +1 -1
  105. package/dist-types/commands/GetStaticIpCommand.d.ts +1 -1
  106. package/dist-types/commands/GetStaticIpsCommand.d.ts +1 -1
  107. package/dist-types/commands/GetSubdomainsCommand.d.ts +162 -0
  108. package/dist-types/commands/ImportKeyPairCommand.d.ts +2 -2
  109. package/dist-types/commands/OpenInstancePublicPortsCommand.d.ts +2 -2
  110. package/dist-types/commands/PeerVpcCommand.d.ts +2 -2
  111. package/dist-types/commands/PutAlarmCommand.d.ts +2 -2
  112. package/dist-types/commands/PutInstancePublicPortsCommand.d.ts +2 -2
  113. package/dist-types/commands/RebootInstanceCommand.d.ts +2 -2
  114. package/dist-types/commands/RebootRelationalDatabaseCommand.d.ts +2 -2
  115. package/dist-types/commands/ReleaseStaticIpCommand.d.ts +2 -2
  116. package/dist-types/commands/ResetDistributionCacheCommand.d.ts +2 -2
  117. package/dist-types/commands/SendContactMethodVerificationCommand.d.ts +2 -2
  118. package/dist-types/commands/SetIpAddressTypeCommand.d.ts +3 -3
  119. package/dist-types/commands/SetResourceAccessForBucketCommand.d.ts +2 -2
  120. package/dist-types/commands/SetupInstanceHttpsCommand.d.ts +2 -2
  121. package/dist-types/commands/StartGUISessionCommand.d.ts +2 -2
  122. package/dist-types/commands/StartInstanceCommand.d.ts +2 -2
  123. package/dist-types/commands/StartRelationalDatabaseCommand.d.ts +2 -2
  124. package/dist-types/commands/StopGUISessionCommand.d.ts +2 -2
  125. package/dist-types/commands/StopInstanceCommand.d.ts +2 -2
  126. package/dist-types/commands/StopRelationalDatabaseCommand.d.ts +2 -2
  127. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  128. package/dist-types/commands/TestAlarmCommand.d.ts +2 -2
  129. package/dist-types/commands/UnpeerVpcCommand.d.ts +2 -2
  130. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  131. package/dist-types/commands/UpdateBucketBundleCommand.d.ts +2 -2
  132. package/dist-types/commands/UpdateBucketCommand.d.ts +2 -2
  133. package/dist-types/commands/UpdateContainerServiceCommand.d.ts +1 -1
  134. package/dist-types/commands/UpdateDistributionBundleCommand.d.ts +2 -2
  135. package/dist-types/commands/UpdateDistributionCommand.d.ts +2 -2
  136. package/dist-types/commands/UpdateDomainEntryCommand.d.ts +2 -2
  137. package/dist-types/commands/UpdateInstanceMetadataOptionsCommand.d.ts +2 -2
  138. package/dist-types/commands/UpdateLoadBalancerAttributeCommand.d.ts +2 -2
  139. package/dist-types/commands/UpdateRelationalDatabaseCommand.d.ts +2 -2
  140. package/dist-types/commands/UpdateRelationalDatabaseParametersCommand.d.ts +2 -2
  141. package/dist-types/commands/UpdateSubdomainAssociationCommand.d.ts +189 -0
  142. package/dist-types/commands/index.d.ts +5 -0
  143. package/dist-types/models/enums.d.ts +49 -0
  144. package/dist-types/models/models_0.d.ts +184 -171
  145. package/dist-types/models/models_1.d.ts +441 -2
  146. package/dist-types/schemas/schemas_0.d.ts +18 -0
  147. package/dist-types/ts3.4/Lightsail.d.ts +86 -0
  148. package/dist-types/ts3.4/LightsailClient.d.ts +32 -2
  149. package/dist-types/ts3.4/commands/CheckSubdomainAvailabilityCommand.d.ts +42 -0
  150. package/dist-types/ts3.4/commands/CreateSubdomainCommand.d.ts +39 -0
  151. package/dist-types/ts3.4/commands/DeleteSubdomainCommand.d.ts +39 -0
  152. package/dist-types/ts3.4/commands/GetInstancePortStatesCommand.d.ts +2 -1
  153. package/dist-types/ts3.4/commands/GetInstanceSnapshotCommand.d.ts +1 -1
  154. package/dist-types/ts3.4/commands/GetInstancesCommand.d.ts +1 -1
  155. package/dist-types/ts3.4/commands/GetSubdomainsCommand.d.ts +38 -0
  156. package/dist-types/ts3.4/commands/UpdateSubdomainAssociationCommand.d.ts +42 -0
  157. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  158. package/dist-types/ts3.4/models/enums.d.ts +30 -0
  159. package/dist-types/ts3.4/models/models_0.d.ts +30 -36
  160. package/dist-types/ts3.4/models/models_1.d.ts +81 -1
  161. package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
  162. package/package.json +2 -2
@@ -199,6 +199,7 @@ export declare const ResourceType: {
199
199
  readonly RelationalDatabase: "RelationalDatabase";
200
200
  readonly RelationalDatabaseSnapshot: "RelationalDatabaseSnapshot";
201
201
  readonly StaticIp: "StaticIp";
202
+ readonly Subdomain: "Subdomain";
202
203
  };
203
204
  /**
204
205
  * @public
@@ -315,6 +316,7 @@ export declare const OperationType: {
315
316
  readonly CreateRelationalDatabase: "CreateRelationalDatabase";
316
317
  readonly CreateRelationalDatabaseFromSnapshot: "CreateRelationalDatabaseFromSnapshot";
317
318
  readonly CreateRelationalDatabaseSnapshot: "CreateRelationalDatabaseSnapshot";
319
+ readonly CreateSubdomain: "CreateSubdomain";
318
320
  readonly DeleteAlarm: "DeleteAlarm";
319
321
  readonly DeleteBucket: "DeleteBucket";
320
322
  readonly DeleteBucketAccessKey: "DeleteBucketAccessKey";
@@ -334,6 +336,7 @@ export declare const OperationType: {
334
336
  readonly DeleteLoadBalancerTlsCertificate: "DeleteLoadBalancerTlsCertificate";
335
337
  readonly DeleteRelationalDatabase: "DeleteRelationalDatabase";
336
338
  readonly DeleteRelationalDatabaseSnapshot: "DeleteRelationalDatabaseSnapshot";
339
+ readonly DeleteSubdomain: "DeleteSubdomain";
337
340
  readonly DetachCertificateFromDistribution: "DetachCertificateFromDistribution";
338
341
  readonly DetachDisk: "DetachDisk";
339
342
  readonly DetachInstancesFromLoadBalancer: "DetachInstancesFromLoadBalancer";
@@ -372,6 +375,7 @@ export declare const OperationType: {
372
375
  readonly UpdateLoadBalancerAttribute: "UpdateLoadBalancerAttribute";
373
376
  readonly UpdateRelationalDatabase: "UpdateRelationalDatabase";
374
377
  readonly UpdateRelationalDatabaseParameters: "UpdateRelationalDatabaseParameters";
378
+ readonly UpdateSubdomainAssociation: "UpdateSubdomainAssociation";
375
379
  };
376
380
  /**
377
381
  * @public
@@ -856,6 +860,20 @@ export declare const WafInspectionLevelEnum: {
856
860
  * @public
857
861
  */
858
862
  export type WafInspectionLevelEnum = (typeof WafInspectionLevelEnum)[keyof typeof WafInspectionLevelEnum];
863
+ /**
864
+ * @public
865
+ * @enum
866
+ */
867
+ export declare const LightsailDistributionSubdomainStateEnum: {
868
+ readonly ATTACHED: "Attached";
869
+ readonly ATTACHING: "Attaching";
870
+ readonly CREATING: "Creating";
871
+ readonly ERROR: "Error";
872
+ };
873
+ /**
874
+ * @public
875
+ */
876
+ export type LightsailDistributionSubdomainStateEnum = (typeof LightsailDistributionSubdomainStateEnum)[keyof typeof LightsailDistributionSubdomainStateEnum];
859
877
  /**
860
878
  * @public
861
879
  * @enum
@@ -876,6 +894,24 @@ export declare const Status: {
876
894
  * @public
877
895
  */
878
896
  export type Status = (typeof Status)[keyof typeof Status];
897
+ /**
898
+ * @public
899
+ * @enum
900
+ */
901
+ export declare const SubdomainState: {
902
+ readonly ATTACHED: "ATTACHED";
903
+ readonly ATTACHING: "ATTACHING";
904
+ readonly CREATE_FAILED: "CREATE_FAILED";
905
+ readonly CREATING: "CREATING";
906
+ readonly DETACHING: "DETACHING";
907
+ readonly IMPLICIT: "IMPLICIT";
908
+ readonly TRANSFERRING: "TRANSFERRING";
909
+ readonly UNATTACHED: "UNATTACHED";
910
+ };
911
+ /**
912
+ * @public
913
+ */
914
+ export type SubdomainState = (typeof SubdomainState)[keyof typeof SubdomainState];
879
915
  /**
880
916
  * @public
881
917
  * @enum
@@ -1425,3 +1461,16 @@ export declare const ResourceBucketAccess: {
1425
1461
  * @public
1426
1462
  */
1427
1463
  export type ResourceBucketAccess = (typeof ResourceBucketAccess)[keyof typeof ResourceBucketAccess];
1464
+ /**
1465
+ * @public
1466
+ * @enum
1467
+ */
1468
+ export declare const SubdomainAssociationAction: {
1469
+ readonly ASSOCIATE: "ASSOCIATE";
1470
+ readonly DISASSOCIATE: "DISASSOCIATE";
1471
+ readonly TRANSFER: "TRANSFER";
1472
+ };
1473
+ /**
1474
+ * @public
1475
+ */
1476
+ export type SubdomainAssociationAction = (typeof SubdomainAssociationAction)[keyof typeof SubdomainAssociationAction];
@@ -1,4 +1,4 @@
1
- import type { AccessDirection, AccessType, AccountLevelBpaSyncStatus, AddOnType, AlarmState, AppCategory, AutoMountStatus, AutoSnapshotStatus, BehaviorEnum, BlueprintType, BPAStatusMessage, BucketMetricName, CertificateDomainValidationStatus, CertificateStatus, CloudFormationStackRecordSourceType, ComparisonOperator, ContactMethodStatus, ContactProtocol, ContainerServiceDeploymentState, ContainerServiceMetricName, ContainerServicePowerName, ContainerServiceProtocol, ContainerServiceState, ContainerServiceStateDetailCode, Currency, DiskSnapshotState, DiskState, DistributionMetricName, DnsRecordCreationStateCode, ExportSnapshotRecordSourceType, ForwardValues, HeaderEnum, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceAccessProtocol, InstanceHealthStatusDetailName, InstanceHealthStatusDetailValue, InstanceHealthStatusValue, InstanceMetadataState, InstanceMetricName, InstancePlatform, InstanceSnapshotState, IpAddressType, MetricName, MetricStatistic, MetricUnit, NameServersUpdateStateCode, NetworkProtocol, OperationStatus, OperationType, OriginIpAddressTypeEnum, OriginProtocolPolicyEnum, PortAccessType, PortInfoSourceType, PortState, PricingUnit, R53HostedZoneDeletionStateCode, RecordState, RegionName, RenewalStatus, ResourceType, Status, StatusType, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum, WafInspectionLevelEnum, WafPayloadTypeEnum } from "./enums";
1
+ import type { AccessDirection, AccessType, AccountLevelBpaSyncStatus, AddOnType, AlarmState, AppCategory, AutoMountStatus, AutoSnapshotStatus, BehaviorEnum, BlueprintType, BPAStatusMessage, BucketMetricName, CertificateDomainValidationStatus, CertificateStatus, CloudFormationStackRecordSourceType, ComparisonOperator, ContactMethodStatus, ContactProtocol, ContainerServiceDeploymentState, ContainerServiceMetricName, ContainerServicePowerName, ContainerServiceProtocol, ContainerServiceState, ContainerServiceStateDetailCode, Currency, DiskSnapshotState, DiskState, DistributionMetricName, DnsRecordCreationStateCode, ExportSnapshotRecordSourceType, ForwardValues, HeaderEnum, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceAccessProtocol, InstanceHealthStatusDetailName, InstanceHealthStatusDetailValue, InstanceHealthStatusValue, InstanceMetadataState, InstanceMetricName, InstancePlatform, IpAddressType, LightsailDistributionSubdomainStateEnum, MetricName, MetricStatistic, MetricUnit, NameServersUpdateStateCode, NetworkProtocol, OperationStatus, OperationType, OriginIpAddressTypeEnum, OriginProtocolPolicyEnum, PortAccessType, PortInfoSourceType, PortState, PricingUnit, R53HostedZoneDeletionStateCode, RecordState, RegionName, RenewalStatus, ResourceType, Status, StatusType, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum, WafInspectionLevelEnum, WafPayloadTypeEnum } from "./enums";
2
2
  /**
3
3
  * <p>Describes the last time an access key was used.</p>
4
4
  * <note>
@@ -2146,6 +2146,56 @@ export interface CertificateSummary {
2146
2146
  */
2147
2147
  tags?: Tag[] | undefined;
2148
2148
  }
2149
+ /**
2150
+ * @public
2151
+ */
2152
+ export interface CheckSubdomainAvailabilityRequest {
2153
+ /**
2154
+ * <p>The subdomain to check (for example, <code>mysite</code> or
2155
+ * <code>blog.mysite</code>).</p>
2156
+ * <p>A subdomain can contain one or two labels separated by a period
2157
+ * (<code>.</code>). Each label must start and end with a lowercase letter or a number, and can
2158
+ * contain only lowercase letters, numbers, and hyphens (<code>-</code>). The name can be up to
2159
+ * 39 characters long, including periods. Labels that start with <code>xn--</code> aren't
2160
+ * supported, and some names are reserved.</p>
2161
+ * <p>Specify only the subdomain. A web address, such as
2162
+ * <code>mysite.amazonlightsail.com</code>, isn't accepted.</p>
2163
+ * @public
2164
+ */
2165
+ subdomainName: string | undefined;
2166
+ /**
2167
+ * <p>Specifies whether to reserve the subdomain for your account if it's available. A
2168
+ * reservation holds the subdomain for 15 minutes so that other accounts can't create it.
2169
+ * Checking the subdomain again doesn't extend the reservation.</p>
2170
+ * <p>For a nested subdomain, such as <code>blog.mysite</code>, the top-level subdomain
2171
+ * (<code>mysite</code>) is reserved.</p>
2172
+ * <p>You can have up to 5 active reservations at a time.</p>
2173
+ * @public
2174
+ */
2175
+ reserve?: boolean | undefined;
2176
+ }
2177
+ /**
2178
+ * @public
2179
+ */
2180
+ export interface CheckSubdomainAvailabilityResult {
2181
+ /**
2182
+ * <p>A Boolean value that indicates whether the subdomain is available to create.</p>
2183
+ * @public
2184
+ */
2185
+ available?: boolean | undefined;
2186
+ /**
2187
+ * <p>The timestamp when the reservation of the subdomain expires.</p>
2188
+ * <p>The expiry is returned only when your account holds an active reservation for the
2189
+ * subdomain.</p>
2190
+ * @public
2191
+ */
2192
+ reservationExpiresAt?: Date | undefined;
2193
+ /**
2194
+ * <p>The subdomain that was checked.</p>
2195
+ * @public
2196
+ */
2197
+ subdomainName?: string | undefined;
2198
+ }
2149
2199
  /**
2150
2200
  * <p>Describes ports to open on an instance, the IP addresses allowed to connect to the
2151
2201
  * instance through the ports, and the protocol.</p>
@@ -4438,6 +4488,17 @@ export interface CreateDistributionRequest {
4438
4488
  * @public
4439
4489
  */
4440
4490
  wafRules?: WafRule[] | undefined;
4491
+ /**
4492
+ * <p>The Lightsail subdomain to create and associate with the distribution (for example,
4493
+ * <code>mysite</code>, for the web address <code>mysite.amazonlightsail.com</code>).</p>
4494
+ * <p>After the distribution is deployed, Lightsail creates the subdomain and associates it
4495
+ * with the distribution. If Lightsail can't create or associate the subdomain, it still creates
4496
+ * the distribution, but the <code>CreateDistribution</code> operation fails and the
4497
+ * <code>state</code> of the distribution's <code>subdomain</code> is <code>Error</code>. To
4498
+ * check the status, use the <code>subdomain</code> parameter of the distribution.</p>
4499
+ * @public
4500
+ */
4501
+ subdomainName?: string | undefined;
4441
4502
  }
4442
4503
  /**
4443
4504
  * <p>Describes the origin resource of an Amazon Lightsail content delivery network (CDN)
@@ -4494,6 +4555,57 @@ export interface Origin {
4494
4555
  */
4495
4556
  isPrivateOriginAccessEnabled?: boolean | undefined;
4496
4557
  }
4558
+ /**
4559
+ * <p>Describes the Lightsail subdomain of a distribution. The distribution is reachable at
4560
+ * the subdomain's web address, which is the subdomain followed by
4561
+ * <code>amazonlightsail.com</code>.</p>
4562
+ * @public
4563
+ */
4564
+ export interface LightsailDistributionSubdomain {
4565
+ /**
4566
+ * <p>The subdomain (for example, <code>mysite</code>), not its web address.</p>
4567
+ * @public
4568
+ */
4569
+ name: string | undefined;
4570
+ /**
4571
+ * <p>The state of the subdomain for the distribution.</p>
4572
+ * <p>The following states are possible:</p>
4573
+ * <ul>
4574
+ * <li>
4575
+ * <p>
4576
+ * <code>Creating</code> – The subdomain is being created.</p>
4577
+ * </li>
4578
+ * <li>
4579
+ * <p>
4580
+ * <code>Attaching</code> – The subdomain is being associated with the
4581
+ * distribution.</p>
4582
+ * </li>
4583
+ * <li>
4584
+ * <p>
4585
+ * <code>Attached</code> – The subdomain is associated with the distribution.</p>
4586
+ * </li>
4587
+ * <li>
4588
+ * <p>
4589
+ * <code>Error</code> – The subdomain couldn't be created or associated with the
4590
+ * distribution. For more information, see the <code>errorCode</code> and
4591
+ * <code>errorDetails</code> parameters.</p>
4592
+ * </li>
4593
+ * </ul>
4594
+ * @public
4595
+ */
4596
+ state: LightsailDistributionSubdomainStateEnum | undefined;
4597
+ /**
4598
+ * <p>The error code that describes why the subdomain is in the <code>Error</code> state.</p>
4599
+ * @public
4600
+ */
4601
+ errorCode?: string | undefined;
4602
+ /**
4603
+ * <p>The details of the error that caused the subdomain to be in the <code>Error</code>
4604
+ * state.</p>
4605
+ * @public
4606
+ */
4607
+ errorDetails?: string | undefined;
4608
+ }
4497
4609
  /**
4498
4610
  * <p>Describes the Web Application Firewall (WAF) configuration of a Lightsail
4499
4611
  * distribution.</p>
@@ -4643,12 +4755,18 @@ export interface LightsailDistribution {
4643
4755
  * <p>The object (for example, <code>index.html</code>) that the distribution returns when a
4644
4756
  * viewer requests the root URL of the distribution (<code>/</code>) instead of a specific
4645
4757
  * object.</p>
4758
+ * <p>This value is returned only when you specify <code>distributionName</code> in your
4759
+ * <code>GetDistributions</code> request. It isn't included in the response when you list all of
4760
+ * your distributions.</p>
4646
4761
  * @public
4647
4762
  */
4648
4763
  defaultRootObject?: string | undefined;
4649
4764
  /**
4650
4765
  * <p>An array of objects that describe the custom error responses configured for the
4651
4766
  * distribution.</p>
4767
+ * <p>This value is returned only when you specify <code>distributionName</code> in your
4768
+ * <code>GetDistributions</code> request. It isn't included in the response when you list all of
4769
+ * your distributions.</p>
4652
4770
  * @public
4653
4771
  */
4654
4772
  customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
@@ -4658,6 +4776,12 @@ export interface LightsailDistribution {
4658
4776
  * @public
4659
4777
  */
4660
4778
  waf?: WafConfig | undefined;
4779
+ /**
4780
+ * <p>An object that describes the Lightsail subdomain that's associated with the
4781
+ * distribution, or is being associated with it.</p>
4782
+ * @public
4783
+ */
4784
+ subdomain?: LightsailDistributionSubdomain | undefined;
4661
4785
  }
4662
4786
  /**
4663
4787
  * @public
@@ -5769,6 +5893,54 @@ export interface CreateRelationalDatabaseSnapshotResult {
5769
5893
  */
5770
5894
  operations?: Operation[] | undefined;
5771
5895
  }
5896
+ /**
5897
+ * @public
5898
+ */
5899
+ export interface CreateSubdomainRequest {
5900
+ /**
5901
+ * <p>The subdomain to create (for example, <code>mysite</code> or
5902
+ * <code>blog.mysite</code>).</p>
5903
+ * <p>A subdomain can contain one or two labels separated by a period
5904
+ * (<code>.</code>). Each label must start and end with a lowercase letter or a number, and can
5905
+ * contain only lowercase letters, numbers, and hyphens (<code>-</code>). The name can be up to
5906
+ * 39 characters long, including periods. Labels that start with <code>xn--</code> aren't
5907
+ * supported, and some names are reserved.</p>
5908
+ * <p>Specify only the subdomain. A web address, such as
5909
+ * <code>mysite.amazonlightsail.com</code>, isn't accepted.</p>
5910
+ * <p>To create a nested subdomain, you must own the top-level subdomain or be able to create
5911
+ * it.</p>
5912
+ * @public
5913
+ */
5914
+ subdomainName: string | undefined;
5915
+ /**
5916
+ * <p>The tag keys and optional values to add to the subdomain during create.</p>
5917
+ * <p>Use the <code>TagResource</code> action to tag a resource after it's created.</p>
5918
+ * @public
5919
+ */
5920
+ tags?: Tag[] | undefined;
5921
+ }
5922
+ /**
5923
+ * <p>Describes a Lightsail resource that a subdomain is associated with, or is being
5924
+ * associated with.</p>
5925
+ * @public
5926
+ */
5927
+ export interface SubdomainAttachableResource {
5928
+ /**
5929
+ * <p>The Amazon Resource Name (ARN) of the resource.</p>
5930
+ * @public
5931
+ */
5932
+ arn?: string | undefined;
5933
+ /**
5934
+ * <p>The name of the resource.</p>
5935
+ * @public
5936
+ */
5937
+ name?: string | undefined;
5938
+ /**
5939
+ * <p>The timestamp when the subdomain was associated with the resource.</p>
5940
+ * @public
5941
+ */
5942
+ attachedAt?: Date | undefined;
5943
+ }
5772
5944
  /**
5773
5945
  * @public
5774
5946
  */
@@ -6330,6 +6502,17 @@ export interface DeleteRelationalDatabaseSnapshotResult {
6330
6502
  */
6331
6503
  operations?: Operation[] | undefined;
6332
6504
  }
6505
+ /**
6506
+ * @public
6507
+ */
6508
+ export interface DeleteSubdomainRequest {
6509
+ /**
6510
+ * <p>The subdomain to delete (for example, <code>mysite</code> or
6511
+ * <code>blog.mysite</code>), not its web address.</p>
6512
+ * @public
6513
+ */
6514
+ subdomainName: string | undefined;
6515
+ }
6333
6516
  /**
6334
6517
  * @public
6335
6518
  */
@@ -9723,173 +9906,3 @@ export interface InstancePortState {
9723
9906
  */
9724
9907
  cidrListAliases?: string[] | undefined;
9725
9908
  }
9726
- /**
9727
- * @public
9728
- */
9729
- export interface GetInstancePortStatesResult {
9730
- /**
9731
- * <p>An array of objects that describe the firewall port states for the specified
9732
- * instance.</p>
9733
- * @public
9734
- */
9735
- portStates?: InstancePortState[] | undefined;
9736
- }
9737
- /**
9738
- * @public
9739
- */
9740
- export interface GetInstancesRequest {
9741
- /**
9742
- * <p>The token to advance to the next page of results from your request.</p>
9743
- * <p>To get a page token, perform an initial <code>GetInstances</code> request. If your results
9744
- * are paginated, the response will return a next page token that you can specify as the page
9745
- * token in a subsequent request.</p>
9746
- * @public
9747
- */
9748
- pageToken?: string | undefined;
9749
- /**
9750
- * <p>Specifies whether to include the instance health status checks of each instance in the
9751
- * response of your request.</p>
9752
- * <p>When set to <code>true</code>, the response includes the <code>instanceStatus</code> and
9753
- * <code>systemStatus</code> of each instance. When omitted or set to <code>false</code>, the
9754
- * response doesn't include them.</p>
9755
- * @public
9756
- */
9757
- includeHealthStatus?: boolean | undefined;
9758
- }
9759
- /**
9760
- * @public
9761
- */
9762
- export interface GetInstancesResult {
9763
- /**
9764
- * <p>An array of key-value pairs containing information about your instances.</p>
9765
- * @public
9766
- */
9767
- instances?: Instance[] | undefined;
9768
- /**
9769
- * <p>The token to advance to the next page of results from your request.</p>
9770
- * <p>A next page token is not returned if there are no more results to display.</p>
9771
- * <p>To get the next page of results, perform another <code>GetInstances</code> request and
9772
- * specify the next page token using the <code>pageToken</code> parameter.</p>
9773
- * @public
9774
- */
9775
- nextPageToken?: string | undefined;
9776
- }
9777
- /**
9778
- * @public
9779
- */
9780
- export interface GetInstanceSnapshotRequest {
9781
- /**
9782
- * <p>The name of the snapshot for which you are requesting information.</p>
9783
- * @public
9784
- */
9785
- instanceSnapshotName: string | undefined;
9786
- }
9787
- /**
9788
- * <p>Describes an instance snapshot.</p>
9789
- * @public
9790
- */
9791
- export interface InstanceSnapshot {
9792
- /**
9793
- * <p>The name of the snapshot.</p>
9794
- * @public
9795
- */
9796
- name?: string | undefined;
9797
- /**
9798
- * <p>The Amazon Resource Name (ARN) of the snapshot
9799
- * (<code>arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE</code>).</p>
9800
- * @public
9801
- */
9802
- arn?: string | undefined;
9803
- /**
9804
- * <p>The support code. Include this code in your email to support when you have questions about
9805
- * an instance or another resource in Lightsail. This code enables our support team to look up
9806
- * your Lightsail information more easily.</p>
9807
- * @public
9808
- */
9809
- supportCode?: string | undefined;
9810
- /**
9811
- * <p>The timestamp when the snapshot was created (<code>1479907467.024</code>).</p>
9812
- * @public
9813
- */
9814
- createdAt?: Date | undefined;
9815
- /**
9816
- * <p>The region name and Availability Zone where you created the snapshot.</p>
9817
- * @public
9818
- */
9819
- location?: ResourceLocation | undefined;
9820
- /**
9821
- * <p>The type of resource (usually <code>InstanceSnapshot</code>).</p>
9822
- * @public
9823
- */
9824
- resourceType?: ResourceType | undefined;
9825
- /**
9826
- * <p>The tag keys and optional values for the resource. For more information about tags in
9827
- * Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</p>
9828
- * @public
9829
- */
9830
- tags?: Tag[] | undefined;
9831
- /**
9832
- * <p>The state the snapshot is in.</p>
9833
- * @public
9834
- */
9835
- state?: InstanceSnapshotState | undefined;
9836
- /**
9837
- * <p>The progress of the snapshot.</p>
9838
- * <note>
9839
- * <p>This is populated only for disk snapshots, and is <code>null</code> for instance
9840
- * snapshots.</p>
9841
- * </note>
9842
- * @public
9843
- */
9844
- progress?: string | undefined;
9845
- /**
9846
- * <p>An array of disk objects containing information about all block storage disks.</p>
9847
- * @public
9848
- */
9849
- fromAttachedDisks?: Disk[] | undefined;
9850
- /**
9851
- * <p>The instance from which the snapshot was created.</p>
9852
- * @public
9853
- */
9854
- fromInstanceName?: string | undefined;
9855
- /**
9856
- * <p>The Amazon Resource Name (ARN) of the instance from which the snapshot was created
9857
- * (<code>arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE</code>).</p>
9858
- * @public
9859
- */
9860
- fromInstanceArn?: string | undefined;
9861
- /**
9862
- * <p>The blueprint ID from which you created the snapshot (<code>amazon_linux_2023</code>). A
9863
- * blueprint is a virtual private server (or <i>instance</i>) image used to create
9864
- * instances quickly.</p>
9865
- * @public
9866
- */
9867
- fromBlueprintId?: string | undefined;
9868
- /**
9869
- * <p>The bundle ID from which you created the snapshot (<code>micro_x_x</code>).</p>
9870
- * @public
9871
- */
9872
- fromBundleId?: string | undefined;
9873
- /**
9874
- * <p>A Boolean value indicating whether the snapshot was created from an automatic
9875
- * snapshot.</p>
9876
- * @public
9877
- */
9878
- isFromAutoSnapshot?: boolean | undefined;
9879
- /**
9880
- * <p>The size in GB of the SSD.</p>
9881
- * @public
9882
- */
9883
- sizeInGb?: number | undefined;
9884
- }
9885
- /**
9886
- * @public
9887
- */
9888
- export interface GetInstanceSnapshotResult {
9889
- /**
9890
- * <p>An array of key-value pairs containing information about the results of your get instance
9891
- * snapshot request.</p>
9892
- * @public
9893
- */
9894
- instanceSnapshot?: InstanceSnapshot | undefined;
9895
- }