Socket
Socket
Sign inDemoInstall

@aws-sdk/config-resolver

Package Overview
Dependencies
5
Maintainers
6
Versions
162
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/config-resolver


Version published
Weekly downloads
3.3M
decreased by-19.96%
Maintainers
6
Created
Weekly downloads
 

Package description

What is @aws-sdk/config-resolver?

@aws-sdk/config-resolver is a package within the AWS SDK for JavaScript that provides utilities for resolving configuration settings for AWS clients. It helps in managing and resolving configurations such as region, credentials, and other client-specific settings.

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

Region Resolution

This feature allows you to resolve the region configuration for an AWS client. The code sample demonstrates how to use the `resolveRegionConfig` function to resolve the region setting from a client configuration object.

const { resolveRegionConfig } = require('@aws-sdk/config-resolver');
const clientConfig = { region: 'us-west-2' };
const resolvedConfig = resolveRegionConfig(clientConfig);
console.log(resolvedConfig);

Credentials Resolution

This feature allows you to resolve the credentials configuration for an AWS client. The code sample demonstrates how to use the `resolveCredentialsConfig` function to resolve the credentials setting from a client configuration object.

const { resolveCredentialsConfig } = require('@aws-sdk/config-resolver');
const clientConfig = { credentials: { accessKeyId: 'AKIA...', secretAccessKey: 'SECRET...' } };
const resolvedConfig = resolveCredentialsConfig(clientConfig);
console.log(resolvedConfig);

Endpoint Resolution

This feature allows you to resolve the endpoint configuration for an AWS client. The code sample demonstrates how to use the `resolveEndpointConfig` function to resolve the endpoint setting from a client configuration object.

const { resolveEndpointConfig } = require('@aws-sdk/config-resolver');
const clientConfig = { endpoint: 'https://dynamodb.us-west-2.amazonaws.com' };
const resolvedConfig = resolveEndpointConfig(clientConfig);
console.log(resolvedConfig);

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

Changelog

Source

3.130.0 (2022-07-14)

Bug Fixes

  • codegen: fix error code parsing when it's a number (#3371) (c2d8522)
  • signature-v4: allow empty string as canonical header value (#3797) (0dd60ed)

Features

  • client-athena: This release updates data types that contain either QueryExecutionId, NamedQueryId or ExpectedBucketOwner. Ids must be between 1 and 128 characters and contain only non-whitespace characters. ExpectedBucketOwner must be 12-digit string. (a22c328)
  • client-codeartifact: This release introduces Package Origin Controls, a mechanism used to counteract Dependency Confusion attacks. Adds two new APIs, PutPackageOriginConfiguration and DescribePackage, and updates the ListPackage, DescribePackageVersion and ListPackageVersion APIs in support of the feature. (ac9d765)
  • client-config-service: Update ResourceType enum with values for Route53Resolver, Batch, DMS, Workspaces, Stepfunctions, SageMaker, ElasticLoadBalancingV2, MSK types (58d673a)
  • client-ec2: This release adds flow logs for Transit Gateway to allow customers to gain deeper visibility and insights into network traffic through their Transit Gateways. (57b3f71)
  • client-fms: Adds support for strict ordering in stateful rule groups in Network Firewall policies. (b6f9a9f)
  • client-glue: This release adds an additional worker type for Glue Streaming jobs. (f47fa13)
  • client-inspector2: This release adds support for Inspector V2 scan configurations through the get and update configuration APIs. Currently this allows configuring ECR automated re-scan duration to lifetime or 180 days or 30 days. (36bccb8)
  • client-kendra: This release adds AccessControlConfigurations which allow you to redefine your document level access control without the need for content re-indexing. (b1c43cf)
  • client-nimble: Amazon Nimble Studio adds support for IAM-based access to AWS resources for Nimble Studio components and custom studio components. Studio Component scripts use these roles on Nimble Studio workstation to mount filesystems, access S3 buckets, or other configured resources in the Studio's AWS account (bae6c59)
  • client-outposts: This release adds the ShipmentInformation and AssetInformationList fields to the GetOrder API response. (cf80140)
  • client-sagemaker: This release adds support for G5, P4d, and C6i instance types in Amazon SageMaker Inference and increases the number of hyperparameters that can be searched from 20 to 30 in Amazon SageMaker Automatic Model Tuning (4d43eac)
  • clients: update client endpoints as of 2022-07-14 (93c74f4)

Readme

Source

@aws-sdk/config-resolver

NPM version NPM downloads

An internal package

Usage

You probably shouldn't, at least directly.

FAQs

Last updated on 14 Jul 2022

Did you know?

Socket

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc