cdk-real-drift 0.12.25 → 0.12.27

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/cli.js CHANGED
@@ -4668,14 +4668,15 @@ function shouldPrioritizeEnv() {
4668
4668
  const key = process.env.AWS_SECRET_ACCESS_KEY || process.env.AMAZON_SECRET_ACCESS_KEY;
4669
4669
  return !!id && !!key;
4670
4670
  }
4671
- const CLIENT_CREDENTIALS = (awsIdentityProperties) => (shouldPrioritizeEnv() ? createCredentialChain(fromEnv(), fromNodeProviderChain()) : fromNodeProviderChain())(awsIdentityProperties);
4671
+ const CLIENT_REQUEST_HANDLER = {
4672
+ connectionTimeout: 6e3,
4673
+ requestTimeout: 6e4,
4674
+ throwOnRequestTimeout: true
4675
+ };
4676
+ const CLIENT_CREDENTIALS = (awsIdentityProperties) => (shouldPrioritizeEnv() ? createCredentialChain(fromEnv(), fromNodeProviderChain({ clientConfig: { requestHandler: CLIENT_REQUEST_HANDLER } })) : fromNodeProviderChain({ clientConfig: { requestHandler: CLIENT_REQUEST_HANDLER } }))(awsIdentityProperties);
4672
4677
  const CLIENT_TIMEOUTS = {
4673
4678
  credentials: CLIENT_CREDENTIALS,
4674
- requestHandler: {
4675
- connectionTimeout: 6e3,
4676
- requestTimeout: 6e4,
4677
- throwOnRequestTimeout: true
4678
- }
4679
+ requestHandler: CLIENT_REQUEST_HANDLER
4679
4680
  };
4680
4681
  const READ_RETRY = {
4681
4682
  maxAttempts: 10,
@@ -8337,7 +8338,8 @@ function routeDestination(route) {
8337
8338
  if (typeof route.DestinationPrefixListId === "string") return route.DestinationPrefixListId;
8338
8339
  }
8339
8340
  function isEnumerableRoute(route) {
8340
- return routeDestination(route) !== void 0 && route.Origin !== "CreateRouteTable" && route.Origin !== "EnableVgwRoutePropagation" && route.GatewayId !== "local";
8341
+ const isGatewayEndpointManaged = typeof route.DestinationPrefixListId === "string" && typeof route.GatewayId === "string" && route.GatewayId.startsWith("vpce-");
8342
+ return routeDestination(route) !== void 0 && route.Origin !== "CreateRouteTable" && route.Origin !== "EnableVgwRoutePropagation" && route.GatewayId !== "local" && !isGatewayEndpointManaged;
8341
8343
  }
8342
8344
  async function enumerateRouteTableChildren(ctx) {
8343
8345
  const { parent, desired, region } = ctx;