@@ -4405,6 +4405,44 @@ export interface CreateDiskSnapshotResult {
44054405 operations ?: Operation [ ] | undefined ;
44064406}
44074407
4408+ /**
4409+ * <p>Describes a custom error response for a Lightsail distribution. A custom error response
4410+ * specifies the page that the distribution returns to the viewer. It also specifies the HTTP
4411+ * status code that the distribution sends when the origin responds with a given HTTP error code.</p>
4412+ * @public
4413+ */
4414+ export interface DistributionCustomErrorResponse {
4415+ /**
4416+ * <p>The HTTP error code from the origin that triggers the custom error response (for example,
4417+ * <code>403</code> or <code>404</code>).</p>
4418+ * @public
4419+ */
4420+ errorCode ?: number | undefined ;
4421+
4422+ /**
4423+ * <p>The HTTP status code that the distribution returns to the viewer for the custom error
4424+ * response.</p>
4425+ * @public
4426+ */
4427+ responseCode ?: string | undefined ;
4428+
4429+ /**
4430+ * <p>The path to the custom error page that the distribution returns to the viewer (for
4431+ * example, <code>/404.html</code>). The path must begin with a forward slash (<code>/</code>)
4432+ * and reference an object that is available from the origin.</p>
4433+ * @public
4434+ */
4435+ responsePagePath ?: string | undefined ;
4436+
4437+ /**
4438+ * <p>The minimum time, in seconds, that the distribution caches the custom error response
4439+ * before requesting the object again from the origin. If you don't specify a value, the default
4440+ * is <code>10</code> seconds.</p>
4441+ * @public
4442+ */
4443+ errorCachingMinTTL ?: number | undefined ;
4444+ }
4445+
44084446/**
44094447 * <p>Describes the origin resource of an Amazon Lightsail content delivery network (CDN)
44104448 * distribution.</p>
@@ -4525,6 +4563,37 @@ export interface CreateDistributionRequest {
45254563 * @public
45264564 */
45274565 viewerMinimumTlsProtocolVersion ?: ViewerMinimumTlsProtocolVersionEnum | undefined ;
4566+
4567+ /**
4568+ * <p>Specifies whether to enable private origin access for the distribution. With private
4569+ * origin access, the distribution can serve objects that aren't publicly accessible from a
4570+ * Lightsail bucket.</p>
4571+ * <p>Lightsail grants the distribution permission to read the bucket's objects. Enabling
4572+ * private origin access doesn't change the bucket's access settings, and you can still
4573+ * retrieve publicly accessible objects directly from the bucket's endpoint.</p>
4574+ * <note>
4575+ * <p>You can enable private origin access only when the distribution's origin is a
4576+ * Lightsail bucket. If the origin is another resource type, the request fails.</p>
4577+ * </note>
4578+ * @public
4579+ */
4580+ enablePrivateOriginAccess ?: boolean | undefined ;
4581+
4582+ /**
4583+ * <p>The object (for example, <code>index.html</code>) that the distribution returns when a
4584+ * viewer requests the root URL of the distribution (<code>/</code>) instead of a specific
4585+ * object. The object that you specify must be available from the origin.</p>
4586+ * @public
4587+ */
4588+ defaultRootObject ?: string | undefined ;
4589+
4590+ /**
4591+ * <p>An array of objects that describe the custom error responses for the distribution. With a
4592+ * custom error response, you can specify the page to return when the origin responds with a
4593+ * given HTTP error code. You can also specify the HTTP status code to send to the viewer.</p>
4594+ * @public
4595+ */
4596+ customErrorResponses ?: DistributionCustomErrorResponse [ ] | undefined ;
45284597}
45294598
45304599/**
@@ -4576,6 +4645,17 @@ export interface Origin {
45764645 * @public
45774646 */
45784647 ipAddressType ?: OriginIpAddressTypeEnum | undefined ;
4648+
4649+ /**
4650+ * <p>Specifies whether private origin access is enabled for the distribution's origin. With
4651+ * private origin access, the distribution can serve objects that aren't publicly accessible
4652+ * from a Lightsail bucket.</p>
4653+ * <p>This applies when you set the bucket's <code>getObject</code> access rule to
4654+ * <code>private</code>. It also applies when you set <code>getObject</code> to <code>public</code>
4655+ * but set individual objects to private.</p>
4656+ * @public
4657+ */
4658+ isPrivateOriginAccessEnabled ?: boolean | undefined ;
45794659}
45804660
45814661/**
@@ -4725,6 +4805,21 @@ export interface LightsailDistribution {
47254805 * @public
47264806 */
47274807 viewerMinimumTlsProtocolVersion ?: string | undefined ;
4808+
4809+ /**
4810+ * <p>The object (for example, <code>index.html</code>) that the distribution returns when a
4811+ * viewer requests the root URL of the distribution (<code>/</code>) instead of a specific
4812+ * object.</p>
4813+ * @public
4814+ */
4815+ defaultRootObject ?: string | undefined ;
4816+
4817+ /**
4818+ * <p>An array of objects that describe the custom error responses configured for the
4819+ * distribution.</p>
4820+ * @public
4821+ */
4822+ customErrorResponses ?: DistributionCustomErrorResponse [ ] | undefined ;
47284823}
47294824
47304825/**
@@ -10343,14 +10438,3 @@ export interface GetKeyPairsResult {
1034310438 */
1034410439 nextPageToken ?: string | undefined ;
1034510440}
10346-
10347- /**
10348- * @public
10349- */
10350- export interface GetLoadBalancerRequest {
10351- /**
10352- * <p>The name of the load balancer.</p>
10353- * @public
10354- */
10355- loadBalancerName : string | undefined ;
10356- }
0 commit comments