@aws-sdk/client-lightsail 3.1129.0 → 3.1131.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.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1128.0";
72
+ var version = "3.1130.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -471,6 +471,8 @@ const _DBR = "DeleteBucketRequest";
471
471
  const _DBRe = "DeleteBucketResult";
472
472
  const _DBe = "DeleteBucket";
473
473
  const _DC = "DeleteCertificate";
474
+ const _DCER = "DistributionCustomErrorResponse";
475
+ const _DCERL = "DistributionCustomErrorResponseList";
474
476
  const _DCFD = "DetachCertificateFromDistribution";
475
477
  const _DCFDR = "DetachCertificateFromDistributionRequest";
476
478
  const _DCFDRe = "DetachCertificateFromDistributionResult";
@@ -1045,6 +1047,7 @@ const _cD = "certificateDetail";
1045
1047
  const _cDN = "certificateDomainName";
1046
1048
  const _cDu = "currentDeployment";
1047
1049
  const _cE = "contactEndpoint";
1050
+ const _cER = "customErrorResponses";
1048
1051
  const _cEo = "costEstimates";
1049
1052
  const _cFSR = "cloudFormationStackRecords";
1050
1053
  const _cHTTPM = "cachedHTTPMethods";
@@ -1092,6 +1095,7 @@ const _dNo = "domainName";
1092
1095
  const _dNom = "domainNames";
1093
1096
  const _dP = "diskPath";
1094
1097
  const _dRCS = "dnsRecordCreationState";
1098
+ const _dRO = "defaultRootObject";
1095
1099
  const _dS = "diskSnapshot";
1096
1100
  const _dSI = "diskSnapshotInfo";
1097
1101
  const _dSIG = "diskSizeInGb";
@@ -1122,6 +1126,7 @@ const _eAm = "emailAddress";
1122
1126
  const _eAn = "enrolledAt";
1123
1127
  const _eBR = "enableBackupRetention";
1124
1128
  const _eC = "errorCode";
1129
+ const _eCMTTL = "errorCachingMinTTL";
1125
1130
  const _eCv = "eventCategories";
1126
1131
  const _eD = "errorDetails";
1127
1132
  const _eDn = "engineDescription";
@@ -1131,6 +1136,7 @@ const _eH = "exposeHeaders";
1131
1136
  const _eIPR = "ecrImagePullerRole";
1132
1137
  const _eOV = "enableObjectVersioning";
1133
1138
  const _eP = "evaluationPeriods";
1139
+ const _ePOA = "enablePrivateOriginAccess";
1134
1140
  const _eSR = "exportSnapshotRecords";
1135
1141
  const _eT = "endTime";
1136
1142
  const _eTR = "eligibleToRenew";
@@ -1214,6 +1220,7 @@ const _iM = "isModifiable";
1214
1220
  const _iN = "instanceName";
1215
1221
  const _iNn = "instanceNames";
1216
1222
  const _iP = "instancePort";
1223
+ const _iPOAE = "isPrivateOriginAccessEnabled";
1217
1224
  const _iPs = "isPeered";
1218
1225
  const _iPsr = "isPrimary";
1219
1226
  const _iRDAZ = "includeRelationalDatabaseAvailabilityZones";
@@ -1351,6 +1358,7 @@ const _rAA = "readonlyAccessAccounts";
1351
1358
  const _rAe = "resourceArn";
1352
1359
  const _rBE = "resourcesBudgetEstimate";
1353
1360
  const _rBT = "resultsByTime";
1361
+ const _rC = "responseCode";
1354
1362
  const _rD = "restoreDate";
1355
1363
  const _rDAZ = "relationalDatabaseAvailabilityZones";
1356
1364
  const _rDBI = "relationalDatabaseBundleId";
@@ -1370,6 +1378,7 @@ const _rLE = "resourceLogEvents";
1370
1378
  const _rMUP = "rotateMasterUserPassword";
1371
1379
  const _rN = "resourceName";
1372
1380
  const _rNe = "regionName";
1381
+ const _rPP = "responsePagePath";
1373
1382
  const _rR = "revocationReason";
1374
1383
  const _rRA = "resourcesReceivingAccess";
1375
1384
  const _rRe = "resourceRecord";
@@ -1939,8 +1948,8 @@ var CreateDiskSnapshotResult$ = [3, n0, _CDSRr,
1939
1948
  ];
1940
1949
  var CreateDistributionRequest$ = [3, n0, _CDRre,
1941
1950
  0,
1942
- [_dN, _or, _dCB, _bIu, _cBS, _cB, _iAT, _ta, _cN, _vMTPV],
1943
- [0, () => InputOrigin$, () => CacheBehavior$, 0, () => CacheSettings$, () => CacheBehaviorList, 0, () => TagList, 0, 0], 4
1951
+ [_dN, _or, _dCB, _bIu, _cBS, _cB, _iAT, _ta, _cN, _vMTPV, _ePOA, _dRO, _cER],
1952
+ [0, () => InputOrigin$, () => CacheBehavior$, 0, () => CacheSettings$, () => CacheBehaviorList, 0, () => TagList, 0, 0, 2, 0, () => DistributionCustomErrorResponseList], 4
1944
1953
  ];
1945
1954
  var CreateDistributionResult$ = [3, n0, _CDRrea,
1946
1955
  0,
@@ -2362,6 +2371,11 @@ var DistributionBundle$ = [3, n0, _DB,
2362
2371
  [_bIu, _n, _pri, _tPMIG, _iA],
2363
2372
  [0, 0, 1, 1, 2]
2364
2373
  ];
2374
+ var DistributionCustomErrorResponse$ = [3, n0, _DCER,
2375
+ 0,
2376
+ [_eC, _rC, _rPP, _eCMTTL],
2377
+ [1, 0, 0, 1]
2378
+ ];
2365
2379
  var DnsRecordCreationState$ = [3, n0, _DRCS,
2366
2380
  0,
2367
2381
  [_co, _m],
@@ -3189,8 +3203,8 @@ var KeyPair$ = [3, n0, _KP,
3189
3203
  ];
3190
3204
  var LightsailDistribution$ = [3, n0, _LD,
3191
3205
  0,
3192
- [_n, _a, _sC, _cA, _l, _rT, _aDN, _st, _iE, _dNo, _bIu, _cN, _or, _oPDNS, _dCB, _cBS, _cB, _aTUB, _iAT, _ta, _vMTPV],
3193
- [0, 0, 0, 4, () => ResourceLocation$, 0, 64 | 0, 0, 2, 0, 0, 0, () => Origin$, 0, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, () => TagList, 0]
3206
+ [_n, _a, _sC, _cA, _l, _rT, _aDN, _st, _iE, _dNo, _bIu, _cN, _or, _oPDNS, _dCB, _cBS, _cB, _aTUB, _iAT, _ta, _vMTPV, _dRO, _cER],
3207
+ [0, 0, 0, 4, () => ResourceLocation$, 0, 64 | 0, 0, 2, 0, 0, 0, () => Origin$, 0, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, () => TagList, 0, 0, () => DistributionCustomErrorResponseList]
3194
3208
  ];
3195
3209
  var LoadBalancer$ = [3, n0, _LB,
3196
3210
  0,
@@ -3274,8 +3288,8 @@ var Operation$ = [3, n0, _O,
3274
3288
  ];
3275
3289
  var Origin$ = [3, n0, _Or,
3276
3290
  0,
3277
- [_n, _rT, _rNe, _pP, _rTes, _iAT],
3278
- [0, 0, 0, 0, 1, 0]
3291
+ [_n, _rT, _rNe, _pP, _rTes, _iAT, _iPOAE],
3292
+ [0, 0, 0, 0, 1, 0, 2]
3279
3293
  ];
3280
3294
  var PartnerInfo$ = [3, n0, _PI,
3281
3295
  0,
@@ -3704,8 +3718,8 @@ var UpdateDistributionBundleResult$ = [3, n0, _UDBRp,
3704
3718
  ];
3705
3719
  var UpdateDistributionRequest$ = [3, n0, _UDR,
3706
3720
  0,
3707
- [_dN, _or, _dCB, _cBS, _cB, _iE, _vMTPV, _cN, _uDC],
3708
- [0, () => InputOrigin$, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, 0, 2], 1
3721
+ [_dN, _or, _dCB, _cBS, _cB, _iE, _vMTPV, _cN, _uDC, _ePOA, _dRO, _cER],
3722
+ [0, () => InputOrigin$, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, 0, 2, 2, 0, () => DistributionCustomErrorResponseList], 1
3709
3723
  ];
3710
3724
  var UpdateDistributionResult$ = [3, n0, _UDRp,
3711
3725
  0,
@@ -3850,6 +3864,9 @@ var DiskSnapshotList = [1, n0, _DSL,
3850
3864
  var DistributionBundleList = [1, n0, _DBL,
3851
3865
  0, () => DistributionBundle$
3852
3866
  ];
3867
+ var DistributionCustomErrorResponseList = [1, n0, _DCERL,
3868
+ 0, () => DistributionCustomErrorResponse$
3869
+ ];
3853
3870
  var DistributionList = [1, n0, _DLi,
3854
3871
  0, () => LightsailDistribution$
3855
3872
  ];
@@ -6245,6 +6262,7 @@ exports.DiskSnapshotInfo$ = DiskSnapshotInfo$;
6245
6262
  exports.DiskSnapshotState = DiskSnapshotState;
6246
6263
  exports.DiskState = DiskState;
6247
6264
  exports.DistributionBundle$ = DistributionBundle$;
6265
+ exports.DistributionCustomErrorResponse$ = DistributionCustomErrorResponse$;
6248
6266
  exports.DistributionMetricName = DistributionMetricName;
6249
6267
  exports.DnsRecordCreationState$ = DnsRecordCreationState$;
6250
6268
  exports.DnsRecordCreationStateCode = DnsRecordCreationStateCode;
@@ -186,6 +186,8 @@ const _DBR = "DeleteBucketRequest";
186
186
  const _DBRe = "DeleteBucketResult";
187
187
  const _DBe = "DeleteBucket";
188
188
  const _DC = "DeleteCertificate";
189
+ const _DCER = "DistributionCustomErrorResponse";
190
+ const _DCERL = "DistributionCustomErrorResponseList";
189
191
  const _DCFD = "DetachCertificateFromDistribution";
190
192
  const _DCFDR = "DetachCertificateFromDistributionRequest";
191
193
  const _DCFDRe = "DetachCertificateFromDistributionResult";
@@ -760,6 +762,7 @@ const _cD = "certificateDetail";
760
762
  const _cDN = "certificateDomainName";
761
763
  const _cDu = "currentDeployment";
762
764
  const _cE = "contactEndpoint";
765
+ const _cER = "customErrorResponses";
763
766
  const _cEo = "costEstimates";
764
767
  const _cFSR = "cloudFormationStackRecords";
765
768
  const _cHTTPM = "cachedHTTPMethods";
@@ -807,6 +810,7 @@ const _dNo = "domainName";
807
810
  const _dNom = "domainNames";
808
811
  const _dP = "diskPath";
809
812
  const _dRCS = "dnsRecordCreationState";
813
+ const _dRO = "defaultRootObject";
810
814
  const _dS = "diskSnapshot";
811
815
  const _dSI = "diskSnapshotInfo";
812
816
  const _dSIG = "diskSizeInGb";
@@ -837,6 +841,7 @@ const _eAm = "emailAddress";
837
841
  const _eAn = "enrolledAt";
838
842
  const _eBR = "enableBackupRetention";
839
843
  const _eC = "errorCode";
844
+ const _eCMTTL = "errorCachingMinTTL";
840
845
  const _eCv = "eventCategories";
841
846
  const _eD = "errorDetails";
842
847
  const _eDn = "engineDescription";
@@ -846,6 +851,7 @@ const _eH = "exposeHeaders";
846
851
  const _eIPR = "ecrImagePullerRole";
847
852
  const _eOV = "enableObjectVersioning";
848
853
  const _eP = "evaluationPeriods";
854
+ const _ePOA = "enablePrivateOriginAccess";
849
855
  const _eSR = "exportSnapshotRecords";
850
856
  const _eT = "endTime";
851
857
  const _eTR = "eligibleToRenew";
@@ -929,6 +935,7 @@ const _iM = "isModifiable";
929
935
  const _iN = "instanceName";
930
936
  const _iNn = "instanceNames";
931
937
  const _iP = "instancePort";
938
+ const _iPOAE = "isPrivateOriginAccessEnabled";
932
939
  const _iPs = "isPeered";
933
940
  const _iPsr = "isPrimary";
934
941
  const _iRDAZ = "includeRelationalDatabaseAvailabilityZones";
@@ -1066,6 +1073,7 @@ const _rAA = "readonlyAccessAccounts";
1066
1073
  const _rAe = "resourceArn";
1067
1074
  const _rBE = "resourcesBudgetEstimate";
1068
1075
  const _rBT = "resultsByTime";
1076
+ const _rC = "responseCode";
1069
1077
  const _rD = "restoreDate";
1070
1078
  const _rDAZ = "relationalDatabaseAvailabilityZones";
1071
1079
  const _rDBI = "relationalDatabaseBundleId";
@@ -1085,6 +1093,7 @@ const _rLE = "resourceLogEvents";
1085
1093
  const _rMUP = "rotateMasterUserPassword";
1086
1094
  const _rN = "resourceName";
1087
1095
  const _rNe = "regionName";
1096
+ const _rPP = "responsePagePath";
1088
1097
  const _rR = "revocationReason";
1089
1098
  const _rRA = "resourcesReceivingAccess";
1090
1099
  const _rRe = "resourceRecord";
@@ -1657,8 +1666,8 @@ export var CreateDiskSnapshotResult$ = [3, n0, _CDSRr,
1657
1666
  ];
1658
1667
  export var CreateDistributionRequest$ = [3, n0, _CDRre,
1659
1668
  0,
1660
- [_dN, _or, _dCB, _bIu, _cBS, _cB, _iAT, _ta, _cN, _vMTPV],
1661
- [0, () => InputOrigin$, () => CacheBehavior$, 0, () => CacheSettings$, () => CacheBehaviorList, 0, () => TagList, 0, 0], 4
1669
+ [_dN, _or, _dCB, _bIu, _cBS, _cB, _iAT, _ta, _cN, _vMTPV, _ePOA, _dRO, _cER],
1670
+ [0, () => InputOrigin$, () => CacheBehavior$, 0, () => CacheSettings$, () => CacheBehaviorList, 0, () => TagList, 0, 0, 2, 0, () => DistributionCustomErrorResponseList], 4
1662
1671
  ];
1663
1672
  export var CreateDistributionResult$ = [3, n0, _CDRrea,
1664
1673
  0,
@@ -2080,6 +2089,11 @@ export var DistributionBundle$ = [3, n0, _DB,
2080
2089
  [_bIu, _n, _pri, _tPMIG, _iA],
2081
2090
  [0, 0, 1, 1, 2]
2082
2091
  ];
2092
+ export var DistributionCustomErrorResponse$ = [3, n0, _DCER,
2093
+ 0,
2094
+ [_eC, _rC, _rPP, _eCMTTL],
2095
+ [1, 0, 0, 1]
2096
+ ];
2083
2097
  export var DnsRecordCreationState$ = [3, n0, _DRCS,
2084
2098
  0,
2085
2099
  [_co, _m],
@@ -2907,8 +2921,8 @@ export var KeyPair$ = [3, n0, _KP,
2907
2921
  ];
2908
2922
  export var LightsailDistribution$ = [3, n0, _LD,
2909
2923
  0,
2910
- [_n, _a, _sC, _cA, _l, _rT, _aDN, _st, _iE, _dNo, _bIu, _cN, _or, _oPDNS, _dCB, _cBS, _cB, _aTUB, _iAT, _ta, _vMTPV],
2911
- [0, 0, 0, 4, () => ResourceLocation$, 0, 64 | 0, 0, 2, 0, 0, 0, () => Origin$, 0, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, () => TagList, 0]
2924
+ [_n, _a, _sC, _cA, _l, _rT, _aDN, _st, _iE, _dNo, _bIu, _cN, _or, _oPDNS, _dCB, _cBS, _cB, _aTUB, _iAT, _ta, _vMTPV, _dRO, _cER],
2925
+ [0, 0, 0, 4, () => ResourceLocation$, 0, 64 | 0, 0, 2, 0, 0, 0, () => Origin$, 0, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, () => TagList, 0, 0, () => DistributionCustomErrorResponseList]
2912
2926
  ];
2913
2927
  export var LoadBalancer$ = [3, n0, _LB,
2914
2928
  0,
@@ -2992,8 +3006,8 @@ export var Operation$ = [3, n0, _O,
2992
3006
  ];
2993
3007
  export var Origin$ = [3, n0, _Or,
2994
3008
  0,
2995
- [_n, _rT, _rNe, _pP, _rTes, _iAT],
2996
- [0, 0, 0, 0, 1, 0]
3009
+ [_n, _rT, _rNe, _pP, _rTes, _iAT, _iPOAE],
3010
+ [0, 0, 0, 0, 1, 0, 2]
2997
3011
  ];
2998
3012
  export var PartnerInfo$ = [3, n0, _PI,
2999
3013
  0,
@@ -3422,8 +3436,8 @@ export var UpdateDistributionBundleResult$ = [3, n0, _UDBRp,
3422
3436
  ];
3423
3437
  export var UpdateDistributionRequest$ = [3, n0, _UDR,
3424
3438
  0,
3425
- [_dN, _or, _dCB, _cBS, _cB, _iE, _vMTPV, _cN, _uDC],
3426
- [0, () => InputOrigin$, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, 0, 2], 1
3439
+ [_dN, _or, _dCB, _cBS, _cB, _iE, _vMTPV, _cN, _uDC, _ePOA, _dRO, _cER],
3440
+ [0, () => InputOrigin$, () => CacheBehavior$, () => CacheSettings$, () => CacheBehaviorList, 2, 0, 0, 2, 2, 0, () => DistributionCustomErrorResponseList], 1
3427
3441
  ];
3428
3442
  export var UpdateDistributionResult$ = [3, n0, _UDRp,
3429
3443
  0,
@@ -3579,6 +3593,9 @@ var DiskSnapshotList = [1, n0, _DSL,
3579
3593
  var DistributionBundleList = [1, n0, _DBL,
3580
3594
  0, () => DistributionBundle$
3581
3595
  ];
3596
+ var DistributionCustomErrorResponseList = [1, n0, _DCERL,
3597
+ 0, () => DistributionCustomErrorResponse$
3598
+ ];
3582
3599
  var DistributionList = [1, n0, _DLi,
3583
3600
  0, () => LightsailDistribution$
3584
3601
  ];
@@ -89,6 +89,16 @@ declare const CreateDistributionCommand_base: {
89
89
  * ],
90
90
  * certificateName: "STRING_VALUE",
91
91
  * viewerMinimumTlsProtocolVersion: "TLSv1.1_2016" || "TLSv1.2_2018" || "TLSv1.2_2019" || "TLSv1.2_2021",
92
+ * enablePrivateOriginAccess: true || false,
93
+ * defaultRootObject: "STRING_VALUE",
94
+ * customErrorResponses: [ // DistributionCustomErrorResponseList
95
+ * { // DistributionCustomErrorResponse
96
+ * errorCode: Number("int"),
97
+ * responseCode: "STRING_VALUE",
98
+ * responsePagePath: "STRING_VALUE",
99
+ * errorCachingMinTTL: Number("long"),
100
+ * },
101
+ * ],
92
102
  * };
93
103
  * const command = new CreateDistributionCommand(input);
94
104
  * const response = await client.send(command);
@@ -118,6 +128,7 @@ declare const CreateDistributionCommand_base: {
118
128
  * // protocolPolicy: "http-only" || "https-only",
119
129
  * // responseTimeout: Number("int"),
120
130
  * // ipAddressType: "ipv4" || "ipv6" || "dualstack",
131
+ * // isPrivateOriginAccessEnabled: true || false,
121
132
  * // },
122
133
  * // originPublicDNS: "STRING_VALUE",
123
134
  * // defaultCacheBehavior: { // CacheBehavior
@@ -163,6 +174,15 @@ declare const CreateDistributionCommand_base: {
163
174
  * // },
164
175
  * // ],
165
176
  * // viewerMinimumTlsProtocolVersion: "STRING_VALUE",
177
+ * // defaultRootObject: "STRING_VALUE",
178
+ * // customErrorResponses: [ // DistributionCustomErrorResponseList
179
+ * // { // DistributionCustomErrorResponse
180
+ * // errorCode: Number("int"),
181
+ * // responseCode: "STRING_VALUE",
182
+ * // responsePagePath: "STRING_VALUE",
183
+ * // errorCachingMinTTL: Number("long"),
184
+ * // },
185
+ * // ],
166
186
  * // },
167
187
  * // operation: { // Operation
168
188
  * // id: "STRING_VALUE",
@@ -67,6 +67,7 @@ declare const GetDistributionsCommand_base: {
67
67
  * // protocolPolicy: "http-only" || "https-only",
68
68
  * // responseTimeout: Number("int"),
69
69
  * // ipAddressType: "ipv4" || "ipv6" || "dualstack",
70
+ * // isPrivateOriginAccessEnabled: true || false,
70
71
  * // },
71
72
  * // originPublicDNS: "STRING_VALUE",
72
73
  * // defaultCacheBehavior: { // CacheBehavior
@@ -112,6 +113,15 @@ declare const GetDistributionsCommand_base: {
112
113
  * // },
113
114
  * // ],
114
115
  * // viewerMinimumTlsProtocolVersion: "STRING_VALUE",
116
+ * // defaultRootObject: "STRING_VALUE",
117
+ * // customErrorResponses: [ // DistributionCustomErrorResponseList
118
+ * // { // DistributionCustomErrorResponse
119
+ * // errorCode: Number("int"),
120
+ * // responseCode: "STRING_VALUE",
121
+ * // responsePagePath: "STRING_VALUE",
122
+ * // errorCachingMinTTL: Number("long"),
123
+ * // },
124
+ * // ],
115
125
  * // },
116
126
  * // ],
117
127
  * // nextPageToken: "STRING_VALUE",
@@ -1,6 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetLoadBalancerRequest } from "../models/models_0";
3
- import type { GetLoadBalancerResult } from "../models/models_1";
2
+ import type { GetLoadBalancerRequest, GetLoadBalancerResult } from "../models/models_1";
4
3
  /**
5
4
  * @public
6
5
  */
@@ -81,6 +81,16 @@ declare const UpdateDistributionCommand_base: {
81
81
  * viewerMinimumTlsProtocolVersion: "TLSv1.1_2016" || "TLSv1.2_2018" || "TLSv1.2_2019" || "TLSv1.2_2021",
82
82
  * certificateName: "STRING_VALUE",
83
83
  * useDefaultCertificate: true || false,
84
+ * enablePrivateOriginAccess: true || false,
85
+ * defaultRootObject: "STRING_VALUE",
86
+ * customErrorResponses: [ // DistributionCustomErrorResponseList
87
+ * { // DistributionCustomErrorResponse
88
+ * errorCode: Number("int"),
89
+ * responseCode: "STRING_VALUE",
90
+ * responsePagePath: "STRING_VALUE",
91
+ * errorCachingMinTTL: Number("long"),
92
+ * },
93
+ * ],
84
94
  * };
85
95
  * const command = new UpdateDistributionCommand(input);
86
96
  * const response = await client.send(command);
@@ -3952,6 +3952,40 @@ export interface CreateDiskSnapshotResult {
3952
3952
  */
3953
3953
  operations?: Operation[] | undefined;
3954
3954
  }
3955
+ /**
3956
+ * <p>Describes a custom error response for a Lightsail distribution. A custom error response
3957
+ * specifies the page that the distribution returns to the viewer. It also specifies the HTTP
3958
+ * status code that the distribution sends when the origin responds with a given HTTP error code.</p>
3959
+ * @public
3960
+ */
3961
+ export interface DistributionCustomErrorResponse {
3962
+ /**
3963
+ * <p>The HTTP error code from the origin that triggers the custom error response (for example,
3964
+ * <code>403</code> or <code>404</code>).</p>
3965
+ * @public
3966
+ */
3967
+ errorCode?: number | undefined;
3968
+ /**
3969
+ * <p>The HTTP status code that the distribution returns to the viewer for the custom error
3970
+ * response.</p>
3971
+ * @public
3972
+ */
3973
+ responseCode?: string | undefined;
3974
+ /**
3975
+ * <p>The path to the custom error page that the distribution returns to the viewer (for
3976
+ * example, <code>/404.html</code>). The path must begin with a forward slash (<code>/</code>)
3977
+ * and reference an object that is available from the origin.</p>
3978
+ * @public
3979
+ */
3980
+ responsePagePath?: string | undefined;
3981
+ /**
3982
+ * <p>The minimum time, in seconds, that the distribution caches the custom error response
3983
+ * before requesting the object again from the origin. If you don't specify a value, the default
3984
+ * is <code>10</code> seconds.</p>
3985
+ * @public
3986
+ */
3987
+ errorCachingMinTTL?: number | undefined;
3988
+ }
3955
3989
  /**
3956
3990
  * <p>Describes the origin resource of an Amazon Lightsail content delivery network (CDN)
3957
3991
  * distribution.</p>
@@ -4058,6 +4092,34 @@ export interface CreateDistributionRequest {
4058
4092
  * @public
4059
4093
  */
4060
4094
  viewerMinimumTlsProtocolVersion?: ViewerMinimumTlsProtocolVersionEnum | undefined;
4095
+ /**
4096
+ * <p>Specifies whether to enable private origin access for the distribution. With private
4097
+ * origin access, the distribution can serve objects that aren't publicly accessible from a
4098
+ * Lightsail bucket.</p>
4099
+ * <p>Lightsail grants the distribution permission to read the bucket's objects. Enabling
4100
+ * private origin access doesn't change the bucket's access settings, and you can still
4101
+ * retrieve publicly accessible objects directly from the bucket's endpoint.</p>
4102
+ * <note>
4103
+ * <p>You can enable private origin access only when the distribution's origin is a
4104
+ * Lightsail bucket. If the origin is another resource type, the request fails.</p>
4105
+ * </note>
4106
+ * @public
4107
+ */
4108
+ enablePrivateOriginAccess?: boolean | undefined;
4109
+ /**
4110
+ * <p>The object (for example, <code>index.html</code>) that the distribution returns when a
4111
+ * viewer requests the root URL of the distribution (<code>/</code>) instead of a specific
4112
+ * object. The object that you specify must be available from the origin.</p>
4113
+ * @public
4114
+ */
4115
+ defaultRootObject?: string | undefined;
4116
+ /**
4117
+ * <p>An array of objects that describe the custom error responses for the distribution. With a
4118
+ * custom error response, you can specify the page to return when the origin responds with a
4119
+ * given HTTP error code. You can also specify the HTTP status code to send to the viewer.</p>
4120
+ * @public
4121
+ */
4122
+ customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
4061
4123
  }
4062
4124
  /**
4063
4125
  * <p>Describes the origin resource of an Amazon Lightsail content delivery network (CDN)
@@ -4103,6 +4165,16 @@ export interface Origin {
4103
4165
  * @public
4104
4166
  */
4105
4167
  ipAddressType?: OriginIpAddressTypeEnum | undefined;
4168
+ /**
4169
+ * <p>Specifies whether private origin access is enabled for the distribution's origin. With
4170
+ * private origin access, the distribution can serve objects that aren't publicly accessible
4171
+ * from a Lightsail bucket.</p>
4172
+ * <p>This applies when you set the bucket's <code>getObject</code> access rule to
4173
+ * <code>private</code>. It also applies when you set <code>getObject</code> to <code>public</code>
4174
+ * but set individual objects to private.</p>
4175
+ * @public
4176
+ */
4177
+ isPrivateOriginAccessEnabled?: boolean | undefined;
4106
4178
  }
4107
4179
  /**
4108
4180
  * <p>Describes an Amazon Lightsail content delivery network (CDN) distribution.</p>
@@ -4231,6 +4303,19 @@ export interface LightsailDistribution {
4231
4303
  * @public
4232
4304
  */
4233
4305
  viewerMinimumTlsProtocolVersion?: string | undefined;
4306
+ /**
4307
+ * <p>The object (for example, <code>index.html</code>) that the distribution returns when a
4308
+ * viewer requests the root URL of the distribution (<code>/</code>) instead of a specific
4309
+ * object.</p>
4310
+ * @public
4311
+ */
4312
+ defaultRootObject?: string | undefined;
4313
+ /**
4314
+ * <p>An array of objects that describe the custom error responses configured for the
4315
+ * distribution.</p>
4316
+ * @public
4317
+ */
4318
+ customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
4234
4319
  }
4235
4320
  /**
4236
4321
  * @public
@@ -9345,13 +9430,3 @@ export interface GetKeyPairsResult {
9345
9430
  */
9346
9431
  nextPageToken?: string | undefined;
9347
9432
  }
9348
- /**
9349
- * @public
9350
- */
9351
- export interface GetLoadBalancerRequest {
9352
- /**
9353
- * <p>The name of the load balancer.</p>
9354
- * @public
9355
- */
9356
- loadBalancerName: string | undefined;
9357
- }
@@ -1,5 +1,15 @@
1
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, DomainEntry, InputOrigin, MetricDatapoint, Operation, PortInfo, PrivateRegistryAccessRequest, ResourceLocation, Tag } from "./models_0";
2
+ import type { AccessRules, AvailabilityZone, Bucket, BucketAccessLogConfig, BucketCorsConfig, CacheBehavior, CacheBehaviorPerPath, CacheSettings, ContainerImage, ContainerService, DistributionCustomErrorResponse, DomainEntry, InputOrigin, MetricDatapoint, Operation, PortInfo, PrivateRegistryAccessRequest, ResourceLocation, Tag } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface GetLoadBalancerRequest {
7
+ /**
8
+ * <p>The name of the load balancer.</p>
9
+ * @public
10
+ */
11
+ loadBalancerName: string | undefined;
12
+ }
3
13
  /**
4
14
  * <p>Describes information about the health of the instance.</p>
5
15
  * @public
@@ -3818,6 +3828,36 @@ export interface UpdateDistributionRequest {
3818
3828
  * @public
3819
3829
  */
3820
3830
  useDefaultCertificate?: boolean | undefined;
3831
+ /**
3832
+ * <p>Specifies whether to enable private origin access for the distribution. With private
3833
+ * origin access, the distribution can serve objects that aren't publicly accessible from a
3834
+ * Lightsail bucket.</p>
3835
+ * <p>Lightsail grants the distribution permission to read the bucket's objects. Enabling
3836
+ * private origin access doesn't change the bucket's access settings, and you can still
3837
+ * retrieve publicly accessible objects directly from the bucket's endpoint.</p>
3838
+ * <note>
3839
+ * <p>When you include this parameter, you must also include the <code>origin</code> parameter
3840
+ * with the resource name, even if the origin is not changing.</p>
3841
+ * <p>You can enable private origin access only when the distribution's origin is a
3842
+ * Lightsail bucket. If the origin is another resource type, the request fails.</p>
3843
+ * </note>
3844
+ * @public
3845
+ */
3846
+ enablePrivateOriginAccess?: boolean | undefined;
3847
+ /**
3848
+ * <p>The object (for example, <code>index.html</code>) that the distribution returns when a
3849
+ * viewer requests the root URL of the distribution (<code>/</code>) instead of a specific
3850
+ * object. The object that you specify must be available from the origin.</p>
3851
+ * @public
3852
+ */
3853
+ defaultRootObject?: string | undefined;
3854
+ /**
3855
+ * <p>An array of objects that describe the custom error responses for the distribution. With a
3856
+ * custom error response, you can specify the page to return when the origin responds with a
3857
+ * given HTTP error code. You can also specify the HTTP status code to send to the viewer.</p>
3858
+ * @public
3859
+ */
3860
+ customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
3821
3861
  }
3822
3862
  /**
3823
3863
  * @public
@@ -181,6 +181,7 @@ export declare var DiskMap$: StaticStructureSchema;
181
181
  export declare var DiskSnapshot$: StaticStructureSchema;
182
182
  export declare var DiskSnapshotInfo$: StaticStructureSchema;
183
183
  export declare var DistributionBundle$: StaticStructureSchema;
184
+ export declare var DistributionCustomErrorResponse$: StaticStructureSchema;
184
185
  export declare var DnsRecordCreationState$: StaticStructureSchema;
185
186
  export declare var Domain$: StaticStructureSchema;
186
187
  export declare var DomainEntry$: StaticStructureSchema;
@@ -1,6 +1,5 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { GetLoadBalancerRequest } from "../models/models_0";
3
- import { GetLoadBalancerResult } from "../models/models_1";
2
+ import { GetLoadBalancerRequest, GetLoadBalancerResult } from "../models/models_1";
4
3
  export { __MetadataBearer };
5
4
  export interface GetLoadBalancerCommandInput extends GetLoadBalancerRequest {}
6
5
  export interface GetLoadBalancerCommandOutput extends GetLoadBalancerResult, __MetadataBearer {}
@@ -653,6 +653,12 @@ export interface CreateDiskSnapshotRequest {
653
653
  export interface CreateDiskSnapshotResult {
654
654
  operations?: Operation[] | undefined;
655
655
  }
656
+ export interface DistributionCustomErrorResponse {
657
+ errorCode?: number | undefined;
658
+ responseCode?: string | undefined;
659
+ responsePagePath?: string | undefined;
660
+ errorCachingMinTTL?: number | undefined;
661
+ }
656
662
  export interface InputOrigin {
657
663
  name?: string | undefined;
658
664
  regionName?: RegionName | undefined;
@@ -671,6 +677,9 @@ export interface CreateDistributionRequest {
671
677
  tags?: Tag[] | undefined;
672
678
  certificateName?: string | undefined;
673
679
  viewerMinimumTlsProtocolVersion?: ViewerMinimumTlsProtocolVersionEnum | undefined;
680
+ enablePrivateOriginAccess?: boolean | undefined;
681
+ defaultRootObject?: string | undefined;
682
+ customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
674
683
  }
675
684
  export interface Origin {
676
685
  name?: string | undefined;
@@ -679,6 +688,7 @@ export interface Origin {
679
688
  protocolPolicy?: OriginProtocolPolicyEnum | undefined;
680
689
  responseTimeout?: number | undefined;
681
690
  ipAddressType?: OriginIpAddressTypeEnum | undefined;
691
+ isPrivateOriginAccessEnabled?: boolean | undefined;
682
692
  }
683
693
  export interface LightsailDistribution {
684
694
  name?: string | undefined;
@@ -702,6 +712,8 @@ export interface LightsailDistribution {
702
712
  ipAddressType?: IpAddressType | undefined;
703
713
  tags?: Tag[] | undefined;
704
714
  viewerMinimumTlsProtocolVersion?: string | undefined;
715
+ defaultRootObject?: string | undefined;
716
+ customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
705
717
  }
706
718
  export interface CreateDistributionResult {
707
719
  distribution?: LightsailDistribution | undefined;
@@ -1587,6 +1599,3 @@ export interface GetKeyPairsResult {
1587
1599
  keyPairs?: KeyPair[] | undefined;
1588
1600
  nextPageToken?: string | undefined;
1589
1601
  }
1590
- export interface GetLoadBalancerRequest {
1591
- loadBalancerName: string | undefined;
1592
- }
@@ -48,6 +48,7 @@ import {
48
48
  CacheSettings,
49
49
  ContainerImage,
50
50
  ContainerService,
51
+ DistributionCustomErrorResponse,
51
52
  DomainEntry,
52
53
  InputOrigin,
53
54
  MetricDatapoint,
@@ -57,6 +58,9 @@ import {
57
58
  ResourceLocation,
58
59
  Tag,
59
60
  } from "./models_0";
61
+ export interface GetLoadBalancerRequest {
62
+ loadBalancerName: string | undefined;
63
+ }
60
64
  export interface InstanceHealthSummary {
61
65
  instanceName?: string | undefined;
62
66
  instanceHealth?: InstanceHealthState | undefined;
@@ -702,6 +706,9 @@ export interface UpdateDistributionRequest {
702
706
  viewerMinimumTlsProtocolVersion?: ViewerMinimumTlsProtocolVersionEnum | undefined;
703
707
  certificateName?: string | undefined;
704
708
  useDefaultCertificate?: boolean | undefined;
709
+ enablePrivateOriginAccess?: boolean | undefined;
710
+ defaultRootObject?: string | undefined;
711
+ customErrorResponses?: DistributionCustomErrorResponse[] | undefined;
705
712
  }
706
713
  export interface UpdateDistributionResult {
707
714
  operation?: Operation | undefined;
@@ -176,6 +176,7 @@ export declare var DiskMap$: StaticStructureSchema;
176
176
  export declare var DiskSnapshot$: StaticStructureSchema;
177
177
  export declare var DiskSnapshotInfo$: StaticStructureSchema;
178
178
  export declare var DistributionBundle$: StaticStructureSchema;
179
+ export declare var DistributionCustomErrorResponse$: StaticStructureSchema;
179
180
  export declare var DnsRecordCreationState$: StaticStructureSchema;
180
181
  export declare var Domain$: StaticStructureSchema;
181
182
  export declare var DomainEntry$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lightsail",
3
- "version": "3.1129.0",
3
+ "version": "3.1131.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",