A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkref/latest/guide/feature-smart-config-defaults.html below:

Smart configuration defaults - AWS SDKs and Tools

Smart configuration defaults

With the smart configuration defaults feature, AWS SDKs can provide predefined, optimized default values for other configuration settings.

Configure this functionality by using the following:

defaults_mode - shared AWS config file setting
AWS_DEFAULTS_MODE - environment variable
aws.defaultsMode - JVM system property: Java/Kotlin only

With this setting, you can choose a mode that aligns with your application architecture, which then provides optimized default values for your application. If an AWS SDK setting has a value explicitly set, then that value always takes precedence. If an AWS SDK setting does not have a value explicitly set, and defaults_mode is not equal to legacy, then this feature can provide different default values for various settings optimized for your application. Settings may include the following: HTTP communication settings, retry behavior, service Regional endpoint settings, and, potentially, any SDK-related configuration. Customers who use this feature can get new configuration defaults tailored to common usage scenarios. If your defaults_mode is not equal to legacy, we recommend performing tests of your application when you upgrade the SDK, because the default values provided might change as best practices evolve.

Default value: legacy

Note: New major versions of SDKs will default to standard.

Valid values:

Example of setting this value in the config file:

[default]
defaults_mode = standard

The following parameters might be optimized based on the selection of defaults_mode:

The default value for each setting changes depending on the defaults_mode selected for your application. These values are currently set as follows (subject to change):

Parameter standard mode in-region mode cross-region mode mobile mode retryMode standard standard standard standard stsRegionalEndpoints regional regional regional regional s3UsEast1RegionalEndpoints regional regional regional regional connectTimeoutInMillis 3100 1100 3100 30000 tlsNegotiationTimeoutInMillis 3100 1100 3100 30000

For example, if the defaults_mode you selected was standard, then the value of standard would be assigned for retry_mode (from the valid retry_mode options) and the value of regional would be assigned for stsRegionalEndpoints (from the valid stsRegionalEndpoints options).

Support by AWS SDKs and tools

The following SDKs support the features and settings described in this topic. Any partial exceptions are noted. Any JVM system property settings are supported by the AWS SDK for Java and the AWS SDK for Kotlin only.

SDK Supported Notes or more information AWS CLI v2 No SDK for C++ Yes Parameters not optimized: stsRegionalEndpoints, s3UsEast1RegionalEndpoints, tlsNegotiationTimeoutInMillis. SDK for Go V2 (1.x) Yes Parameters not optimized: retryMode, stsRegionalEndpoints, s3UsEast1RegionalEndpoints. SDK for Go 1.x (V1) No SDK for Java 2.x Yes Parameters not optimized: stsRegionalEndpoints. SDK for Java 1.x No SDK for JavaScript 3.x Yes Parameters not optimized: stsRegionalEndpoints, s3UsEast1RegionalEndpoints, tlsNegotiationTimeoutInMillis. connectTimeoutInMillis is called connectionTimeout. SDK for JavaScript 2.x No SDK for Kotlin No SDK for .NET 4.x Yes Parameters not optimized: connectTimeoutInMillis, tlsNegotiationTimeoutInMillis. SDK for .NET 3.x Yes Parameters not optimized: connectTimeoutInMillis, tlsNegotiationTimeoutInMillis. SDK for PHP 3.x Yes Parameters not optimized: tlsNegotiationTimeoutInMillis. SDK for Python (Boto3) Yes Parameters not optimized: tlsNegotiationTimeoutInMillis. SDK for Ruby 3.x Yes SDK for Rust No SDK for Swift No Tools for PowerShell V5 Yes Parameters not optimized: connectTimeoutInMillis, tlsNegotiationTimeoutInMillis. Tools for PowerShell V4 Yes Parameters not optimized: connectTimeoutInMillis, tlsNegotiationTimeoutInMillis.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4