Skip to content

Generated crates suggest to use deprecated aws_config::load_from_env #1088

Open
@mchoicpe-amazon

Description

@mchoicpe-amazon

Describe the issue

https://docs.rs/aws-sdk-appconfigdata/latest/aws_sdk_appconfigdata/client/index.html

Suggests the following:

let config = aws_config::load_from_env().await;
let client = aws_sdk_appconfigdata::Client::new(&config);

Not sure if this was intentional, but load_from_env is deprecated by default (behavior-version-latest disabled by default). The documentation should change to suggest construction like so:

let config = aws_config::load_from_env().await;
let client = aws_sdk_appconfigdata::Client::new(&config);

Alternative the doc could inform users the feature flag is required to make the example work.

Links

https://docs.rs/aws-sdk-appconfigdata/latest/aws_sdk_appconfigdata/client/index.html
https://docs.rs/aws-config/1.1.7/aws_config/fn.load_from_env.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentationp3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions