@aws-sdk/client-lightsail 3.1167.0 → 3.1169.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 +1 -1
@@ -1,5 +1,175 @@
1
- import type { AlarmState, CertificateProvider, ComparisonOperator, ContactMethodVerificationProtocol, ContactProtocol, ContainerServicePowerName, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceHealthReason, InstanceHealthState, IpAddressType, LoadBalancerAttributeName, LoadBalancerMetricName, LoadBalancerProtocol, LoadBalancerState, LoadBalancerTlsCertificateDnsRecordCreationStateCode, LoadBalancerTlsCertificateDomainStatus, LoadBalancerTlsCertificateFailureReason, LoadBalancerTlsCertificateRenewalStatus, LoadBalancerTlsCertificateRevocationReason, LoadBalancerTlsCertificateStatus, MetricName, MetricStatistic, MetricUnit, PartnerStatus, ProfileType, RegionName, RelationalDatabaseEngine, RelationalDatabaseMetricName, RelationalDatabasePasswordVersion, ResourceBucketAccess, ResourceType, SetupStatus, TierName, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum } from "./enums";
2
- import type { AccessRules, AvailabilityZone, Bucket, BucketAccessLogConfig, BucketCorsConfig, CacheBehavior, CacheBehaviorPerPath, CacheSettings, ContainerImage, ContainerService, DistributionCustomErrorResponse, DomainEntry, InputOrigin, InstanceSnapshot, InstanceState, KeyPair, MetricDatapoint, Operation, PortInfo, PrivateRegistryAccessRequest, ResourceLocation, Tag, WafRule } from "./models_0";
1
+ import type { AlarmState, CertificateProvider, ComparisonOperator, ContactMethodVerificationProtocol, ContactProtocol, ContainerServicePowerName, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceHealthReason, InstanceHealthState, InstanceSnapshotState, IpAddressType, LoadBalancerAttributeName, LoadBalancerMetricName, LoadBalancerProtocol, LoadBalancerState, LoadBalancerTlsCertificateDnsRecordCreationStateCode, LoadBalancerTlsCertificateDomainStatus, LoadBalancerTlsCertificateFailureReason, LoadBalancerTlsCertificateRenewalStatus, LoadBalancerTlsCertificateRevocationReason, LoadBalancerTlsCertificateStatus, MetricName, MetricStatistic, MetricUnit, PartnerStatus, ProfileType, RegionName, RelationalDatabaseEngine, RelationalDatabaseMetricName, RelationalDatabasePasswordVersion, ResourceBucketAccess, ResourceType, SetupStatus, SubdomainAssociationAction, SubdomainState, TierName, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum } from "./enums";
2
+ import type { AccessRules, AvailabilityZone, Bucket, BucketAccessLogConfig, BucketCorsConfig, CacheBehavior, CacheBehaviorPerPath, CacheSettings, ContainerImage, ContainerService, Disk, DistributionCustomErrorResponse, DomainEntry, InputOrigin, Instance, InstancePortState, InstanceState, KeyPair, MetricDatapoint, Operation, PortInfo, PrivateRegistryAccessRequest, ResourceLocation, SubdomainAttachableResource, Tag, WafRule } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface GetInstancePortStatesResult {
7
+ /**
8
+ * <p>An array of objects that describe the firewall port states for the specified
9
+ * instance.</p>
10
+ * @public
11
+ */
12
+ portStates?: InstancePortState[] | undefined;
13
+ }
14
+ /**
15
+ * @public
16
+ */
17
+ export interface GetInstancesRequest {
18
+ /**
19
+ * <p>The token to advance to the next page of results from your request.</p>
20
+ * <p>To get a page token, perform an initial <code>GetInstances</code> request. If your results
21
+ * are paginated, the response will return a next page token that you can specify as the page
22
+ * token in a subsequent request.</p>
23
+ * @public
24
+ */
25
+ pageToken?: string | undefined;
26
+ /**
27
+ * <p>Specifies whether to include the instance health status checks of each instance in the
28
+ * response of your request.</p>
29
+ * <p>When set to <code>true</code>, the response includes the <code>instanceStatus</code> and
30
+ * <code>systemStatus</code> of each instance. When omitted or set to <code>false</code>, the
31
+ * response doesn't include them.</p>
32
+ * @public
33
+ */
34
+ includeHealthStatus?: boolean | undefined;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface GetInstancesResult {
40
+ /**
41
+ * <p>An array of key-value pairs containing information about your instances.</p>
42
+ * @public
43
+ */
44
+ instances?: Instance[] | undefined;
45
+ /**
46
+ * <p>The token to advance to the next page of results from your request.</p>
47
+ * <p>A next page token is not returned if there are no more results to display.</p>
48
+ * <p>To get the next page of results, perform another <code>GetInstances</code> request and
49
+ * specify the next page token using the <code>pageToken</code> parameter.</p>
50
+ * @public
51
+ */
52
+ nextPageToken?: string | undefined;
53
+ }
54
+ /**
55
+ * @public
56
+ */
57
+ export interface GetInstanceSnapshotRequest {
58
+ /**
59
+ * <p>The name of the snapshot for which you are requesting information.</p>
60
+ * @public
61
+ */
62
+ instanceSnapshotName: string | undefined;
63
+ }
64
+ /**
65
+ * <p>Describes an instance snapshot.</p>
66
+ * @public
67
+ */
68
+ export interface InstanceSnapshot {
69
+ /**
70
+ * <p>The name of the snapshot.</p>
71
+ * @public
72
+ */
73
+ name?: string | undefined;
74
+ /**
75
+ * <p>The Amazon Resource Name (ARN) of the snapshot
76
+ * (<code>arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE</code>).</p>
77
+ * @public
78
+ */
79
+ arn?: string | undefined;
80
+ /**
81
+ * <p>The support code. Include this code in your email to support when you have questions about
82
+ * an instance or another resource in Lightsail. This code enables our support team to look up
83
+ * your Lightsail information more easily.</p>
84
+ * @public
85
+ */
86
+ supportCode?: string | undefined;
87
+ /**
88
+ * <p>The timestamp when the snapshot was created (<code>1479907467.024</code>).</p>
89
+ * @public
90
+ */
91
+ createdAt?: Date | undefined;
92
+ /**
93
+ * <p>The region name and Availability Zone where you created the snapshot.</p>
94
+ * @public
95
+ */
96
+ location?: ResourceLocation | undefined;
97
+ /**
98
+ * <p>The type of resource (usually <code>InstanceSnapshot</code>).</p>
99
+ * @public
100
+ */
101
+ resourceType?: ResourceType | undefined;
102
+ /**
103
+ * <p>The tag keys and optional values for the resource. For more information about tags in
104
+ * Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</p>
105
+ * @public
106
+ */
107
+ tags?: Tag[] | undefined;
108
+ /**
109
+ * <p>The state the snapshot is in.</p>
110
+ * @public
111
+ */
112
+ state?: InstanceSnapshotState | undefined;
113
+ /**
114
+ * <p>The progress of the snapshot.</p>
115
+ * <note>
116
+ * <p>This is populated only for disk snapshots, and is <code>null</code> for instance
117
+ * snapshots.</p>
118
+ * </note>
119
+ * @public
120
+ */
121
+ progress?: string | undefined;
122
+ /**
123
+ * <p>An array of disk objects containing information about all block storage disks.</p>
124
+ * @public
125
+ */
126
+ fromAttachedDisks?: Disk[] | undefined;
127
+ /**
128
+ * <p>The instance from which the snapshot was created.</p>
129
+ * @public
130
+ */
131
+ fromInstanceName?: string | undefined;
132
+ /**
133
+ * <p>The Amazon Resource Name (ARN) of the instance from which the snapshot was created
134
+ * (<code>arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE</code>).</p>
135
+ * @public
136
+ */
137
+ fromInstanceArn?: string | undefined;
138
+ /**
139
+ * <p>The blueprint ID from which you created the snapshot (<code>amazon_linux_2023</code>). A
140
+ * blueprint is a virtual private server (or <i>instance</i>) image used to create
141
+ * instances quickly.</p>
142
+ * @public
143
+ */
144
+ fromBlueprintId?: string | undefined;
145
+ /**
146
+ * <p>The bundle ID from which you created the snapshot (<code>micro_x_x</code>).</p>
147
+ * @public
148
+ */
149
+ fromBundleId?: string | undefined;
150
+ /**
151
+ * <p>A Boolean value indicating whether the snapshot was created from an automatic
152
+ * snapshot.</p>
153
+ * @public
154
+ */
155
+ isFromAutoSnapshot?: boolean | undefined;
156
+ /**
157
+ * <p>The size in GB of the SSD.</p>
158
+ * @public
159
+ */
160
+ sizeInGb?: number | undefined;
161
+ }
162
+ /**
163
+ * @public
164
+ */
165
+ export interface GetInstanceSnapshotResult {
166
+ /**
167
+ * <p>An array of key-value pairs containing information about the results of your get instance
168
+ * snapshot request.</p>
169
+ * @public
170
+ */
171
+ instanceSnapshot?: InstanceSnapshot | undefined;
172
+ }
3
173
  /**
4
174
  * @public
5
175
  */
@@ -2834,6 +3004,28 @@ export interface GetStaticIpsResult {
2834
3004
  */
2835
3005
  nextPageToken?: string | undefined;
2836
3006
  }
3007
+ /**
3008
+ * @public
3009
+ */
3010
+ export interface GetSubdomainsRequest {
3011
+ /**
3012
+ * <p>The subdomain for which to return information (for example, <code>mysite</code> or
3013
+ * <code>blog.mysite</code>), not its web address.</p>
3014
+ * <p>When omitted, the response includes all of your subdomains.</p>
3015
+ * <p>You can't specify this parameter together with the <code>pageToken</code>
3016
+ * parameter.</p>
3017
+ * @public
3018
+ */
3019
+ subdomainName?: string | undefined;
3020
+ /**
3021
+ * <p>The token to advance to the next page of results from your request.</p>
3022
+ * <p>To get a page token, perform an initial <code>GetSubdomains</code> request. If your results
3023
+ * are paginated, the response will return a next page token that you can specify as the page
3024
+ * token in a subsequent request.</p>
3025
+ * @public
3026
+ */
3027
+ pageToken?: string | undefined;
3028
+ }
2837
3029
  /**
2838
3030
  * @public
2839
3031
  */
@@ -4418,3 +4610,250 @@ export interface UpdateRelationalDatabaseParametersResult {
4418
4610
  */
4419
4611
  operations?: Operation[] | undefined;
4420
4612
  }
4613
+ /**
4614
+ * @public
4615
+ */
4616
+ export interface UpdateSubdomainAssociationRequest {
4617
+ /**
4618
+ * <p>The subdomain to update (for example, <code>mysite</code> or
4619
+ * <code>blog.mysite</code>), not its web address.</p>
4620
+ * @public
4621
+ */
4622
+ subdomainName: string | undefined;
4623
+ /**
4624
+ * <p>The association change to make.</p>
4625
+ * <p>The following actions are possible:</p>
4626
+ * <ul>
4627
+ * <li>
4628
+ * <p>
4629
+ * <code>ASSOCIATE</code> – Associates the subdomain with the resource that you specify in
4630
+ * the <code>targetResourceArn</code> parameter. The subdomain must be in the
4631
+ * <code>UNATTACHED</code> state.</p>
4632
+ * </li>
4633
+ * <li>
4634
+ * <p>
4635
+ * <code>DISASSOCIATE</code> – Disassociates the subdomain from its current resource. The
4636
+ * subdomain must be in the <code>ATTACHED</code> state.</p>
4637
+ * </li>
4638
+ * <li>
4639
+ * <p>
4640
+ * <code>TRANSFER</code> – Moves the subdomain from its current resource to the resource
4641
+ * that you specify in the <code>targetResourceArn</code> parameter. The subdomain must be in
4642
+ * the <code>ATTACHED</code> state. You can transfer each subdomain only once in a 24-hour
4643
+ * period.</p>
4644
+ * </li>
4645
+ * </ul>
4646
+ * @public
4647
+ */
4648
+ action: SubdomainAssociationAction | undefined;
4649
+ /**
4650
+ * <p>The Amazon Resource Name (ARN) of the resource to associate the subdomain with. The
4651
+ * resource must be in your account.</p>
4652
+ * <p>This parameter is required when the <code>action</code> is <code>ASSOCIATE</code> or
4653
+ * <code>TRANSFER</code>. It's ignored when the <code>action</code> is
4654
+ * <code>DISASSOCIATE</code>.</p>
4655
+ * @public
4656
+ */
4657
+ targetResourceArn?: string | undefined;
4658
+ }
4659
+ /**
4660
+ * <p>Describes a Lightsail subdomain. A subdomain is the name that you choose, such as
4661
+ * <code>mysite</code> or <code>blog.mysite</code>. Its web address is the subdomain followed
4662
+ * by <code>amazonlightsail.com</code>, such as <code>blog.mysite.amazonlightsail.com</code>. You
4663
+ * can associate a subdomain with a Lightsail resource to make the resource reachable at the
4664
+ * web address.</p>
4665
+ * @public
4666
+ */
4667
+ export interface Subdomain {
4668
+ /**
4669
+ * <p>The subdomain (for example, <code>mysite</code> or <code>blog.mysite</code>). To get the
4670
+ * web address, use the <code>fqdn</code> parameter.</p>
4671
+ * @public
4672
+ */
4673
+ subdomainName?: string | undefined;
4674
+ /**
4675
+ * <p>The Amazon Resource Name (ARN) of the subdomain.</p>
4676
+ * <p>If you create a subdomain with a depth of 2, such as <code>blog.mysite</code>, without
4677
+ * first creating the subdomain with a depth of 1 (<code>mysite</code>), Lightsail holds
4678
+ * <code>mysite</code> for your account in the <code>IMPLICIT</code> state. It doesn't have an
4679
+ * ARN until you create a subdomain with that name.</p>
4680
+ * @public
4681
+ */
4682
+ arn?: string | undefined;
4683
+ /**
4684
+ * <p>The web address of the subdomain, which is the subdomain followed by
4685
+ * <code>amazonlightsail.com</code> (for example,
4686
+ * <code>blog.mysite.amazonlightsail.com</code>).</p>
4687
+ * @public
4688
+ */
4689
+ fqdn?: string | undefined;
4690
+ /**
4691
+ * <p>The number of labels in the subdomain. A top-level subdomain, such as
4692
+ * <code>mysite</code>, has a depth of <code>1</code>. A nested subdomain, such as
4693
+ * <code>blog.mysite</code>, has a depth of <code>2</code>.</p>
4694
+ * @public
4695
+ */
4696
+ depth?: number | undefined;
4697
+ /**
4698
+ * <p>The state of the subdomain.</p>
4699
+ * <p>The following states are possible:</p>
4700
+ * <ul>
4701
+ * <li>
4702
+ * <p>
4703
+ * <code>CREATING</code> – The subdomain is being created.</p>
4704
+ * </li>
4705
+ * <li>
4706
+ * <p>
4707
+ * <code>CREATE_FAILED</code> – The subdomain couldn't be created. Delete the subdomain,
4708
+ * and then create it again if the name is still available.</p>
4709
+ * </li>
4710
+ * <li>
4711
+ * <p>
4712
+ * <code>UNATTACHED</code> – The subdomain is ready, and isn't associated with a
4713
+ * resource.</p>
4714
+ * </li>
4715
+ * <li>
4716
+ * <p>
4717
+ * <code>ATTACHING</code> – The subdomain is being associated with a resource.</p>
4718
+ * </li>
4719
+ * <li>
4720
+ * <p>
4721
+ * <code>ATTACHED</code> – The subdomain is associated with a resource, and routes traffic
4722
+ * to it.</p>
4723
+ * </li>
4724
+ * <li>
4725
+ * <p>
4726
+ * <code>DETACHING</code> – The subdomain is being disassociated from a resource.</p>
4727
+ * </li>
4728
+ * <li>
4729
+ * <p>
4730
+ * <code>TRANSFERRING</code> – The subdomain is being moved from one resource to another
4731
+ * resource.</p>
4732
+ * </li>
4733
+ * <li>
4734
+ * <p>
4735
+ * <code>IMPLICIT</code> – The subdomain is the parent of one or more nested subdomains
4736
+ * that you created, but you didn't create the parent subdomain itself. You can't associate
4737
+ * or delete a subdomain in this state. To use it, create it with the
4738
+ * <code>CreateSubdomain</code> action.</p>
4739
+ * </li>
4740
+ * </ul>
4741
+ * @public
4742
+ */
4743
+ state?: SubdomainState | undefined;
4744
+ /**
4745
+ * <p>An object that describes the resource that the subdomain is associated with.</p>
4746
+ * <p>When the subdomain is in the <code>TRANSFERRING</code> state, this is the resource that
4747
+ * the subdomain is being moved from.</p>
4748
+ * @public
4749
+ */
4750
+ attachedResource?: SubdomainAttachableResource | undefined;
4751
+ /**
4752
+ * <p>An object that describes the resource that the subdomain is being associated with.</p>
4753
+ * <p>This parameter is returned only when the subdomain is in the <code>ATTACHING</code> or
4754
+ * <code>TRANSFERRING</code> state.</p>
4755
+ * @public
4756
+ */
4757
+ attachingResource?: SubdomainAttachableResource | undefined;
4758
+ /**
4759
+ * <p>An object that describes the location of the subdomain, such as the AWS Region.</p>
4760
+ * @public
4761
+ */
4762
+ location?: ResourceLocation | undefined;
4763
+ /**
4764
+ * <p>The timestamp when the subdomain was created.</p>
4765
+ * @public
4766
+ */
4767
+ createdAt?: Date | undefined;
4768
+ /**
4769
+ * <p>The web address of the parent subdomain (for example,
4770
+ * <code>mysite.amazonlightsail.com</code> for <code>blog.mysite</code>).</p>
4771
+ * <p>This parameter isn't returned for a subdomain with a depth of 1.</p>
4772
+ * @public
4773
+ */
4774
+ parentFqdn?: string | undefined;
4775
+ /**
4776
+ * <p>An array of objects that describe the nested subdomains of the subdomain.</p>
4777
+ * <p>This parameter is returned only by the <code>GetSubdomains</code> action when you don't
4778
+ * specify a subdomain.</p>
4779
+ * @public
4780
+ */
4781
+ children?: Subdomain[] | undefined;
4782
+ /**
4783
+ * <p>The tag keys and optional values for the subdomain. For more information about tags in
4784
+ * Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Lightsail Developer
4785
+ * Guide</a>.</p>
4786
+ * <p>This parameter is returned only by the <code>GetSubdomains</code> action when you specify a
4787
+ * subdomain.</p>
4788
+ * @public
4789
+ */
4790
+ tags?: Tag[] | undefined;
4791
+ }
4792
+ /**
4793
+ * @public
4794
+ */
4795
+ export interface CreateSubdomainResult {
4796
+ /**
4797
+ * <p>An object that describes the subdomain that was created.</p>
4798
+ * @public
4799
+ */
4800
+ subdomain?: Subdomain | undefined;
4801
+ /**
4802
+ * <p>An object that describes the result of the action, such as the status of the request, the
4803
+ * timestamp of the request, and the resources affected by the request.</p>
4804
+ * @public
4805
+ */
4806
+ operation?: Operation | undefined;
4807
+ }
4808
+ /**
4809
+ * @public
4810
+ */
4811
+ export interface DeleteSubdomainResult {
4812
+ /**
4813
+ * <p>An object that describes the top-level subdomain in the <code>IMPLICIT</code> state.</p>
4814
+ * <p>This parameter is returned only when you delete a top-level subdomain that has nested
4815
+ * subdomains.</p>
4816
+ * @public
4817
+ */
4818
+ subdomain?: Subdomain | undefined;
4819
+ /**
4820
+ * <p>An object that describes the result of the action, such as the status of the request, the
4821
+ * timestamp of the request, and the resources affected by the request.</p>
4822
+ * @public
4823
+ */
4824
+ operation?: Operation | undefined;
4825
+ }
4826
+ /**
4827
+ * @public
4828
+ */
4829
+ export interface GetSubdomainsResult {
4830
+ /**
4831
+ * <p>An array of objects that describe your subdomains.</p>
4832
+ * @public
4833
+ */
4834
+ subdomains?: Subdomain[] | undefined;
4835
+ /**
4836
+ * <p>The token to advance to the next page of results from your request.</p>
4837
+ * <p>A next page token is not returned if there are no more results to display.</p>
4838
+ * <p>To get the next page of results, perform another <code>GetSubdomains</code> request and
4839
+ * specify the next page token using the <code>pageToken</code> parameter.</p>
4840
+ * @public
4841
+ */
4842
+ nextPageToken?: string | undefined;
4843
+ }
4844
+ /**
4845
+ * @public
4846
+ */
4847
+ export interface UpdateSubdomainAssociationResult {
4848
+ /**
4849
+ * <p>An object that describes the subdomain that was updated.</p>
4850
+ * @public
4851
+ */
4852
+ subdomain?: Subdomain | undefined;
4853
+ /**
4854
+ * <p>An object that describes the result of the action, such as the status of the request, the
4855
+ * timestamp of the request, and the resources affected by the request.</p>
4856
+ * @public
4857
+ */
4858
+ operation?: Operation | undefined;
4859
+ }
@@ -51,6 +51,8 @@ export declare var CacheBehaviorPerPath$: StaticStructureSchema;
51
51
  export declare var CacheSettings$: StaticStructureSchema;
52
52
  export declare var Certificate$: StaticStructureSchema;
53
53
  export declare var CertificateSummary$: StaticStructureSchema;
54
+ export declare var CheckSubdomainAvailabilityRequest$: StaticStructureSchema;
55
+ export declare var CheckSubdomainAvailabilityResult$: StaticStructureSchema;
54
56
  export declare var CloseInstancePublicPortsRequest$: StaticStructureSchema;
55
57
  export declare var CloseInstancePublicPortsResult$: StaticStructureSchema;
56
58
  export declare var CloudFormationStackRecord$: StaticStructureSchema;
@@ -122,6 +124,8 @@ export declare var CreateRelationalDatabaseRequest$: StaticStructureSchema;
122
124
  export declare var CreateRelationalDatabaseResult$: StaticStructureSchema;
123
125
  export declare var CreateRelationalDatabaseSnapshotRequest$: StaticStructureSchema;
124
126
  export declare var CreateRelationalDatabaseSnapshotResult$: StaticStructureSchema;
127
+ export declare var CreateSubdomainRequest$: StaticStructureSchema;
128
+ export declare var CreateSubdomainResult$: StaticStructureSchema;
125
129
  export declare var DeleteAlarmRequest$: StaticStructureSchema;
126
130
  export declare var DeleteAlarmResult$: StaticStructureSchema;
127
131
  export declare var DeleteAutoSnapshotRequest$: StaticStructureSchema;
@@ -164,6 +168,8 @@ export declare var DeleteRelationalDatabaseRequest$: StaticStructureSchema;
164
168
  export declare var DeleteRelationalDatabaseResult$: StaticStructureSchema;
165
169
  export declare var DeleteRelationalDatabaseSnapshotRequest$: StaticStructureSchema;
166
170
  export declare var DeleteRelationalDatabaseSnapshotResult$: StaticStructureSchema;
171
+ export declare var DeleteSubdomainRequest$: StaticStructureSchema;
172
+ export declare var DeleteSubdomainResult$: StaticStructureSchema;
167
173
  export declare var DestinationInfo$: StaticStructureSchema;
168
174
  export declare var DetachCertificateFromDistributionRequest$: StaticStructureSchema;
169
175
  export declare var DetachCertificateFromDistributionResult$: StaticStructureSchema;
@@ -327,6 +333,8 @@ export declare var GetStaticIpRequest$: StaticStructureSchema;
327
333
  export declare var GetStaticIpResult$: StaticStructureSchema;
328
334
  export declare var GetStaticIpsRequest$: StaticStructureSchema;
329
335
  export declare var GetStaticIpsResult$: StaticStructureSchema;
336
+ export declare var GetSubdomainsRequest$: StaticStructureSchema;
337
+ export declare var GetSubdomainsResult$: StaticStructureSchema;
330
338
  export declare var HeaderObject$: StaticStructureSchema;
331
339
  export declare var HostKeyAttributes$: StaticStructureSchema;
332
340
  export declare var ImportKeyPairRequest$: StaticStructureSchema;
@@ -351,6 +359,7 @@ export declare var IsVpcPeeredRequest$: StaticStructureSchema;
351
359
  export declare var IsVpcPeeredResult$: StaticStructureSchema;
352
360
  export declare var KeyPair$: StaticStructureSchema;
353
361
  export declare var LightsailDistribution$: StaticStructureSchema;
362
+ export declare var LightsailDistributionSubdomain$: StaticStructureSchema;
354
363
  export declare var LoadBalancer$: StaticStructureSchema;
355
364
  export declare var LoadBalancerTlsCertificate$: StaticStructureSchema;
356
365
  export declare var LoadBalancerTlsCertificateDnsRecordCreationState$: StaticStructureSchema;
@@ -435,6 +444,8 @@ export declare var StopInstanceRequest$: StaticStructureSchema;
435
444
  export declare var StopInstanceResult$: StaticStructureSchema;
436
445
  export declare var StopRelationalDatabaseRequest$: StaticStructureSchema;
437
446
  export declare var StopRelationalDatabaseResult$: StaticStructureSchema;
447
+ export declare var Subdomain$: StaticStructureSchema;
448
+ export declare var SubdomainAttachableResource$: StaticStructureSchema;
438
449
  export declare var Tag$: StaticStructureSchema;
439
450
  export declare var TagResourceRequest$: StaticStructureSchema;
440
451
  export declare var TagResourceResult$: StaticStructureSchema;
@@ -465,6 +476,8 @@ export declare var UpdateRelationalDatabaseParametersRequest$: StaticStructureSc
465
476
  export declare var UpdateRelationalDatabaseParametersResult$: StaticStructureSchema;
466
477
  export declare var UpdateRelationalDatabaseRequest$: StaticStructureSchema;
467
478
  export declare var UpdateRelationalDatabaseResult$: StaticStructureSchema;
479
+ export declare var UpdateSubdomainAssociationRequest$: StaticStructureSchema;
480
+ export declare var UpdateSubdomainAssociationResult$: StaticStructureSchema;
468
481
  export declare var WafAcfpConfig$: StaticStructureSchema;
469
482
  export declare var WafAtpConfig$: StaticStructureSchema;
470
483
  export declare var WafBotControlConfig$: StaticStructureSchema;
@@ -477,6 +490,7 @@ export declare var AttachDisk$: StaticOperationSchema;
477
490
  export declare var AttachInstancesToLoadBalancer$: StaticOperationSchema;
478
491
  export declare var AttachLoadBalancerTlsCertificate$: StaticOperationSchema;
479
492
  export declare var AttachStaticIp$: StaticOperationSchema;
493
+ export declare var CheckSubdomainAvailability$: StaticOperationSchema;
480
494
  export declare var CloseInstancePublicPorts$: StaticOperationSchema;
481
495
  export declare var CopySnapshot$: StaticOperationSchema;
482
496
  export declare var CreateBucket$: StaticOperationSchema;
@@ -503,6 +517,7 @@ export declare var CreateLoadBalancerTlsCertificate$: StaticOperationSchema;
503
517
  export declare var CreateRelationalDatabase$: StaticOperationSchema;
504
518
  export declare var CreateRelationalDatabaseFromSnapshot$: StaticOperationSchema;
505
519
  export declare var CreateRelationalDatabaseSnapshot$: StaticOperationSchema;
520
+ export declare var CreateSubdomain$: StaticOperationSchema;
506
521
  export declare var DeleteAlarm$: StaticOperationSchema;
507
522
  export declare var DeleteAutoSnapshot$: StaticOperationSchema;
508
523
  export declare var DeleteBucket$: StaticOperationSchema;
@@ -524,6 +539,7 @@ export declare var DeleteLoadBalancer$: StaticOperationSchema;
524
539
  export declare var DeleteLoadBalancerTlsCertificate$: StaticOperationSchema;
525
540
  export declare var DeleteRelationalDatabase$: StaticOperationSchema;
526
541
  export declare var DeleteRelationalDatabaseSnapshot$: StaticOperationSchema;
542
+ export declare var DeleteSubdomain$: StaticOperationSchema;
527
543
  export declare var DetachCertificateFromDistribution$: StaticOperationSchema;
528
544
  export declare var DetachDisk$: StaticOperationSchema;
529
545
  export declare var DetachInstancesFromLoadBalancer$: StaticOperationSchema;
@@ -598,6 +614,7 @@ export declare var GetRelationalDatabaseSnapshots$: StaticOperationSchema;
598
614
  export declare var GetSetupHistory$: StaticOperationSchema;
599
615
  export declare var GetStaticIp$: StaticOperationSchema;
600
616
  export declare var GetStaticIps$: StaticOperationSchema;
617
+ export declare var GetSubdomains$: StaticOperationSchema;
601
618
  export declare var ImportKeyPair$: StaticOperationSchema;
602
619
  export declare var IsVpcPeered$: StaticOperationSchema;
603
620
  export declare var OpenInstancePublicPorts$: StaticOperationSchema;
@@ -633,3 +650,4 @@ export declare var UpdateInstanceMetadataOptions$: StaticOperationSchema;
633
650
  export declare var UpdateLoadBalancerAttribute$: StaticOperationSchema;
634
651
  export declare var UpdateRelationalDatabase$: StaticOperationSchema;
635
652
  export declare var UpdateRelationalDatabaseParameters$: StaticOperationSchema;
653
+ export declare var UpdateSubdomainAssociation$: StaticOperationSchema;