@aws-sdk/client-apigatewayv2 3.261.0 → 3.262.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.
@@ -1781,7 +1781,7 @@ const deserializeAws_restJson1CreateApiCommand = async (output, context) => {
1781
1781
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
1782
1782
  }
1783
1783
  if (data.createdDate != null) {
1784
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
1784
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
1785
1785
  }
1786
1786
  if (data.description != null) {
1787
1787
  contents.Description = (0, smithy_client_1.expectString)(data.description);
@@ -1982,7 +1982,7 @@ const deserializeAws_restJson1CreateDeploymentCommand = async (output, context)
1982
1982
  contents.AutoDeployed = (0, smithy_client_1.expectBoolean)(data.autoDeployed);
1983
1983
  }
1984
1984
  if (data.createdDate != null) {
1985
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
1985
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
1986
1986
  }
1987
1987
  if (data.deploymentId != null) {
1988
1988
  contents.DeploymentId = (0, smithy_client_1.expectString)(data.deploymentId);
@@ -2454,7 +2454,7 @@ const deserializeAws_restJson1CreateStageCommand = async (output, context) => {
2454
2454
  contents.ClientCertificateId = (0, smithy_client_1.expectString)(data.clientCertificateId);
2455
2455
  }
2456
2456
  if (data.createdDate != null) {
2457
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
2457
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
2458
2458
  }
2459
2459
  if (data.defaultRouteSettings != null) {
2460
2460
  contents.DefaultRouteSettings = deserializeAws_restJson1RouteSettings(data.defaultRouteSettings, context);
@@ -2469,7 +2469,7 @@ const deserializeAws_restJson1CreateStageCommand = async (output, context) => {
2469
2469
  contents.LastDeploymentStatusMessage = (0, smithy_client_1.expectString)(data.lastDeploymentStatusMessage);
2470
2470
  }
2471
2471
  if (data.lastUpdatedDate != null) {
2472
- contents.LastUpdatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdatedDate));
2472
+ contents.LastUpdatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.lastUpdatedDate));
2473
2473
  }
2474
2474
  if (data.routeSettings != null) {
2475
2475
  contents.RouteSettings = deserializeAws_restJson1RouteSettingsMap(data.routeSettings, context);
@@ -2524,7 +2524,7 @@ const deserializeAws_restJson1CreateVpcLinkCommand = async (output, context) =>
2524
2524
  });
2525
2525
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2526
2526
  if (data.createdDate != null) {
2527
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
2527
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
2528
2528
  }
2529
2529
  if (data.name != null) {
2530
2530
  contents.Name = (0, smithy_client_1.expectString)(data.name);
@@ -3185,7 +3185,7 @@ const deserializeAws_restJson1GetApiCommand = async (output, context) => {
3185
3185
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
3186
3186
  }
3187
3187
  if (data.createdDate != null) {
3188
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
3188
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
3189
3189
  }
3190
3190
  if (data.description != null) {
3191
3191
  contents.Description = (0, smithy_client_1.expectString)(data.description);
@@ -3500,7 +3500,7 @@ const deserializeAws_restJson1GetDeploymentCommand = async (output, context) =>
3500
3500
  contents.AutoDeployed = (0, smithy_client_1.expectBoolean)(data.autoDeployed);
3501
3501
  }
3502
3502
  if (data.createdDate != null) {
3503
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
3503
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
3504
3504
  }
3505
3505
  if (data.deploymentId != null) {
3506
3506
  contents.DeploymentId = (0, smithy_client_1.expectString)(data.deploymentId);
@@ -4265,7 +4265,7 @@ const deserializeAws_restJson1GetStageCommand = async (output, context) => {
4265
4265
  contents.ClientCertificateId = (0, smithy_client_1.expectString)(data.clientCertificateId);
4266
4266
  }
4267
4267
  if (data.createdDate != null) {
4268
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
4268
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
4269
4269
  }
4270
4270
  if (data.defaultRouteSettings != null) {
4271
4271
  contents.DefaultRouteSettings = deserializeAws_restJson1RouteSettings(data.defaultRouteSettings, context);
@@ -4280,7 +4280,7 @@ const deserializeAws_restJson1GetStageCommand = async (output, context) => {
4280
4280
  contents.LastDeploymentStatusMessage = (0, smithy_client_1.expectString)(data.lastDeploymentStatusMessage);
4281
4281
  }
4282
4282
  if (data.lastUpdatedDate != null) {
4283
- contents.LastUpdatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdatedDate));
4283
+ contents.LastUpdatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.lastUpdatedDate));
4284
4284
  }
4285
4285
  if (data.routeSettings != null) {
4286
4286
  contents.RouteSettings = deserializeAws_restJson1RouteSettingsMap(data.routeSettings, context);
@@ -4415,7 +4415,7 @@ const deserializeAws_restJson1GetVpcLinkCommand = async (output, context) => {
4415
4415
  });
4416
4416
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4417
4417
  if (data.createdDate != null) {
4418
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
4418
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
4419
4419
  }
4420
4420
  if (data.name != null) {
4421
4421
  contents.Name = (0, smithy_client_1.expectString)(data.name);
@@ -4531,7 +4531,7 @@ const deserializeAws_restJson1ImportApiCommand = async (output, context) => {
4531
4531
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
4532
4532
  }
4533
4533
  if (data.createdDate != null) {
4534
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
4534
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
4535
4535
  }
4536
4536
  if (data.description != null) {
4537
4537
  contents.Description = (0, smithy_client_1.expectString)(data.description);
@@ -4619,7 +4619,7 @@ const deserializeAws_restJson1ReimportApiCommand = async (output, context) => {
4619
4619
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
4620
4620
  }
4621
4621
  if (data.createdDate != null) {
4622
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
4622
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
4623
4623
  }
4624
4624
  if (data.description != null) {
4625
4625
  contents.Description = (0, smithy_client_1.expectString)(data.description);
@@ -4821,7 +4821,7 @@ const deserializeAws_restJson1UpdateApiCommand = async (output, context) => {
4821
4821
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
4822
4822
  }
4823
4823
  if (data.createdDate != null) {
4824
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
4824
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
4825
4825
  }
4826
4826
  if (data.description != null) {
4827
4827
  contents.Description = (0, smithy_client_1.expectString)(data.description);
@@ -5022,7 +5022,7 @@ const deserializeAws_restJson1UpdateDeploymentCommand = async (output, context)
5022
5022
  contents.AutoDeployed = (0, smithy_client_1.expectBoolean)(data.autoDeployed);
5023
5023
  }
5024
5024
  if (data.createdDate != null) {
5025
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
5025
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
5026
5026
  }
5027
5027
  if (data.deploymentId != null) {
5028
5028
  contents.DeploymentId = (0, smithy_client_1.expectString)(data.deploymentId);
@@ -5491,7 +5491,7 @@ const deserializeAws_restJson1UpdateStageCommand = async (output, context) => {
5491
5491
  contents.ClientCertificateId = (0, smithy_client_1.expectString)(data.clientCertificateId);
5492
5492
  }
5493
5493
  if (data.createdDate != null) {
5494
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
5494
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
5495
5495
  }
5496
5496
  if (data.defaultRouteSettings != null) {
5497
5497
  contents.DefaultRouteSettings = deserializeAws_restJson1RouteSettings(data.defaultRouteSettings, context);
@@ -5506,7 +5506,7 @@ const deserializeAws_restJson1UpdateStageCommand = async (output, context) => {
5506
5506
  contents.LastDeploymentStatusMessage = (0, smithy_client_1.expectString)(data.lastDeploymentStatusMessage);
5507
5507
  }
5508
5508
  if (data.lastUpdatedDate != null) {
5509
- contents.LastUpdatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdatedDate));
5509
+ contents.LastUpdatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.lastUpdatedDate));
5510
5510
  }
5511
5511
  if (data.routeSettings != null) {
5512
5512
  contents.RouteSettings = deserializeAws_restJson1RouteSettingsMap(data.routeSettings, context);
@@ -5561,7 +5561,7 @@ const deserializeAws_restJson1UpdateVpcLinkCommand = async (output, context) =>
5561
5561
  });
5562
5562
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5563
5563
  if (data.createdDate != null) {
5564
- contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdDate));
5564
+ contents.CreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdDate));
5565
5565
  }
5566
5566
  if (data.name != null) {
5567
5567
  contents.Name = (0, smithy_client_1.expectString)(data.name);
@@ -6047,7 +6047,7 @@ const deserializeAws_restJson1Api = (output, context) => {
6047
6047
  ApiId: (0, smithy_client_1.expectString)(output.apiId),
6048
6048
  ApiKeySelectionExpression: (0, smithy_client_1.expectString)(output.apiKeySelectionExpression),
6049
6049
  CorsConfiguration: output.corsConfiguration != null ? deserializeAws_restJson1Cors(output.corsConfiguration, context) : undefined,
6050
- CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
6050
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdDate)) : undefined,
6051
6051
  Description: (0, smithy_client_1.expectString)(output.description),
6052
6052
  DisableExecuteApiEndpoint: (0, smithy_client_1.expectBoolean)(output.disableExecuteApiEndpoint),
6053
6053
  DisableSchemaValidation: (0, smithy_client_1.expectBoolean)(output.disableSchemaValidation),
@@ -6144,7 +6144,7 @@ const deserializeAws_restJson1CorsOriginList = (output, context) => {
6144
6144
  const deserializeAws_restJson1Deployment = (output, context) => {
6145
6145
  return {
6146
6146
  AutoDeployed: (0, smithy_client_1.expectBoolean)(output.autoDeployed),
6147
- CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
6147
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdDate)) : undefined,
6148
6148
  DeploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
6149
6149
  DeploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
6150
6150
  DeploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
@@ -6170,7 +6170,7 @@ const deserializeAws_restJson1DomainNameConfiguration = (output, context) => {
6170
6170
  CertificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
6171
6171
  CertificateName: (0, smithy_client_1.expectString)(output.certificateName),
6172
6172
  CertificateUploadDate: output.certificateUploadDate != null
6173
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.certificateUploadDate))
6173
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.certificateUploadDate))
6174
6174
  : undefined,
6175
6175
  DomainNameStatus: (0, smithy_client_1.expectString)(output.domainNameStatus),
6176
6176
  DomainNameStatusMessage: (0, smithy_client_1.expectString)(output.domainNameStatusMessage),
@@ -6380,14 +6380,16 @@ const deserializeAws_restJson1Stage = (output, context) => {
6380
6380
  ApiGatewayManaged: (0, smithy_client_1.expectBoolean)(output.apiGatewayManaged),
6381
6381
  AutoDeploy: (0, smithy_client_1.expectBoolean)(output.autoDeploy),
6382
6382
  ClientCertificateId: (0, smithy_client_1.expectString)(output.clientCertificateId),
6383
- CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
6383
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdDate)) : undefined,
6384
6384
  DefaultRouteSettings: output.defaultRouteSettings != null
6385
6385
  ? deserializeAws_restJson1RouteSettings(output.defaultRouteSettings, context)
6386
6386
  : undefined,
6387
6387
  DeploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
6388
6388
  Description: (0, smithy_client_1.expectString)(output.description),
6389
6389
  LastDeploymentStatusMessage: (0, smithy_client_1.expectString)(output.lastDeploymentStatusMessage),
6390
- LastUpdatedDate: output.lastUpdatedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdatedDate)) : undefined,
6390
+ LastUpdatedDate: output.lastUpdatedDate != null
6391
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.lastUpdatedDate))
6392
+ : undefined,
6391
6393
  RouteSettings: output.routeSettings != null
6392
6394
  ? deserializeAws_restJson1RouteSettingsMap(output.routeSettings, context)
6393
6395
  : undefined,
@@ -6443,7 +6445,7 @@ const deserializeAws_restJson1TlsConfig = (output, context) => {
6443
6445
  };
6444
6446
  const deserializeAws_restJson1VpcLink = (output, context) => {
6445
6447
  return {
6446
- CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
6448
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdDate)) : undefined,
6447
6449
  Name: (0, smithy_client_1.expectString)(output.name),
6448
6450
  SecurityGroupIds: output.securityGroupIds != null
6449
6451
  ? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ApiGatewayV2ServiceException as __BaseException } from "../models/ApiGatewayV2ServiceException";
4
4
  import { AccessDeniedException, BadRequestException, ConflictException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
5
5
  export const serializeAws_restJson1CreateApiCommand = async (input, context) => {
@@ -1704,7 +1704,7 @@ export const deserializeAws_restJson1CreateApiCommand = async (output, context)
1704
1704
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
1705
1705
  }
1706
1706
  if (data.createdDate != null) {
1707
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
1707
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
1708
1708
  }
1709
1709
  if (data.description != null) {
1710
1710
  contents.Description = __expectString(data.description);
@@ -1902,7 +1902,7 @@ export const deserializeAws_restJson1CreateDeploymentCommand = async (output, co
1902
1902
  contents.AutoDeployed = __expectBoolean(data.autoDeployed);
1903
1903
  }
1904
1904
  if (data.createdDate != null) {
1905
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
1905
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
1906
1906
  }
1907
1907
  if (data.deploymentId != null) {
1908
1908
  contents.DeploymentId = __expectString(data.deploymentId);
@@ -2367,7 +2367,7 @@ export const deserializeAws_restJson1CreateStageCommand = async (output, context
2367
2367
  contents.ClientCertificateId = __expectString(data.clientCertificateId);
2368
2368
  }
2369
2369
  if (data.createdDate != null) {
2370
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
2370
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
2371
2371
  }
2372
2372
  if (data.defaultRouteSettings != null) {
2373
2373
  contents.DefaultRouteSettings = deserializeAws_restJson1RouteSettings(data.defaultRouteSettings, context);
@@ -2382,7 +2382,7 @@ export const deserializeAws_restJson1CreateStageCommand = async (output, context
2382
2382
  contents.LastDeploymentStatusMessage = __expectString(data.lastDeploymentStatusMessage);
2383
2383
  }
2384
2384
  if (data.lastUpdatedDate != null) {
2385
- contents.LastUpdatedDate = __expectNonNull(__parseRfc3339DateTime(data.lastUpdatedDate));
2385
+ contents.LastUpdatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.lastUpdatedDate));
2386
2386
  }
2387
2387
  if (data.routeSettings != null) {
2388
2388
  contents.RouteSettings = deserializeAws_restJson1RouteSettingsMap(data.routeSettings, context);
@@ -2436,7 +2436,7 @@ export const deserializeAws_restJson1CreateVpcLinkCommand = async (output, conte
2436
2436
  });
2437
2437
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2438
2438
  if (data.createdDate != null) {
2439
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
2439
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
2440
2440
  }
2441
2441
  if (data.name != null) {
2442
2442
  contents.Name = __expectString(data.name);
@@ -3079,7 +3079,7 @@ export const deserializeAws_restJson1GetApiCommand = async (output, context) =>
3079
3079
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
3080
3080
  }
3081
3081
  if (data.createdDate != null) {
3082
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
3082
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
3083
3083
  }
3084
3084
  if (data.description != null) {
3085
3085
  contents.Description = __expectString(data.description);
@@ -3388,7 +3388,7 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
3388
3388
  contents.AutoDeployed = __expectBoolean(data.autoDeployed);
3389
3389
  }
3390
3390
  if (data.createdDate != null) {
3391
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
3391
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
3392
3392
  }
3393
3393
  if (data.deploymentId != null) {
3394
3394
  contents.DeploymentId = __expectString(data.deploymentId);
@@ -4138,7 +4138,7 @@ export const deserializeAws_restJson1GetStageCommand = async (output, context) =
4138
4138
  contents.ClientCertificateId = __expectString(data.clientCertificateId);
4139
4139
  }
4140
4140
  if (data.createdDate != null) {
4141
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
4141
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
4142
4142
  }
4143
4143
  if (data.defaultRouteSettings != null) {
4144
4144
  contents.DefaultRouteSettings = deserializeAws_restJson1RouteSettings(data.defaultRouteSettings, context);
@@ -4153,7 +4153,7 @@ export const deserializeAws_restJson1GetStageCommand = async (output, context) =
4153
4153
  contents.LastDeploymentStatusMessage = __expectString(data.lastDeploymentStatusMessage);
4154
4154
  }
4155
4155
  if (data.lastUpdatedDate != null) {
4156
- contents.LastUpdatedDate = __expectNonNull(__parseRfc3339DateTime(data.lastUpdatedDate));
4156
+ contents.LastUpdatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.lastUpdatedDate));
4157
4157
  }
4158
4158
  if (data.routeSettings != null) {
4159
4159
  contents.RouteSettings = deserializeAws_restJson1RouteSettingsMap(data.routeSettings, context);
@@ -4285,7 +4285,7 @@ export const deserializeAws_restJson1GetVpcLinkCommand = async (output, context)
4285
4285
  });
4286
4286
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4287
4287
  if (data.createdDate != null) {
4288
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
4288
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
4289
4289
  }
4290
4290
  if (data.name != null) {
4291
4291
  contents.Name = __expectString(data.name);
@@ -4399,7 +4399,7 @@ export const deserializeAws_restJson1ImportApiCommand = async (output, context)
4399
4399
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
4400
4400
  }
4401
4401
  if (data.createdDate != null) {
4402
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
4402
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
4403
4403
  }
4404
4404
  if (data.description != null) {
4405
4405
  contents.Description = __expectString(data.description);
@@ -4486,7 +4486,7 @@ export const deserializeAws_restJson1ReimportApiCommand = async (output, context
4486
4486
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
4487
4487
  }
4488
4488
  if (data.createdDate != null) {
4489
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
4489
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
4490
4490
  }
4491
4491
  if (data.description != null) {
4492
4492
  contents.Description = __expectString(data.description);
@@ -4684,7 +4684,7 @@ export const deserializeAws_restJson1UpdateApiCommand = async (output, context)
4684
4684
  contents.CorsConfiguration = deserializeAws_restJson1Cors(data.corsConfiguration, context);
4685
4685
  }
4686
4686
  if (data.createdDate != null) {
4687
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
4687
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
4688
4688
  }
4689
4689
  if (data.description != null) {
4690
4690
  contents.Description = __expectString(data.description);
@@ -4882,7 +4882,7 @@ export const deserializeAws_restJson1UpdateDeploymentCommand = async (output, co
4882
4882
  contents.AutoDeployed = __expectBoolean(data.autoDeployed);
4883
4883
  }
4884
4884
  if (data.createdDate != null) {
4885
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
4885
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
4886
4886
  }
4887
4887
  if (data.deploymentId != null) {
4888
4888
  contents.DeploymentId = __expectString(data.deploymentId);
@@ -5344,7 +5344,7 @@ export const deserializeAws_restJson1UpdateStageCommand = async (output, context
5344
5344
  contents.ClientCertificateId = __expectString(data.clientCertificateId);
5345
5345
  }
5346
5346
  if (data.createdDate != null) {
5347
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
5347
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
5348
5348
  }
5349
5349
  if (data.defaultRouteSettings != null) {
5350
5350
  contents.DefaultRouteSettings = deserializeAws_restJson1RouteSettings(data.defaultRouteSettings, context);
@@ -5359,7 +5359,7 @@ export const deserializeAws_restJson1UpdateStageCommand = async (output, context
5359
5359
  contents.LastDeploymentStatusMessage = __expectString(data.lastDeploymentStatusMessage);
5360
5360
  }
5361
5361
  if (data.lastUpdatedDate != null) {
5362
- contents.LastUpdatedDate = __expectNonNull(__parseRfc3339DateTime(data.lastUpdatedDate));
5362
+ contents.LastUpdatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.lastUpdatedDate));
5363
5363
  }
5364
5364
  if (data.routeSettings != null) {
5365
5365
  contents.RouteSettings = deserializeAws_restJson1RouteSettingsMap(data.routeSettings, context);
@@ -5413,7 +5413,7 @@ export const deserializeAws_restJson1UpdateVpcLinkCommand = async (output, conte
5413
5413
  });
5414
5414
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5415
5415
  if (data.createdDate != null) {
5416
- contents.CreatedDate = __expectNonNull(__parseRfc3339DateTime(data.createdDate));
5416
+ contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdDate));
5417
5417
  }
5418
5418
  if (data.name != null) {
5419
5419
  contents.Name = __expectString(data.name);
@@ -5898,7 +5898,7 @@ const deserializeAws_restJson1Api = (output, context) => {
5898
5898
  ApiId: __expectString(output.apiId),
5899
5899
  ApiKeySelectionExpression: __expectString(output.apiKeySelectionExpression),
5900
5900
  CorsConfiguration: output.corsConfiguration != null ? deserializeAws_restJson1Cors(output.corsConfiguration, context) : undefined,
5901
- CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
5901
+ CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdDate)) : undefined,
5902
5902
  Description: __expectString(output.description),
5903
5903
  DisableExecuteApiEndpoint: __expectBoolean(output.disableExecuteApiEndpoint),
5904
5904
  DisableSchemaValidation: __expectBoolean(output.disableSchemaValidation),
@@ -5995,7 +5995,7 @@ const deserializeAws_restJson1CorsOriginList = (output, context) => {
5995
5995
  const deserializeAws_restJson1Deployment = (output, context) => {
5996
5996
  return {
5997
5997
  AutoDeployed: __expectBoolean(output.autoDeployed),
5998
- CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
5998
+ CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdDate)) : undefined,
5999
5999
  DeploymentId: __expectString(output.deploymentId),
6000
6000
  DeploymentStatus: __expectString(output.deploymentStatus),
6001
6001
  DeploymentStatusMessage: __expectString(output.deploymentStatusMessage),
@@ -6021,7 +6021,7 @@ const deserializeAws_restJson1DomainNameConfiguration = (output, context) => {
6021
6021
  CertificateArn: __expectString(output.certificateArn),
6022
6022
  CertificateName: __expectString(output.certificateName),
6023
6023
  CertificateUploadDate: output.certificateUploadDate != null
6024
- ? __expectNonNull(__parseRfc3339DateTime(output.certificateUploadDate))
6024
+ ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.certificateUploadDate))
6025
6025
  : undefined,
6026
6026
  DomainNameStatus: __expectString(output.domainNameStatus),
6027
6027
  DomainNameStatusMessage: __expectString(output.domainNameStatusMessage),
@@ -6231,14 +6231,16 @@ const deserializeAws_restJson1Stage = (output, context) => {
6231
6231
  ApiGatewayManaged: __expectBoolean(output.apiGatewayManaged),
6232
6232
  AutoDeploy: __expectBoolean(output.autoDeploy),
6233
6233
  ClientCertificateId: __expectString(output.clientCertificateId),
6234
- CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
6234
+ CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdDate)) : undefined,
6235
6235
  DefaultRouteSettings: output.defaultRouteSettings != null
6236
6236
  ? deserializeAws_restJson1RouteSettings(output.defaultRouteSettings, context)
6237
6237
  : undefined,
6238
6238
  DeploymentId: __expectString(output.deploymentId),
6239
6239
  Description: __expectString(output.description),
6240
6240
  LastDeploymentStatusMessage: __expectString(output.lastDeploymentStatusMessage),
6241
- LastUpdatedDate: output.lastUpdatedDate != null ? __expectNonNull(__parseRfc3339DateTime(output.lastUpdatedDate)) : undefined,
6241
+ LastUpdatedDate: output.lastUpdatedDate != null
6242
+ ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.lastUpdatedDate))
6243
+ : undefined,
6242
6244
  RouteSettings: output.routeSettings != null
6243
6245
  ? deserializeAws_restJson1RouteSettingsMap(output.routeSettings, context)
6244
6246
  : undefined,
@@ -6294,7 +6296,7 @@ const deserializeAws_restJson1TlsConfig = (output, context) => {
6294
6296
  };
6295
6297
  const deserializeAws_restJson1VpcLink = (output, context) => {
6296
6298
  return {
6297
- CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTime(output.createdDate)) : undefined,
6299
+ CreatedDate: output.createdDate != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdDate)) : undefined,
6298
6300
  Name: __expectString(output.name),
6299
6301
  SecurityGroupIds: output.securityGroupIds != null
6300
6302
  ? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewayv2",
3
3
  "description": "AWS SDK for JavaScript Apigatewayv2 Client for Node.js, Browser and React Native",
4
- "version": "3.261.0",
4
+ "version": "3.262.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.261.0",
23
+ "@aws-sdk/client-sts": "3.262.0",
24
24
  "@aws-sdk/config-resolver": "3.259.0",
25
25
  "@aws-sdk/credential-provider-node": "3.261.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.257.0",