Socket
Socket
Sign inDemoInstall

@aws-sdk/region-config-resolver

Package Overview
Dependencies
8
Maintainers
5
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-sdk/region-config-resolver

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/region-config-resolver/latest.svg)](https://www.npmjs.com/package/@aws-sdk/region-config-resolver) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/region-config-resolver.svg)](https://www.npmj


Version published
Weekly downloads
14M
increased by1.06%
Maintainers
5
Created
Weekly downloads
 

Package description

What is @aws-sdk/region-config-resolver?

The @aws-sdk/region-config-resolver package is part of the AWS SDK for JavaScript (v3). It provides utilities to resolve AWS region configurations in a flexible manner. This package is particularly useful when building applications that need to interact with various AWS services across different regions.

What are @aws-sdk/region-config-resolver's main functionalities?

Resolving region configuration

This feature allows the automatic resolution of the AWS region by checking environment variables, AWS configuration files, and other sources. It simplifies handling region-specific configurations in your application.

const { defaultRegionResolver } = require('@aws-sdk/region-config-resolver');

const region = defaultRegionResolver();
console.log(region);

Custom region resolution

This feature enables developers to define custom strategies for resolving the AWS region, such as prioritizing environment variables or specific profiles in shared configuration files. It provides flexibility in how regions are determined based on the application's needs.

const { fromEnv, fromSharedConfigFiles } = require('@aws-sdk/region-config-resolver');

const customRegion = fromEnv() || fromSharedConfigFiles({ profile: 'myProfile' });
console.log(customRegion);

Other packages similar to @aws-sdk/region-config-resolver

Changelog

Source

3.577.0 (2024-05-15)

Bug Fixes

  • credential-providers: use latest version for client peerDependencies (#6099) (9b1ed64)

Features

  • client-bedrock-agent-runtime: Updating Bedrock Knowledge Base Metadata & Filters feature with two new filters listContains and stringContains (91b3891)
  • client-codebuild: CodeBuild Reserved Capacity VPC Support (877d146)
  • client-datasync: Task executions now display a CANCELLING status when an execution is in the process of being cancelled. (ef2c2a5)
  • client-grafana: This release adds new ServiceAccount and ServiceAccountToken APIs. (6c98871)
  • client-medical-imaging: Added support for importing medical imaging data from Amazon S3 buckets across accounts and regions. (1ac3a3d)

Readme

Source

@aws-sdk/region-config-resolver

NPM version NPM downloads

An internal package

This package provides utilities for AWS region config resolvers.

Usage

You probably shouldn't, at least directly.

FAQs

Last updated on 15 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc