@aws-sdk/client-apigatewayv2 3.51.0 → 3.54.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-apigatewayv2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-apigatewayv2
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-apigatewayv2
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiGatewayV2ServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./ApiGatewayV2"), exports);
5
6
  tslib_1.__exportStar(require("./ApiGatewayV2Client"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var ApiGatewayV2ServiceException_1 = require("./models/ApiGatewayV2ServiceException");
10
+ Object.defineProperty(exports, "ApiGatewayV2ServiceException", { enumerable: true, get: function () { return ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiGatewayV2ServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class ApiGatewayV2ServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, ApiGatewayV2ServiceException.prototype);
9
+ }
10
+ }
11
+ exports.ApiGatewayV2ServiceException = ApiGatewayV2ServiceException;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateIntegrationResponseResponse = exports.CreateIntegrationResponseRequest = exports.CreateIntegrationResult = exports.CreateIntegrationRequest = exports.TlsConfigInput = exports.CreateDomainNameResponse = exports.CreateDomainNameRequest = exports.MutualTlsAuthenticationInput = exports.CreateDeploymentResponse = exports.CreateDeploymentRequest = exports.CreateAuthorizerResponse = exports.CreateAuthorizerRequest = exports.CreateApiMappingResponse = exports.CreateApiMappingRequest = exports.CreateApiResponse = exports.CreateApiRequest = exports.VpcLink = exports.VpcLinkVersion = exports.VpcLinkStatus = exports.Stage = exports.RouteSettings = exports.LoggingLevel = exports.AccessLogSettings = exports.RouteResponse = exports.Route = exports.ParameterConstraints = exports.AuthorizationType = exports.Model = exports.IntegrationResponse = exports.Integration = exports.TlsConfig = exports.PassthroughBehavior = exports.IntegrationType = exports.ContentHandlingStrategy = exports.ConnectionType = exports.DomainName = exports.MutualTlsAuthentication = exports.DomainNameConfiguration = exports.SecurityPolicy = exports.EndpointType = exports.DomainNameStatus = exports.Deployment = exports.DeploymentStatus = exports.Authorizer = exports.JWTConfiguration = exports.AuthorizerType = exports.ApiMapping = exports.Api = exports.ProtocolType = exports.Cors = void 0;
4
- exports.GetIntegrationRequest = exports.GetDomainNamesResponse = exports.GetDomainNamesRequest = exports.GetDomainNameResponse = exports.GetDomainNameRequest = exports.GetDeploymentsResponse = exports.GetDeploymentsRequest = exports.GetDeploymentResponse = exports.GetDeploymentRequest = exports.GetAuthorizersResponse = exports.GetAuthorizersRequest = exports.GetAuthorizerResponse = exports.GetAuthorizerRequest = exports.GetApisResponse = exports.GetApisRequest = exports.GetApiMappingsResponse = exports.GetApiMappingsRequest = exports.GetApiMappingResponse = exports.GetApiMappingRequest = exports.GetApiResponse = exports.GetApiRequest = exports.ExportApiResponse = exports.ExportApiRequest = exports.DeleteVpcLinkResponse = exports.DeleteVpcLinkRequest = exports.DeleteStageRequest = exports.DeleteRouteSettingsRequest = exports.DeleteRouteResponseRequest = exports.DeleteRouteRequestParameterRequest = exports.DeleteRouteRequest = exports.DeleteModelRequest = exports.DeleteIntegrationResponseRequest = exports.DeleteIntegrationRequest = exports.DeleteDomainNameRequest = exports.DeleteDeploymentRequest = exports.DeleteCorsConfigurationRequest = exports.DeleteAuthorizerRequest = exports.DeleteApiMappingRequest = exports.DeleteApiRequest = exports.DeleteAccessLogSettingsRequest = exports.CreateVpcLinkResponse = exports.CreateVpcLinkRequest = exports.CreateStageResponse = exports.CreateStageRequest = exports.CreateRouteResponseResponse = exports.CreateRouteResponseRequest = exports.CreateRouteResult = exports.CreateRouteRequest = exports.CreateModelResponse = exports.CreateModelRequest = void 0;
5
- exports.UpdateIntegrationRequest = exports.UpdateDomainNameResponse = exports.UpdateDomainNameRequest = exports.UpdateDeploymentResponse = exports.UpdateDeploymentRequest = exports.UpdateAuthorizerResponse = exports.UpdateAuthorizerRequest = exports.UpdateApiMappingResponse = exports.UpdateApiMappingRequest = exports.UpdateApiResponse = exports.UpdateApiRequest = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ResetAuthorizersCacheRequest = exports.ReimportApiResponse = exports.ReimportApiRequest = exports.ImportApiResponse = exports.ImportApiRequest = exports.GetVpcLinksResponse = exports.GetVpcLinksRequest = exports.GetVpcLinkResponse = exports.GetVpcLinkRequest = exports.GetTagsResponse = exports.GetTagsRequest = exports.GetStagesResponse = exports.GetStagesRequest = exports.GetStageResponse = exports.GetStageRequest = exports.GetRoutesResponse = exports.GetRoutesRequest = exports.GetRouteResponsesResponse = exports.GetRouteResponsesRequest = exports.GetRouteResponseResponse = exports.GetRouteResponseRequest = exports.GetRouteResult = exports.GetRouteRequest = exports.GetModelTemplateResponse = exports.GetModelTemplateRequest = exports.GetModelsResponse = exports.GetModelsRequest = exports.GetModelResponse = exports.GetModelRequest = exports.GetIntegrationsResponse = exports.GetIntegrationsRequest = exports.GetIntegrationResponsesResponse = exports.GetIntegrationResponsesRequest = exports.GetIntegrationResponseResponse = exports.GetIntegrationResponseRequest = exports.GetIntegrationResult = void 0;
6
- exports.UpdateVpcLinkResponse = exports.UpdateVpcLinkRequest = exports.UpdateStageResponse = exports.UpdateStageRequest = exports.UpdateRouteResponseResponse = exports.UpdateRouteResponseRequest = exports.UpdateRouteResult = exports.UpdateRouteRequest = exports.UpdateModelResponse = exports.UpdateModelRequest = exports.UpdateIntegrationResponseResponse = exports.UpdateIntegrationResponseRequest = exports.UpdateIntegrationResult = void 0;
3
+ exports.CreateDomainNameResponse = exports.CreateDomainNameRequest = exports.MutualTlsAuthenticationInput = exports.CreateDeploymentResponse = exports.CreateDeploymentRequest = exports.CreateAuthorizerResponse = exports.CreateAuthorizerRequest = exports.CreateApiMappingResponse = exports.CreateApiMappingRequest = exports.TooManyRequestsException = exports.NotFoundException = exports.CreateApiResponse = exports.CreateApiRequest = exports.ConflictException = exports.BadRequestException = exports.AccessDeniedException = exports.VpcLink = exports.VpcLinkVersion = exports.VpcLinkStatus = exports.Stage = exports.RouteSettings = exports.LoggingLevel = exports.AccessLogSettings = exports.RouteResponse = exports.Route = exports.ParameterConstraints = exports.AuthorizationType = exports.Model = exports.IntegrationResponse = exports.Integration = exports.TlsConfig = exports.PassthroughBehavior = exports.IntegrationType = exports.ContentHandlingStrategy = exports.ConnectionType = exports.DomainName = exports.MutualTlsAuthentication = exports.DomainNameConfiguration = exports.SecurityPolicy = exports.EndpointType = exports.DomainNameStatus = exports.Deployment = exports.DeploymentStatus = exports.Authorizer = exports.JWTConfiguration = exports.AuthorizerType = exports.ApiMapping = exports.Api = exports.ProtocolType = exports.Cors = void 0;
4
+ exports.GetDeploymentsResponse = exports.GetDeploymentsRequest = exports.GetDeploymentResponse = exports.GetDeploymentRequest = exports.GetAuthorizersResponse = exports.GetAuthorizersRequest = exports.GetAuthorizerResponse = exports.GetAuthorizerRequest = exports.GetApisResponse = exports.GetApisRequest = exports.GetApiMappingsResponse = exports.GetApiMappingsRequest = exports.GetApiMappingResponse = exports.GetApiMappingRequest = exports.GetApiResponse = exports.GetApiRequest = exports.ExportApiResponse = exports.ExportApiRequest = exports.DeleteVpcLinkResponse = exports.DeleteVpcLinkRequest = exports.DeleteStageRequest = exports.DeleteRouteSettingsRequest = exports.DeleteRouteResponseRequest = exports.DeleteRouteRequestParameterRequest = exports.DeleteRouteRequest = exports.DeleteModelRequest = exports.DeleteIntegrationResponseRequest = exports.DeleteIntegrationRequest = exports.DeleteDomainNameRequest = exports.DeleteDeploymentRequest = exports.DeleteCorsConfigurationRequest = exports.DeleteAuthorizerRequest = exports.DeleteApiMappingRequest = exports.DeleteApiRequest = exports.DeleteAccessLogSettingsRequest = exports.CreateVpcLinkResponse = exports.CreateVpcLinkRequest = exports.CreateStageResponse = exports.CreateStageRequest = exports.CreateRouteResponseResponse = exports.CreateRouteResponseRequest = exports.CreateRouteResult = exports.CreateRouteRequest = exports.CreateModelResponse = exports.CreateModelRequest = exports.CreateIntegrationResponseResponse = exports.CreateIntegrationResponseRequest = exports.CreateIntegrationResult = exports.CreateIntegrationRequest = exports.TlsConfigInput = void 0;
5
+ exports.UpdateAuthorizerResponse = exports.UpdateAuthorizerRequest = exports.UpdateApiMappingResponse = exports.UpdateApiMappingRequest = exports.UpdateApiResponse = exports.UpdateApiRequest = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ResetAuthorizersCacheRequest = exports.ReimportApiResponse = exports.ReimportApiRequest = exports.ImportApiResponse = exports.ImportApiRequest = exports.GetVpcLinksResponse = exports.GetVpcLinksRequest = exports.GetVpcLinkResponse = exports.GetVpcLinkRequest = exports.GetTagsResponse = exports.GetTagsRequest = exports.GetStagesResponse = exports.GetStagesRequest = exports.GetStageResponse = exports.GetStageRequest = exports.GetRoutesResponse = exports.GetRoutesRequest = exports.GetRouteResponsesResponse = exports.GetRouteResponsesRequest = exports.GetRouteResponseResponse = exports.GetRouteResponseRequest = exports.GetRouteResult = exports.GetRouteRequest = exports.GetModelTemplateResponse = exports.GetModelTemplateRequest = exports.GetModelsResponse = exports.GetModelsRequest = exports.GetModelResponse = exports.GetModelRequest = exports.GetIntegrationsResponse = exports.GetIntegrationsRequest = exports.GetIntegrationResponsesResponse = exports.GetIntegrationResponsesRequest = exports.GetIntegrationResponseResponse = exports.GetIntegrationResponseRequest = exports.GetIntegrationResult = exports.GetIntegrationRequest = exports.GetDomainNamesResponse = exports.GetDomainNamesRequest = exports.GetDomainNameResponse = exports.GetDomainNameRequest = void 0;
6
+ exports.UpdateVpcLinkResponse = exports.UpdateVpcLinkRequest = exports.UpdateStageResponse = exports.UpdateStageRequest = exports.UpdateRouteResponseResponse = exports.UpdateRouteResponseRequest = exports.UpdateRouteResult = exports.UpdateRouteRequest = exports.UpdateModelResponse = exports.UpdateModelRequest = exports.UpdateIntegrationResponseResponse = exports.UpdateIntegrationResponseRequest = exports.UpdateIntegrationResult = exports.UpdateIntegrationRequest = exports.UpdateDomainNameResponse = exports.UpdateDomainNameRequest = exports.UpdateDeploymentResponse = exports.UpdateDeploymentRequest = void 0;
7
+ const ApiGatewayV2ServiceException_1 = require("./ApiGatewayV2ServiceException");
7
8
  var Cors;
8
9
  (function (Cors) {
9
10
  Cors.filterSensitiveLog = (obj) => ({
@@ -206,6 +207,48 @@ var VpcLink;
206
207
  ...obj,
207
208
  });
208
209
  })(VpcLink = exports.VpcLink || (exports.VpcLink = {}));
210
+ class AccessDeniedException extends ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException {
211
+ constructor(opts) {
212
+ super({
213
+ name: "AccessDeniedException",
214
+ $fault: "client",
215
+ ...opts,
216
+ });
217
+ this.name = "AccessDeniedException";
218
+ this.$fault = "client";
219
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
220
+ this.Message = opts.Message;
221
+ }
222
+ }
223
+ exports.AccessDeniedException = AccessDeniedException;
224
+ class BadRequestException extends ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException {
225
+ constructor(opts) {
226
+ super({
227
+ name: "BadRequestException",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ this.name = "BadRequestException";
232
+ this.$fault = "client";
233
+ Object.setPrototypeOf(this, BadRequestException.prototype);
234
+ this.Message = opts.Message;
235
+ }
236
+ }
237
+ exports.BadRequestException = BadRequestException;
238
+ class ConflictException extends ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException {
239
+ constructor(opts) {
240
+ super({
241
+ name: "ConflictException",
242
+ $fault: "client",
243
+ ...opts,
244
+ });
245
+ this.name = "ConflictException";
246
+ this.$fault = "client";
247
+ Object.setPrototypeOf(this, ConflictException.prototype);
248
+ this.Message = opts.Message;
249
+ }
250
+ }
251
+ exports.ConflictException = ConflictException;
209
252
  var CreateApiRequest;
210
253
  (function (CreateApiRequest) {
211
254
  CreateApiRequest.filterSensitiveLog = (obj) => ({
@@ -218,6 +261,36 @@ var CreateApiResponse;
218
261
  ...obj,
219
262
  });
220
263
  })(CreateApiResponse = exports.CreateApiResponse || (exports.CreateApiResponse = {}));
264
+ class NotFoundException extends ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException {
265
+ constructor(opts) {
266
+ super({
267
+ name: "NotFoundException",
268
+ $fault: "client",
269
+ ...opts,
270
+ });
271
+ this.name = "NotFoundException";
272
+ this.$fault = "client";
273
+ Object.setPrototypeOf(this, NotFoundException.prototype);
274
+ this.Message = opts.Message;
275
+ this.ResourceType = opts.ResourceType;
276
+ }
277
+ }
278
+ exports.NotFoundException = NotFoundException;
279
+ class TooManyRequestsException extends ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException {
280
+ constructor(opts) {
281
+ super({
282
+ name: "TooManyRequestsException",
283
+ $fault: "client",
284
+ ...opts,
285
+ });
286
+ this.name = "TooManyRequestsException";
287
+ this.$fault = "client";
288
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
289
+ this.LimitType = opts.LimitType;
290
+ this.Message = opts.Message;
291
+ }
292
+ }
293
+ exports.TooManyRequestsException = TooManyRequestsException;
221
294
  var CreateApiMappingRequest;
222
295
  (function (CreateApiMappingRequest) {
223
296
  CreateApiMappingRequest.filterSensitiveLog = (obj) => ({